// SHOW/HIDE the Sub Navigation

Menu = {timer : null, current : null};
Menu.getStyle = function(name){
	if(document.getElementById) return document.getElementById(name).style;
	else if(document.all) return document.all[name].style;
	else if(document.layers) return document.layers[name];
}
Menu.show = function(name){
	if(this.timer) clearTimeout(this.timer);
	this.getStyle("underlineNav").visibility= "visible";	
	this.getStyle(name).visibility = "visible";
	this.current = name;
	this.main_change(name.substring(0,name.length-2)+'mn');
	//this.chgarrow(name.substring(0,name.length-2)+'ar','/images/header/nav/arrow_d_wh.gif');
}
Menu.hide = function(){
	this.timer = setTimeout("Menu.doHide()",1750);
}
Menu.doHide = function(){
	if(this.current){
		this.getStyle(this.current).visibility = "hidden";
		this.getStyle("underlineNav").visibility= "hidden";
		this.main_changeback(this.current.substring(0,this.current.length-2)+'mn');
		//this.chgarrow(this.current.substring(0,this.current.length-2)+'ar','/images/header/nav/arrow_d_bl.gif');
		this.current = null;
	}
}
Menu.main_change =function(name){
	document.getElementById(name).style.backgroundColor = "#EAE6DC";
	document.getElementById(name).style.border = "1px solid #757575";
	
}
Menu.main_changeback =function(name){
	document.getElementById(name).style.backgroundColor = "transparent";
	document.getElementById(name).style.border = "1px solid #D6CBB5";
}
//this.getStyle("products").border= "#A7BBD6";
Menu.chgarrow =function(MyTarget, MyPic){
	document.getElementById(MyTarget).src = MyPic;
}

function processEnter()
{
	var btnLogin = document.forms[0]['Header2:_ctl0:btnLogin'];
	if (event.keyCode == 13)
	{
		if (btnLogin != null)
		{
			btnLogin.click();		
		}
	}
}
