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

function scroll_init() {
	var x = document.getElementById(id+'1');
	h = x.offsetHeight;
	if (h > frameheight) {
		var x = document.getElementById(id);
		x.onmouseover = stop;
		x.onmouseout = move;
		move();
	}
}
function move() {
	inter = setInterval("shift()", 50);
}

function stop() {
	clearInterval(inter);
}

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