function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function init()
{
	initDropDown();
}

function initDropDown()
{
	if (document.all && document.getElementById)
	{
		if (document.getElementById("nav"))
		{
			navRoot = document.getElementById("nav");
			for (i=0; i<navRoot.childNodes.length; i++)
			{
				node = navRoot.childNodes[i];
				if (node.nodeName=="DD")
				{
					node.onmouseover=function()
					{
						this.className+=" over";
					}
					node.onmouseout=function()
					{
						this.className=this.className.replace(" over", "");
					}
				}
			}
		}
	}
	if (document.getElementsByTagName('A'))
	{
		a_tags = document.getElementsByTagName('A');
		for (loop=0; loop<a_tags.length; loop++)
		{
			if (a_tags[loop].className == 'external') { a_tags[loop].target = '_blank'; }
		}
	}
}

function showCursor(x,y)
{
	pos = getElementPosition('opmaptd');
	document.getElementById("cursor").style.visibility = 'visible';
	document.getElementById("cursor").style.left = (pos.x + x)+'px';
	document.getElementById("cursor").style.top = (pos.y + y)+'px';
}

function hideCursor()
{
	document.getElementById("cursor").style.visibility = 'hidden';
	document.getElementById("cursor").style.left = '0px';
	document.getElementById("cursor").style.top = '0px';
}

function getElementPosition(elemID) {
    var offsetTrail = document.getElementById(elemID);
    var offsetLeft = 0;
    var offsetTop = 0;
    while (offsetTrail) {
        offsetLeft += offsetTrail.offsetLeft;
        offsetTop += offsetTrail.offsetTop;
        offsetTrail = offsetTrail.offsetParent;
    }
    if (navigator.userAgent.indexOf("Mac") != -1 && 
        typeof document.body.leftMargin != "undefined") {
        offsetLeft += document.body.leftMargin;
        offsetTop += document.body.topMargin;
    }
    return {x:offsetLeft, y:offsetTop};
}

window.onload=init;
