function limpaLixo(){
		var lixo = document.getElementsByTagName("iframe");
		var tamVet = lixo.length-1;
		lixo[tamVet].style.display="none";
		
	}

function fadeOut(id, time, maxAlpha, minAlpha) {
	target = document.getElementById(id);
	alpha = maxAlpha;
	timer = (time*1000)/50;
	var i = setInterval(
			function() {
				if (alpha <= minAlpha)
					clearInterval(i);
				setAlpha(target, alpha);
				alpha -= 2;
			}, timer);
}

function fadeIn(id, time, maxAlpha, minAlpha) {
	target = document.getElementById(''+id+'');
	alpha = minAlpha;
	timer = (time*1000)/50;
	var i = setInterval(
			function() {
				if (alpha >= maxAlpha)
					clearInterval(i);
				setAlpha(target, alpha);
				alpha += 2;
			}, timer);
}

function setAlpha(target, alpha) {
	target.style.filter = "alpha(opacity="+ alpha +")";
	target.style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity="+ alpha +")";
	target.style.opacity = alpha/100;
}

numNoticia = 1;
function mostraNoticia(id,time){
	idNoticia = document.getElementById(id).id.substr(0,7);
	numNoticia = document.getElementById(id).id.substr(7,2); 
	noticia = document.getElementById(idNoticia+numNoticia);
	noticia.style.opacity = 0;
	noticia.style.display = "block";
	setTimeout("fadeIn('"+idNoticia+numNoticia+"',"+time+", 100, 0)",1);
	setTimeout("fadeOut('"+idNoticia+numNoticia+"',"+time+", 100, 0)",10000);
	setTimeout("noticia.style.display = 'none'",14000);
	if(numNoticia == 9){ numNoticia = 0; }
	numNoticia++;
	setTimeout("mostraNoticia('"+idNoticia+numNoticia+"',"+time+")",16000);
}