		var timer;
		var objectid=0;
		
		function ShowMenu(objId) 
		{
			if(timer) StopTimer();
			if(objectid!=objId) 
			{
			if(objectid != 0) document.getElementById(objectid).style.display = 'none';
			objectid=objId;
			document.getElementById(objectid).style.display = 'block';
			}
		}
		
		function HideMenu(mhtime) 
		{
			timer = setTimeout(function () {document.getElementById(objectid).style.display = 'none';	objectid=0;}, mhtime);
		}
		
		function StopTimer() 
		{
			clearTimeout(timer);
		}