
	var stopTheClock = true;
	var interval = "";
	var showingID = null;
	var timerStarted = false;
	var numTopLevelNavItems=6;
	
	function tTimer(index) {
	// Borrowed from Hameed's genius
	// Modified to specify an index -JGD4
		stopTheClock = false;
		hideAllSubs();
		
		// Style-specific changes by JGD4
        if (index != 6){
    		document.getElementById("navarr"+index).src = "media/flash/3296/images/nav1_arrow.gif";
	    	document.getElementById("menu"+index).style.background = "none";
		    document.getElementById("menu"+index).style.color = "#FFF";
        }
		
		stopTheClock = true;
	}
	
	function startInterval(index) {
	// Borrowed from Hameed's genius
	// Modified to specify an index -JGD4
		interval = window.setInterval("tTimer("+index+")",1000);
	} 
	
	function stopInterval() {
	// Borrowed from Hameed's genius
		if ( interval != "" )
		{
			window.clearInterval (interval);
			interval="";
		}
	}
	
	function getX(obj) {
	// Borrowed from Hameed's genius
		return( obj.offsetParent==null ? obj.offsetLeft : obj.offsetLeft+getX(obj.offsetParent) );
	}
	
	function getY(obj) {
	// Borrowed from Hameed's genius
		return( obj.offsetParent==null ? obj.offsetTop : obj.offsetTop+getY(obj.offsetParent) );
	}
	
	function getHeight(obj){
		var result=0;
		if (obj.offsetHeight) {
			result = obj.offsetHeight;
		} else if (obj.clip && obj.clip.height) {
			result = obj.clip.height;
		} else if (obj.style && obj.style.pixelHeight) {
			result = obj.style.pixelHeight;
		}
		//alert(result+", "+ getY(obj));
		return parseInt(result, 10);
	}
	
	function hideAllSubs() {
	// Cycles through the existing submenu indexes, hiding each one until we run out. -JGD4
		for (var i=0; i<numTopLevelNavItems; i++)
		{
			if (document.getElementById("submenu"+i) != null && typeof(document.getElementById("submenu"+i)) != "undefined") {
				//alert("Hiding submenu"+i+".");
				document.getElementById("submenu"+i).style.visibility = "hidden";
			}
		}
	}
	
	function processH(index){
	// Called when the main navigation link is rolled over
	//   --John G Durden IV
		var xpos, ypos;
		
		/*****************/
		if (stopTheClock) stopInterval();
		if(showingID != null && showingID != 6) {
			document.getElementById("navarr"+showingID).src = "media/flash/3296/images/nav1_arrow.gif";
			document.getElementById("menu"+showingID).style.background = "none";
			document.getElementById("menu"+showingID).style.color = "#FFF";
		}
		showingID=index;
		/*****************/
		
		// Do the following ONLY if a submenu exists for this node...
		if (document.getElementById("submenu"+index) != null && typeof(document.getElementById("submenu"+index)) != "undefined") 
		{
			// Change button display 
			document.getElementById("navarr"+index).src = "media/flash/3296/images/nav1_arrow_ovr.gif";
			document.getElementById("menu"+index).style.background = "#B6B48D url(images/nav1_bg_ovr.gif) repeat-x bottom left";
			document.getElementById("menu"+index).style.color = "#323218";
			
			// Hide all open submenus
			hideAllSubs();
			
			// Make this submenu visible
			document.getElementById("submenu"+index).style.visibility = "visible";
			
			// Get x-position of left block
			xpos = getX(document.getElementById("hd"+index));
			ypos = getY(document.getElementById("hd"+index)) + getHeight(document.getElementById("hd"+index));
			document.getElementById("submenu"+index).style.left = xpos;
			document.getElementById("submenu"+index).style.top = ypos;
		} // end if
	
	}
	
	function processL(index){
	// Called when the main navigation link is rolled off  
	//   --John G Durden IV
		startInterval(index);
		//document.getElementById("navarr"+index).src = "media/flash/3296/images/nav1_arrow.gif";
		//document.getElementById("submenu"+index).style.visibility = "hidden";
		
	}

