var is_ns4up = true;
var is_ie4up = false;

is_ns4up = (document.layers)? true:false;
is_ie4up = (document.all)? true:false;

if (is_ns4up)
	{
	HIDDEN="hide";
	VISIBLE="show";
	}
else if (is_ie4up)
	{
	HIDDEN="hidden";
	VISIBLE="visible";
	}
else
	{
	HIDDEN="hidden";
	VISIBLE="visible";
	}


function showMenu(xxx)
{
hideMenu();
document.getElementById("menu"+xxx).style.visibility=VISIBLE;
document.getElementById("menuhider").style.visibility=VISIBLE;
}

function hideMenu()
{
for (i=1; i<=7; i++)
	document.getElementById("menu"+i).style.visibility=HIDDEN;
document.getElementById("menuhider").style.visibility=HIDDEN;
}



var swapbox_max=3;

function swapboxHideAll()
{
for (i=1; i<=swapbox_max; i++)
//	document.getElementById("swapbox"+i).style.visibility=HIDDEN;
	document.getElementById("swapbox"+i).style.display='none';

}

function swapboxShow(xxx)
{
swapboxHideAll();
//document.getElementById("swapbox"+xxx).style.visibility=VISIBLE;
document.getElementById("swapbox"+xxx).style.display='block';

}