var index = 1;
var menu_time = 6000;
var anterior = 3;
var timer = setTimeout('trocaMsg()',menu_time); 

function trocaMsg() { 
	index = index%3 +1;	
	change_noticia(index);
	tempo();
}          
function tempo() {                    
	clearTimeout(timer);
	timer = setTimeout("trocaMsg()",menu_time);        
}  
function change_noticia(id)
{
	index = id;
	document.getElementById("dest_" + anterior).className= "in"  ;
	document.getElementById("dest_" + id).className = "in_sel";
	anterior = id;
}
function change_img(id, out)
{
	if (out == 1)
	{		
		clearTimeout(timer);
		change_noticia(id);
	}
	else
	{
		tempo();
	}
}
function inicia_menu(){
change_noticia(1);
}


