//Script Version: 2.0
//Author: Explorers
//Date: 06 August 2006

function menumouseover(id)
{
	document.getElementById(id).style.background = "url(../images/menuover.jpg)";
	document.getElementById(id).style.color = "Green";
	document.getElementById(id).style.cursor = "Hand";
	document.getElementById(id).style.borderBottom = "1px silver solid";
	document.getElementById(id).style.borderTop = "1px silver solid";
	document.getElementById(id).style.borderLeft = "1px silver solid";
	document.getElementById(id).style.borderRight = "1px silver solid";
}

function menumouseout(id)
{
	document.getElementById(id).style.background = "";
	document.getElementById(id).style.color = "Black";
	document.getElementById(id).style.cursor = "default";
	document.getElementById(id).style.borderBottom = "1px #ccff66 solid";
	document.getElementById(id).style.borderTop = "1px #ccff66 solid";
	document.getElementById(id).style.borderLeft = "1px #ccff66 solid";
	document.getElementById(id).style.borderRight = "1px #ccff66 solid";
}

	function ShowHide(header, control)
	{
		var head = document.getElementById(header)
		var ctrl = document.getElementById(control)
		if(ctrl.style.display == "none")
		{
			ctrl.style.display = "";
			head.style.backgroundImage = "url(../../WebCommon/images/expandOver.jpg)"
		}
		else
		{
			ctrl.style.display = "none";
			head.style.backgroundImage = "url(../../WebCommon/images/collapse.jpg)"
		}
	}
	
	function Over(control)
	{
		var ctrl = document.getElementById(control)
		if(ctrl.style.backgroundImage == "url(../../WebCommon/images/expand.jpg)" || ctrl.style.backgroundImage == "url(../../WebCommon/images/expandOver.jpg)")
			ctrl.style.backgroundImage = "url(../../WebCommon/images/expandOver.jpg)"
		else
			ctrl.style.backgroundImage = "url(../../WebCommon/images/collapseOver.jpg)"
	}
	
	function Out(control)
	{
		var ctrl = document.getElementById(control)
		if(ctrl.style.backgroundImage == "url(..../WebCommon//images/expand.jpg)" || ctrl.style.backgroundImage == "url(../../WebCommon/images/expandOver.jpg)")
			ctrl.style.backgroundImage = "url(../../WebCommon/images/expand.jpg)"
		else
			ctrl.style.backgroundImage = "url(../../WebCommon/images/collapse.jpg)"
	}
	
	function Change(control)
	{
		var ctrl = document.getElementById(control)
		if(ctrl.style.backgroundImage == "url(../../WebCommon/images/expand.jpg)" || ctrl.style.backgroundImage == "url(../../WebCommon/images/expandOver.jpg)")
			ctrl.style.backgroundImage = "url(../../WebCommon/images/expandOver.jpg)"
		else
			ctrl.style.backgroundImage = "url(../../WebCommon/images/collapseOver.jpg)"
	}


