<!--
// JavaScript Document
// nav_bar.js
var time = 3000;
var numofitems = 8;

//menu constructor
function menu(thisitem,startstate){ 
  callname= "gl"+thisitem;
  divname="subglobal"+thisitem;
  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<= numofitems; 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 > 140)){
    for (var i=1; i<= numofitems; i++){
		if (null != eval('menuitem'+i))
		{ // because if the body is loaded before the menuitems are created, then 
	      var shutdiv =eval('menuitem'+i+'.thediv');
    	  shutdiv.style.visibility='hidden';
		}
    }
  }
}
 
/* added 17 August 2004 - Sean Kennedy <sean@guymast.com> 
   - Opens URLs in both the right and left frame with a single click
   - but also gives two history items
*/
function openTwoFrames(leftFrame,leftURL,rightFrame,rightURL) {
		 
         leftFrame.location.replace(leftURL);
         rightFrame.location.replace(rightURL);
}


/* added 30 August 2004 - Sean Kennedy <sean2guymast.com>
   - Opens a new window containing the contents of main so that visitors can print
*/
function openPrint() {
		 window.open(parent.main.location, 'print', 'width=600, height=480, resizable=yes, status=no, location=no, scrollbars=yes, menubar=yes, toolbar=yes'); 
		 //document.location = 'top.html';	   
}
//-->

