// configuration structure var A_TPL = { // randomize the array each time page loads 'random' : false, // number of transparency changes during the transition // increase for smoother transition, reduce for less CPU usage 'steps' : 30, // transition duration in seconds 'transtime': .5, // slide time in seconds 'slidetime': 5, // width of the slide (optional) 'width' : 710, // height of the slide (optional) 'height': 400, // alt text for the image (optional) 'alt' : '', // css class assigned to the slide (optional) 'css' : '' }; // list of images to display var A_ITEMS = [ 'images/slideshow/sl1.jpg', 'images/slideshow/sl2.jpg', 'images/slideshow/sl3.jpg', 'images/slideshow/sl4.jpg', 'images/slideshow/sl5.jpg' ]; // fader initialization var mySlideShow = new aSlider (A_ITEMS, A_TPL);