function abre(pagina,janela,largura,altura){
var desktopname = window.open(pagina,janela,'width='+largura+',height='+altura+',toolbar=no,copyhistory=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,top=250,left=130');
desktopname.focus();
}

// carregar os banner-------------------------------------------------------------

var a = jQuery.noConflict() ; 

function carregar_banner(casa){
a("#fotos").toggle()
	   
soma=(casa+1);	

url= eval('url'+casa);
urll=eval('url'+soma);

document.getElementById("banner1").src = eval('imagem'+casa);
document.getElementById("banner2").src = eval('imagem'+soma);

a("#fotos").fadeIn("100");


if(soma==total){
soma=0;	
}
    
setTimeout("carregar_banner(soma)",7000);	

	   }
//listagem das notícias destaque---------------------------------------------------

function carregar_noticias(id_noticia){
a("#ft_noticia").toggle()
a("#texto").toggle("fast");
	   
soma_noticia=(id_noticia+1);	

n_codigo= eval('n_codigo'+id_noticia);
descricao = eval('descricao'+id_noticia);


document.getElementById("ft_noticia").src = eval('n_imagem'+id_noticia);
document.getElementById("texto").innerHTML = descricao;

a("#ft_noticia").fadeIn("100");
a("#texto").toggle("slow");

if(id_noticia==n_total){
soma_noticia=1;	
}
    
setTimeout("carregar_noticias(soma_noticia)",6000);	

	   }





	   
// listagem dos produtos-----------------------------------------------------------

// atual = 0 voltar off proxima true
//atual < total voltar true
//atual = total proxima false
	  
	  

   function carregar_produto(jj){
pro=jj+1;	
vol=jj-1;

a("#ft_produto").toggle();	   
//$("#ft_produto").slideToggle("slow")
	   
codigo= eval('codigo'+jj);
document.getElementById("ft_produto").src = eval('p_imagem'+jj);
a("#ft_produto").show("slow");

if(jj== 0){
a("#bt_proxima").fadeIn();
	a("#bt_voltar").fadeOut();	
	

} else if(jj< p_total){
	
	a("#bt_voltar").fadeIn();
	a("#bt_proxima").fadeIn();
	
}else if(jj==p_total){
	a("#bt_proxima").fadeOut();
	
	
	}


	   }	
	   
/*		function auto_play(p){
if(p=="0"){
$("#radio").hide("slow");

		}else if(p=="1"){
$("#radio").show("slow");
		
		}
		}
		*/

function  anima_pg(){
a("#corpo_materia").hide("fast");		
a("#corpo_materia").show("slow");	
	
	}
	
	
function get () {
		
		a.post('radio.php', { },
			   
			   function(output){
				   a("#radio").html(output).show();
				   
			   });	
	
			
	}
