HM_MyOrgID="6192";
HM_MyPort="46192";
HM_Domain="http://"+document.domain+"/";
HM_SecureDomain="https://"+document.domain+":46192/";

if (location.protocol!="File:")
{
	if (location.protocol=="http:")
	{
		HM_MyDomain=HM_Domain;
	}
	
	else
	{
		HM_MyDomain=HM_SecureDomain;
	}
}
else
{
	HM_MyDomain="";
	HM_Domain="";
	HM_SecureDomain="";
}
//alert(document.protocol);

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


/*   Rollover effect for menu images*/

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//   Drop down menu

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_PG_MenuWidth = 160;
HM_PG_FontFamily = "Arial,sans-serif";
HM_PG_FontSize = 9;
HM_PG_FontBold = 0;
HM_PG_FontItalic = 0;
HM_PG_FontColor = "#000000";
HM_PG_FontColorOver = "#ffffff";
HM_PG_BGColor = "#f5f5f5";
HM_PG_BGColorOver = "#CC0000";
HM_PG_ItemPadding = 3;

HM_PG_BorderWidth = 1;
HM_PG_BorderColor = "#666666";
HM_PG_BorderStyle = "solid";
HM_PG_SeparatorSize = 1;
HM_PG_SeparatorColor = "#999999";

HM_PG_ImageSrc = HM_MyDomain+"images/ar_off.gif";
HM_PG_ImageSrcLeft = HM_MyDomain+"images/al_off.gif";
HM_PG_ImageSrcOver = HM_MyDomain+"images/ar_on.gif";
HM_PG_ImageSrcLeftOver = HM_MyDomain+"images/al_on.gif";

HM_PG_ImageSize = 10;
HM_PG_ImageHorizSpace = 15;
HM_PG_ImageVertSpace = 1;

HM_PG_KeepHilite = true; 
HM_PG_ClickStart = 0;
HM_PG_ClickKill = false;
HM_PG_ChildOverlap = 20;
HM_PG_ChildOffset = 6;
HM_PG_ChildPerCentOver = null;
HM_PG_TopSecondsVisible = .6;
HM_PG_StatusDisplayBuild =0;
HM_PG_StatusDisplayLink = 0;
HM_PG_UponDisplay = null;
HM_PG_UponHide = null;
HM_PG_RightToLeft = 0;

HM_PG_CreateTopOnly = 0;
HM_PG_ShowLinkCursor = 1;
HM_PG_NSFontOver = true;


//HM_a_TreesToBuild = [2];



   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;

//4.1
 HM_Opera = (navigator.userAgent.indexOf("Opera")!=-1);
 HM_Konqueror = (navigator.userAgent.indexOf("Konqueror")!=-1);

HM_IsMenu = !HM_Opera && !HM_Konqueror && !HM_IE4M && (HM_DOM || HM_NS4 || HM_IE4);

HM_BrowserString = HM_NS4 ? "NS4" : HM_DOM ? "DOM" : "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          = 160;					// change top menu width here
HM_GL_FontFamily         = "Arial,sans-serif";	// change font here
HM_GL_FontSize           = 10;					// change font size here
HM_GL_FontBold           = true;				//
HM_GL_FontItalic         = false;				//
HM_GL_FontColor          = "#000000";
HM_GL_FontColorOver      = "#ffffff";
HM_GL_BGColor            = "#FFFFFF";
HM_GL_BGColorOver        = "#CC0000";
HM_GL_ItemPadding        = 3;

HM_GL_BorderWidth        = 1;
HM_GL_BorderColor        = "#666666";				// change separator color here
HM_GL_BorderStyle        = "solid";
HM_GL_SeparatorSize      = 1;
HM_GL_SeparatorColor     = "#999999";

HM_GL_ImageSrc = HM_MyDomain+"images/ar_off.gif";
HM_GL_ImageSrcLeft = HM_MyDomain+"images/al_off.gif";

HM_GL_ImageSrcOver = HM_MyDomain+"images/ar_off.gif";
HM_GL_ImageSrcLeftOver = HM_MyDomain+"images/al_on.gif";

HM_GL_ImageSize          = 5;
HM_GL_ImageHorizSpace    = 5;
HM_GL_ImageVertSpace     = 5;

