// JavaScript Document

	var slides = new Array('slideshow1','slideshow2','slideshow3','slideshow4');
	var slidestext = new Array('slidetext1','slidetext2','slidetext3','slidetext4')
	var i=0; var wait = 4000;    // interval and time in milliseconds
	
	start_slideshow();

	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 });
		document.getElementById(slidestext[i]).style.display = "none";
		//Effect.Fade(slidestext[i], { duration:1, from:0.0, to:0.0 });
		
    	i++;
    	if (i == slides.length) i = 0;
    	Effect.Appear(slides[i], { duration:1, from:0.0, to:1.0 });
		document.getElementById(slidestext[i]).style.display = "block";
		///Effect.Appear(slidestext[i], { duration:1, from:1.0, to:1.0 });
	}