window.onload = choosePic;
//list the files in the image folder (now it is "index_htm_files/cliploop/"
//change images as necessary
var loopImages = new Array("ashland.jpg","bailey2.jpg","bike2work.jpg","bg-squash.jpg","bikes4kids.jpg",
					       "bowlinggreen-5.jpg","bryanpark-3.jpg","chanpe-2.jpg","cookielady.jpg","covered-bridge-08.jpg",
						   "dale-light.jpg","ferry.jpg","fred-8.jpg","hector-4.jpg","hov.jpg",
						   "moratico.jpg","ms2008.jpg","picnic-7.jpg","postabc.jpg","road-1.jpg",
						   "stocks-6.jpg"
						   );
var thisImg = 0;

function choosePic() {
	thisImg = Math.floor((Math.random() * loopImages.length));
	document.getElementById("clubpic").src = "index_htm_files/cliploop/" + loopImages[thisImg];
	
	//Pick the following if you want to display random images
	//setTimeout(choosePic, 5 * 1000);
	
	rotate();
}
function rotate() {
	thisImg++;
	if (thisImg == loopImages.length) {
		thisImg = 0;
	}
	document.getElementById("clubpic").src = "index_htm_files/cliploop/" + loopImages[thisImg];

	setTimeout(rotate, 5 * 1000);
}

