
function set_scroll_pos() {
	var x, y, new_x, new_y;
	
	if (self.innerHeight) {
		x=self.innerWidth;
		y=self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) {
		x=document.documentElement.clientWidth;
		y=document.documentElement.clientHeight;
	} else if (document.body) {
		x=document.body.clientWidth;
		y=document.body.clientHeight;
	}
	
	if (x<1024) {
		new_x=Math.round((1024-x)/2);
	} else {
		new_x=0;
	}
	
	if (y<768) {
		new_y=Math.round((768-y)/2-70);
		if (new_y<0) {
			new_y=0;
		}
	} else {
		new_y=0;
	}
	
	window.scrollTo(new_x, new_y);
}

function init_pos() {
	var aktiv=window.setInterval("set_scroll_pos()", 1);
}

onload=init_pos;
