function initAll()
{	
	var idCont=document.getElementById("identifier").innerHTML;

	//forces the relevant link to stay on
	if((idCont)&&(idCont!="none"))
	{
		document.getElementById(idCont).src="images\/layout\/"+idCont+"_ON.jpg";
	}
	
	function rollOn()
	{
		this.src="images\/layout\/"+this.id+"_ON.jpg";
	}
	
	function rollOff()
	{
		if((idCont)&&(this.id==idCont))
		{this.src="images\/layout\/"+this.id+"_ON.jpg";}
		else{this.src="images\/layout\/"+this.id+"_OFF.jpg";}
	}
	
	for(var i=0; i<document.getElementsByName("mb_btn").length; i++)
	{
		document.getElementsByName("mb_btn")[i].onmouseover=rollOn;
		document.getElementsByName("mb_btn")[i].onmouseout=rollOff;
	}
	
	function dropDown()
	{
		document.getElementById(this.id+"Links").style.display="block";
	}
	
	function pullUp()
	{
		document.getElementById(this.id+"Links").style.display="none";
	}
	
	/*Only menu1 through menu3 have drop-downs*/
	for (var j=1; j<=3; j++)
	{
	document.getElementById("menu"+j).onmouseover=dropDown;
	document.getElementById("menu"+j).onmouseout=pullUp;
	}
}

window.onload=initAll;

function resetAll()
{
	/*Resetting drop-downs 1 through 3*/
	for (var k=1; k<=3; k++)
	{document.getElementById("menu"+k+"Links").style.display="none";}
}

window.onunload=resetAll;