
// configurações da barra
var NumBar = 15;
var ColorBar = '#FF974B'; // barra antiga
var ColorBar1 = '#969698'; // cor clara
var ColorBar2 = '#666666'; // cor escura

// ícone para bookmark
document.write('<LINK REL="SHORTCUT ICON" HREF="http://home.img.uol.com.br/favicon.ico">');

// configurações do menu
var menu_tag;

if(!menu_tag) { 
	var aux = dC.cookie.split(/enu_tag=|;/,2);
	menu_tag = aux[1];
	}
else dC.cookie = 'menu_tag='+menu_tag+';path=/;domain=uol.com.br;';

// GetMethodParserJS ::: fermads @ uol
var L=location.href;
var d=L.substring(L.indexOf("?")+1);
var c=v=new Array(); c=d.split("&");
for(i=0;i<c.length&&c.length>0;i++) {
v=c[i].split("="); if(v.length>1)
eval(v[0]+"=unescape('"+v[1].replace(/\+/g," ")+"')");}


// menu fechado (que se abre ao clicar)
mt = menu_tag.split(',');
document.write("<style>"+
"#menu div { display:none; }"+
"#menu a.head { background-color:#004847;color:white;font-weight:bold; }"+
"#menu a.head:hover { background-color:#339999; }"+
"#menu #"+mt[0]+" { background-color:#339999; }"+ // head active
"#menu #"+mt[1]+" { background-color:#ABB68C;font-weight:bold; }"+  // item active
"#menu #"+mt[0]+"_i { display:block; }"+
"</style>");

// descomentar se for menu aberto (e comentar o "menu fechado" acima)
/* 
dC.write("<style>"+
"#menu span { background-color:#31659C;color:white;font-weight:bold; }"+
"#menu #"+menu_tag+" { background-color:#EFDFD6;font-weight:bold; }"+
"</style>"); 
*/

// função para a busca do radar
function RaD()
{
Rq=escape(document.radar.q.value);
Rf="";
if(Rq=="") { alert("Você precisa digitar uma palavra para fazer a busca."); }
else
	{
	R1="http://busca.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=1"; // 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 que deixa as colunas (esquerda, centro, direita) com a mesma altura
function resizeColsHome()
{
if(dC.getElementById) dC.getElementById('td1').style.height = dC.getElementById('tablebottom').offsetTop - dC.getElementById('tabletop').offsetTop;
}

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 resizeCols2()
{
if(dC.getElementById) dC.getElementById('td1').style.height = dC.getElementById('td3').style.height = dC.getElementById('tablebottom').offsetTop - dC.getElementById('tabletop').offsetTop;
}


