<!--
scrl = false;

scrolldir = 0;
step = 5;
lsto = false;

function scrollcont(d) {
	if (scrl) {
		l1 = document.getElementById("cont");
		l2 = document.getElementById("fcont");
		nh = "no";
		scrolldir = d;

		if (scrolldir > 0) {
			if (l2.offsetTop < 0) {
				nh = l2.offsetTop + step * scrolldir;
				if (nh > 0) nh = 0;
			}
		} else {
			if (l2.offsetTop > 0 - (l2.offsetHeight - l1.offsetHeight)) {
				nh = l2.offsetTop + step * scrolldir;
				if (nh < (0 - (l2.offsetHeight - l1.offsetHeight))) nh = 0 - (l2.offsetHeight - l1.offsetHeight);
			}
		}
		if (nh != "no") {
			l2.style.top = nh;

			if (lsto) window.clearTimeout(lsto);
			if (scrolldir * scrolldir == 1) {
				lsto = window.setTimeout("scrollcont(" + d + ")", 20);
			}
		}
	}
}

function mwheel() {
	d = event.wheelDelta;
	scrl = true;
	scrollcont(d/12);
}

d1 = document.getElementById("cont");
d2 = document.getElementById("fcont");
if (d1.offsetHeight - d2.offsetHeight < 0) {
	document.getElementById("arrow_up").style.display = "inline";
	document.getElementById("arrow_down").style.display = "inline";
	if (document.getElementById("vertical_line")) document.getElementById("vertical_line").style.display = "inline";
}
//-->
