
var scrolltimer;

function scrollCopy(mod) {
	if (mod == 'up') {
		scrolltimer = setInterval('startscroll(5)', 50);
	} else if (mod == 'down') {
		scrolltimer = setInterval('startscroll(-5)', 50);
	} else {
		document.getElementById('scrollDIV').style.marginTop = '0';
	};
};

function startscroll(y) {
	topx = parseInt(document.getElementById('scrollDIV').style.marginTop);

	if (topx == 0) {
		if (y > 0) return;
	};
	document.getElementById('scrollDIV').style.marginTop = (topx + y) + 'px';
};

function stopScroll() {
	clearInterval(scrolltimer);
};