function resize() {
	document.getElementById("sidebar").style.minHeight = (window.innerHeight - 2) + "px";
	document.getElementById("footer").style.height = "0px";
}

var count;
var stop;

function startScroll() {
	document.getElementById("important").style.height = "300px";
	count = 300;
	stop = false;
	scroll();
}

function scroll() {
	if(document.getElementById("scroll").offsetHeight <= 300) {
		return;
	}
	count = -count < document.getElementById("scroll").offsetHeight ? count - 2 : 300;
	document.getElementById("scroll").style.top = count + "px";
	if(!stop)
		window.setTimeout("scroll()", 50);
}

function toggleStop() {
	stop = !stop;
	if(!stop)
		scroll();
}

function callPage(thispage) {
	location.href= "?page="+thispage;
}

