/*HM_Loader.js

* by Peter Belesis. v4.0.12 010612

* Copyright (c) 2001 Peter Belesis. All Rights Reserved.

*/

function contentOffsetFromLeft() {
	var TheMenuWidth = 1000;
	var TheWindowWidth = HM_IE ? (HM_DOM ? HM_IEcanvas.clientWidth : document.body.clientWidth) : window.innerWidth;
	return Math.max(parseInt((TheWindowWidth-TheMenuWidth) / 2),0);
}

function On(imgName) {
return true
      if (document.images) 
          document.images[imgName].src = eval(imgName + "on.src");
}

function Off(imgName) {
return true
      if (document.images)
             document.images[imgName].src = eval(imgName + "off.src");
} 

// BEGIN Pre_Load of Banner 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];}

}



// END Pre_Load of Banner Images



   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         = "Arial,sans-serif";



// BEGIN font size for Mac Navigator

if(HM_Mac && HM_NS4)

	HM_GL_FontSize           = "9";

else

	HM_GL_FontSize           = "7";

// END font size for Mac Navigator



HM_GL_FontBold           = false;

HM_GL_FontItalic         = false;

HM_GL_FontColor          = "white";

HM_GL_FontColorOver      = "white";

HM_GL_BGColor            = "white";

HM_GL_BGColorOver        = "white";

HM_GL_ItemPadding        = 3;





HM_GL_BorderWidth        = 0;

HM_GL_BorderColor        = "red";

HM_GL_BorderStyle        = "solid";

HM_GL_SeparatorSize      = 0;

HM_GL_SeparatorColor     = "yellow";

HM_GL_ImageSrc           = "/menu/gifs/arrow.gif";

HM_GL_ImageSrcLeft       = "/menu/gifs/triL.gif";

HM_GL_ImageSize          = 4;

HM_GL_ImageHorizSpace    = 5;

HM_GL_ImageVertSpace     = 5;



HM_GL_KeepHilite         = false;

HM_GL_ClickStart         = false;

HM_GL_ClickKill          = false;

HM_GL_ChildOverlap       = -2;

HM_GL_ChildOffset        = 0;

HM_GL_ChildPerCentOver   = null;

HM_GL_TopSecondsVisible  = 1;

HM_GL_ChildSecondsVisible = 1;

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='/menu/departmental_telecom/HM_Arrays.js' TYPE='text/javascript'><\/SCR" + "IPT>");

	document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='/menu/departmental_telecom/HM_Script"+ HM_BrowserString +".js' TYPE='text/javascript'><\/SCR" + "IPT>");

}





//end

