//======================
//
//======================
function showSubMenu(menuName)
{    
    var menuCount = document.getElementById("subMenuCount").value;
	var menu      = document.getElementById("subMenu" + menuName);
	
	for(var i=0;i<menuCount;i++)
	{
		var currentMenu = document.getElementById("subMenu" + i);
		currentMenu.className = "hidden";
	}
	
	if(menu != null)
	{
		//alert(event.x);
		//alert(event.y);
		//menu.style.left = event.x;
		//menu.style.top  = event.y - 5;
		menu.className  = "show";
	}
	//alert(menu.offsetTop);
	//alert(window.screenTop + event.x);
	
	//alert(menuName);
	
	//var bla          = "z-index:1;position=absolute;left=" + (window.screenTop + event.x) + "px;top="+event.x + "px;";
	//var topLocation  = window.screenTop + event.x;
	//var leftLocation = window.screenLeft + event.y;
	//menu.style.left  = topLocation;
	//menu.style.top   = leftLocation;
	//if(String(menuName).length > 0)
	//	menu.className = "show";
}

//======================
//
//======================
function hideMenu(menuName)
{
	var menu = document.getElementById("subMenu" + menuName);
	menu.className = "hidden";
}

//======================
//
//======================
function openWindow(url)
{
	window.open(url);
}
