function chama(i){
//document.getElementById('tv_'+i).style.visibility="hidden";
document.getElementById('aba_'+i).style.visibility="visible";
for (_x=1; _x<3; _x++)
{
if(_x != i)
{document.getElementById('aba_'+_x).style.visibility="hidden";}
}
}

function troca(x,y){
//document.getElementById(x).src = x+"a.jpg";
document.getElementById(y).src = "img/"+x+".jpg";
}
function troca_(x){
//document.getElementById(x).src = "img/"+x+".jpg";
}

function popup(x,y,z,w){
window.open(x,'janela','width='+y+',height='+z+',scrollbars='+w+'');
}


function embeds(url,w,h){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+w+'" height="'+h+'">');
document.write('<param name="movie" value="'+url+'">');
document.write('<param name="quality" value="high">');
document.write('<param name="wmode" value="transparent">');
document.write('<param name="menu" value="false">');
document.write('<embed src="'+url+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'" wmode="transparent"></embed>');
document.write('</object>');
}


function sel_programa(){
document.programas.submit();
}


function destaca(x)
{
document.getElementById(x).style.background="#DAEAF7";
}
function apaga(x)
{
document.getElementById(x).style.background="#F0F1DF";
}


function buscador(){
//if(document.formu.option1.checked==true  || document.formu.option2.checked==true || document.formu.option3.checked==true || document.formu.option4.checked==true || document.formu.option5.checked==true || document.formu.option6.checked==true || document.formu.option7.checked==true){
document.formu.submit();
//}
//else{
//alert("Escolha onde bucar");
//}
}
