var direction = 1;
var hauteur = 0;

function init(){
	var h = getHauteur();
	if(h > 60) setInterval("scrollFrame()", 90);
}

function scrollFrame(){
	var top = $("actus").getStyle("top"); 
	top = Number(top.substring(0, top.length - 2));
	
	var nvxPos = (top - direction)+"px";
	$("actus").setStyle({top: nvxPos});
	
	var h = getHauteur();
	if(top - 1 < h * - 1) $("actus").setStyle({top: "50px"});
}

function getHauteur(){
	return $("actus").offsetHeight;
}

Event.observe(window, "load", init);

