//<!--Abertura de Popup Genérico-->
/******************************************************************************************
/ Objetivo  : Define propriedade e valor da mesma de acordo com os valores passados pelo usuário
/ Premissas : 
/ Entradas  : objObjeto - Referência ao objeto que terá o valor da propriedade especificada alterada
/ 			: strId - Id do objeto
/ 			: strPropriedade - Propriedade a ser alterada
/ 			: strValorPropriedade - Valor a ser atribuido a propriedade
/ Retorno   : Nenhum
/******************************************************************************************/
//*****************************************************************************
// DECLARAÇÃO DAS VARIÁVEIS
//*****************************************************************************
	var strId;				// id do objeto
	var objEl;				// Objeto selecionado
	var strItemMenu; 		// Composição do id do objeto
	var strAux; 			// Composição do id do objeto
	var intMax; 			// Numero de subitens de menu
	var intInd;				// Variavel usada no laço for
	var strId;				// id do objeto
	var objEl;				// Objeto selecionado
	
function DefineValorPropriedade(objObjeto, strId, strPropriedade, strValorPropriedade)
{
	var intCont = new Number(0); // Variável utilizada no laço for
	
	for (intCont == 0; intCont < objObjeto.length; intCont++)
	{
		if (objObjeto[intCont].id.indexOf(strId) != -1)
		{
			alert('Ok!')
			eval('objObjeto[' + intCont + '].' + strPropriedade + '=' + strValorPropriedade);
			break;
		}
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//<!--Expande as FAQS-->
function checkExpand(intCatalogo,objNome) 
{ 
	// Objeto selecionado
	ComprimeMenu(intCatalogo); 

		strId = objNome + "Sub";
		objEl = document.getElementById(strId);
			
		if (null!=objEl) objEl.style.display = "none" == objEl.style.display ? "" : "none" 
			return (false);
}
function ComprimeMenu(intCatalogo) 
{ 
        strItemMenu = ""; 
        strAux = "I"; 
        intMax = intCatalogo; 
        intInd; 
	        
        for(intInd=1;intInd<=intMax;intInd++) 
        { 
                strItemMenu = "C" + strAux + "Sub"; 
                document.getElementById(strItemMenu).style.display = "none"; 
                strAux = strAux + "I"; 
	                
        } 
}

//<!--Randomiza banner na área de gráficos da home BOVESPA-->

	function RandomImg(arrLinks)
	{
		var i = Math.round(Math.random() * (arrLinks.length - 1));
		
		document.write(arrLinks[i])
	}


	
//<!--Menu de índices área de gráficos Home BOVESPA-->

	var browser_ok=false;
		
	if (navigator.appVersion.substring(0,1) >= 3) 
		{
		browser_ok=true;
		}
	else
		{
		browser_ok=false;
		}
	
	function MostraIndice(layertoshow)
	{
		if(document.layers) //Netscape, javascript
	    {
		    for(i=0;i<document.layers.length;i++)
		    { 
			   //document.layers[i].visibility="hide";
			   document.ibovlayer.visibility="hide";
			   document.ibxxlayer.visibility="hide";
			   document.ibxllayer.visibility="hide";
			   document.mainlayer.visibility="hide";
			}
		    document.layers[layertoshow].visibility="show";
	    }
		else if(document.all) //Microsoft 
	    {
		    ibovlayer.style.visibility="hidden";
		    ibxxlayer.style.visibility="hidden";
		    ibxllayer.style.visibility="hidden";
		    mainlayer.style.visibility="hidden";
		    
		    var attvisa=eval(layertoshow);
	
			attvisa.style.visibility="visible";
	    }
	}



	// Descricao.: Abre uma janela para a página de consulta de código de negociação
	  function Consulta(Pagina,Tipo,Pesquisa)
	  { window.open(Pagina+'?Tipo='+Tipo+'&Pesquisa='+Pesquisa,'Consulta','width=390,height=285,directories=0,toolbar=0,status=1,location=0,resizable=1,scrollbars=1');
	  };
	
	/* Descricao.: Abre uma janela para a página de cotação rápida
	  function CotacaoRapida(Pagina)
	  { var coll = window.document.frmPosGerUltimasCotacoes;
	    var codigo = coll.txtCodigo.value;
	    if( codigo != "")
	      window.open(Pagina + "?PaginaReferente=home_right.Asp&txtCodigo="+codigo,'CotacaoRapida','width=310,height=310,directories=0,toolbar=0,status=0,location=0,resizable=0,scrollbars=0')
	    else
	      alert ("Por favor entre com o código de negociação.");
	  };*/
	  
	
//<!--Abertura de Popups específicos-->


		function BovespaVai() 
		{window.open('/InstSites/bovespavaiatevoce/Index.asp','abrir','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,menubar=no,width=775,height=540,left=14,top=40');}
		
		function BovespaVaiIng() 
		{window.open('/InstSites/bovespavaiatevoce/IndexEV.asp','abrir','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,menubar=no,width=775,height=540,left=14,top=40');}

		function Revista() 
		{window.open('/revista/88/Investidores.shtml','revista','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,width=796,height=420,top=190,left=0');}

		function RevistaEntrevista() 
		{window.open('/revista/88/exclusivo.shtml','revista','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,width=796,height=420,top=190,left=0');}

		function BovespaVaiCBN() 
		{window.open('/bovespavaiatevoce/BoletimCBN.asp','boletimcbn','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,menubar=no,width=766,height=520,left=14,top=40');}

		function Educacional()
		{
			var h = (screen.height - 450) / 2;
			var w = (screen.width - 750) / 2;
			
			window.open('/InstSites/Educacional/Index1.asp','Educacional','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,menubar=no,width=750,height=450,top=' + h + ',left=' + w);
		}

		function Bobbio()
		{
			var h = (screen.height - 450) / 2;
			var w = (screen.width - 750) / 2;
			
			window.open('/InstSites/Educacional/index4.asp','Bobbio','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,menubar=no,width=750,height=450,top=' + h + ',left=' + w);
		}
		
		function SeminarioBobbio()
		{
			var h = (screen.height - 450) / 2;
			var w = (screen.width - 750) / 2;
			
			window.open('/InstSites/Educacional/index5.asp','Bobbio','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,menubar=no,width=750,height=450,top=' + h + ',left=' + w);
		}
		
		function BibliotecaPestana()
		{
			var h = (screen.height - 450) / 2;
			var w = (screen.width - 750) / 2;
			
			window.open('/InstSites/Educacional/index3.asp','Bobbio','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,menubar=no,width=750,height=450,top=' + h + ',left=' + w);
		}
		
		function Redacao()
		{
			var h = (screen.height - 450) / 2;
			var w = (screen.width - 750) / 2;
			
			window.open('/InstSites/ConcursoRedacao/ConcursoRedacaoIndex.asp','Redacao','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,menubar=no,width=750,height=450,top=' + h + ',left=' + w);
		}
		
		function Depoimentos()
		{
			var h = (screen.height - 500) / 2;
			var w = (screen.width - 650) / 2;
			
			window.open('/Investidor/HomeMulheres/DepoimentoBase.htm','Depoimentos','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,menubar=no,width=650,height=500,top=' + h + ',left=' + w);
		}
		
		function PalavraMulher()
		{
			var h = (screen.height - 500) / 2;
			var w = (screen.width - 650) / 2;
			
			window.open('/Investidor/HomeMulheres/PalavraBase.htm','Palavra','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,menubar=no,width=650,height=500,top=' + h + ',left=' + w);
		}
		
		function Fotos()
		{
			var h = (screen.height - 500) / 2;
			var w = (screen.width - 650) / 2;
			
			window.open('/Investidor/HomeMulheres/FotoBase.htm','Fotos','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,menubar=no,width=650,height=500,top=' + h + ',left=' + w);
		}
		
		function FotosGaleria4()
		{
			var h = (screen.height - 500) / 2;
			var w = (screen.width - 650) / 2;
			
			window.open('/Investidor/HomeMulheres/FotoBase4.htm','Fotos','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,menubar=no,width=650,height=500,top=' + h + ',left=' + w);
		}
		
		function Concurso()
		{
			var h = (screen.height - 450) / 2;
			var w = (screen.width - 750) / 2;
			
			window.open('/InstSites/Educacional/ConcursoIndex.asp','Concurso','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,menubar=no,width=750,height=450,top=' + h + ',left=' + w);
		}

		function BovespaPraia() 
		{
			var intH = (screen.height - 523) / 2;	 //Posicionamento do topo
			var intW = (screen.width - 756) / 2;	//Posicionamento da Esquerda
			window.open('/BovespaPraia/Entrada.asp','','width=756,height=523,top=' + intH + ',left=' + intW);
		}
		
		function AbreHot()
		{
			var intH = (screen.height - 550) / 2;	 //Posicionamento do topo
			var intW = (screen.width - 775) / 2;	//Posicionamento da Esquerda
			window.open('/InstSites/BovespaVaiPraia/Index.asp','','width=775,height=550,top=' + intH + ',left=' + intW);
		}

		function abrevale() 
		{
			var intH = (screen.height - 554) / 2;	 //Posicionamento do topo
			var intW = (screen.width - 764) / 2;	//Posicionamento da Esquerda
			window.open('/InstSites/BovespaVaiVale/vale.htm','','width=764,height=554,top=' + intH + ',left=' + intW);
		}
		
		function VaiPetrobras() 
		{
			var intH = (screen.height - 554) / 2;	 //Posicionamento do topo
			var intW = (screen.width - 764) / 2;	//Posicionamento da Esquerda
			window.open('/InstSites/BovespaVaiPetrobras/index.htm','','width=764,height=554,top=' + intH + ',left=' + intW);
		}
		
		function Mini() 
		{
			var intH = (screen.height - 500) / 2;	 //Posicionamento do topo
			var intW = (screen.width - 730) / 2;	//Posicionamento da Esquerda
			window.open('/InstSites\/MiniIbov\/index.htm','','width=730,height=500,top=' + intH + ',left=' + intW);
		}
		
		function WhereYouAre()
		{
			var h = (screen.height - 450) / 2;
			var w = (screen.width - 532) / 2;
			
			window.open('/Noticias/GaleriaWhereYouAre.asp','Photos','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,menubar=no,width=532,height=450,top=' + h + ',left=' + w);
		}

		function Entrevista()
		{
			var h = (screen.height - 500) / 2;
			var w = (screen.width - 650) / 2;
			
			window.open('/Investidor/HomeMulheres/Entrevista.htm','Entrevista','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,menubar=no,width=650,height=500,top=' + h + ',left=' + w);
		}
		
		function Palestras()
		{
			var h = (screen.height - 450) / 2;
			var w = (screen.width - 750) / 2;
			
			window.open('Reuniao_Fundos.asp','Fundos','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width=750,height=450,top=' + h + ',left=' + w);
		}
		
		function PerfilInvestidor() 
		{
			var h = (screen.height - 376) / 2;
			var w = (screen.width - 572) / 2;
			window.open('/Investidor/PerfilInvestidor/Inicio.htm','Perfil', 'width=572, height=376, top=' + h + ',left=' + w, 'resizable=no, scrollbars=no');
		}
		
		function ProgramaVisitas() 
		{
		window.open('http://www.bovespa.com.br/InstSites/educacional/index2.asp','Educacional','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,menubar=no,width=750, height=450,left=0,top=0');}
		
		function Demonstracao()
		{
			var h = (screen.height - 460) / 2;
			var w = (screen.width - 760) / 2;
			
			window.open('/Mercado/eBookBuilding/DemonstracaoBase.htm','ebookBuilding','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,menubar=no,width=760,height=460,top=' + h + ',left=' + w);
		}
		
		function PlantaoEmpresas()
		{
			var h = (screen.height - 550) / 2;
			var w = (screen.width - 750) / 2;
			
			window.open('/Agencia/Index1.asp?nomeagencia=BOVESPA Empresas&codagencia=18','plantao','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,menubar=no,width=750,height=550,top=' + h + ',left=' + w);
		}		

		function TrocaCorLinha(strId, strCor)
		{
			if (document.all)
			{
				document.all[strId].style.backgroundColor = strCor;
			}
			else
			{
				document.layers[strId].backgroundColor = strCor;
			}
		}


//<!--  Início Funções Macromedia -->

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 MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_swapImgRestore() {//v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}



/******************************************************************************************
/ Objetivo  : Abrir broser aceitando personalização o usuário
/ Premissas : 
/ Entradas  : strUrl - Url da página que será aberta
/ 			: strPopup - Identificação da da janela que será aberta
/ 			: intLargura - Largura da janela
/ 			: intAltura - Altura da janela
/ 			: intLocation - Exibir / Ocultar barra de endereços
/ 			: intMenubar - Exibir / Ocultar menu de opções
/ 			: intResizable - Exibir / Ocultar opção de redimensionamento
/ 			: intScrollbars - Exibir / Ocultar barras de rolagem
/ 			: intStatus - Exibir / Ocultar barra de status
/ 			: intTitlebar - Exibir / Ocultar barra de título
/ 			: intToolbar - Exibir / Ocultar barra de ferramentas
/ Retorno   : Nenhum
/******************************************************************************************/
function AbreUrl(strUrl, strPopup, intLargura, intAltura, intLocation, intMenubar, intResizable, intScrollbars, intStatus, intTitlebar, intToolbar)
{
	if(parseInt(intLargura) == 0){intLargura = screen.availWidth;};
	if(parseInt(intAltura) == 0){intAltura = screen.availHeight;};
	
	if(intLargura > 1 && intAltura > 1)
	{
		var intDistEsq = (screen.availWidth - intLargura) / 2;				//Distancia esquerda da janela aberta
		var intDistTop = (screen.availHeight - intAltura) / 2;				//Distancia direita da janela aberta
	}
	else
	{
		var intLargura = screen.availWidth - 10;								//Distancia esquerda da janela aberta
		var intAltura = screen.availHeight - 28;								//Distancia direita da janela aberta
		var intDistEsq = 0;													//Distancia esquerda da janela aberta
		var intDistTop = 0;													//Distancia direita da janela aberta
	}
	
	//window.open(strUrl,strPopup,'menubar=' + parseInt(intLocation) == 0 ? 'no':'yes' + ',menubar='  + parseInt(intMenubar) == 0 ? 'no':'yes' + ',resizable=' + parseInt(intResizable) == 0 ? 'no':'yes' + ',scrollbars=' + parseInt(intScrollbars) == 0 ? 'no':'yes' + ',status=' + parseInt(intStatus) == 0 ? 'no':'yes' + ',titlebar=' + parseInt(intTitlebar) == 0 ? 'no':'yes' + ',toolbar=' + parseInt(intToolbar) == 0 ? 'no':'yes' + ',width=' + intLargura + ',height=' + intAltura + ',top=' + intDistTop + ',left=' + intDistEsq);
	window.open(strUrl,strPopup,'menubar=' + (parseInt(intLocation) == 0 ? 'no':'yes') + ',menubar=' + (parseInt(intMenubar) == 0 ? 'no':'yes') + ',resizable=' + (parseInt(intResizable) == 0 ? 'no':'yes') + ',scrollbars=' + (parseInt(intScrollbars) == 0 ? 'no':'yes') + ',status=' + (parseInt(intStatus) == 0 ? 'no':'yes') + ',titlebar=' + (parseInt(intTitlebar) == 0 ? 'no':'yes') + ',toolbar=' + (parseInt(intToolbar) == 0 ? 'no':'yes') + ',width=' + intLargura + ',height=' + intAltura + ',top=' + intDistTop + ',left=' + intDistEsq);
}



/******************************************************************************************
/ Objetivo  : Impedir acesso pelo browser Netscape
/ Premissas : 
/ Entradas  : strUrl - Url da página que será aberta
/ 			: strPopup - Identificação da da janela que será aberta
/ Retorno   : Nenhum
/******************************************************************************************/
function VerificaConfigNavegador(strURL)
{
	    if(navigator.userAgent.indexOf("Mac") == -1 && navigator.userAgent.indexOf("MSIE") != -1 && document.all && document.getElementById)
		{
			AbreUrl(strURL, 'Palestras', 550, 182, 0, 0, 0, 0, 0, 0, 0);
		}
		else
		{
			alert('As configurações mínimas para exibir o vídeo são: PC com Internet Explorer 5.5 ou superior e Windows Media Player instalado');
	    }
	}
//----------------------------------------------------------------------------------------------
// Fim da verificação do browser 
//----------------------------------------------------------------------------------------------

/******************************************************************************************
/ Objetivo  : ampliar imagem da noticia
/ Premissas : 
/ Entradas  : 
/ 			: 
/ Retorno   : 
/******************************************************************************************/

	function Lupa(strURL,strNome,intLar,intAlt)
{
	intAlt = intAlt + 28;
	intLar = intLar + 20;

	var h = (screen.height - intAlt) / 2;
	var w = (screen.width - intLar) / 2;
	window.open(strURL,strNome,'resizable=no,scrollbars=no,width=' + intLar + ',height=' + intAlt + ',top=' + h + ',left=' + w);
}


//----------------------------------------------------------------------------------------------
// Fim ampliar imagem da notícia
//----------------------------------------------------------------------------------------------


/******************************************************************************************
/ Objetivo  : Verifica se o foco está no txtBusca e verifica se está vazio
/ Premissas : 
/ Entradas  : 
/ 			: 
/ Retorno   : 
/******************************************************************************************/
//*****************************************************************************
// DECLARAÇÃO DAS VARIÁVEIS
//*****************************************************************************
function verificarTermo()
	{
		if(document.getElementById('txtTermo').value=="")
		{
			alert('Digite uma palavra-chave.')
			document.frmBusca.txtTermo.focus();
			return(false);
		}
		document.frmBusca.submit();
	}
//----------------------------------------------------------------------------------------------
// Fim verifica se o foco está no txtBusca e verifica se está vazio
//----------------------------------------------------------------------------------------------



/******************************************************************************************
/ Objetivo  : Verifica se o foco está no txtBusca e verifica se está vazio
/ Premissas : 
/ Entradas  : 
/ 			: 
/ Retorno   : 
/******************************************************************************************/
//*****************************************************************************
// DECLARAÇÃO DAS VARIÁVEIS
//*****************************************************************************
function verifyWord()
	{
		if(document.getElementById('txtTermo').value=="")
		{
			alert('Type a key word.')
			document.frmBusca.txtTermo.focus();
			return(false);
		}
		document.frmBusca.submit();
	}
//----------------------------------------------------------------------------------------------
// Fim verifica se o foco está no txtBusca e verifica se está vazio
//----------------------------------------------------------------------------------------------



/******************************************************************************************
/ Objetivo  : Verifica se o foco está no txtBusca e habilita a tecla "Enter"
/ Premissas : 
/ Entradas  : 
/ 			: 
/ Retorno   : 
/******************************************************************************************/
//*****************************************************************************
// DECLARAÇÃO DAS VARIÁVEIS
//*****************************************************************************
function verificarEnter()
	{
		try
		{
			var keycode;
			if (window.event) keycode = window.event.keyCode;
			else keycode = event.which;

			alert(keycode)
			if(document.getElementById('txtTermo').value=="")
			{
				if(keycode == 13)		
					alert('Digite algo!!!!')
			}
		}
		catch(objEx)
		{
			alert(objEx.tostring())
			return !(keycode == 13);
		}
		document.frmBusca.submit();
	}
//----------------------------------------------------------------------------------------------
// Fim verifica se o foco está no txtBusca e habilita a tecla "Enter"
//----------------------------------------------------------------------------------------------


//============================================================================================
// objetivo........: Abre e Fecha do Menu 
// Premissas.......:
// Entradas........: intCatalogo quantidade de itens do menu
//				   : objNome nome do objeto 
// Retorno.........:
//============================================================================================	
function checkExpandSeta(intCatalogo,objNome) 
{ 
	
	strId = objNome + "Sub";
	objEl = document.getElementById(strId);
	
	if(document.getElementById(strId).style.display!='none')
	{
		document.getElementById(strId).style.display='none';
	}
	else
	{
		ComprimeMenuSeta(intCatalogo,objNome); 
		if (null!=objEl) objEl.style.display = "none" == objEl.style.display ? "" : "none" 
			return (false);
	}	
}
//============================================================================================
// objetivo........: Função comprime Menu
// Premissas.......:
// Entradas........:	intCatalogo
// Retorno.........:
//============================================================================================
function ComprimeMenuSeta(intCatalogo,objNome) 
{ 
        var strItemMenu = "";		// composiçao do nome do submenu
        var strAux = "I";			// Variavel auxiliar para incremento do submenu
        var intMax = intCatalogo;	// Numero de menu	
        var intInd;					// Variavel usada no laço for
		
		
		for(intInd=1;intInd<=intMax;intInd++) 
        { 
                strItemMenu = objNome.substring(0,1) + strAux + "Sub"; 
                document.getElementById(strItemMenu).style.display = "none"; 
				
                strAux = strAux + "I"; 
	            
        }
}

/******************************************************************************************
/ Objetivo  : Verifica se o foco está no txtBusca e habilita a tecla "Enter"
/ Premissas : 
/ Entradas  : 
/ 			: 
/ Retorno   : 
/******************************************************************************************/
//*****************************************************************************
// DECLARAÇÃO DAS VARIÁVEIS
//*****************************************************************************
function ExibeObjOculto(strIdObjeto)
{
	try
	{
		document.getElementById('spnBanner1').style.display = 'none';
		document.getElementById('spnBanner2').style.display = 'none';
		document.getElementById('spnBanner3').style.display = 'none';
		document.getElementById('spnBanner4').style.display = 'none';
		document.getElementById('spnBanner5').style.display = 'none';		
			
		if (strIdObjeto.indexOf('div') != -1){
			document.getElementById('divBannerPq1').style.display = 'block';
			document.getElementById('divBannerPq2').style.display = 'block';
			document.getElementById('divBannerPq3').style.display = 'block';
		}
		else{
			document.getElementById('divBannerPq1').style.display = 'none';
			document.getElementById('divBannerPq2').style.display = 'none';
			document.getElementById('divBannerPq3').style.display = 'none';

			document.getElementById(strIdObjeto).style.display = 'block';
		}
	}
	catch(objEx)
	{
		alert(objEx.toString())
	}
}

/******************************************************************************************
/ Objetivo  : PopUp Palestras Net e outro Browsers
/ Premissas : 
/ Entradas  : 
/ 			: 
/ Retorno   : 
/******************************************************************************************/
//*****************************************************************************
// DECLARAÇÃO DAS VARIÁVEIS
//*****************************************************************************
function PalestrasPop(strURL)
{
	   
			AbreUrl(strURL, 'Palestras', 550, 182, 0, 0, 0, 0, 0, 0, 0);		
}

