
PN_DOM = (document.getElementById) ? true : false;
PN_NS4 = (document.layers) ? true : false;
PN_IE = (document.all) ? true : false;
PN_IE4 = PN_IE && !PN_DOM;
PN_Mac = (navigator.appVersion.indexOf("Mac") != -1);
PN_IE4M = PN_IE4 && PN_Mac;
PN_Opera = (navigator.userAgent.indexOf("Opera")!=-1);
PN_Konqueror = (navigator.userAgent.indexOf("Konqueror")!=-1);

PN_IsMenu = !PN_Opera && !PN_Konqueror && !PN_IE4M && (PN_DOM || PN_NS4 || PN_IE4);

PN_BrowserString = PN_NS4 ? "NS4" : PN_DOM ? "DOM" : "IE4";

MENU_WIDTH_DATA = screen.width;
if ( (MENU_WIDTH_DATA == 1280) ) {
	MENU_WIDTH = 340;
}
else if ( (MENU_WIDTH_DATA == 1152) ) {
	MENU_WIDTH = 260;
} 
else if ( (MENU_WIDTH_DATA == 1024) ) {
	MENU_WIDTH = 180;
} 
else if ( (MENU_WIDTH_DATA == 800) ) {
	MENU_WIDTH = 100;
} 
else {
	MENU_WIDTH = 40;
}
if(window.event + "" == "undefined") event = null;
function PN_f_PopUp(){return false};
function PN_f_PopDown(){return false};
PN_popUp = PN_f_PopUp;
PN_popDown = PN_f_PopDown;


PN_GL_MenuWidth          = 170;
PN_GL_FontFamily         = "Arial,Helvetica,tahoma,Sans-serif";
PN_GL_FontSize           = 8;
//PN_GL_FontBold           = true;
PN_GL_FontBold           = true;
PN_GL_FontItalic         = false;
//PN_GL_FontColor			 = "black"
//PN_GL_FontColor			 = "#565681";
PN_GL_FontColor			 = "#F0F0F0";
//PN_GL_FontColorOver      = "black";
//PN_GL_FontColorOver      = "#565681";
//PN_GL_FontColorOver      = "#828282";
PN_GL_FontColorOver      = "#F0F0F0";
//PN_GL_BGColor            = "transparent";
//PN_GL_BGColorOver        = "transparent";
//PN_GL_BGColor            = "#D8D8C5";
//PN_GL_BGColor            = "#9999CC";
PN_GL_BGColor            = "#828898";
//PN_GL_BGColorOver        = "#D9D9D9";
//PN_GL_BGColorOver        = "#B0C4DE";
PN_GL_BGColorOver        = "#9BA1B1";

PN_GL_ItemPadding        = 3;

//PN_GL_BorderWidth        = 2;
//PN_GL_BorderColor        = "red";
PN_GL_BorderWidth        = 1;
PN_GL_BorderColor        = "#CCCCCC";
PN_GL_BorderStyle        = "Solid";
PN_GL_SeparatorSize      = 1;
//PN_GL_SeparatorColor     = "yellow";
//PN_GL_SeparatorColor     = "#666666";
PN_GL_SeparatorColor     = "#CCCCCC";

//PN_GL_ImageSrc = "PN_More_black_right.gif";
//PN_GL_ImageSrcLeft = "PN_More_black_left.gif";
//PN_GL_ImageSrc = "menu/Sub_Menu.gif";
PN_GL_ImageSrc = "menu/arrow_cascade_dark.gif";
PN_GL_ImageSrcLeft = "menu/arrow_cascade_dark.gif";

PN_GL_ImageSrcOver = "menu/arrow_cascade_light.gif";
PN_GL_ImageSrcLeftOver = "menu/arrow_cascade_light.gif";

PN_GL_ImageSize          = 5;
PN_GL_ImageHorizSpace    = 5;
PN_GL_ImageVertSpace     = 5;

PN_GL_KeepHilite         = false;
PN_GL_ClickStart         = false;
PN_GL_ClickKill          = 0;
//PN_GL_ChildOverlap       = 40;
PN_GL_ChildOverlap       = 1;
PN_GL_ChildOffset        = 10;
PN_GL_ChildPerCentOver   = null;
PN_GL_TopSecondsVisible  = .5;
PN_GL_ChildSecondsVisible = .3;
PN_GL_StatusDisplayBuild = 0;
PN_GL_StatusDisplayLink  = 1;
PN_GL_UponDisplay        = null;
PN_GL_UponHide           = null;

PN_GL_RightToLeft      = false;
PN_GL_CreateTopOnly      = PN_NS4 ? true : false;
PN_GL_ShowLinkCursor     = true;

// the following function is included to illustrate the improved JS expression handling of
// the left_position and top_position parameters introduced in 4.0.9
// and modified in 4.1.3 to account for IE6 standards-compliance mode
// you may delete if you have no use for it

function PN_f_CenterMenu(topmenuid) {
	var MinimumPixelLeft = 0;
	var TheMenu = PN_DOM ? document.getElementById(topmenuid) : PN_IE4 ? document.all(topmenuid) : eval("window." + topmenuid);
	var TheMenuWidth = PN_DOM ? parseInt(TheMenu.style.width) : PN_IE4 ? TheMenu.style.pixelWidth : TheMenu.clip.width;
	var TheWindowWidth = PN_IE ? (PN_DOM ? PN_IEcanvas.clientWidth : document.body.clientWidth) : window.innerWidth;
	return Math.max(parseInt((TheWindowWidth-TheMenuWidth) / 2),MinimumPixelLeft);
}

//if(PN_IsMenu) {
	//document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='PN_Arrays.js' TYPE='text/javascript'><\/SCR" + "IPT>");
	//alert(PN_BrowserString);
	//document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='PN_Script"+ PN_BrowserString +".js' TYPE='text/javascript'><\/SCR" + "IPT>");
//}
