//Used to set the image properties of the sidebar image
function setPicture(href, topNum) {
	var imgSource = 'images/Thumbnails/BermudaAerial.jpg';
	
	//Set the image source depending on the calling link
	if (href == 'index.html') 					{imgSource = Image1.src;}
	if (href == 'WaterQuality.html') 			{imgSource = Image2.src;} 
	if (href == 'WastewaterTreatment.html') 	{imgSource = Image3.src;}
	if (href == 'AsbestosManagement.html') 		{imgSource = Image4.src;}
	if (href == 'IndoorAirQuality.html') 		{imgSource = Image5.src;}
	if (href == 'EIA.html') 					{imgSource = Image6.src;}
	if (href == 'SiteAssessment.html') 			{imgSource = Image7.src;}
	if (href == 'GroundwaterAndSoil.html') 		{imgSource = Image8.src;}
	
	//Set the sidebar image properties
	document.getElementById('HoverImage').src 					= imgSource;
	document.getElementById('HoverContainerID').style.display 	= 'block';
	document.getElementById('HoverContainerID').style.top 		=  topNum;
}

function loadImages() {
	Image1= new Image(79,79);
	Image1.src = "images/Thumbnails/AboutUs.jpg";
	
	Image2= new Image(79,79);
	Image2.src = "images/Thumbnails/Water_Collection.jpg";
	
	Image3= new Image(79,79);
	Image3.src = "images/Thumbnails/Wastewater.jpg";	
		
	Image4= new Image(79,79);
	Image4.src = "images/Thumbnails/AsbestosAbatement.jpg";
		
	Image5= new Image(79,79);
	Image5.src = "images/Thumbnails/MouldyCeilingTile.jpg";
		
	Image6= new Image(79,79);
	Image6.src = "images/Thumbnails/EIA.jpg";
		
	Image7= new Image(79,79);
	Image7.src = "images/Thumbnails/SiteAssessment.jpg";
		
	Image8= new Image(79,79);
	Image8.src = "images/Thumbnails/GroundwaterAndSoil.jpg";
}