//verifica se o navegador é o IE
IE = (navigator.userAgent.indexOf("MSIE") > -1)? true: false;

j = 0;

function numeros(idDiv, quantidade){	
	opacidade = 0
	noticias = document.getElementById(idDiv).getElementsByTagName("div");
	
	for(i = 0; i < noticias.length; i ++){
		noticias[i].style.display = "none"
	}
	
	if(IE)	
		document.getElementById(idDiv).filters.Blendtrans.apply();
	
	for(i = 0; i < quantidade; i ++){
		try{
			noticias[j].style.display = "block";			
		}catch(e){}
		j++
	}
	
	if(IE) document.getElementById(idDiv).filters.Blendtrans.play();
	
	if (j >= noticias.length)
		j = 0;	
	
	if(!IE)
		efeitoAlpha(idDiv)
	setTimeout("numeros('" + idDiv + "', " + quantidade + ");", 15000)	
}


opacidade = 0
function efeitoAlpha(qual){	
	document.getElementById(qual).style.opacity = opacidade;					
	if(opacidade < 1 && !IE){
		setTimeout("efeitoAlpha('"+ qual +"')", 1);	
		opacidade += 0.1;
	} 
}
	
