var texttop=0;
var h=0;
var inter;

function scroll_init() {
	var x = document.getElementById(id+'1');
	h = x.offsetHeight;

	var x = document.getElementById(id);
	x.onmouseover = stop;
	x.onmouseout = move;
	
	move();
}
function move() {
	inter = setInterval("shift()", 20);
}

function stop() {
	clearInterval(inter);
}

function shift() {
	var x = document.getElementById(id);
	texttop--;
	if(texttop < -h)
		texttop = 0;
	x.style.top = texttop;
}