Credits: Code adapted from the MooTool framework, see http://mootools.net. Easing Equations by Robert Penner, see http://www.robertpenner.com/easing.