//	author		: Erik van den Berg
//	rev			: 1.0
//	date		: 08-04-04
var ns4 = (document.layers);
var ie4 = (document.all && !document.getElementById);
var ie5 = (document.all && document.getElementById);
var ns6 = (!document.all && document.getElementById);

function getObj(id) {
	if(ns4){
		return document.layers[id];
	}
	// Explorer 4
	else if(ie4){
		return document.all[id];
	}
	// W3C - Explorer 5+ and Netscape 6+
	else if(ie5 || ns6){
		return document.getElementById(id);
	}
}

function Status() {
	top.status = '� planschets.nl';
	return true;
}

function setPos() {
	Status();
	var width;
	var height;
	var logoObj = getObj('logo');
	
	width = document.body.offsetWidth;
	height = document.body.offsetHeight;
	if (width == null || width == 0) {
		width = window.innerWidth;
	}
	if (height == null || height == 0) {
		height = window.innerHeight;
	}
	logo_x = Math.round(((parseInt(width)-173)/2));
	logo_y = Math.round(((parseInt(height)-225)/2));
	bg_x = Math.round(((parseInt(width)-729)/2));
	var ObjBody = getObj("bodybg");
	ObjBody.style.backgroundPosition = ""+bg_x+"px "+logo_y+"px";
	logoObj.style.left = logo_x;
	logoObj.style.top = logo_y;
}