	var timerRunning = false; // boolean flag
	var myTimer = null;
	var linkNum = null;
	var showTimer = null;
	var openNum = null;
	var menuLength = 8;
	var browser = navigator.appName;
	
	function show(Hnum){
		openNum = Hnum;
		showTimer = setTimeout("shownow()",400);
	}
	
	function shownow(){
		var e;
		var menuObj;

		clearTimeout(myTimer);
		closemenu();

		var Hnum = openNum;
		menuObj = 'Link' + Hnum;
		//INTERNET EXPLORER CODE
		if (browser == 'Microsoft Internet Explorer'){
			e = document.all[menuObj];
		}
		//CODE FOR ALL OTHER WEBBROWSERS HOPEFULLY
		else {
			e = document.getElementById(menuObj);
		}
		if ( null !== e ) {
			e.className = "subnavigationboxVis";
		}
	}
	
	function checkmouseover(Hnum){
		clearTimeout(showTimer);
		clearTimeout(myTimer);
		linkNum = Hnum;
	  myTimer = setTimeout('closemenu()',400); // myTimer holds the id of the timer
	}
	
	function clearTimer(){
		clearTimeout(myTimer);
	}
	
	function closemenu(){
		var i;
		var e;
		var menuObj;

		for(i=0;i<menuLength ;i++){
			menuObj = 'Link' + i;
			if (browser == 'Microsoft Internet Explorer'){
				e = document.all[menuObj];
			} else {
			 	e = document.getElementById(menuObj);
			}
			if ( (null !== e) && (undefined !== e) ) {
				e.className = "subnavigationboxInvis";	
			}
		}
	}
	
	function SetCookie(cookieName,cookieValue,nDays,path){
		var today = new Date();
	 	var expire = new Date();
	 	if (nDays==null || nDays==0) nDays=1;
	 	expire.setTime(today.getTime() + 3600000*24*nDays);
	 	document.cookie = cookieName+"="+escape(cookieValue)+";expires="+expire.toGMTString()+";path="+path;
	}
	
	function goToGroup(site){
		var group_id = document.getElementById("group_list").options[document.getElementById("group_list").selectedIndex].value;
		document.location.href = site+ "?id=" + group_id;
	}

