/*
JW_Loader.js
*/

   JW_DOM = (document.getElementById) ? true : false;
   JW_NS4 = (document.layers) ? true : false;
    JW_IE = (document.all) ? true : false;
   JW_IE4 = JW_IE && !JW_DOM;
   JW_Mac = (navigator.appVersion.indexOf("Mac") != -1);
  JW_IE4M = JW_IE4 && JW_Mac;
JW_IsMenu = (JW_DOM || JW_NS4 || (JW_IE4 && !JW_IE4M));

JW_BrowserString = JW_NS4 ? "NS4" : JW_DOM ? "DOM" : "IE4";

if(window.event + "" == "undefined") event = null;
function JW_f_PopUp(){return false};
function JW_f_PopDown(){return false};
popUp = JW_f_PopUp;
popDown = JW_f_PopDown;

// ******************
// overridden by JW_Array
JW_GL_MenuWidth          = 150;
JW_GL_FontFamily         = "Arial,sans-serif";
JW_GL_FontSize           = 10;
JW_GL_FontBold           = 0;
JW_GL_FontItalic         = false;
JW_GL_FontColor          = "black";
JW_GL_FontColorOver      = "white";
JW_GL_BGColor            = "transparent";
JW_GL_BGColorOver        = "transparent";
JW_GL_ItemPadding        = 3;

JW_GL_BorderWidth        = 2;
JW_GL_BorderColor        = "black";
JW_GL_BorderStyle        = "solid";
JW_GL_SeparatorSize      = 2;
JW_GL_SeparatorColor     = "yellow";

JW_GL_ImageSrc = "/site/_graphics/jw/JW_More_white_right.gif";
JW_GL_ImageSrcLeft = "/site/_graphics/jw/JW_More_white_left.gif";

JW_GL_ImageSrcOver = "/site/_graphics/jw/JW_More_white_right.gif";
JW_GL_ImageSrcLeftOver = "/site/_graphics/jw/JW_More_white_left.gif";
//end of overwritten
// ******************

JW_GL_ImageSize          = 5;
JW_GL_ImageHorizSpace    = 0;
JW_GL_ImageVertSpace     = 2;

JW_GL_KeepHilite         = true;
JW_GL_ClickStart         = 0;
JW_GL_ClickKill          = 0;
JW_GL_ChildOverlap       = 1;
JW_GL_ChildOffset        = 5;
JW_GL_ChildPerCentOver   = null;
JW_GL_TopSecondsVisible  = .5;
JW_GL_ChildSecondsVisible = .3;
JW_GL_StatusDisplayBuild = 0;
JW_GL_StatusDisplayLink  = 0;
JW_GL_UponDisplay        = null;
JW_GL_UponHide           = null;

JW_GL_RightToLeft      	 = 0;
JW_GL_CreateTopOnly      = JW_NS4 ? true : false;
JW_GL_ShowLinkCursor     = 0;

// 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 JW_f_CenterMenu(topmenuid) {
	var MinimumPixelLeft = 0;
	var TheMenu = JW_DOM ? document.getElementById(topmenuid) : JW_IE4 ? document.all(topmenuid) : eval("window." + topmenuid);
	var TheMenuWidth = JW_DOM ? parseInt(TheMenu.style.width) : JW_IE4 ? TheMenu.style.pixelWidth : TheMenu.clip.width;
	var TheWindowWidth = JW_IE ? document.body.clientWidth : window.innerWidth;
	return Math.max(parseInt((TheWindowWidth-TheMenuWidth) / 2),MinimumPixelLeft);
}

if(JW_IsMenu) {
	document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='/site/_includes/JW_Arrays.js' TYPE='text/javascript'><\/SCR" + "IPT>");
	document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='/site/_includes/JW_Script"+ JW_BrowserString +".js' TYPE='text/javascript'><\/SCR" + "IPT>");
}


//end