//##############################################################################################
//#                               Observação IMPORTANTE:                                       #  
//##############################################################################################

//Para customizar o menu INTRANET/INTERNET
var bInternet = 0
bInternet = document.forms[0].bInternet.value;

//Para customizar o menu CANAL VIP
var bCanalVip = 0
bCanalVip = document.forms[0].bCanalVip.value;
//var bFdoExc = "b"
//bFdoExc = document.forms[0].bFdoExc.value; 
 
var thisbrowserMenuP
var hidetimerMenuP = null;
if(document.layers){ thisbrowserMenuP='NN4'; }
if(document.all){ thisbrowserMenuP='IE'; }
if(!document.all && document.getElementById){ thisbrowserMenuP='NN6'; }
function showmenuMenuP(menuname)
{
if(thisbrowserMenuP=='NN4') document.layers[menuname].visibility = 'visible';
if(thisbrowserMenuP=='IE') document.all[menuname].style.visibility = 'visible';
if(thisbrowserMenuP=='NN6') document.getElementById(menuname).style.visibility = 'visible';
}
function hidemenuMenuP(menuname)
{
if(thisbrowserMenuP=='NN4') document.layers[menuname].visibility = 'hidden';
if(thisbrowserMenuP=='IE') document.all[menuname].style.visibility = 'hidden';
if(thisbrowserMenuP=='NN6') document.getElementById(menuname).style.visibility = 'hidden';
}
function hiliteMenuP(menuitem) 
{
if(thisbrowserMenuP=='IE') document.all[menuitem].style.backgroundColor = '#2A4929';
if(thisbrowserMenuP=='NN6') document.getElementById(menuitem).style. backgroundColor = '#2A4929';
if(hidetimerMenuP) clearTimeout(hidetimerMenuP);}
function unhiliteMenuP(menuitem) 
{
if(thisbrowserMenuP=='IE') document.all[menuitem].style.backgroundColor = '#FFFFFF';
if(thisbrowserMenuP=='NN6') document.getElementById(menuitem).style. backgroundColor = '#FFFFFF';
if(hidetimerMenuP) clearTimeout(hidetimerMenuP);hidetimerMenuP = setTimeout("hideallMenuP();",1000);}
function hideallMenuP()
{
hidemenuMenuP('SMempresa');
hidemenuMenuP('SMfundos');
hidemenuMenuP('SMpublicacoes');
hidemenuMenuP('SMclientes');
}
function openSMempresa()
{
showmenuMenuP('SMempresa');
hidemenuMenuP('SMfundos');
hidemenuMenuP('SMpublicacoes');
hidemenuMenuP('SMclientes');
}
function openSMfundos()
{
showmenuMenuP('SMfundos');
hidemenuMenuP('SMempresa');
hidemenuMenuP('SMpublicacoes');
hidemenuMenuP('SMclientes');
}
function openSMpublicacoes()
{
showmenuMenuP('SMpublicacoes');
hidemenuMenuP('SMfundos');
hidemenuMenuP('SMempresa');
hidemenuMenuP('SMclientes');
}
function openSMclientes()
{
showmenuMenuP('SMclientes');
hidemenuMenuP('SMfundos');
hidemenuMenuP('SMpublicacoes');
hidemenuMenuP('SMempresa');
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
// link para Performance
function pfun()
{
//pfun = myChromeless.openChromeless('fundos/Perf_Set.aspx','800','400');
MM_openBrWindow('fundos/Rentabilidade.aspx','','scrollbars=yes,width=800,height=420,top=100,left=0')
}
// link para Cotas
function qfun()
{
//qfun = myChromeless.openChromeless('fundos/quot_set.aspx','800','400');
MM_openBrWindow('fundos/quot_set.aspx','','scrollbars=yes,width=800,height=420,top=100,left=0')
}
// link para Saldo e Extrato
//function sfun()
//{
//sfun = myChromeless.openChromeless('clientes/login_redirect.aspx','800','400');
//MM_openBrWindow('clientes/login_redirect.aspx','','scrollbars=yes,width=800,height=420,top=100,left=0')
//}
// link para Movimentações
function mfun()
{
//mfun = myChromeless.openChromeless('clientes/Mov_Set.aspx','800','400');
MM_openBrWindow('clientes/Mov_Set.aspx','','scrollbars=yes,width=800,height=420,top=100,left=0')
}
document.open();
document.write('<STYLE TYPE="text/css">#DIVMenuP {POSITION:relative; LEFT:0px; TOP:0px; width:0px; height:0px;}</STYLE>');
document.write('<STYLE TYPE="text/css">a.MNAMenuP {text-decoration:none; color:#FFFFFF; font-weight: 10; font-family: Verdana; font-size:12px; font-style:normal;}</STYLE>');
document.write('<STYLE TYPE="text/css">P.MNMenuP {color:#FFFFFF; font-weight: 10; font-family: Verdana; font-size:12px; font-style:normal;}</STYLE>');
document.write('<STYLE TYPE="text/css">a.MNAMenuP:hover {text-decoration:none; color:#FFFFFF; }</STYLE>');
document.write('<STYLE TYPE="text/css">P.SMNMenuP {text-decoration:none; color:#233A14; font-weight: 10; font-family: Verdana; font-size:12px; font-style:normal;}</STYLE>');
document.write('<STYLE TYPE="text/css">table.SMTMenuP {background:#FFFFFF; border:0;}');
document.write('td.MTDMenuP {padding-left:0; padding-right:0; background:#FFFFFF; border:0 }');
document.write('.MTIMenuP {color:#FFFFFF; font-weight: 10; font-family: Verdana; font-size: 12px; font-style:normal;}');
document.write('.MSIMenuP {color:#233A14; font-weight: 10; font-family: Verdana; font-size: 12px; font-style:normal;}</STYLE>');
document.write('<div id=DIVMenuP  style="z-index: 0">');
document.write('<table border=0 cellspacing=0 cellpadding=0>');
document.write('<tr>');
document.write('<td align=LEFT valign=top width=118>');
// SUB MENU EMPRESA
document.write('<STYLE TYPE="text/css">#SMempresa {POSITION:relative; visibility:hidden; LEFT:0px; TOP:5px; z-index: 2;}</STYLE>');
document.write('<div id=SMempresa>');
document.write('<table border="0" cellspacing="0" cellpadding="0">');
document.write('<tr><td background="img/bg_tab_pix.gif" rowspan="13" width="1"><img src="img/pix.gif" width="1" height="1"></td><td height="1"><img src="img/bg_tab_pix.gif" width="2" height="1"></td></tr>');
document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="empresa/Empresa_Historico.aspx" class="link">Hist&oacute;rico</a></td></tr>');
document.write('<tr><td background="img/bg_tab_menu.gif"><img src="img/pix.gif" width="1" height="1"></td></tr>');
document.write('<tr><td height="17" nowrap><img src="img/pix.gif" width="5" height="10"><a href="empresa/Filosofia.aspx" class="link">Filosofia de Atua&ccedil;&atilde;o</a></td></tr>');
document.write('<tr><td background="img/bg_tab_menu.gif"><img src="img/pix.gif" width="1" height="1"></td></tr>');
document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="empresa/Controle_de_Risco.aspx" class="link">Controle de Risco</a></td></tr>');
document.write('<tr><td background="img/bg_tab_menu.gif"><img src="img/pix.gif" width="1" height="1"></td></tr>');
// document.write('<tr><td height="17" class="link3"><img src="img/pix.gif" width="5" height="10">Pr&ecirc;mios</td></tr>');
// document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="empresa/Premios.aspx" class="link">Pr&ecirc;mios</a></td></tr>');
// document.write('<tr><td background="img/bg_tab_menu.gif"><img src="img/pix.gif" width="1" height="1"></td></tr>');
// document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="empresa/Capacitacao.aspx" class="link">Capacita&ccedil;&atilde;o</a></td></tr>');
// document.write('<tr><td background="img/bg_tab_menu.gif"><img src="img/pix.gif" width="1" height="1"></td></tr>');
// document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="empresa/Private_Bank.aspx" class="link">Private Banking</a></td></tr>');
// document.write('<tr><td background="img/bg_tab_menu.gif"><img src="img/pix.gif" width="1" height="1"></td></tr>');
document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="empresa/Fale_Conosco.aspx" class="link">Fale Conosco</a></td></tr>');
document.write('<tr><td height="1"><img src="img/bg_tab_pix.gif" width="2" height="1"></td></tr>');
document.write('</table>');
document.write('</div>');
// FIM SUB MENU EMPRESA
document.write('</td>');
document.write('<td align=LEFT valign=top width=106>');
// SUB MENU FUNDOS
document.write('<STYLE TYPE="text/css">#SMfundos{POSITION:relative; visibility:hidden; LEFT:0px; TOP:5px; z-index: 2;}</STYLE>');
document.write('<div id=SMfundos>');
document.write('<table border="0" cellspacing="0" cellpadding="0">');
document.write('<tr><td background="img/bg_tab_pix.gif" rowspan="15" width="1"><img src="img/pix.gif" width="1" height="1"></td><td height="1"><img src="img/bg_tab_pix.gif" width="2" height="1"></td></tr>');
document.write('<tr><td height="17" nowrap><img src="img/pix.gif" width="5" height="3"><a href="fundos/Nossos_fundos.aspx?p=2" class="link">Nossos Fundos</a></td></tr>');
document.write('<tr><td background="img/bg_tab_menu.gif"><img src="img/pix.gif" width="1" height="1"></td></tr>');
document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="fundos/Como_Investir.aspx" class="link">Como Investir</a></td></tr>');
document.write('<tr><td background="img/bg_tab_menu.gif"><img src="img/pix.gif" width="1" height="1"></td></tr>');
document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="fundos/Rentabilidade.aspx" class="link">Rentabilidades</a></td></tr>');
document.write('<tr><td background="img/bg_tab_menu.gif"><img src="img/pix.gif" width="1" height="1"></td></tr>');
document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="fundos/Cotas.aspx" class="link">Cotas</a></td></tr>');
document.write('<tr><td background="img/bg_tab_menu.gif"><img src="img/pix.gif" width="1" height="1"></td></tr>');
if (bInternet == '-1') 
  {document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="fundos/Simulacoes.aspx" class="link">Simula&ccedil;&otilde;es</a></td></tr>');} //https://www.opportunity.com.br/
else
  {document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="fundos/Simulacoes.aspx" class="link">Simula&ccedil;&otilde;es</a></td></tr>');}	
document.write('<tr><td height="1"><img src="img/bg_tab_pix.gif" width="2" height="1"></td></tr>');
document.write('</table>');
document.write('</div>');
// FIM SUB MENU FUNDOS
document.write('</td>');
document.write('<td align=LEFT valign=top width="132">');
// SUB MENU PUBLICAÇÕES
document.write('<STYLE TYPE="text/css">#SMpublicacoes {POSITION:relative; visibility:hidden; LEFT:0px; TOP:5px; z-index: 2;}</STYLE>');
document.write('<div id=SMpublicacoes>');
document.write('<table border="0" cellspacing="0" cellpadding="0">');
document.write('<tr><td background="img/bg_tab_pix.gif" rowspan="13" width="1"><img src="img/pix.gif" width="1" height="1"></td><td height="1"><img src="img/bg_tab_pix.gif" width="2" height="1"></td></tr>');
document.write('<tr><td height="17" nowrap><img src="img/pix.gif" width="5" height="3"><a href="publicacoes/Analise_Macroeconomica.aspx?p=2" class="link">An&aacute;lise Macroec</a></td></tr>');
document.write('<tr><td background="img/bg_tab_menu.gif"><img src="img/pix.gif" width="1" height="1"></td></tr>');
document.write('<tr><td height="17" nowrap><img src="img/pix.gif" width="5" height="3"><a href="publicacoes/Agenda.aspx" class="link">Agenda</a></td></tr>');
document.write('<tr><td background="img/bg_tab_menu.gif"><img src="img/pix.gif" width="1" height="1"></td></tr>');
document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="publicacoes/Na_Midia.aspx" class="link">Na M&iacute;dia</a></td></tr>');
document.write('<tr><td background="img/bg_tab_menu.gif"><img src="img/pix.gif" width="1" height="1"></td></tr>');
document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="publicacoes/Impressos.aspx" class="link">Impressos</a></td></tr>');
document.write('<tr><td background="img/bg_tab_menu.gif"><img src="img/pix.gif" width="1" height="1"></td></tr>');
document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="publicacoes/Informativo.aspx" class="link">Informativos</a></td></tr>');

// document.write('<tr><td background="img/bg_tab_menu.gif"><img src="img/pix.gif" width="1" height="1"></td></tr>');
// document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="publicacoes/palestras.aspx" class="link">Palestras</a></td></tr>');

document.write('<tr><td height="1"><img src="img/bg_tab_pix.gif" width="2" height="1"></td></tr>');
document.write('</table>');
document.write('</div>');
// FIM SUB MENU PUBLICAÇÕES
document.write('</td>');
document.write('<td align=LEFT valign=top width="127">');
// SUB MENU CLIENTES
document.write('<STYLE TYPE="text/css">#SMclientes {POSITION:relative; visibility:hidden; LEFT:0px; TOP:5px; z-index: 2;}</STYLE>');
document.write('<div id=SMclientes>');
document.write('<table border="0" cellspacing="0" cellpadding="0">');
document.write('<tr><td background="img/bg_tab_pix.gif" rowspan="15" width="1"><img src="img/pix.gif" width="1" height="1"></td><td height="1"><img src="img/bg_tab_pix.gif" width="2" height="1"></td></tr>');
if (bInternet == '-1') 
  {document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="https://www.opportunity.com.br/clientes/busca.aspx?Sis=NAC" class="link">Saldo e Extrato</a></td></tr>');}
else
  {document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="clientes/busca.aspx?Sis=NAC" class="link">Saldo e Extrato</a></td></tr>');}
document.write('<tr><td background="img/bg_tab_menu.gif"><img src="img/pix.gif" width="1" height="1"></td></tr>');  
  if (bInternet == '-1') 
  {document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="https://www.opportunity.com.br/clientes/Informe_Rendimento.aspx?Sis=NAC" class="link">Inf. de Rendimentos</a></td></tr>');}
else
  {document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="clientes/Informe_Rendimento.aspx?Sis=NAC" class="link">Inf. de Rendimentos</a></td></tr>');}  
document.write('<tr><td background="img/bg_tab_menu.gif"><img src="img/pix.gif" width="1" height="1"></td></tr>');
if (bCanalVip == '0') 
{
//	document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="https://www.opportunity.com.br/clientes/Extrato_Fundo_Terceiro.aspx" class="link">NRX</a></td></tr>');  
//	document.write('<tr><td background="img/bg_tab_menu.gif"><img src="img/pix.gif" width="1" height="1"></td></tr>');
}
//if (bFdoExc == 'b') 
//{
//	document.write('<tr><td height="1"><img src="img/bg_tab_pix.gif" width="2" height="1"></td></tr>');
//}
//else
//{
//	document.write('<tr><td background="img/bg_tab_menu.gif"><img src="img/pix.gif" width="1" height="1"></td></tr>');
//	document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="clientes/Extrato_Fundo_Terceiro.aspx" class="link">'); document.write(bFdoExc); document.write('</a></td></tr>');  
//}

//Informacoes aso Cotistas (New!!)
document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="https://www.opportunity.com.br/clientes/Informe_Cotista.aspx" class="link">Infos aos Cotistas</a></td></tr>');
document.write('<tr><td background="img/bg_tab_menu.gif"><img src="img/pix.gif" width="1" height="1"></td></tr>');
if (bInternet == '-1') 
  {document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="https://www.opportunity.com.br/clientes/Adesao_Online.aspx" class="link">Ades&atilde;o Online</a></td></tr>');}
else
  {document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="clientes/Adesao_Online.aspx" class="link">Ades&atilde;o Online</a></td></tr>');}  
document.write('<tr><td background="img/bg_tab_menu.gif"><img src="img/pix.gif" width="1" height="1"></td></tr>');
if (bInternet == '-1') 
  {document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="https://www.opportunity.com.br/clientes/Alteracao_Cadastral.aspx" class="link">Altera&ccedil;&atilde;o Cadastral</a></td></tr>');}
else
  {document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="clientes/Alteracao_Cadastral.aspx" class="link">Altera&ccedil;&atilde;o Cadastral</a></td></tr>');}  
document.write('<tr><td background="img/bg_tab_menu.gif"><img src="img/pix.gif" width="1" height="1"></td></tr>');
document.write('<tr><td height="17" nowrap><img src="img/pix.gif" width="5" height="3"><a href="https://www.opportunity.com.br/clientes/Publicacao_Exclusiva.aspx" class="link">Public. Exclusivas</a></td></tr>');
document.write('<tr><td height="1"><img src="img/bg_tab_pix.gif" width="2" height="1"></td></tr>');
//document.write('<tr><td height="17"><img src="img/pix.gif" width="5" height="10"><a href="https://www.opportunity.com.br/clientes/Troca_Senha.aspx" class="link">Troca de senha</a></td></tr>');
//document.write('<tr><td background="img/bg_tab_menu.gif"><img src="img/pix.gif" width="1" height="1"></td></tr>');
document.write('</table>');
document.write('</div>');
// FIM SUB MENU CLIENTES
document.write('</td>');
document.write('</tr>');
document.write('</table></div>');
document.close();
