// Author: ricocheting.com
// Description: slideshow that allows visitors to flip through a series of images on your website

var x1=0;

function rotate1(num){
	slideshow=document.form1.slide1;
	x1=num%slideshow.length;
	if(x1<0) x1=slideshow.length-1;
	document.images.show1.src=slideshow.options[x1].value;
	slideshow.selectedIndex=x1;
	return;
}

function auto1(){
	if(document.form1.StartStop.value == "Stop"){
		rotate1(++x1);
		setTimeout("auto1()", 5000);
	}
	return;
}

/****************************************************/

var x2=0;

function rotate2(num){
	slideshow=document.form2.slide2;
	x2=num%slideshow.length;
	if(x2<0) x2=slideshow.length-1;
	document.images.show2.src=slideshow.options[x2].value;
	slideshow.selectedIndex=x2;
	return;
}

function auto2(){
	if(document.form2.StartStop.value == "Stop"){
		rotate2(++x2);
		setTimeout("auto2()", 5000);
	}
	return;
}

/****************************************************/

var x3=0;

function rotate3(num){
	slideshow=document.form3.slide3;
	x3=num%slideshow.length;
	if(x3<0) x3=slideshow.length-1;
	document.images.show3.src=slideshow.options[x3].value;
	slideshow.selectedIndex=x3;
	return;
}

function auto3(){
	if(document.form3.StartStop.value == "Stop"){
		rotate3(++x3);
		setTimeout("auto3()", 5000);
	}
	return;
}

/****************************************************/

var x4=0;

function rotate4(num){
	slideshow=document.form4.slide4;
	x4=num%slideshow.length;
	if(x4<0) x4=slideshow.length-1;
	document.images.show4.src=slideshow.options[x4].value;
	slideshow.selectedIndex=x4;
	return;
}

function auto4(){
	if(document.form4.StartStop.value == "Stop"){
		rotate4(++x4);
		setTimeout("auto4()", 5000);
	}
	return;
}

/****************************************************/

var x5=0;

function rotate5(num){
	slideshow=document.form5.slide5;
	x5=num%slideshow.length;
	if(x5<0) x5=slideshow.length-1;
	document.images.show5.src=slideshow.options[x5].value;
	slideshow.selectedIndex=x5;
	return;
}

function auto5(){
	if(document.form5.StartStop.value == "Stop"){
		rotate5(++x5);
		setTimeout("auto5()", 5000);
	}
	return;
}

/****************************************************/

var x6=0;

function rotate6(num){
	slideshow=document.form6.slide6;
	x6=num%slideshow.length;
	if(x6<0) x6=slideshow.length-1;
	document.images.show6.src=slideshow.options[x6].value;
	slideshow.selectedIndex=x6;
	return;
}

function auto6(){
	if(document.form6.StartStop.value == "Stop"){
		rotate6(++x6);
		setTimeout("auto6()", 5000);
	}
	return;
}

