function followQuicklink(form)
{
	window.location = (form.quicklinksselect.options[form.quicklinksselect.selectedIndex].value);
}
function ShowMenu(menu) {
	var popupMenu;
	var popupTop;
	var popupHeight;
	if(navigator.userAgent.indexOf("MSIE 6.0")!=-1) {
		var iframe = document.getElementById("frTest")
		iframe.style.display = "inline";
		iframe.style.filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';
		var popupMenu = menu.parentNode.parentNode;
		//var lastItem = popupMenu.childNodes[popupMenu.childNodes.length-1];
		var popupTop = getElementTop(popupMenu);
		var popupHeight = popupMenu.clientHeight;
		iframe.style.top = popupTop;
		iframe.style.height = popupHeight+2;
	}

	var winH = 460;
	if (parseInt(navigator.appVersion)>3) {
		if (navigator.appName=="Netscape") {
			winH = window.innerHeight;
		}
		if (navigator.appName.indexOf("Microsoft")!=-1) {
			winH = document.body.offsetHeight;
		}
	}
	
	if (popupTop + popupHeight > winH) {
		popupMenu.style.top = 0 - (popupTop + popupHeight - winH);
	}
	
}
function HideMenu() {
	if(navigator.userAgent.indexOf("MSIE 6.0")!=-1) {
		document.getElementById("frTest").style.display = "none";
	}
}
function ShowSubMenu(menu) {
	if (menu.parentNode.childNodes.length > 2) {
		var item = menu.parentNode.childNodes[2].childNodes[0].childNodes[0];
		if (item != null) {
			ShowMenu(item);
		}
	}
}
function getElementTop(eElement)
{
    if (!eElement && this)
    {
        eElement = this;
    }

    var nTopPos = eElement.offsetTop;
    var eParElement = eElement.offsetParent;
    while (eParElement != null)
    {
        nTopPos += eParElement.offsetTop;
        eParElement = eParElement.offsetParent;
    }
    return nTopPos;
}
