/* slideshow2.js
	This script flips images in two slideshows alternatively.

	Example usage:
	<head>
		<script type="text/javascript">
			var total1 = 2;
			var total2 = 3;
			var imagelist1 = new Array(total1);
			var imagelist2 = new Array(total2);
			imagelist1[0] = "2007.Fall/Store01.jpg";
			imagelist1[1] = "2007.Fall/Store02.jpg";
			imagelist2[0] = "2007.Fall/Clothing01.jpg";
			imagelist2[1] = "2007.Fall/Clothing02.jpg";
			imagelist2[2] = "2007.Fall/Clothing03.jpg";
			count1 = total1 - 1;
			count2 = total2 - 1;
		</script>
		<script src="scripts/SlideShow2.js" type="text/javascript"></script>
	</head>
	<body>
		<img src="2007.Fall/Store01.jpg" name="slideshow1" width="368" height="276" alt="Store Interior" />
		<img src="2007.Fall/Store02.jpg" name="slideshow2" width="368" height="276" alt="Store Exterior" />
	</body>
*/

function startshow1()
{
	document.images.slideshow1.src = imagelist1[count1];
	if (count1 < total1 - 1) count1++;
	else count1 = 0;
	window.setTimeout("startshow2()", 3500);
}

function startshow2()
{
	document.images.slideshow2.src = imagelist2[count2];
	if (count2 < total2 - 1) count2++;
	else count2 = 0;
	window.setTimeout("startshow1()", 3500);
}
