
varUserAgent = navigator.userAgent;
      varDOM = (document.getElementById) ? true : false;
      varNS4 = (document.layers) ? true : false;
       varIE = (document.all) ? true : false;
      varIE4 = varIE && !varDOM;
      varMac = (navigator.appVersion.indexOf("Mac") != -1);
     varIE4M = varIE4 && varMac;

varOpera = (window.opera) ? true : false;
if(varOpera) {
    varBrowserPattern = /Opera(\/| )(\d+.*)/;
    varVersionSupported = 7;
}

varKonqueror = (varUserAgent.indexOf("Konqueror")!=-1);
if(varKonqueror) {
    varBrowserPattern = /(Konqueror\/)(\d+.*)/;
    varVersionSupported = 3;
}

if(varOpera || varKonqueror) {
    if (varUserAgent.match) {
       varMatches = varUserAgent.match(varBrowserPattern);
       if (varMatches&&varMatches[2]) {
          varBrowserVersion = parseFloat(varMatches[2]);
       } else varBrowserVersion = 0;
       varIsMenu = (varBrowserVersion >= varVersionSupported);
    } else {
       varBrowserVersion = 0;
       varIsMenu = false;
    }
} else {
    varBrowserVersion = 0;
    varIsMenu = !varIE4M && (varDOM || varNS4 || varIE4 );
}


if(window.event + "" == "undefined") event = null;
function varf_PopUp(){return false};
function varf_PopDown(){return false};
popUp = varf_PopUp;
popDown = varf_PopDown;

// private properties

varPG_MenuWidth = 150;
varPG_FontFamily = "Verdana, Arial,sans-serif";
varPG_FontSize = 9;
varPG_FontBold = 0;
varPG_FontItalic = 0;
varPG_FontColor = "blue";
varPG_FontColorOver = "white";
varPG_BGColor = "#DDDDDD";
varPG_BGColorOver = "#FFCCCC";
varPG_ItemPadding = 1;

varPG_BorderWidth = 1;
varPG_BorderColor = "black";
varPG_BorderStyle = "solid";
varPG_SeparatorSize = 1;
varPG_SeparatorColor = "#d0ff00";

varPG_ImageSrc = "varMore_black_right.gif";
varPG_ImageSrcLeft = "varMore_black_left.gif";
varPG_ImageSrcOver = "varMore_white_right.gif";
varPG_ImageSrcLeftOver = "varMore_white_left.gif";

varPG_ImageSize = 5;
varPG_ImageHorizSpace = 0;
varPG_ImageVertSpace = 2;

varPG_KeepHilite = true;
varPG_ClickStart = 0;
varPG_ClickKill = false;
varPG_ChildOverlap = 20;
varPG_ChildOffset = 10;
varPG_ChildPerCentOver = null;
varPG_TopSecondsVisible = .5;
varPG_StatusDisplayBuild =0;
varPG_StatusDisplayLink = 0;
varPG_UponDisplay = null;
varPG_UponHide = null;
varPG_RightToLeft = 0;

varPG_CreateTopOnly = 0;
varPG_ShowLinkCursor = 1;
varPG_NSFontOver = true;



// common properties

varGL_MenuWidth          = 150;
varGL_FontFamily         = "Arial,sans-serif";
varGL_FontSize           = 10;
varGL_FontBold           = true;
varGL_FontItalic         = false;
varGL_FontColor          = "black";
varGL_FontColorOver      = "white";
varGL_BGColor            = "transparent";
varGL_BGColorOver        = "transparent";
varGL_ItemPadding        = 3;

varGL_BorderWidth        = 2;
varGL_BorderColor        = "red";
varGL_BorderStyle        = "solid";
varGL_SeparatorSize      = 2;
varGL_SeparatorColor     = "yellow";

varGL_ImageSrc = "varMore_black_right.gif";
varGL_ImageSrcLeft = "varMore_black_left.gif";

varGL_ImageSrcOver = "varMore_white_right.gif";
varGL_ImageSrcLeftOver = "varMore_white_left.gif";

varGL_ImageSize          = 5;
varGL_ImageHorizSpace    = 5;
varGL_ImageVertSpace     = 5;

varGL_KeepHilite         = false;
varGL_ClickStart         = false;
varGL_ClickKill          = 0;
varGL_ChildOverlap       = 40;
varGL_ChildOffset        = 10;
varGL_ChildPerCentOver   = null;
varGL_TopSecondsVisible  = .5;
varGL_ChildSecondsVisible = .3;
varGL_StatusDisplayBuild = 0;
varGL_StatusDisplayLink  = 1;
varGL_UponDisplay        = null;
varGL_UponHide           = null;

varGL_RightToLeft      = false;
varGL_CreateTopOnly      = varNS4 ? true : false;
varGL_ShowLinkCursor     = true;
varScriptDir = "";

function getWindowWidth() {
	var TheWindowWidth = varIE ? (varDOM ? varIEcanvas.clientWidth : document.body.clientWidth) : window.innerWidth;
	//if (TheWindowWidth < 780)
	//  TheWindowWidth = 780;
	return TheWindowWidth;
}
