// JavaScript Document
var vTop=120;
var vCount=0;
var vWait=0;
function setScrolling(vNumDivs){
for(i=0; i<vNumDivs; i++){
	document.getElementById("newsdiv"+i).style.top=(vTop*i)+"px";
}
Scroll(vNumDivs);
}

function Scroll(vNumDivs){
	if(vWait<300){
		vWait+=1;
	} else {
		for(i=0; i<vNumDivs; i++){
			myamount=parseInt(document.getElementById("newsdiv"+i).style.top);
			if(myamount<-120){
				document.getElementById("newsdiv"+i).style.top=(120*(vNumDivs-1))+"px";
			} else  {
				document.getElementById("newsdiv"+i).style.top=(myamount-2)+"px";
			}
		}
		vCount+=1;
		if(vCount>59){
			vWait=0;
			vCount=0;
		}
	}
	setTimeout("Scroll("+vNumDivs+")", 5);
}