var index = 1;
var menu_time = 6000;
var anterior = 5;
var timer = setTimeout('trocaText()',menu_time);
function trocaText() {
	index = index%5 +1;
	channel(index);
	tempo();
}
function tempo() {
	clearTimeout(timer);
	timer = setTimeout("trocaText()", menu_time);
}
function channel(id) {
	index = id;
	document.getElementById("show-" + anterior).className= "transp";
	document.getElementById("show-" + id).className = "opac";
	document.getElementById('down-show').innerHTML=document.getElementById('tv' + id).innerHTML;
	anterior = id;
}
function pag(id, out) {
	if (out == 1) {
		clearTimeout(timer);
		channel(id);
	} else {
		tempo();
	}
}
