	var i = 0; var wait = 5000; var intervalID;
	
	function SlideShow() {

		if ($(slides[0]) == null) {
			clearInterval(intervalID);
			return false;
		};

		Effect.Fade(slides[i], { duration:1, from:1.0, to:0.0 }); 
		i++;
 		if (i == slideNo) 
		{
			clearInterval(intervalID);
			Effect.Appear(slides[0], { duration:1, from:0.0, to:1.0 });
			start_slideshow();
		}
		Effect.Appear(slides[i], { duration:1, from:0.0, to:1.0 });
 	} 

	// the onload event handler that starts the fading. 
	function start_slideshow() {
		i = 0;
	    intervalID = setInterval('SlideShow()',wait); 
	}
	
	//start_testimonial_scroll
	var t = 0; var twait = 5000; var tintervalID;
	
	function testimonial_scroll() {

		if ($(testimonials[0]) == null) {
			clearInterval(tintervalID);
			return false;
		};

		Effect.SlideUp(testimonials[t], { duration:1.0 }); 
		t++;
 		if (t == testimonialsNo) 
		{
			clearInterval(tintervalID);
			Effect.SlideDown(testimonials[0], { duration:1.0 });
			start_testimonial_scroll();
		}
		Effect.SlideDown(testimonials[t], { duration:1.0 });
 	} 

	// the onload event handler that starts the fading. 
	function start_testimonial_scroll() {
		t = 0;
	    tintervalID = setInterval('testimonial_scroll()',twait); 
	}