var slides= new Array('slide1', 'slide2', 'slide3', 'slide4', 'slide5', 'slide6', 'slide7');  //add other slides to array...
var slidenum = slides.length;
var i = 0; var wait = 5000;
globali = 0;

function SlideShow() {
Effect.Fade(slides[i], { duration:1, from:1.0, to:0.0 }); 
i++; globali=i;
 if (i == slidenum) i = 0; 
Effect.Appear(slides[i], { duration:1, from:0.0, to:1.0 });
 }
 
function showsingle(num) {
	clearInterval(showtime);
	Effect.Fade(slides[i], { duration:0, from:1.0, to:0.0 }); 
	Effect.Appear(slides[num], { duration:0.3, from:0.0, to:1.0 });
	globali = num;
}


// the onload event handler that starts the fading. 
function start_slideshow() { showtime = setInterval('SlideShow()',wait); }

function resume_slideshow() {
	Effect.Fade(slides[globali], { duration:1, from:1.0, to:0.0 }); 
	showtime = setInterval('SlideShow()',wait);
	Effect.Appear(slides[i], { duration:1, from:0.0, to:1.0 });
}