<!--
/**************************************************************************
 *			This must be run before heirArraysV4NS4.js and heirMenus4b1.js    *
 **************************************************************************/
/***************************************************************************
							BROWSER DETECTION
***************************************************************************/

   NS4 = (document.layers);
   IE4 = (document.all);
  ver4 = (NS4 || IE4);   
 isMac = (navigator.appVersion.indexOf("Mac") != -1);
isMenu = (NS4 || (IE4 && !isMac));
	
function popUp(){return};
function popDown(){return};
function startIt(){return};

if (!ver4) event = null;

/***************************************
 * Rob's HierMenus hack functions      *
 ***************************************/
 
function getAnch(n) {
	if (NS4) {
		for (i=0;i<document.anchors.length;i++) {
			anch = document.anchors[i];
			if(anch.name == n) break;
		}
		menX = anch.x;
		menY = anch.y;
	}
	if (IE4) {
		menX	= calculateTrueOffsetLeft(eval("td"+n))
		menY	= calculateTrueOffsetTop(eval("td"+n))
	}
	return [menX,menY];
}

function calculateTrueOffsetLeft(node) {
	if (node.tagName == "BODY") return 0;
	else return (node.tagName == "TABLE" || node.tagName == "TD" ? node.offsetLeft : 0) + calculateTrueOffsetLeft(node.parentElement);
}

function calculateTrueOffsetTop(node) {
	if (node.tagName == "BODY") return 0;
	else return (node.tagName == "TABLE" || node.tagName == "TD" ? node.offsetTop : 0) + calculateTrueOffsetTop(node.parentElement);
}

function parentsOffset(node) {
	alert(node.id + "-" + node.tagName + "-" + node.offsetTop + "-" + node.offsetLeft);
	if (node.tagName == "BODY") return 0;
	parentsOffset(node.parentElement);
}

//-->