var toggle = true;

function showSubMenu(menuId)
{
	$('.subnavigation').hide();
	$('#'+menuId+'-sub').show();
}

function hideSubMenu(menuId)
{
	setTimeout('hide('+menuId+')',3000);
}

function hide(menuId)
{
	if(toggle)
		$('#'+menuId+'-sub').hide();
	else
		return;
}

function holdSubMenu(menuId)
{
	toggle = false;
	showSubMenu(menuId);
}

function eraseSubMenu(menuId)
{
	toggle = true;
	hideSubMenu(menuId);
}
