/**
*	The drop-down menu
*		Simple script that displays the underlying submenus
*/

function ShowSubMenu(current)
{
	// End up with the index of the node with the menu
	for(var i = 0; i < current.childNodes.length; i++)
	{
		if(current.childNodes[i].tagName == "UL")
		{
			var menu	= current.childNodes[i];
			break;
		}
	}
	
	// Check if the menu is visible
	if(menu.style.display != "block")
		menu.style.display	= "block";
}

function HideSubMenu(current)
{
	// End up with the index of the node with the menu
	for(var i = 0; i < current.childNodes.length; i++)
	{
		if(current.childNodes[i].tagName == "UL")
		{
			var menu	= current.childNodes[i];
			break;
		}
	}
	
	// Check if the menu is visible
	if(menu.style.display != "none")
		menu.style.display	= "none";
}

function ShowMenu(current)
{
	// Check if the menu is visible
	if(current.style.display != "block")
		current.style.display	= "block";
}

function HideMenu(current)
{
	// Check if the menu is visible
	if(current.style.display != "none")
		current.style.display	= "none";
}