// JavaScript Document for images
var oldImage=null;

/* This is used to name the function and define an element */

	function toggleImage(currImage) {						
	
/*This searches for the style of the element selected in the currImage */	
	
	var menuImage=document.getElementById(currImage).style;
	
/*this checks to see if there is content in oldImage, if so it goes straight to next function, otherwise is skips */	
	
	if(oldImage) { 
	
/*This tells the oldImage to set its display to none */	
	
	oldImage.display='none'; 
	}
	
	
/*This tells the style to display the element */	
	
	menuImage.display='block'; 
	
/*This sets the image we have just displayed to oldImage */
	
	oldImage=menuImage; 
	}