var tid="null"; // timer id
var browser="unknown"; // browser name
var tmp;
var n;

if (document.all) {
browser="ie";
}
else if (document.layers) {
browser="nn";
}
else if (document.getElementById) {
browser="mozilla";
}
else {
browser="unknown";
}

function hide2l(cn)
{
	// hide all menus
	var t=1;
	
	if(browser=="ie")
	{
		while(document.getElementById(cn+"_"+t))
		{
			eval("document.all."+cn+"_"+t+".style.visibility='hidden';");
	        t=t+1;
		}
	}
	if(browser=="mozilla")
	{
		while(document.getElementById(cn+"_"+t))
		{
			eval("document.getElementById('"+cn+"_"+t+"').style.visibility='hidden';");
	        t=t+1;
		}
	}
}


function show(name)
{
// shows menu named "name"
if(browser=="ie")
{
    eval("document.all."+name+".style.visibility='visible';");
}
if(browser=="mozilla")
{
    eval("document.getElementById('"+name+"').style.visibility='visible';");
}
}

function start_hiding_all(n)
{
	tid=setTimeout("hide2l('"+n+"');",500);
}


function stop_hiding()
{
		clearTimeout(tid);
        tid="null";
}