// JavaScript Document
var hideMenus = true;
var currentID = null;

function setMouseOver(menuID){
	if(currentID!=menuID){
		ZapTip();
		//this menu isn't open - close the current one and open the new one
		if(currentID!=null){document.getElementById(currentID).style.display='';}
		currentID=menuID;
		document.getElementById(currentID).style.display='block';
	}else{
		//we are on this menu already
	}
}

function setMouseOut(menuID){
	if(currentID==menuID){
		//this menu is the current menu. no need to close it or anything
		//if(currentID!=null){}
		currentID=null;
		setTimeout('closeMenu("'+menuID+'")',5);
	}else{
		//this menu is open - close it
		if(currentID!=null){document.getElementById(currentID).style.display='';}
		currentID=null;
	}
}

function closeMenu(menuID){
	//only close if it isnt the current menu
	if(currentID!=menuID){
		document.getElementById(menuID).style.display='';
	}
}