	
	/* 
	Easy Menu, By Tim Branyen of RIT
	You can use any of this code, I really don't mind.
	//////////////////////////////////////////////////
	*/////
	////
		

	var timer1;
	var timer2;
	
	var styleDIV;
	var disabletimer;
	var timeout;

	var timerStarted;

	var menuTouch;

	function onloadVAR()
	{
		timer1 = 0;
		timer2 = 3;
		timerStarted = 0;
		menuTouch = "off";
	}

	function rollON(divID)
	{
		styleDIV = document.getElementById(divID);
		styleDIV.style.visibility = "visible";
	}

	function rolllayerON()
	{
		menuTouch = "on";

		timer1 = 0;

		if (timerStarted == 1)
		{
			clearTimeout(timeout);
		}

		timerStarted = 0;
	}

	function rolllayerOFF()
	{
		menuTouch = "off";

		if (timer1 == timer2-2)
		{
			clearTimeout(timeout);
			clearALL();

			timer1 = 0;
		} 
		else
		{
			if (timer1 == 0)
			{
				timeout = setTimeout("rolllayerOFF()", 1000);
				timerStarted = 1;
			}
		}

		timer1 += 1;
	}

	function clearALL()
	{
		menuTouch = "off";
		nav_down.style.visibility = "hidden";
	}

	if (document.layers)
	document.captureEvents (Event.MOUSEDOWN);
	document.onmousedown = captureMouse;

	function captureMouse(evt)
	{
		hitBTN();
	}

	function hitBTN()
	{
		if (menuTouch != "on")
		{
			clearALL();
		}
	}