var agt=navigator.userAgent.toLowerCase();
var is_gecko = (agt.indexOf('gecko') != -1);
var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
var allText = "<style>";

function runFFchecker()
{
	var innerWindow = window.innerHeight -50;
	var innerWindowWidth = window.innerWidth - 444;
	try{
	if(document.getElementById("innerDiv").style.height != innerWindow)
	{
		document.getElementById("innerDiv").style.height = innerWindow;
		document.getElementById("flash").style.width = innerWindowWidth;
		document.getElementById("flash").style.height = innerWindow;
	}
	}
	catch(e){};
	setTimeout("runFFchecker()", 200);
}

if(is_ie)
{
//	allText += "body { margin:0px; padding:0px; background-color:#061316; color:#ffffff; font-family:Arial; font-size: 11px; overflow:hidden; }";
//	allText += "#innerDiv {width:100%; height:100%; overflow:auto; text-align:left; }";
}
if(is_gecko)
{
//	var innerWindow = window.innerHeight - 50;
//	allText += "body { margin:0px; padding:0px; background-color:#061316; color:#ffffff; font-family:Arial; font-size: 11px; overflow:hidden; }";
//	allText += "#innerDiv {width:100%; height:"+innerWindow+"px; overflow:auto; text-align:left; z-index:2; }"
//	runFFchecker();
}
allText += "</style>";
document.write(allText);

function hideAll()
{
	try {document.getElementById("header_buttons").style.visibility = "hidden";
		document.getElementById("header_buttons").style.display = "none"; 
	} catch(e){}
}
function show(menuId)
{
	document.getElementById(menuId).style.display = "inline"; 
	document.getElementById(menuId).style.visibility = "visible";
//	document.getElementById(menuId).style.z-index = "1000";
}
function hide(menuId)
{
	document.getElementById(menuId).style.display = "none"; 
	document.getElementById(menuId).style.visibility = "hidden";
}

function show_new(menuId)
{
	menuId1 = menuId + "_out";
	document.getElementById(menuId1).style.visibility = "hidden";
	menuId1 = menuId + "_over";
	document.getElementById(menuId1).style.visibility = "visible";
}
function hide_new(menuId)
{
	menuId1 = menuId + "_out";
	document.getElementById(menuId1).style.visibility = "visible";
	menuId1 = menuId + "_over";
	document.getElementById(menuId1).style.visibility = "hidden";
}