function setWindowPositions(breed) {
	if (window.innerWidth) {
		var width = window.innerWidth;
		var height = window.innerHeight;
	} else {
		var width = document.body.clientWidth;
		var height = document.body.clientHeight;
	}
	var left = ((width - 798) / 2);
	var width = (798 + getScrollerWidth());
	var height = height - 218 - 19;
	
	var placeholder = document.getElementById("site_placeholder");
	if (placeholder.offsetHeight == 0) {
		placeholder.style.height = height;
	}

	document.getElementById("topMiddle_placeholder").style.left = (left - 4) + "px";
	document.getElementById("site_placeholder").style.left = left + "px";
	document.getElementById("site_placeholder").style.width = width + "px";
	//document.getElementById("site_placeholder").style.height = height + "px";
	document.getElementById("screen_placeholder").style.display = "";
	
	if (document.getElementById("kolomMidden").offsetHeight < (height - 19)) {
		document.getElementById("kolomMidden").style.height = (height - 19) + "px";
	} else {
		document.getElementById("kolomMidden").style.height = (document.getElementById("kolomMidden").offsetHeight) + "px";
	}

	var midden = 1 * document.getElementById("kolomMidden").style.height.replace ("px", "") - 52;
	document.getElementById("kolomMiddenLicht").style.height = midden + "px";
	
	if (breed == true) {
		document.getElementById("kolomMidden").style.width = "586px";
		document.getElementById("kolomMidden").style.zIndex = "1";
		document.getElementById("kolomMiddenLicht").style.width = "556px";
		document.getElementById("kolomMiddenHeader").style.width = "581px";
	}
}

function getScrollerWidth() {
	/** Deze functie is gedownload van http://www.fleegix.org/articles/2006/05/30/getting-the-scrollbar-width-in-pixels
		en bepaald de scrollbar breedte */
	var scr 		= null;
	var inn 		= null;
	var wNoScroll 	= 0;
	var wScroll 	= 0;
	var width 		= 0;

	// Outer scrolling div
	scr = document.createElement('div');
	scr.style.position = 'absolute';
	scr.style.top = '-1000px';
	scr.style.left = '-1000px';
	scr.style.width = '100px';
	scr.style.height = '50px';
	// Start with no scrollbar
	scr.style.overflow = 'hidden';

	// Inner content div
	inn = document.createElement('div');
	inn.style.width = '100%';
	inn.style.height = '200px';
	// Put the inner div in the scrolling div
	scr.appendChild(inn);
	// Append the scrolling div to the doc
	document.body.appendChild(scr);

	// Width of the inner div without scrollbar
	wNoScroll = inn.offsetWidth;
	// Add the scrollbar
	scr.style.overflow = 'auto';
	// Width of the inner div width scrollbar
	wScroll = inn.offsetWidth;

	// Remove the scrolling div from the doc
	document.body.removeChild(
	document.body.lastChild);

	width = wNoScroll - wScroll;
	
	if (width == 0) {
		return 18;
	} else {
		return width;
	}
}
