<!--

	function configuraNoticias(){
		bl = document.getElementById("listaNoticias");
		if (bl.offsetHeight <= 180)
			return;
			
		AdicionaEvento(bl, "mouseover", paraScroll);
		AdicionaEvento(bl, "mouseout", reiniciaScroll);
			
		_timerNews = setTimeout("scrollNoticias();", 1000);
	}
	function paraScroll(){
		_stopScroll = true;
	}
	function reiniciaScroll(){
		_stopScroll = false;
	}
	var _timerNews = null;
	var _stopScroll = false;
	
	function scrollNoticias(){
		if (!_stopScroll){
			bl = document.getElementById("listaNoticias");
			
			var margem = (bl.style.marginTop == "") ? 10 : (bl.style.marginTop.substring(0,bl.style.marginTop.length-2));
			margem = margem - 1;
			if (((margem * -1) + 5) > bl.offsetHeight){
				margem = document.getElementById("blocoNoticias").offsetHeight + 2;
			}
			bl.style.marginTop = margem + 'px';
		}
		
		_timerNews = setTimeout("scrollNoticias();", 100);
	}

	AdicionaEvento(window, "load", configuraNoticias);

//-->