
//***********************************************
//changes pictures with each text with mouse over

//checks if browser can read images
//sets alternative images
	if (document.images)
		{	
		
		churchPicture = new Image(510,270);
	        churchPicture.src = "images/churchcollage.jpg";

		sanctuaryPicture = new Image(510,270);
		sanctuaryPicture.src = "images/sanctuary3.jpg";

                healAfricaPicture = new Image(510,270);
		healAfricaPicture.src = "images/heal_africa_index.gif";

                visionPicture = new Image(510,270);
		visionPicture.src = "images/vision3.gif";
		
                katrinaPicture = new Image(510,270);
		katrinaPicture.src = "images/katrina_index.jpg";
		
		sm_katrinaPicture = new Image(82,62);
		sm_katrinaPicture.src = "images/hurricanekatrina.jpg";

		christmasevePicture = new Image(510,270);
		christmasevePicture.src = "images/christmas_eve.jpg";
		
                healServicePicture = new Image(510,270);
                healServicePicture.src = "images/healing_service.gif";
				
	holyWeekServicesPicture = new Image(510,270);
      holyWeekServicesPicture.src = "images/holy_week_services_index.gif"; 
      
      habitatPicture = new Image(510,270); 
      habitatPicture.src = "images/cape_habitat_index.gif";
}

//placeholders if browser has no javascript
	else
		{
		churchPicture = "";
                sanctuaryPicture = "";
                healAfricaPicture = "";    
                visionPicture = "";
                katrinaPicture = "";
		christmasevePicture = "";
		healServicePicture = ""; 
holyWeekServicesPicture = "";
habitatPicture = "";   
		}
		
		
//function for changing images
function changePicture(picName,imgName)
{
		if (document.images)
		{   
			//detects image object and change parameters
			imgOn=eval (imgName + ".src");
			
			//takes image name and adds .src so script can find location
			document[picName].src= imgOn;
	    }
}
		
//end changes pictures with each text with mouse over
//***************************************************