var noticias;
var actNoticia;
var numNoticias;

function inicioNoticiasBanner() {

	leerNoticias();
	actNoticia = 0;
	siguiente();
}

function siguiente() {

	noticias[actNoticia].mostrar('divNoticiasContenidoBanner');
	timerID = setTimeout("transicion()", 5000);
}

function transicion() {

	noticias[actNoticia].ocultar('divNoticiasContenidoBanner');
	actNoticia = actNoticia + 1;
	if (actNoticia == numNoticias)
		actNoticia = 0;
	timerID = setTimeout("siguiente()", 800);
}
	
	
function inicioNoticias() {

	leerNoticias();
	var iniX = 20;
	var contenido = '';
	
	for (i = 0; i < numNoticias; i++) {
		contenido = contenido + noticias[i].presentar(iniX);
		iniX += 130;
	}
	document.getElementById('divScroll').innerHTML = contenido;
}
