// escreve o .css correspondente ao browser //
writeCSS('/');

// configurações da barra //
var NumBar = 11;
var ColorBar1 = '#C00E7D'; // cor clara
var ColorBar2 = '#69005E'; // 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=divearte&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;
}

// função para abrir canais da radio uol
function abrecanal(canal) {

	Loc = canal;
	velho = Loc.indexOf("&");
	
	if (velho < 1) {
		radio = Loc.substring (Loc.indexOf ("canal=")+6);
		url = "http://app.uol.com.br/radiouol/player/frameset.php?opcao=playlist&nomeplaylist="+radio 
	}else{
		radio = Loc.substring (Loc.indexOf ("canal=")+6, Loc.indexOf ("&disco="));
		pop   = Loc.substring (Loc.indexOf ("&disco=")+7);
		if (pop=="s"){ url = "http://app.uol.com.br/radiouol/player/frameset.php?opcao=umcd&nomeplaylist="+radio }
		else{ url = "http://app.uol.com.br/radiouol/player/frameset.php?opcao=umamusica&nomeplaylist="+radio }
	}



	window.open(url,'popplaylist','width=480,height=350,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no');
}

