// JavaScript Document
	
	var notHide = 0;
	var currentMenuActive = 0;
	
	function toggleMenu(obj, menuNumber, type){
		
		var menuObj = document.getElementById("Menu" + menuNumber);
		var menuParentObj = document.getElementById("MenuParent" + menuNumber);
		
		if(type == "none"){
			notHide = 0;
			currentMenuActive = menuNumber;
			t=setTimeout("hideMenu()",500);
			return;
		}
		else{
			currentMenuActive = 0;
			menuObj.style.display = type;
			notHide = 1;
			menuParentObj.style.backgroundColor = "#FF9900";
		}
	}

	function hideMenu(){
		if(notHide == 0){
			
			if(currentMenuActive > 0){
				
				var menuObj = document.getElementById("Menu" + currentMenuActive);
				menuObj.style.display = "none";
				
				var menuParentObj = document.getElementById("MenuParent" + currentMenuActive);
				menuParentObj.style.backgroundColor = "#FF9900";
			}
		}
	}

	function toggleMenuDiv(obj, menuNumber, type){
		
		var menuObj = obj
			
		if(type == "none"){
			notHide = 0;
			currentMenuActive = menuNumber;
			t=setTimeout("hideMenu()",1000);
		}
		else{
			currentMenuActive = 0;
			menuObj.style.display = type;
			notHide = 1;
		}
	}

