/*ORIGO_Loader.js
* by Peter Belesis. v4.3 020610
* Copyright (c) 2002 Peter Belesis. All Rights Reserved.
*/

   ORIGO_DOM = (document.getElementById) ? true : false;
   ORIGO_NS4 = (document.layers) ? true : false;
    ORIGO_IE = (document.all) ? true : false;
   ORIGO_IE4 = ORIGO_IE && !ORIGO_DOM;
   ORIGO_Mac = (navigator.appVersion.indexOf("Mac") != -1);
  ORIGO_IE4M = ORIGO_IE4 && ORIGO_Mac;

 ORIGO_Opera = (navigator.userAgent.indexOf("Opera")!=-1);
 ORIGO_Konqueror = (navigator.userAgent.indexOf("Konqueror")!=-1);

ORIGO_IsMenu = !ORIGO_Opera && !ORIGO_IE4M && (ORIGO_DOM || ORIGO_NS4 || ORIGO_IE4 || ORIGO_Konqueror);

ORIGO_BrowserString = ORIGO_NS4 ? "NS4" : ORIGO_DOM ? "DOM" : "IE4";

if(window.event + "" == "undefined") event = null;
function ORIGO_f_PopUp(){return false};
function ORIGO_f_PopDown(){return false};
popUp = ORIGO_f_PopUp;
popDown = ORIGO_f_PopDown;


ORIGO_GL_MenuWidth          = 150;
ORIGO_GL_FontFamily         = "Arial,sans-serif";
ORIGO_GL_FontSize           = 8;
ORIGO_GL_FontBold           = false;
ORIGO_GL_FontItalic         = false;
ORIGO_GL_FontColor          = "white";
ORIGO_GL_FontColorOver      = "white";
ORIGO_GL_BGColor            = "#666666";
ORIGO_GL_BGColorOver        = "#B86058";
ORIGO_GL_ItemPadding        = 2;

ORIGO_GL_BorderWidth        = 2;
ORIGO_GL_BorderColor        = "black";
ORIGO_GL_BorderStyle        = "solid";
ORIGO_GL_SeparatorSize      = 2;
ORIGO_GL_SeparatorColor     = "black";
ORIGO_GL_ImageSrc = "/img/utlit/tri.gif";
ORIGO_GL_ImageSrcLeft = "/img/utlit/tri.gif";
ORIGO_GL_ImageSrcOver = "/img/utlit/tri.gif";
ORIGO_GL_ImageSrcLeftOver = "/img/utlit/tri.gif";

ORIGO_GL_ImageSize          = 5;
ORIGO_GL_ImageHorizSpace    = 2;
ORIGO_GL_ImageVertSpace     = 2;

ORIGO_GL_KeepHilite         = true;
ORIGO_GL_ClickStart         = false;
ORIGO_GL_ClickKill          = 0;
ORIGO_GL_ChildOverlap       = 4
ORIGO_GL_ChildOffset        = 2;
ORIGO_GL_ChildPerCentOver   = null;
ORIGO_GL_TopSecondsVisible  = .5;
ORIGO_GL_ChildSecondsVisible = .3;
ORIGO_GL_StatusDisplayBuild = 0;
ORIGO_GL_StatusDisplayLink  = 1;
ORIGO_GL_UponDisplay        = null;
ORIGO_GL_UponHide           = null;

ORIGO_GL_RightToLeft      = false;
ORIGO_GL_CreateTopOnly      = ORIGO_NS4 ? true : false;
ORIGO_GL_ShowLinkCursor     = true;

ORIGO_GL_ScrollEnabled = false;
ORIGO_GL_ScrollBarHeight = 12;
ORIGO_GL_ScrollBarColor = "006699";
ORIGO_GL_ScrollImgSrcTop = "/img/utlit/tri.gif";
ORIGO_GL_ScrollImgSrcBot = "/img/utlit/tri_b.gif";
ORIGO_GL_ScrollImgWidth = 5;
ORIGO_GL_ScrollImgHeight = 5;
ORIGO_GL_ScrollBothBars = true;



//4.3
ORIGO_GL_HoverTimeTop  = 150;
ORIGO_GL_HoverTimeTree = 150;

// 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 ORIGO_f_CenterMenu(topmenuid) {
    var MinimumPixelLeft = 0;
    var TheMenu = ORIGO_DOM ? document.getElementById(topmenuid) : window[topmenuid];
    var TheMenuWidth = ORIGO_DOM ? parseInt(TheMenu.style.width) : ORIGO_IE4 ? TheMenu.style.pixelWidth : TheMenu.clip.width;
    var TheWindowWidth = ORIGO_IE ? (ORIGO_DOM ? ORIGO_Canvas.clientWidth : document.body.clientWidth) : window.innerWidth;
    return Math.max(parseInt((TheWindowWidth-TheMenuWidth) / 2),MinimumPixelLeft);
}

if(ORIGO_IsMenu) {
    document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='/menu/IS/ORIGO_Arrays.js' TYPE='text/javascript'><\/SCR" + "IPT>");
    document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='/menu/ORIGO_Script"+ ORIGO_BrowserString +".js' TYPE='text/javascript'><\/SCR" + "IPT>");
}

//end