How does a Hammer Drill Work?

We were at Home Depot the other day and they have some of the hammer drill out for people to try, I watched this guy try to use it and I thought it was pretty cool.You can find more information here: