// escreve o .css correspondente ao browser
writeCSS('http://estilo.uol.com.br/moda/fashionrio/2006/');

// configurações da barra
var NumBar = 21;
var ColorBar1 = '#969698'; // cor clara
var ColorBar2 = '#666666'; // cor escura

// ícone para bookmark
dC.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(',');
dC.write("<style>"+
"#menu div { display:none; }"+
"#menu a.head { background-color:white;color:black;font-weight:bold; }"+
"#menu a.head:hover { background-color:#BBD432;color:black; }"+
"#menu #"+mt[0]+" { background-color:#BBD432;color:black; }"+ // head active
"#menu #"+mt[1]+" { background-color:#E1EEC7;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(dC.radar.q.value);
Rf="";
if(Rq=="") { alert("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=0"; // trocar pelo id da estação
	R2=dC.radar.l[dC.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 resizeCols()
{
  if(dC.getElementById) {
    TDalt = dC.getElementById('td2').style.height = dC.getElementById('td3').style.height = (dC.getElementById('tablebottom').offsetTop-60) - dC.getElementById('tabletop').offsetTop;
    dC.getElementById('td1').style.height = TDalt + 64;
  }  
}

function resizeCols2()
{
  if(dC.getElementById) {
    TDalt = dC.getElementById('td2').style.height = (dC.getElementById('tablebottom').offsetTop-60) - dC.getElementById('tabletop').offsetTop;
    dC.getElementById('td1').style.height = TDalt + 69;
  }  
}

function resizeCols3()
{
  if(dC.getElementById) {
    TDalt = dC.getElementById('td2').style.height = dC.getElementById('td3').style.height = (dC.getElementById('tablebottom').offsetTop-10) - dC.getElementById('tabletop').offsetTop;
    dC.getElementById('td1').style.height = TDalt + 10;
  }  
}

// função para os banners
var DEcfg ="site=uolbr&chan=moda&subchan=outros";
var DEpopcfg ="POPmoda";
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>');
        }
