
var Slides = Array('slide1','slide2','slide3','slide4','slide5','slide6');      // we define a array with all the div-Id’s of the slides.

var wait = 3000;    // interval and time in milliseconds

var i=0;

function start_slideshow() {
setInterval(SlideShow, wait);  // This is a javascript function which acts as a timer.
}

function SlideShow() {

Effect.Fade(Slides[i], { duration:1, from:1.0, to:0.0 });
    i++;
    if (i == 6) i = 0;
    Effect.Appear(Slides[i], { duration:1, from:0.0, to:1.0 });

}
