var scrolling = false;

function stopScrolling() {
	scrolling = false;
}

function startScrolling() {
	scrolling = true;
}

function scrollR() {
	if (scrolling) {
		document.getElementById('hscroller').style.left = (parseInt(document.getElementById('hscroller').style.left) - 5) + "px";
		timer = setTimeout("scrollR()",25);
	}
}

function scrollL() {
	var intLeft = parseInt(document.getElementById('hscroller').style.left);
	if (scrolling && intLeft <= -5) {
		document.getElementById('hscroller').style.left = (intLeft + 5) + "px";
		timer = setTimeout("scrollL()",25);
	}
}

function scrollD() {
	var intTop = parseInt(document.getElementById('vscroller').style.top);
	var intHeight = document.getElementById('vscroller').offsetHeight;
	if (scrolling && intTop >= (-1 * (intHeight - 260))) {
		document.getElementById('vscroller').style.top = (intTop - 5) + "px";
		timer = setTimeout("scrollD()",25);
	}
}

function scrollU() {
	var intTop = parseInt(document.getElementById('vscroller').style.top);
	if (scrolling && intTop <= -5) {
		document.getElementById('vscroller').style.top = (intTop + 5) + "px";
		timer = setTimeout("scrollU()",25);
	}
}