// JavaScript Document
<!--
/* 
home page image rotator
*/
var imagePath = "images/rotatinggallery/"										// directory the images are in
var imageList = new Array()
// list of the images to rotate between
imageList = ["pic1.jpg",
			"pic2.jpg",
			"pic3.jpg",
			"pic4.jpg",
			"pic5.jpg",
			"pic6.jpg",
			"pic7.jpg",
			"pic8.jpg",
			"pic9.jpg",
			"pic10.jpg",
			"pic11.jpg",
			"pic12.jpg"]	

var imageCounter = 0
var swapDelay = 4000								// number of seconds * 1000 

function doRotate() {
	if(++imageCounter >= imageList.length) imageCounter = 0
	document.images["bannerimage"].src = imagePath + imageList[imageCounter]
	rotateBanner()
}

function rotateBanner() {
	setTimeout("doRotate()",swapDelay)
}

//-->


