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_IE4M && (PN_DOM || PN_NS4 || PN_IE4 || PN_Konqueror || PN_Opera);
PN_BrowserString = PN_NS4 ? "ns4" : PN_DOM ? "dom" : "ie4";

if(window.event + "" == "undefined") event = null;
function PN_f_PopUp(){return false};
function PN_f_PopDown(){return false};
popUp = PN_f_PopUp;
popDown = PN_f_PopDown;

PN_GL_MenuWidth = 230;/*167;*/
PN_GL_FontFamily = "Verdana,sans-serif";
PN_GL_FontSize = 8;
PN_GL_FontBold = 1;
PN_GL_FontItalic = 0;
PN_GL_FontColor = "#ffffff";
PN_GL_FontColorOver = "#ff9900";
PN_GL_BGColor = "#626262";
PN_GL_BGColorOver = "#626262";
PN_GL_ItemPadding = 0;

PN_GL_BorderWidth = 0;
PN_GL_BorderColor = "transparent";
PN_GL_BorderStyle = "solid";
PN_GL_SeparatorSize = 0;
PN_GL_SeparatorColor = "transparent";

PN_GL_ImageSrc = "";
PN_GL_ImageSrcLeft = "";

PN_GL_ImageSrcOver = "";
PN_GL_ImageSrcLeftOver = "";

PN_GL_ImageSize       = 5;
PN_PG_ImageHorizSpace = 0;
PN_PG_ImageVertSpace  = 2;

PN_GL_KeepHilite = false; 
PN_GL_ClickStart = 0;
PN_GL_ClickKill = 0;
PN_GL_ChildOverlap = 8;
PN_GL_ChildOffset = 2;

PN_GL_StatusDisplayBuild = 0;
PN_GL_StatusDisplayLink = 1;
PN_GL_UponDisplay = null;
PN_GL_UponHide = null;
PN_GL_RightToLeft = true;

PN_GL_CreateTopOnly = 1;
PN_GL_ShowLinkCursor = 1;
PN_GL_NSFontOver = true;
PN_GL_TopSecondsVisible  = .5;

PN_GL_ScrollEnabled = false;
PN_GL_ScrollBarHeight = 14;
PN_GL_ScrollBarColor = "lightgrey";
PN_GL_ScrollImgSrcTop = "";
PN_GL_ScrollImgSrcBot = "";
PN_GL_ScrollImgWidth = 9;
PN_GL_ScrollImgHeight = 5;

//PN_a_TreesToBuild = [1];

PN_GL_HoverTimeTop = 0;
PN_GL_HoverTimeTree = 0;
			
function getReal(xy,el){
    if((PN_IE)||(PN_DOM)){
       Pos=(xy=="x")?el.offsetLeft:el.offsetTop;
       if ((PN_IE)&&(!PN_Mac)&&(el.tagName)&&
           (el.tagName.toUpperCase()=="TABLE")&&
           (el.border)&&(el.border>0)) Pos++;
       tmpEl=el.offsetParent;
       while(tmpEl!=null){
          Pos+=(xy=="x")?tmpEl.offsetLeft:tmpEl.offsetTop;
          if ((PN_IE)&&(!PN_Mac)&&(tmpEl.tagName)&&
              (tmpEl.tagName.toUpperCase()=="TABLE")&&
              (tmpEl.border)&&(tmpEl.border>0)) Pos++;
          tmpEl=tmpEl.offsetParent;
       }
    }else{
       Pos=(xy=="x")?el.x:el.y;
    }
    if (PN_IE&&PN_Mac) {
       MacOffset=(xy=="x")?(document.body.currentStyle.marginLeft) :
                           (document.body.currentStyle.marginTop);
       if(MacOffset.indexOf('%')!=-1){
          MacSize=(xy=="x")?parseInt(document.body.offsetWidth) :
                            parseInt(document.body.offsetHeight);
          MacOffset=(parseInt(MacOffset)/100)*MacSize;
       }else{
          MacOffset=parseInt(MacOffset)
       }
       Pos+=MacOffset;
    }
    return Pos;
}

function findXY(elementid,xory) {
    var thePlacer = PN_DOM ? document.getElementById(elementid) :
                    PN_IE ? document.all(elementid) : document.images[elementid];
    retVal=getReal(xory,thePlacer);
    return retVal;
}

function menuX() {
    retVal = findXY('primarynav','x') - PN_GL_MenuWidth;
    return retVal;
}

function menuY(itemNo) {
    retVal = findXY('primarynav','y') + PN_img_Height * (itemNo - 1) + 2;
    return retVal;
}

if(PN_IsMenu) {
	document.write("<scr" + "ipt language='JavaScript1.2' src='" + PN_src_Prefix + "primarynav_"+ PN_BrowserString +".js' type='text/javascript'><\/scr" + "ipt>");
}


