	var xOffset;
	var yOffset;
	function setHeight(){
		var myHeight;
		var myWidth;
		//be sure to check window.innerHeight first because Opera has the wrong clientHeight
		myHeight = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ;
		//clientWidth is ok for Opera
		myWidth = document.documentElement ? document.documentElement.clientWidth : window.innerWidth;
		var homeCell;
		homeCell = document.getElementById("main_home_cell");
		xOffset = Math.round( (myWidth - 990)/2);
		yOffset = Math.round( (myHeight - 663)/2);
		
		homeCell.style.top = yOffset > 0 ? yOffset  + "px" : "0px";//string number + px is important for firefox!
		homeCell.style.left = xOffset > 0 ? xOffset + "px" : "0px";//string number + px is important for firefox!
		//confirm("yOffset: " + yOffset + "\nxOffset: " + xOffset);
		//confirm(homeCell.id);
		showBlock('main_home_cell');
	}
	if(window.attachEvent){
		window.attachEvent("onresize",setHeight);
	}else{
		window.onresize = setHeight;
	}
	setHeight();
	
	//logo mouseover
	var logo = new Image();
	logo.src = "plaatjes/Logo_2.gif";
	var preload = true;
	function mo(){
		if(preload){
			getE("home_logo").src = logo.src;
		}
	}
	function off(){
		getE("home_logo").src = "plaatjes/Logo_1.gif";
	}
	function getE(__id){
		return document.getElementById(__id);
	}
	
	function showBlock(blockname){
		var block = getE(blockname);
		block.style.display = "block";
	}
	
	function hideBlock(blockname){
		var block = getE(blockname);
		block.style.display = "none";
	}
	
	window.defaultStatus = "www.archtitectuur-fotografie.eu";
