/*HM_Loader.js
* by Peter Belesis. v5
* Copyright (c) 2003 Peter Belesis. All Rights Reserved.
*/

HM_UserAgent = navigator.userAgent;
      HM_DOM = (document.getElementById) ? true : false;
      HM_NS4 = (document.layers) ? true : false;
       HM_IE = (document.all) ? true : false;
      HM_IE4 = HM_IE && !HM_DOM;
      HM_Mac = (navigator.appVersion.indexOf("Mac") != -1);
     HM_IE4M = HM_IE4 && HM_Mac;

HM_Opera = (window.opera) ? true : false;
if(HM_Opera) {
    HM_BrowserPattern = /Opera(\/| )(\d+.*)/;
    HM_VersionSupported = 7;
}

HM_Konqueror = (HM_UserAgent.indexOf("Konqueror")!=-1);
if(HM_Konqueror) {
    HM_BrowserPattern = /(Konqueror\/)(\d+.*)/;
    HM_VersionSupported = 3;
}

if(HM_Opera || HM_Konqueror) {
    if (HM_UserAgent.match) {
       HM_Matches = HM_UserAgent.match(HM_BrowserPattern);
       if (HM_Matches&&HM_Matches[2]) {
          HM_BrowserVersion = parseFloat(HM_Matches[2]);
       } else HM_BrowserVersion = 0;
       HM_IsMenu = (HM_BrowserVersion >= HM_VersionSupported);
    } else {
       HM_BrowserVersion = 0;
       HM_IsMenu = false;
    }
} else {
    HM_BrowserVersion = 0;
    HM_IsMenu = !HM_IE4M && (HM_DOM || HM_NS4 || HM_IE4 );
}

if(window.event + "" == "undefined") event = null;

function HM_f_PopUp(){ return false };
function HM_f_PopDown(){ return false };
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

HM_GL_MenuWidth          = 150;
HM_GL_FontFamily         = "Verdana";
HM_GL_FontSize           = 8;
HM_GL_FontBold           = false;
HM_GL_FontItalic         = false;
HM_GL_FontColor          = "#1c7da1";
HM_GL_FontColorOver      = "#501141";
HM_GL_BGColor            = "#ffffff";
HM_GL_BGColorOver        = "#ffd068";
HM_GL_ItemPadding        = 5;

HM_GL_BorderWidth        = 1;
HM_GL_BorderColor        = "#1c7da1";
HM_GL_BorderStyle        = "solid";
HM_GL_SeparatorSize      = 1;
HM_GL_SeparatorColor     = "#ffd068";

HM_GL_ImageSrc = "images/img_more_right.gif";
HM_GL_ImageSrcLeft = "images/more_white_right.gif";

HM_GL_ImageSrcOver = "images/img_more_right_over.gif";
HM_GL_ImageSrcLeftOver = "images/more_white_right-over.gif";

HM_GL_ImageSize          = 8;
HM_GL_ImageHeight		 = 12;
HM_GL_ImageHorizSpace    = 5;
HM_GL_ImageVertSpace     = 1;

HM_GL_KeepHilite         = false;
HM_GL_ClickStart         = false;
HM_GL_ClickKill          = 0;
HM_GL_ChildOverlap       = 10;
HM_GL_ChildOffset        = 5;
HM_GL_ChildPerCentOver   = null;
HM_GL_TopSecondsVisible  = 0
HM_GL_ChildSecondsVisible = 0;
HM_GL_StatusDisplayBuild = 0;
HM_GL_StatusDisplayLink  = 1;
HM_GL_UponDisplay        = null;
HM_GL_UponHide           = null;
HM_PG_NSFontOver         = true;

HM_GL_RightToLeft        = false;
HM_GL_CreateTopOnly      = false;
HM_GL_CreateChildrenJIT  = false;
HM_GL_CreateMenusOnLoad  = true;
HM_GL_ShowLinkCursor     = true;

HM_GL_ScrollEnabled      = true;
HM_GL_ScrollOver         = false;
HM_GL_ScrollInterval     = 20;
HM_GL_ScrollBarHeight    = 16;
HM_GL_ScrollBarColor     = "lightgrey";
HM_GL_ScrollImgSrcTop    = "HM_More_black_top.gif";
HM_GL_ScrollImgSrcBot    = "HM_More_black_bot.gif";
HM_GL_ScrollImgWidth     = 9;
HM_GL_ScrollImgHeight    = 5;
HM_GL_ScrollBothBars     = true;
HM_GL_ScrollHeightMin    = 30;

HM_GL_TopKeepInWindowX   = 0;
HM_GL_TopKeepInWindowY   = 0;

HM_GL_HoverTimeTop       = 0;
HM_GL_HoverTimeTree      = 0;

HM_GL_FramesEnabled      = false;
HM_GL_FramesNavFramePos  = "top";
HM_GL_FramesMainFrameName = "main";

HM_GL_PreloadImages      = true;

HM_GL_ImageDir           = "";
HM_ScriptDir             = "";


// The following function is included to illustrate the JS 
// expression handling of the left_position and top_position 
// parameters. You may delete if you have no use for it

function HW(kx){var b=0;var c=HM_DOM?Hg.document.getElementById(kx):Hg[kx];var d=HM_DOM?parseInt(c.style.width)+((Hjt||Hju)?0:Hu*2):HM_IE4?c.style.pixelWidth:c.clip.width;var gh=HM_IE?(HM_DOM?Hh.clientWidth:Hg.document.body.clientWidth):Hg.innerWidth;
return Math.max(parseInt((gh-d)/2),b);}
HM_f_CenterMenu=HW;


//end