var elY = 0;
var doScroll = false;
var upDown;

function scroll() {
	if (doScroll == true) {
		if (upDown == "up") {
			if (elY < 0) {
				elY = elY + 2;
			}
			document.getElementById('scrolltext').style.marginTop = elY + 'px';
		} else {
			elY = elY - 2;
			document.getElementById('scrolltext').style.marginTop = elY + 'px';
		}
		setTimeout("scroll()", 15);
	}
}

function startScroll(direction) {
	doScroll = true;
	upDown = direction;
	document.getElementById('arrow_'+direction).src = '/images/arrow_'+direction+'_on.gif';
	scroll();
}

function stopScroll() {
	doScroll = false;
}

function overScroll(direction) {
	document.getElementById('arrow_'+direction).src = '/images/arrow_'+direction+'_on.gif';
}

function outScroll(direction) {
	document.getElementById('arrow_'+direction).src = '/images/arrow_'+direction+'.gif';
}
