// JavaScript Document

	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);
	
	
	function NewPopupWindow(mypage,myname,w,h)
	{
		var winl = (screen.width - w)/2;
		var wint = (screen.height - h)/2;
		
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no, resizable=no, status=no,toolbar=no,menubar=no'
		win = window.open(mypage,myname,winprops);
	}


	var time = 3000;
	var numofitems = 7;
	
	//menu constructor
	function menu(allitems,thisitem,startstate){ 
		callname= "gl"+thisitem;
		divname="subglobal"+thisitem;  
		this.numberofmenuitems = 7;
		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 <26)||(event.clientY > 85)){
			for (var i=1; i<= numofitems; i++){
				var shutdiv =eval('menuitem'+i+'.thediv');
				shutdiv.style.visibility='hidden';
			}
		}
	}

