function imageRollover(e)
{
	if(!e)
		var e = window.event;
	
	if(e.type == "mouseover")
		this.src = this.src.replace("-off.gif", "-on.gif");
	else if(e.type == "mouseout")
		this.src = this.src.replace("-on.gif", "-off.gif");
}

function addLoadEvent(func)
{
	var oldonload = window.onload; 
	if (typeof window.onload != 'function')
		window.onload = func; 
	else
	{
		window.onload = function()
		{ 
			oldonload(); 
			func(); 
		}
	}
} 
 
addLoadEvent(function()
{
	var menuCourtJudges	= document.getElementById("menuCourtJudges");
	var menuDepartments	= document.getElementById("menuDepartments");
	var menuJuryDuty	= document.getElementById("menuJuryDuty");
	var menuCourtDocket	= document.getElementById("menuCourtDocket");
	
	menuCourtJudges.onclick		= imageRollover;
	menuCourtJudges.onmouseover	= imageRollover;
	menuCourtJudges.onmouseout	= imageRollover;
	menuDepartments.onmouseover	= imageRollover;
	menuDepartments.onmouseout	= imageRollover;	
	menuJuryDuty.onmouseover	= imageRollover;
	menuJuryDuty.onmouseout		= imageRollover;	
	menuCourtDocket.onmouseover	= imageRollover;
	menuCourtDocket.onmouseout	= imageRollover;
});
