<!--
if(document.layers){
	strBrowser="NS4";
}
if(document.all){
	strBrowser="IE";
}
if(!document.all && document.getElementById){
	strBrowser="NS6";
}

var windowimg;

function showImage(file, w, h){
	var t = (screen.height - h) / 2;
	var l = (screen.width - w) / 2;
	
	if (windowimg && !windowimg.closed) windowimg.close();
	windowimg = window.open(file,'','left=' + l + ', top=' + t + ', width=' + w + ', height=' + h);
}

function showNews(file, w, h){
	var t = (screen.height - h) / 2;
	var l = (screen.width - w) / 2;
	
	if (windowimg && !windowimg.closed) windowimg.close();
	windowimg = window.open(file,'','scrollbars=1, left=' + l + ', top=' + t + ', width=' + w + ', height=' + h);
}

function hideAllLayers()
{
	var numMenus = 3;	// numMenus + 1
	if (strBrowser=="NS4") {
		prefx = "document.layers['menu";
		sufx = "'].visibility='hide';";
	} else if (strBrowser=="NS6") {
		prefx = "document.getElementById('menu";
		sufx = "').style.visibility='hidden';";
	} else {
		prefx = "document.all['menu";
		sufx = "'].style.visibility='hidden';";
	}
	for (i=1; i < numMenus; i++) {
		eval(prefx+i+sufx);
	}
}

function showLayer(layerName)
{
	hideAllLayers();
	if (strBrowser=="NS4") {
		prefx = "document.layers['menu";
		sufx = "'].visibility='show';";
	} else if (strBrowser=="NS6") {
		prefx = "document.getElementById('menu";
		sufx = "').style.visibility='visible';";
	} else {
		prefx = "document.all['menu";
		sufx = "'].style.visibility='visible';";
	}
	eval(prefx+layerName+sufx);
}

function showArrow(arrowName){
	var seta = eval('document.' + arrowName);
	seta.src = "imagens/seta.gif";
}

function hideArrow(arrowName){
	var seta = eval('document.' + arrowName);
	seta.src = "imagens/red1x1.gif";
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)>=4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function footer(){
	if (strBrowser == "NS6"){
		document.getElementById("footer").style.top = window.innerHeight - 16;
		document.getElementById("footer").style.visibility = "visible";
	} else {
		document.all.footer.style.top = document.body.clientHeight - 16;
		document.all.footer.style.visibility = "visible";
	}
}

window.onresize=footer;
//-->