///comment///
///Original source of code is
/// http://oit.wvu.edu/support/training/classmat/js/exercises/adrotator/adrotator.html 
////  Started on May 1, 2003 by LCT
/////////////////////////////////////////////////

////
{ 
	index1 = 0;
	listofimages = new Array(5);
	    listofimages[0] = new Image(430,58)
						  
        listofimages[0].src = "../../../imagesbuttons/button1.gif"
		listofimages[1] = new Image(430,58)
		listofimages[1].src = "../../../imagesbuttons/button2.gif"
	    listofimages[2] = new Image(430,58)
		listofimages[2].src = "../../../imagesbuttons/button3.gif"
		listofimages[3] = new Image(430,58)
		listofimages[3].src = "../../../imagesbuttons/button4.gif"
		listofimages[4] = new Image(430,58)
		listofimages[4].src = "../../../imagesbuttons/button5.gif"


							  thetimer = setTimeout("changeimage()", 5000);

} 

function changeimage(){ 
	index1 = index1 + 1
			 if (index1 == "5") { 
		index1 = 0 
	} 
	imagesource = listofimages[index1].src
				  window.document.banner1.src = imagesource

												thetimer = setTimeout("changeimage()", 1500);

} 

function changepage() { 
	if (index1 == 0) { 
		newlocation = "http://www.churchofcompassionateservice.com/0/A/1/p1.htm" 
	}
	else if (index1 == 1) { 
		newlocation = "http://www.churchofcompassionateservice.com/0/A/1/p2.htm" 
	}
	else if (index1 == 2) { 
		newlocation = "http://www.churchofcompassionateservice.com/0/A/1/p3.htm" 
	}
	else if (index1 == 3) { 
		newlocation = "http://www.churchofcompassionateservice.com/0/A/1/p4.htm" 
	}
	else if (index1 == 4) { 
		newlocation = "http://www.churchofcompassionateservice.com/0/A/1/p5.htm" 
	}
	location = newlocation 
} 

