var timerID = null;

function timerOn(id)
  	{
		timerID = setTimeout('menuhide('+id+')',10);
	}
	
function timerOff(id)
  	{
		clearTimeout(timerID);
		menushow(id);
	}
	
function menuhide(menunum)
	{
		var currentmenu = document.getElementById("submenu" + menunum);
		currentmenu.style.visibility = 'hidden';
		window.document.getElementById("submenutd").style.background='url(/images/bg_head.gif)';
	}
  
function menushow(menunum)
  {
		var currentmenu = document.getElementById("submenu" + menunum);
		currentmenu.style.visibility = 'visible';
		window.document.getElementById("submenutd").style.background='url(/images/bg_select_menu.gif)';
  }
 
function bgOn(obj)
  	{
		obj.style.background='url(/images/bg_head.gif)';
	}
	
function bgOff(obj)
  	{
		obj.style.background='url(/images/bg_select_menu.gif)';
	}
