Fixed browser issues, and cleaned code

The slider has been made into an object in its own file, so it can be
reused with ease. Also the opacity features have been made cross browser
compatible down to IE7.