For a Tutorial on how to build this javascript functionality see:
http://www.the-art-of-web.com/javascript/css-animation/
