I'm working on creating a javascript version of the website that currently uses flash.
So far, I have completed the basic layout, which consists of a simple horizontal container with divs. You can view the code here http://pastebin.com/U3z2aJve
I am considering adding an event handler for mousemove, but I am unsure about how to calculate the container's left position in relation to the mouse's x position for the scrolling effect.
Can anyone provide guidance on the mathematical aspect of this?