HM_GL_KeepHilite         = false;
HM_GL_ClickStart         = false;
HM_GL_ClickKill          = 0;
HM_GL_ChildOverlap       = 20;
HM_GL_ChildOffset        = 8;
HM_GL_ChildPerCentOver   = null;
HM_GL_TopSecondsVisible  = .6;
HM_GL_ChildSecondsVisible = .6;
HM_GL_StatusDisplayBuild = 0;
HM_GL_StatusDisplayLink  = 1;
HM_GL_UponDisplay        = null;
HM_GL_UponHide           = null;

//HM_GL_RightToLeft      = true;
HM_GL_CreateTopOnly      = HM_NS4 ? true : false;
HM_GL_ShowLinkCursor     = true;

// 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 HM_f_CenterMenu(topmenuid) {
	var MinimumPixelLeft = 0;
	var TheMenu = HM_DOM ? document.getElementById(topmenuid) : HM_IE4 ? document.all(topmenuid) : eval("window." + topmenuid);
	var TheMenuWidth = HM_DOM ? parseInt(TheMenu.style.width) : HM_IE4 ? TheMenu.style.pixelWidth : TheMenu.clip.width;
	var TheWindowWidth = HM_IE ? document.body.clientWidth : window.innerWidth;
	return Math.max(parseInt((TheWindowWidth-TheMenuWidth) / 2),MinimumPixelLeft);
}

if(HM_IsMenu) {
	document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='"+HM_MyDomain+"scripts/HM_Arrays.js' TYPE='text/javascript'><\/SCR" + "IPT>");
	document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='"+HM_MyDomain+"scripts/HM_Script"+ HM_BrowserString +".js' TYPE='text/javascript'><\/SCR" + "IPT>");
}


//end Top Menu 



 // Function  preload() loads images into the browser's cache for later use.
// All images goes to same folder   "../images/"
// Usage: <body onLoad="preload('imgName 1', 'imgName 2', 'imgName 3', ...)"></body>
var ar = new Array();
var bImagePreloadDone = false;

function preload() {     // for GIF images
 
  if (!document.images) return;
  for (var j=0;j< arguments.length;j++) {

    ar[arguments[j]+"off"] = new Image();
    ar[arguments[j]+"off"].src = HM_MyDomain+"images/"+arguments[j]+"off" + ".gif";
    ar[arguments[j]+"on"] = new Image();
    ar[arguments[j]+"on"].src = HM_MyDomain+"images/"+arguments[j]+"on" + ".gif";
   
  }
  bImagePreloadDone = true;
}

function preload1() {   // for JPEG images
 
  if (!document.images) return;
  for (var j=0;j< arguments.length;j++) {

    ar[arguments[j]+"off"] = new Image();
    ar[arguments[j]+"off"].src = HM_MyDomain+"images/"+arguments[j]+"off" + ".jpg";
    ar[arguments[j]+"on"] = new Image();
    ar[arguments[j]+"on"].src = HM_MyDomain+"images/"+arguments[j]+"on" + ".jpg";
   
  }
  bImagePreloadDone = true;
}

function preload2() {   // for PNG images
 
  if (!document.images) return;
  for (var j=0;j<arguments.length;j++) {

    ar[arguments[j]+"off"] = new Image();
    ar[arguments[j]+"off"].src = HM_MyDomain+"images/"+arguments[j]+"off" + ".png";
    ar[arguments[j]+"on"] = new Image();
    ar[arguments[j]+"on"].src = HM_MyDomain+"images/"+arguments[j]+"on" + ".png";
   
  }
  bImagePreloadDone = true;
}



// Function to 'activate' images.
     function imgOn(imgName) {
        if (document.images && bImagePreloadDone) {
            document[imgName].src = ar[imgName+"on"].src;
        }
}

// Function to 'deactivate' images.
    function imgOff(imgName) {
        if (document.images && bImagePreloadDone) {
            document[imgName].src = ar[imgName+"off"].src;
        }
}


function MM_jumpMenu(targ,selObj,restore){ //v3.0

  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");

  if (restore) selObj.selectedIndex=0;

}
