function menuRollOver(caller, obj)
{
	if(typeof(isDropdown) !== "undefined" && isDropdown)
	{
		if(!$$('body')[0].hasClassName('is_ie'))
		{
			obj.style.left = parseInt(caller.offsetLeft) + "px";
			obj.style.top = (parseInt(caller.offsetTop) + parseInt(caller.offsetHeight) - 5) + "px";
		}
		if($$('body')[0].hasClassName('is_ie6')){
			obj.style.top = parseInt(caller.offsetHeight) + "px";
		}
		obj.style.display = "block";
		if(Browser.isIE6){
			Element.addClassName(caller.firstChild, obj.getAttribute("menuclass") + "_on");
		}else{
			Element.addClassName(caller.firstChild, "on");
		}
	}
}

function menuRollOut(caller,obj)
{
	if(typeof(activeMenu) == "undefined" || activeMenu !== obj.getAttribute("menuName"))
	{
		if($$('body')[0].hasClassName('is_ie'))
		{
			caller.style.top = "0px";
			obj.style.display = "none";
		}else{
			obj.style.display = "none";
		}
		if(Browser.isIE6)
		{
			Element.removeClassName(caller.firstChild, obj.getAttribute("menuclass") + "_on");
		}else{
			Element.removeClassName(caller.firstChild, "on");
		}
	}
}

function setupMenus()
{
	$("mtp").observe('mouseover', function(){menuRollOver(this,document.getElementById("mtp_menu"));});
	$("mtp").observe('mouseout', function(){menuRollOut(this,document.getElementById("mtp_menu"))});
}

document.observe("dom:loaded", setupMenus);
