<!-- hide JavaScript from non-JavaScript browsers
//Last Updated: 10/19/2003
//This function toggles between "on" and "off" versions of an image within a link.
//The code inspects the image source (file name) associated with the current image represented
//by the ID.  It then toggles the source to the other version.
//ID is the (normally unique on a page) HTML name assigned to the current instance of 
//the link image. The ID can be any string, i.e. it's doesn't have to match the file name.
//This code relies on image objects (xxx_on and xxx_off) that are automatically created
//in housekeeping as long as the images are present in [current root]/images/nav/ directory.
function imgToggle(ID){
	var a=0;
	var b=0;
	var FN="";
	var d=document; 
	if(d.images){
	//Gets character count of the last / in the path of the src associated with the current image
		a=d[ID].src.lastIndexOf("/",d[ID].src)+1
		//Gets character count of the last _ in the path of the src associated with the current image
		b=d[ID].src.lastIndexOf("_",d[ID].src)
		//Extracts the image name, sans its _on/_off
		FN = d[ID].src.substring(a,b)
		//Find out which image is current and toggle the current image src to the other version
		if(d[ID].src.substring(d[ID].src.lastIndexOf("_",d[ID].src)+1,d[ID].src.length-4)=="off"){
			d[ID].src = eval(FN + "_on.src");		//automatically handles creating the full relative path
		} else {
			d[ID].src = eval(FN + "_off.src");		//automatically handles creating the full relative path
		}
	}
}
//--> end hide JavaScript
