newsStop = false;

function lancia_funzioni() {
	document.getElementById("tabella_notizie").style.top = 0;
	setTimeout("scrollNews()", 100);
}

function getElementHeight(Elem) {
	if(document.getElementById) {
		var elem = document.getElementById(Elem);
	} else if (document.all){
		var elem = document.all[Elem];
	}
/*	if (op5) { 
		xPos = elem.style.pixelHeight;
	} else {*/
		xPos = elem.offsetHeight;
//	}
	return xPos;
}

function scrollNews() {
	if(!newsStop) {
		tabella = document.getElementById("tabella_notizie");
		altezza = getElementHeight("tabella_notizie") * -1;
		altezza_box = getElementHeight("colonna_notizie");
		if(parseInt(tabella.style.top) > altezza)
			tabella.style.top = parseInt(tabella.style.top) - 1;
		else
			tabella.style.top = altezza_box;
	}
	setTimeout("scrollNews()", 100);
}
