var strObj;
var strId;
var i;
i=0;
 
function changeBackGround(obj,id)
{
if(document.getElementById || (document.all && !(document.getElementById)))
	{	
	document.getElementById(id).style.backgroundColor="#ECEBF7";
		obj.style.color = "#333399";
		
	}
}
function OnClickHighlight(obj,id){

if(i>0)
{
changeBackGround(strObj,strId);
}
if(document.getElementById || (document.all && !(document.getElementById)))
{	
	strObj=obj;
	strId=id;
	i=i+1;
		document.getElementById(id).style.backgroundColor="#6D6EB8";
		obj.style.color = "#FFFFFF";
	}
}
function setDeptDisplay(headerName,displayType){
if(document.all){
document.all(headerName).style.display = displayType;
}
else if(document.getElementById){
document.getElementById(headerName).style.display = displayType;
}
}
function NAV_toggle(id, icon){
//alert(icon);
if (document.all)
{
if(document.all[id])
	{
	//alert(document.all[id].tagName)
	if(document.all[id].style.display == 'none')
	{
	document.all[id].style.display = '';
	document.images[icon].src = "/v8_img/menu/mb_icon_nav_minus_New.gif";
	}
	 else {
	document.all[id].style.display = 'none';
	document.images[icon].src = "/v8_img/menu/mb_icon_nav_plus_New.gif";
	}
return false;
}
}

else if (document.getElementById){
if(document.getElementById(id).style.display == 'none'){
document.getElementById(id).style.display = 'block';
document.images[icon].src = "/v8_img/menu/mb_icon_nav_minus_New.gif";
} else {
document.getElementById(id).style.display = 'none';
document.images[icon].src = "/v8_img/menu/mb_icon_nav_plus_New.gif";
}
return false;
}
}
function fnMhover(obj)
{
obj.style.background='#6D6EB8';
obj.style.color='#FFFFFF';
//obj.parentElement.parentElement.style.background='#6D6EB8';
//obj.parentElement.style.background='#6D6EB8';
//document.getElementById("aa").style.color='#FFFFFF';
}
function fnMout(obj)
{
obj.style.background='#ECEBF7';
obj.style.color='#333399';
//document.getElementById("aa").style.color='#333399';
}

