var blockheight = 0;
var totalindex=0;

function runScroll() {
	var d = 0;
	dontgo=false;
	do {
		var ele = document.getElementById("scroll_"+d);
		if (ele) {
			var y = parseInt(ele.style.top)-1;
			var h = parseInt(ele.style.height);
			if (y<-h) {
				y+=blockheight;
				setTimeout("runScroll()",1000);
				dontgo=true;
			}
			ele.style.top = y+"px";			
		}
		d++;
	} while (ele);
	if (!dontgo) setTimeout("runScroll()",25);
}


function runScrollStart() {
	var d = 0;
	do {
		var ele = document.getElementById("scroll_"+d);
		if (ele) blockheight+=parseInt(ele.style.height);
		d++;
	} while (ele);
	totalindex=d;
	
	if (d>0) runScroll();
}

setTimeout("runScrollStart()",1000);