/****** Declare Variables ******/

/**timers**/
var c_on=100;
var c_off=300;

var mc_m=3;//number of menus to hide
var m_id_hide;//id for hide timer
var m_id_show;//id for show timer

var ns4=document.layers;
var ns6=document.getElementById&&!document.all;
var ie4=document.all;
var opr=navigator.userAgent.indexOf("Opera");

/*****  End Variables ******/

/****** Show/hide functions here ******/

function m_showNav(e)
{
	if(ie4){
		if (m_id_show!="") clearTimeout(m_id_show);
		if (m_id_hide!="") clearTimeout(m_id_hide);
		if (document.getElementById(e).style.visibility=='hidden') m_hideAll();
		m_id_show=setTimeout(e + ".style.visibility='visible'",c_on);
	} else if(ns6) {
		if (document.getElementById(e).style.visibility=='hidden') m_hideAll();
		document.getElementById(e).style.visibility="visible";
	} else {
		if (document.getElementById(e).visibility=='hide') m_hideAll();
		document.getElementById(e).visibility="show";
	}
}


function m_hideNav(e)
{
	if(ie4){
		if (m_id_show!=""){clearTimeout(m_id_show);}
		if (m_id_hide!=""){clearTimeout(m_id_hide);}
		m_id_show=setTimeout(e + ".style.visibility='hidden'",c_on);
	} else if(ns6) {
		document.getElementById(e).style.visibility="hidden";
	} else {
		document.getElementById(e).visibility="hide";
	}
}


function m_hideAll()
{
	for(i=1; i<mc_m+1; i++)
	{
		var menu;
		menu="m"+i
	
		if(ie4){
			document.all(menu).style.visibility="hidden";
		} else if(ns6) {
			document.getElementById(menu).style.visibility="hidden";
		} else {
			document.getElementById(menu).visibility="hide";
		}
	}
}

/****** End Show/hide functions *****/



