   DOM = (document.getElementById) ? true : false;
   NS4 = (document.layers) ? true : false;
    IE = (document.all) ? true : false;
   IE4 = IE && !DOM;
   Mac = (navigator.appVersion.indexOf("Mac") != -1);
  IE4M = IE4 && Mac;
IsMenu = (DOM || NS4 || (IE4 && !IE4M));

BrowserString = NS4 ? "NS4" : DOM ? "DOM" : "IE4";

if(window.event + "" == "undefined") event = null;
function f_PopUp(){return false};
function f_PopDown(){return false};
popUp = f_PopUp;
popDown = f_PopDown;


function f_CenterMenu(topmenuid) {
	var TheMenu = DOM ? document.getElementById(topmenuid) : IE4 ? document.all(topmenuid) : eval("window." + topmenuid);
	var TheMenuWidth = DOM ? parseInt(TheMenu.style.width) : IE4 ? TheMenu.style.pixelWidth : TheMenu.clip.width;
	var TheWindowWidth = IE ? document.body.clientWidth : window.innerWidth;
	if (TheWindowWidth > 780)	
	return ((TheWindowWidth-TheMenuWidth) / 2);
	else
	return (326);
}

if(IsMenu) {
        if (typeof(path) == "undefined") {
	   var path = "";
	}
	document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='"+path+"Arrays.js' TYPE='text/javascript'><\/SCR" + "IPT>");
	document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='"+path+"Script"+ BrowserString +".js' TYPE='text/javascript'><\/SCR" + "IPT>");
}
