Moved javascript to the bottom of the page, and into external files.
Moved function declared in a loop.
Dont wait for the load event.
Minified. Removed IE6 support.
Moved function declared in a loop.