/*HM_Loader.js
* by Peter Belesis. v4.0.7 010323
* Copyright (c) 2001 Peter Belesis. All Rights Reserved.
*/

   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_IsMenu = (HM_DOM || HM_NS4 || (HM_IE4 && !HM_IE4M));

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          = 150;
HM_GL_FontFamily         = "Verdana,sans-serif,helvetica";
HM_GL_FontSize           = SetFontSize();
HM_GL_FontBold           = false;
HM_GL_FontItalic         = false;
HM_GL_FontColor          = "666666";
HM_GL_FontColorOver      = "white";
HM_GL_BGColor            = "white";
HM_GL_BGColorOver        = "cccccc";
HM_GL_ItemPadding        = 3;

HM_GL_BorderWidth        = 1;
HM_GL_BorderColor        = "black";
HM_GL_BorderStyle        = "solid";
HM_GL_SeparatorSize      = 1;
HM_GL_SeparatorColor     = "black";
HM_GL_ImageSrc           = "/design/global/images/dec_tri.gif";
HM_GL_ImageSrcLeft       = "/design/global/images/dec_tri.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       = 5;
HM_GL_ChildOffset        = 5;
HM_GL_ChildPerCentOver   = null;
HM_GL_TopSecondsVisible  = .5;
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;

// set the menu font size
function SetFontSize()
{
	var browserType = BrowserType();
	var platformType = PlatformType();
	var fontSize = 9;

	// if they are using the Accessible style sheet ('altstyle'), then increase the font size
	if(document.cookie.indexOf('style=altstyle')>=0)	{ 
			if (platformType=="PC") 
				{
					if (browserType=="DOM"){fontSize = 10;} 
					else if (browserType=="NS4"){fontSize = 10;} 
					else if (browserType=="IE4"){fontSize = 11;} 
					else {fontSize = 10;}
				}
			else if (platformType=="Mac") 
				{
					if (browserType=="DOM"){fontSize = 10;} 
					else if (browserType=="NS4"){fontSize = 12;} 
					else {fontSize = 10;}
				}
			else 
				{
					fontSize = 10;
				}
		}
	// they are using the default style sheet -- show the default font sizes
	else {
				if (platformType=="PC") 
				{
					if (browserType=="DOM"){fontSize = 7;} 
					else if (browserType=="NS4"){fontSize = 7;} 
					else if (browserType=="IE4"){fontSize = 8;} 
					else {fontSize = 8;}
				}
			else if (platformType=="Mac") 
				{
					if (browserType=="DOM"){fontSize = 8;} 
					else if (browserType=="NS4"){fontSize = 9;} 
					else {fontSize = 8;}
				}
			else 
				{
					fontSize = 8;
				}
		 }
		
	return fontSize;	
}

if(HM_IsMenu) {
	document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='/design/global/js/HM_Arrays.js' TYPE='text/javascript'><\/SCR" + "IPT>");
	document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='/design/global/js/HM_Script"+ HM_BrowserString +".js' TYPE='text/javascript'><\/SCR" + "IPT>");
}


//end
//start printer friendly formatting check. if somprint is present in the query string the page shows in a printer friendly format.
ValidateClient()
ShowPrinterFriendly()
CheckPfOverRide();//checks to see if there is a comment with
//end 