// JavaScript Document
			// JavaScript para tv //

 
function trocaMsg() { 
	index = index%qtd_ban + 1; 
	channel(index); 
	tempo(); 
}
          
function tempo() { 
	clearTimeout(timer);	
	timer = setTimeout("trocaMsg()",menu_time);
}
  
function channel(id) { 
	index = id; 
	document.getElementById("tvn" + anterior).className= "transp"; 
	document.getElementById("tvn" + id).className = "opac"; 

	document.getElementById("tvna" + anterior).className= "oculto"; 
	document.getElementById("tvna" + id).className = "exibe"; 
	
	document.getElementById('tvshow').innerHTML=document.getElementById('tv' + id).innerHTML;
	
	
	anterior = id;
}

function tvch(id, out) {

		if (out == '1')	{ 
			clearTimeout(timer);
			
			channel(id);
		} else { 
			tempo();
			
		}
}
//channel(1);


//Função p/ n Aparecer erro de JS no navegador do Tiozinho
function semerro(){
return true;}


