/* The following script contains the image rotator. Don't forget to put the cycle function in the body tag. */
imgArray = new Array(11);
	imgArray[0] = new Image;
	imgArray[0].src = "uploads/images/home/ad_emily_vbs2007.jpg";
	imgArray[1] = new Image;
	imgArray[1].src = "uploads/images/home/ad_ribbons.jpg";
	imgArray[2] = new Image;
	imgArray[2].src = "uploads/images/home/ad_vbs_2007_child.jpg";
	imgArray[3] = new Image;
	imgArray[3].src = "uploads/images/home/ad_vbs2007_adult.jpg";
	imgArray[4] = new Image;
	imgArray[4].src = "uploads/images/home/ad_vbs_2007_craft.jpg";
	imgArray[5] = new Image;
	imgArray[5].src = "uploads/images/home/ad_vbs_2007_kids.jpg";
	imgArray[6] = new Image;
	imgArray[6].src = "uploads/images/home/ad_mission_2006.jpg";
	imgArray[7] = new Image;
	imgArray[7].src = "uploads/images/home/ad_mission_2006_bayside.jpg";
	imgArray[8] = new Image;
	imgArray[8].src = "uploads/images/home/ad_ldr_retreat.jpg";
	imgArray[9] = new Image;
	imgArray[9].src = "uploads/images/home/ad_retreat.jpg";
	imgArray[10] = new Image;
	imgArray[10].src = "uploads/images/home/ad_logos.jpg";
	imgArray[11] = new Image;
	imgArray[11].src = "uploads/images/home/ad_picnic1.jpg";
	
	index = 0;
	
function cycle()
	{
		document.getElementById("adrotate").src = imgArray[index].src;
		index++;
			if (index == 12)
				{
					index = 0;
				}
				setTimeout("cycle()",4000);
				return;
	}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
