Added javascript for slider

Code from http://www.javascriptkit.com/script/script2/jsslide.shtml