<!--
//Brian - the numofitems =(see below) corresponds to each "Global Item" (Frontline, Back Office, Engineering, Infrastructure and EBusiness).  The menu items numbering on each web page must also be changed when adding each new subglobal set (such as software type - CMMS) for a new Global Item.  If the numofitems is not changed here, then the ehandler function will not closesubnav on mousemove and that subglobal set will sit there and blur out other subsets when they are called.
// -->

var time = 3000;
var numofitems = 5;

//menu constructor

function menu(allitems,thisitem,startstate){ 
  callname= "gl"+thisitem;
  divname="subglobal"+thisitem;  
  this.numberofmenuitems = numofitems;
  this.caller = document.getElementById(callname);
  this.thediv = document.getElementById(divname);
  this.thediv.style.visibility = startstate;
}

//menu methods
function ehandler(event,theobj){
  for (var i=1; i<= theobj.numberofmenuitems; i++){
    var shutdiv =eval( "menuitem"+i+".thediv");
    shutdiv.style.visibility="hidden";
  }
  theobj.thediv.style.visibility="visible";
}
				
function closesubnav(event){
  if ((event.clientY <48)||(event.clientY > 107)){
    for (var i=1; i<= numofitems; i++){
      var shutdiv =eval('menuitem'+i+'.thediv');
      shutdiv.style.visibility='hidden';
    }
  }
}

/* start date */
var months=new Array(13);months[1]="January";months[2]="February";months[3]="March";months[4]="April";months[5]="May";months[6]="June";months[7]="July";months[8]="August";months[9]="September";months[10]="October";months[11]="November";months[12]="December";var time=new Date();var lmonth=months[time.getMonth() + 1];var date=time.getDate();var year=time.getYear();if (year < 2000) year = year + 1900;
/* end date */


   
 

