   
contentType="text/html; charset=UTF-8"   

// funcao para abrir um arquivo dentro de uma div de forma simples
function abrirPag(valor){  
 var url = valor;  

 
 xmlRequest.open("POST", url, true);  
 xmlRequest.onreadystatechange = mudancaEstado;  
 xmlRequest.send(null);  
 if (xmlRequest.readyState == 1) {  
   document.getElementById("conteudopaginas").innerHTML = "<img src='images/carregando.gif'>";  
 }  
 return url;  
 }  
 function mudancaEstado(){  
 if (xmlRequest.readyState == 4){  
   document.getElementById("conteudopaginas").innerHTML = xmlRequest.responseText;  
 }  
}  

// **************************************************************************************\\
// funcao para abrir um arquivo dentro de uma div de forma simples
// **************************************************************************************\\
function abrirtempo(valort){  
 var url = valort;  
 
 xmlRequest.open("POST", url, true);  
 xmlRequest.onreadystatechange = mudancatempo;  
 xmlRequest.send(null);  
 if (xmlRequest.readyState == 1) {  
   document.getElementById("tempo").innerHTML = "<img src='images/carregando.gif'>";  
 }  
 return url;  
 }  
 function mudancatempo(){  
 if (xmlRequest.readyState == 4){  
   document.getElementById("tempo").innerHTML = xmlRequest.responseText;  
 }  
} 


// ******************************************************************************************************** \\
// funcao para abrir varias divs dentro de uma div mestre. atualiza a div sem atualizar a pagina inteira...
// ******************************************************************************************************** \\
function Mostra(j){
	var mostra = Array("1","2","3");
	for(i=0;i<mostra.length;i++){
		if(j==mostra[i]){
			document.getElementById('imgjornais').src = "images/bt_esporte"+j+".gif";
			document.getElementById('j_'+j).style.display = "";
		} else {
			document.getElementById('j_'+mostra[i]).style.display = "none";
		}
	}
}

// funcao para abrir varias divs dentro de uma div mestre. atualiza a div sem atualizar a pagina inteira...
// esta funcao é para o basquete que mostra o popup ao abrir
function Mostrabasq(j){
	var mostra = Array("1","2","3");
	for(i=0;i<mostra.length;i++){
		if(j==mostra[i]){
			document.getElementById('imgjornais').src = "images/bt_esporte"+j+".gif";
			document.getElementById('j_'+j).style.display = "";
		} else {
			document.getElementById('j_'+mostra[i]).style.display = "none";
		}
	}
	
	if (j == "3") {
	  window.open('popescolinhabasquete.asp','BASQUETE', 'status , scrollbars=no ,width=659, height=462 , top=100 , left=100');
	}
}

function Mostraoutrosesportes(j){
	var mostra = Array("1","2","3");
	for(i=0;i<mostra.length;i++){
		if(j==mostra[i]){
			document.getElementById('imgjornais').src = "images/bt_outrosesportes"+j+".gif";
			document.getElementById('j_'+j).style.display = "";
		  } 
		else {
			document.getElementById('j_'+mostra[i]).style.display = "none";
		}
	}
}


function Mostratituloimagem(imagem,j){
	var mostra = Array("1","2","3");
	for(i=0;i<mostra.length;i++){
		if(j==mostra[i]){
			document.getElementById('imgjornais').src = "images/"+imagem+j+".gif";
			document.getElementById('j_'+j).style.display = "";
		  } 
		else {
			document.getElementById('j_'+mostra[i]).style.display = "none";
		}
	}
}

// ************************************************************************************************************\\
//  funcao para mostrar ou esconder parte de um banner dentro de uma div... intercalado com um banner em flash
//  ao passar o mouse desce, ao tirar o mouse sobe....
// ************************************************************************************************************\\
function mostrabanner(tamanho) { 
	document.getElementById("banner").style.height=tamanho;
}

function escondebanner(tamanho) {  
	document.getElementById("banner").style.height=tamanho;
}

