/****** Declare Variables ******/

/**timers**/
var c_on=175;
var c_off=400;



var mc_m=4;//number of menus to hide
var m_id_hide;//id for hide timer
var m_id_show;//id for show timer

var ie=(document.all) ? true : false; //determine IE for some inline style that don't work in NN
var msMenu=((ie) && (navigator.platform.indexOf("Win32")>=0)) ? true : false;  //deliver menus to windows and NT with IE only


/*****  End Variables ******/

/****** Show/hide functions here ******/

function m_showNav(e)
{
	if (!msMenu) return;
	if (m_id_show!="") clearTimeout(m_id_show);
	if (m_id_hide!="") clearTimeout(m_id_hide);
	if (document.all(e).style.visibility=="hidden") m_hideAll();
	m_id_show=setTimeout(e + ".style.visibility='visible'",c_on);
}


function m_hideNav(e)
{
	if (!msMenu) return;
	if (m_id_show!=""){clearTimeout(m_id_show);}
	if (m_id_hide!=""){clearTimeout(m_id_hide);}
	m_id_hide=setTimeout(e + ".style.visibility='hidden';",c_off)

}


function m_showDiv(e)
{
	if (m_id_show!=""){clearTimeout(m_id_show);}
	if (m_id_hide!=""){clearTimeout(m_id_hide);}
	document.all(e).style.visibility="visible";
}


function m_hideAll()
{
	for(i=1; i<mc_m+1; i++)

	{
	var menu;
	menu="site_m"+i
	document.all(menu).style.visibility="hidden";
	}
}



/****** End Show/hide functions *****/


