var path;
var section;

// PRINCIPAL
if (section == "principal") {
  MenuOn = "Principal";
  MenuSub=0;
  menus = new Array("Principal","Rankings","Regulamentos","Resultados","Calendário","Filiados","Atletas Registrados","Treinadores","Recordes","Índices","Corrida de Rua","Arbitragem","A Federação");
  links = new Array("/index.html","/rankings.html","/regulamentos.html","/resultados.html","/calendario.html","/filiados.html","/atletas.html","/treinadores.html","/recordes.html","/indices.html","/corrida.html","/arbitragem.html","/federacao.html");

// RANKINGS
} else if (section == "Rankings") {
  MenuOn = "rankings";
  MenuSub=0;
  menus = new Array("Principal","Rankings","Regulamentos","Resultados","Calendário","Filiados","Atletas Registrados","Treinadores","Recordes","Índices","Corrida de Rua","Arbitragem","A Federação");
  links = new Array("/index.html","/rankings.html","/regulamentos.html","/resultados.html","/calendario.html","/filiados.html","/atletas.html","/treinadores.html","/recordes.html","/indices.html","/corrida.html","/arbitragem.html","/federacao.html");

// REGULAMENTOS
} else if (section == "Regulamentos") {
  MenuOn = "regulamentos";
  MenuSub=0;
  menus = new Array("Principal","Rankings","Regulamentos","Resultados","Calendário","Filiados","Atletas Registrados","Treinadores","Recordes","Índices","Corrida de Rua","Arbitragem","A Federação");
  links = new Array("/index.html","/rankings.html","/regulamentos.html","/resultados.html","/calendario.html","/filiados.html","/atletas.html","/treinadores.html","/recordes.html","/indices.html","/corrida.html","/arbitragem.html","/federacao.html");

// RESULTADOS
} else if (section == "Resultados") {
  MenuOn = "resultados";
  MenuSub=0;
  menus = new Array("Principal","Rankings","Regulamentos","Resultados","Calendário","Filiados","Atletas Registrados","Treinadores","Recordes","Índices","Corrida de Rua","Arbitragem","A Federação");
  links = new Array("/index.html","/rankings.html","/regulamentos.html","/resultados.html","/calendario.html","/filiados.html","/atletas.html","/treinadores.html","/recordes.html","/indices.html","/corrida.html","/arbitragem.html","/federacao.html");

// CALENDÁRIO
} else if (section == "Calendário") {
  MenuOn = "calendario";
  MenuSub=0;
  menus = new Array("Principal","Rankings","Regulamentos","Resultados","Calendário","Filiados","Atletas Registrados","Treinadores","Recordes","Índices","Corrida de Rua","Arbitragem","A Federação");
  links = new Array("/index.html","/rankings.html","/regulamentos.html","/resultados.html","/calendario.html","/filiados.html","/atletas.html","/treinadores.html","/recordes.html","/indices.html","/corrida.html","/arbitragem.html","/federacao.html");

// FILIADOS
} else if (section == "Filiados") {
  MenuOn = "filiados";
  MenuSub=0;
  menus = new Array("Principal","Rankings","Regulamentos","Resultados","Calendário","Filiados","Atletas Registrados","Treinadores","Recordes","Índices","Corrida de Rua","Arbitragem","A Federação");
  links = new Array("/index.html","/rankings.html","/regulamentos.html","/resultados.html","/calendario.html","/filiados.html","/atletas.html","/treinadores.html","/recordes.html","/indices.html","/corrida.html","/arbitragem.html","/federacao.html");

// ATLETAS REGISTRADOS
} else if (section == "Atletas Registrados") {
  MenuOn = "atletas";
  MenuSub=0;
  menus = new Array("Principal","Rankings","Regulamentos","Resultados","Calendário","Filiados","Atletas Registrados","Treinadores","Recordes","Índices","Corrida de Rua","Arbitragem","A Federação");
  links = new Array("/index.html","/rankings.html","/regulamentos.html","/resultados.html","/calendario.html","/filiados.html","/atletas.html","/treinadores.html","/recordes.html","/indices.html","/corrida.html","/arbitragem.html","/federacao.html");

// TREINADORES
} else if (section == "Treinadores") {
  MenuOn = "treinadores";
  MenuSub=0;
  menus = new Array("Principal","Rankings","Regulamentos","Resultados","Calendário","Filiados","Atletas Registrados","Treinadores","Recordes","Índices","Corrida de Rua","Arbitragem","A Federação");
  links = new Array("/index.html","/rankings.html","/regulamentos.html","/resultados.html","/calendario.html","/filiados.html","/atletas.html","/treinadores.html","/recordes.html","/indices.html","/corrida.html","/arbitragem.html","/federacao.html");

// RECORDES
} else if (section == "Recordes") {
  MenuOn = "recordes";
  MenuSub=0;
  menus = new Array("Principal","Rankings","Regulamentos","Resultados","Calendário","Filiados","Atletas Registrados","Treinadores","Recordes","Índices","Corrida de Rua","Arbitragem","A Federação");
  links = new Array("/index.html","/rankings.html","/regulamentos.html","/resultados.html","/calendario.html","/filiados.html","/atletas.html","/treinadores.html","/recordes.html","/indices.html","/corrida.html","/arbitragem.html","/federacao.html");

// ÍNDICES
} else if (section == "Índices") {
  MenuOn = "indices";
  MenuSub=0;
  menus = new Array("Principal","Rankings","Regulamentos","Resultados","Calendário","Filiados","Atletas Registrados","Treinadores","Recordes","Índices","Corrida de Rua","Arbitragem","A Federação");
  links = new Array("/index.html","/rankings.html","/regulamentos.html","/resultados.html","/calendario.html","/filiados.html","/atletas.html","/treinadores.html","/recordes.html","/indices.html","/corrida.html","/arbitragem.html","/federacao.html");

// CORRIDA DE RUA
} else if (section == "Corrida de Rua") {
  MenuOn = "corrida";
  MenuSub=0;
  menus = new Array("Principal","Rankings","Regulamentos","Resultados","Calendário","Filiados","Atletas Registrados","Treinadores","Recordes","Índices","Corrida de Rua","Arbitragem","A Federação");
  links = new Array("/index.html","/rankings.html","/regulamentos.html","/resultados.html","/calendario.html","/filiados.html","/atletas.html","/treinadores.html","/recordes.html","/indices.html","/corrida.html","/arbitragem.html","/federacao.html");

// ARBITRAGEM
} else if (section == "Arbitragem") {
  MenuOn = "arbitragem";
  MenuSub=0;
  menus = new Array("Principal","Rankings","Regulamentos","Resultados","Calendário","Filiados","Atletas Registrados","Treinadores","Recordes","Índices","Corrida de Rua","Arbitragem","A Federação");
  links = new Array("/index.html","/rankings.html","/regulamentos.html","/resultados.html","/calendario.html","/filiados.html","/atletas.html","/treinadores.html","/recordes.html","/indices.html","/corrida.html","/arbitragem.html","/federacao.html");

// A FEDERAÇÃO
} else if (section == "A Federação") {
  MenuOn = "federacao";
  MenuSub=0;
  menus = new Array("Principal","Rankings","Regulamentos","Resultados","Calendário","Filiados","Atletas Registrados","Treinadores","Recordes","Índices","Corrida de Rua","Arbitragem","A Federação");
  links = new Array("/index.html","/rankings.html","/regulamentos.html","/resultados.html","/calendario.html","/filiados.html","/atletas.html","/treinadores.html","/recordes.html","/indices.html","/corrida.html","/arbitragem.html","/federacao.html");

}



