/*Loader.js
* by Peter Belesis. v4.1.3 011108
* Copyright (c) 2001 Peter Belesis. All Rights Reserved.
*/

DOM = (document.getElementById) ? true : false;
NS4 = (document.layers) ? true : false;
IE = (document.all) ? true : false;
IE4 = IE && !DOM;
Mac = (navigator.appVersion.indexOf("Mac") != -1);
IE4M = IE4 && Mac;
Opera = (navigator.userAgent.indexOf("Opera")!=-1);
Konqueror = (navigator.userAgent.indexOf("Konqueror")!=-1);

IsMenu = !Opera && !Konqueror && !IE4M && (DOM || NS4 || IE4);

BrowserString = NS4 ? "NS4" : DOM ? "DOM" : "IE4";

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

GL_MenuWidth          = 125;
GL_FontFamily         = "Tahoma,Verdana,Geneva,Arial,sans-serif";
GL_FontSize 			 = NS4 ? 8 : 7;
GL_FontSize 			 = (Mac && NS4) ? 10 : GL_FontSize;
GL_FontBold           = false;
GL_FontItalic         = false;
GL_FontColor          = "#000000";
GL_FontColorOver      = "#333333";
GL_BGColor            = "#A8A8A8";
GL_BGColorOver        = "#CCCCCC";
GL_ItemPadding        = 3;

GL_BorderWidth        = 1;
GL_BorderColor        = "#000000";
GL_BorderStyle        = "solid";
GL_SeparatorSize      = 1;
GL_SeparatorColor     = "#000000";

GL_ImageSrc 		  = "/images/layout/more.gif";
GL_ImageSrcLeft 	  = "";

GL_ImageSrcOver 	  = "/images/layout/more_on.gif";
GL_ImageSrcLeftOver   = "";

GL_ImageSize          = 5;
GL_ImageHorizSpace    = 4;
GL_ImageVertSpace     = 2;

GL_KeepHilite         = true;
GL_ClickStart         = false;
GL_ClickKill          = 0;
GL_ChildOverlap       = 7;
GL_ChildOffset        = 5;
GL_ChildPerCentOver   = null;
GL_TopSecondsVisible  = .1;
GL_ChildSecondsVisible = .1;
GL_StatusDisplayBuild = 0;
GL_StatusDisplayLink  = 1;
GL_UponDisplay        = null;
GL_UponHide           = null;

GL_RightToLeft        = false;
GL_CreateTopOnly      = NS4 ? true : false;
GL_ShowLinkCursor     = true;

function f_CenterMenu(topmenuid) {
	var MinimumPixelLeft = 0;
	var TheMenu = DOM ? document.getElementById(topmenuid) : IE4 ? document.all(topmenuid) : eval("window." + topmenuid);
	var TheMenuWidth = DOM ? parseInt(TheMenu.style.width) : IE4 ? TheMenu.style.pixelWidth : TheMenu.clip.width;
	var TheWindowWidth = IE ? (DOM ? IEcanvas.clientWidth : document.body.clientWidth) : window.innerWidth;
	return Math.max(parseInt((TheWindowWidth-TheMenuWidth) / 2),MinimumPixelLeft);
}

if(IsMenu) {
	document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='/includes/menu"+ BrowserString +".js' TYPE='text/javascript'><\/SCR" + "IPT>");
}
