PGL_DOM = (document.getElementById) ? true : false;
PGL_NS4 = (document.layers) ? true : false;
PGL_IE = (document.all) ? true : false;
PGL_IE4 = PGL_IE && !PGL_DOM;
PGL_Mac = (navigator.appVersion.indexOf("Mac") != -1);
PGL_IE4M = PGL_IE4 && PGL_Mac;
PGL_Opera = (navigator.userAgent.indexOf("Opera")!=-1);
PGL_Konqueror = (navigator.userAgent.indexOf("Konqueror")!=-1);

PGL_IsMenu = !PGL_Opera && !PGL_Konqueror && !PGL_IE4M && (PGL_DOM || PGL_NS4 || PGL_IE4);

PGL_BrowserString = PGL_NS4 ? "NS4" : PGL_DOM ? "DOM" : "IE4";


if(window.event + "" == "undefined") event = null;
function PGL_f_PopUp(){return false};
function PGL_f_PopDown(){return false};
popUp = PGL_f_PopUp;
popDown = PGL_f_PopDown;


PGL_GL_MenuWidth          = 135;
PGL_GL_FontFamily         = "verdana,arial,helvetica,tahoma,sans-serif";
PGL_GL_FontSize           = 8;
PGL_GL_FontBold           = false;
PGL_GL_FontItalic         = false;
PGL_GL_FontColor          = "White";
PGL_GL_FontColorOver      = "Black";
PGL_GL_BGColor            = "#660033";
PGL_GL_BGColorOver        = "#D3A046";
PGL_GL_ItemPadding        = 3;

PGL_GL_BorderWidth        = 2;
PGL_GL_BorderColor        = "#000000";
PGL_GL_BorderStyle        = "solid";
PGL_GL_SeparatorSize      = 1;
PGL_GL_SeparatorColor     = "#000000";

PGL_GL_ImageSrc           = "../images/menu-triangle.gif";
PGL_GL_ImageSrcLeft       = "../images/menu-triangle.gif";
PGL_GL_ImageSrcOver		   	= "../images/menu-triangle.gif";
PGL_GL_ImageSrcLeftOver	 	= "../images/menu-triangle.gif";

PGL_GL_ImageSize          = 10;
PGL_GL_ImageHorizSpace    = 1;                        	
PGL_GL_ImageVertSpace     = 2;

PGL_GL_KeepHilite         = true;
PGL_GL_ClickStart         = false;
PGL_GL_ClickKill          = false;
PGL_GL_ChildOverlap       = 3;
PGL_GL_ChildOffset        = 5;
PGL_GL_ChildPerCentOver   = null;
PGL_GL_TopSecondsVisible  = .5;
PGL_GL_ChildSecondsVisible = .3;
PGL_GL_StatusDisplayBuild = 1;
PGL_GL_StatusDisplayLink  = 1;
PGL_GL_UponDisplay        = null;
PGL_GL_UponHide           = null;

PGL_GL_RightToLeft      = false;
//PGL_GL_CreateTopOnly      = PGL_NS4 ? true : false;
PGL_GL_ShowLinkCursor     = true;

// the following function is included to illustrate the improved JS expression handling of
// the left_position and top_position parameters
// you may delete if you have no use for it

function PGL_f_CenterMenu(topmenuid) {
	var MinimumPixelLeft = 0;
	var TheMenu = PGL_DOM ? document.getElementById(topmenuid) : PGL_IE4 ? document.all(topmenuid) : eval("window." + topmenuid);
	var TheMenuWidth = PGL_DOM ? parseInt(TheMenu.style.width) : PGL_IE4 ? TheMenu.style.pixelWidth : TheMenu.clip.width;
	var TheWindowWidth = PGL_IE ? document.body.clientWidth : window.innerWidth;
	return Math.max(parseInt((TheWindowWidth-TheMenuWidth) / 2),MinimumPixelLeft);
}

if(PGL_IsMenu) {
	document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='../scripts/PGL_Arrays2.js' TYPE='text/javascript'><\/SCR" + "IPT>");
	document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='../scripts/PGL_Script2"+ PGL_BrowserString +".js' TYPE='text/javascript'><\/SCR" + "IPT>");
}


//end