var smto;

function showSubMenu(id)
{
	if (smto)
	{
		clearTimeout(smto);
	}
	
	document.getElementById(id).style.display = 'block';
}

function hideSubMenu(id)
{
	smto = setTimeout('hideSubMenuTO("' + id + '");', 250);
}

function hideSubMenuTO(id)
{
	document.getElementById(id).style.display = 'none';
}