var i;

var j;
var MenuSub;
var MenuArc;
var menus;


function golink(url){
	//alert(''+url+'');
	location.href= url;
}



var isNav = (navigator.appName.indexOf("Netscape")!=-1);		// Is Netscape running
var navVar = (navigator.appVersion.indexOf("4.")!=-1);			// If version 4 running


if (isNav&&navVar){
//&&(section!="Principal")
document.write('<table width="121" border="0" cellspacing="0" cellpadding="0">');
document.write('  <tr bgcolor="#003366">');
document.write('<td colspan="2"><img src="/imagens/arrow.gif" width="10" height="1"></td>');
document.write('</tr><tr>');
document.write('    <td width="117"  bgcolor="#437CB0" class="tail_white9pxbold">&nbsp;&nbsp;<a href='+path+'/  class="tail_white9pxbold">Home</a></td>');
document.write('    <td width="4"><img name="HotelImage" border="0" src="/imagens/arrow.gif" width="13" height="19"></td>');
document.write('  </tr>');
document.write('<tr><td colspan="2" bgcolor="#003366"><img src="/imagens/arrow.gif" width="10" height="1"></td></tr>');
document.write('<tr bgcolor="#003366">');
document.write('    <td bgcolor="#437CB0" >&nbsp;&nbsp;<a href="'+path+'/rankings.html" class="tail_white9pxbold" onMouseOver="imgswap(\'Rankings\')" onMouseOut="restore();">Rankings</a></td>');
document.write('<td><img name="HotelImage" border="0" src="/imagens/arrow.gif" width="13" height="19"></td>');
document.write('</tr><tr><td colspan="2" bgcolor="#003366"><img src="/imagens/arrow.gif" width="10" height="1"></td></tr>');
document.write('<tr bgcolor="#003366">');
document.write('    <td bgcolor="#437CB0" >&nbsp;&nbsp;<a href="'+path+'/regulamentos.html" class="tail_white9pxbold" onMouseOver="imgswap(\'Regulamentos\')" onMouseOut="restore();">Regulamentos</a></td>');
document.write('<td><img name="HotelImage" border="0" src="/imagens/arrow.gif" width="13" height="19"></td>');
document.write('</tr><tr><td colspan="2" bgcolor="#003366"><img src="/imagens/arrow.gif" width="10" height="1"></td></tr>');
document.write('<tr bgcolor="#003366">');
document.write('    <td bgcolor="#437CB0" >&nbsp;&nbsp;<a href="'+path+'/resultados.html" class="tail_white9pxbold" onMouseOver="imgswap(\'Resultados\')" onMouseOut="restore();">Resultados ');
document.write('      Office</a></td>');
document.write('<td><img name="Theatre" border="0" src="/imagens/arrow.gif" width="13" height="19"></td>');
document.write('</tr><tr><td colspan="2" bgcolor="#003366"><img src="/imagens/arrow.gif" width="10" height="1"></td></tr>');
document.write('<tr bgcolor="#003366">');
document.write('    <td bgcolor="#437CB0" >&nbsp;&nbsp;<a href="'+path+'/calendario.html" class="tail_white9pxbold" onMouseOver="imgswap(\'Calendário\')" onMouseOut="restore();">Calendário</a></td>');
document.write('<td><img name="Event" border="0" src="/imagens/arrow.gif" width="13" height="19"></td>');
document.write('</tr><tr><td colspan="2" bgcolor="#003366"><img src="/imagens/arrow.gif" width="10" height="1"></td></tr>');
document.write('<tr bgcolor="#003366">');
document.write('    <td bgcolor="#437CB0" >&nbsp;&nbsp;<a href="'+path+'/filiados.html" class="tail_white9pxbold" onMouseOver="imgswap(\'Filiados\')" onMouseOut="restore();">Filiados</a></td>');
document.write('<td><img name="Directory" border="0" src="/imagens/arrow.gif" width="13" height="19"></td>');
document.write('</tr><tr><td colspan="2" bgcolor="#003366"><img src="/imagens/arrow.gif" width="10" height="1"></td></tr>');
document.write('<tr bgcolor="#003366">');
document.write('    <td bgcolor="#437CB0" >&nbsp;&nbsp;<a href="'+path+'/atletas.html" class="tail_white9pxbold" onMouseOver="imgswap(\'Atletas\')" onMouseOut="restore();">Atletas</a></td>');
document.write('<td><img name="Map" border="0" src="/imagens/arrow.gif" width="13" height="19"></td>');
document.write('</tr><tr><td colspan="2" bgcolor="#003366"><img src="/imagens/arrow.gif" width="10" height="1"></td></tr>');
document.write('<tr bgcolor="#003366">');
document.write('    <td bgcolor="#437CB0" >&nbsp;&nbsp;<a href="'+path+'/treinadores.html" class="tail_white9pxbold" onMouseOver="imgswap(\'Treinadores\')" onMouseOut="restore();">Treinadores</a></td>');
document.write('<td><img name="Map" border="0" src="/imagens/arrow.gif" width="13" height="19"></td>');
document.write('</tr><tr><td colspan="2" bgcolor="#003366"><img src="/imagens/arrow.gif" width="10" height="1"></td></tr>');
document.write('<tr bgcolor="#003366">');
document.write('    <td bgcolor="#437CB0" >&nbsp;&nbsp;<a href="'+path+'/recordes.html" class="tail_white9pxbold" onMouseOver="imgswap(\'Recordes\')" onMouseOut="restore();">Recordes</a></td>');
document.write('<td><img name="Postcard" border="0" src="/imagens/arrow.gif" width="13" height="19"></td>');
document.write('</tr><tr><td colspan="2" bgcolor="#003366"><img src="/imagens/arrow.gif" width="10" height="1"></td></tr>');
document.write('<tr bgcolor="#003366">');
document.write('    <td bgcolor="#437CB0" >&nbsp;&nbsp;<a href="'+path+'/indices.html" class="tail_white9pxbold" onMouseOver="imgswap(\'Índices\')" onMouseOut="restore();">Índices</a></td>');
document.write('<td><img name="Giftshop" border="0" src="/imagens/arrow.gif" width="13" height="19"></td>');
document.write('</tr><tr><td colspan="2" bgcolor="#003366"><img src="/imagens/arrow.gif" width="10" height="1"></td></tr>');
document.write('<tr bgcolor="#003366">');
document.write('    <td bgcolor="#437CB0" >&nbsp;&nbsp;<a href="'+path+'/corrida.html" class="tail_white9pxbold" onMouseOver="imgswap(\'Corrida\')" onMouseOut="restore();">Corrida</a></td>');
document.write('<td><img name="Contact" border="0" src="/imagens/arrow.gif" width="13" height="19"></td>');
document.write('</tr><tr><td colspan="2" bgcolor="#003366"><img src="/imagens/arrow.gif" width="10" height="1"></td></tr>');
document.write('<tr bgcolor="#003366">');
document.write('    <td bgcolor="#437CB0" >&nbsp;&nbsp;<a href="'+path+'/arbitragem.html" class="tail_white9pxbold" onMouseOver="imgswap(\'Arbitragem\')" onMouseOut="restore();">Arbitragem</a></td>');
document.write('<td><img name="Giftshop" border="0" src="/imagens/arrow.gif" width="13" height="19"></td>');
document.write('</tr><tr><td colspan="2" bgcolor="#003366"><img src="/imagens/arrow.gif" width="10" height="1"></td></tr>');
document.write('<tr bgcolor="#003366">');
document.write('    <td bgcolor="#437CB0" >&nbsp;&nbsp;<a href="'+path+'/federacao.html" class="tail_white9pxbold" onMouseOver="imgswap(\'A Federação\')" onMouseOut="restore();">A Federação</a></td>');
document.write('<td><img name="Giftshop" border="0" src="/imagens/arrow.gif" width="13" height="19"></td>');
document.write('</tr><tr><td colspan="2" bgcolor="#003366"><img src="/imagens/arrow.gif" width="10" height="1"></td></tr>');
document.write('<tr bgcolor="#003366">');
document.write('</table>');


} else {

document.write('<table width="121" border="0" cellspacing="0" cellpadding="0">');



for (i=0;i<=menus.length-1;i++){
//	if (menus[i] != "Ver o que aparece"){
		if (menus[i] == MenuOn){
			document.writeln('<tr bgcolor="#003366"><td colspan="2"><img src="/imagens/arrow.gif" width="10" height="1"></td></tr><tr><td width="117" onMouseDown="golink(\''+path+links[i]+'\');"  bgcolor=#18558A class="tail_white9pxbold"style="cursor:hand">&nbsp;&nbsp;<a href='+path+links[i]+'  class="tail_white9pxbold">'+menus[i]+'</a></td><td width="4"><img src="/imagens/arrow.gif" width="13" height="19"></td></tr>');
			if (MenuSub==1){
				for (j=0;j<=MenuArc.length-1;j++){
					document.writeln('<tr><td colspan="2" bgcolor="#003366"><img src="/imagens/arrow.gif" width="120" height="1"></td></tr><tr><td bgcolor="#98BDE0" style="cursor:hand" onMouseDown="golink(\''+path+MenuLnk[j]+'\');" ><a class="tail_blue9pxbold" href="'+path+MenuLnk[j]+'">&nbsp;&nbsp;'+MenuArc[j]+'</a></td><td width="4"><img src="/imagens/arrow.gif" width="13" height="19"></td></tr>');
				}
			}

		} else {
			document.write('<tr><td colspan="2" bgcolor="#003366"><img src="/imagens/arrow.gif" width="10" height="1"></td></tr><tr bgcolor="#003366"><td bgcolor="#437CB0" style="cursor:hand" onMouseDown="golink(\''+path+links[i]+'\');"  onMouseOver="col_change(this,\''+menus[i]+'\');" onMouseOut="col_back(this);">&nbsp;&nbsp;<a href='+path+links[i]+' class="tail_white9pxbold" onMouseOver="imgswap(\''+menus[i]+'\')"onMouseOut="restore();">'+menus[i]+'</a></td><td><img name="'+menus[i]+'" border="0" src="/imagens/arrow.gif" width="13" height="19"></td></tr>');

		}
//	}

}

document.write('<tr><td colspan=2 bgcolor=#003366><img src=/imagens/arrow.gif width=10 height=1></td></tr></table>');

}



