// configurações da barra //
var NumBar = 21;
var ColorBar1 = '#969698'; // cor clara
var ColorBar2 = '#666666'; // cor escura

// função para a busca //
function RaD()
{
Rq=escape(document.radar.q.value);
Rf="";
if(Rq=="") { alert("Você precisa digitar uma palavra para fazer a busca."); }
else
	{
	R1="http://radaruol.uol.com.br/";
	Ra=new Array("uol/index.html?q="+Rq,"br/index.html?q="+Rq,"www/index.html?q="+Rq);
	Ra[3]=Ra[0]+"&id=15"; // trocar pelo id da estação
	R2=document.radar.l[document.radar.l.selectedIndex].value;
	Rf=R1+Ra[R2];
	raD=window.open(Rf,"_blank");
	}
}

// função para os banners
DEcfg ="site=uolbr&chan=diversao&subchan=outros";
var DEpopcfg ="POPdive";
Expble = 1;
function DEshow(ad,pos)
        {
        DErand=Math.floor(1000000*Math.random()); 
        DEconn=dC.body; 
        DEconn.style.behavior='url(#default#clientCaps)'; 
        DEconn=(DEconn.connectionType=='lan')?1:0;
        dC.write('<SCR'+'IPT LANGUAGE="JavaScript1.1" SRC="http://de.uol.com.br/js.ng/'+DEcfg+'&size='+ad+'&page='+pos+'&conntype='+DEconn+'&expble='+Expble+'&ord='+DErand+'?"></SCR'+'IPT>');
        }

// função que deixa as columas (esquerda, centro, direita) com a mesma altura //
function resizeCols()
{
if(dC.getElementById) dC.getElementById('td1').style.height = dC.getElementById('td2').style.height = dC.getElementById('td3').style.height = dC.getElementById('tablebottom').offsetTop - dC.getElementById('tabletop').offsetTop;
}

function openPopup(url,w,h){
	window.open(url,'indiceP','width='+w+',height='+h);
}

var removebotaotimer;
function removebotao() {
	if (location.href.indexOf('busca_uol_pg.cgi')!=-1) {
		if (document.getElementById('menu') && document.getElementById('menu').getElementsByTagName('a').length == 3) {
			clearTimeout(removebotaotimer);
      document.getElementById('menu').getElementsByTagName('a')[2].href="http://click.uol.com.br/?rf=IndiceUOLh&u=http://indice.uol.com.br/completo.jhtm";
      document.getElementById('menu').getElementsByTagName('a')[2].innerHTML="ÍNDICE COMPLETO";
			//document.getElementById('menu').getElementsByTagName('a')[2].style.display='none';
		} else {
				removebotaotimer = setTimeout(function(){removebotao();},50);
			}
	}
}
removebotao();
