var correctieWaarde = 112

var correctLayOut = function(){
	if(navigator.userAgent.search(/safari/gi) != -1){
		document.getElementById("kolomHeaderLeftDiv").style.width	= "169px";
		document.getElementById("kolomHeaderMiddleDiv").style.width = "826px";
		document.getElementById("kolomContentLeftDiv").style.width	= "169px";
		document.getElementById("kolomContentMiddleDiv").style.width= "826px";

		if(document.getElementById("ProdLink0")){
			document.getElementById("ProdLink0").style.paddingTop = "4px"
			document.getElementById("ProdLink1").style.paddingTop = "4px"
			document.getElementById("ProdLink2").style.paddingTop = "4px"
			document.getElementById("ProdLink3").style.paddingTop = "4px"

			document.getElementById("ProdLink0").style.paddingBottom = "5px"
			document.getElementById("ProdLink1").style.paddingBottom = "5px"
			document.getElementById("ProdLink2").style.paddingBottom = "5px"
			document.getElementById("ProdLink3").style.paddingBottom = "5px"
		}
		correctieWaarde = 116
	}
	if(navigator.userAgent.search(/ie/gi) != -1){
		if(document.getElementById("ProdLink0")){
			document.getElementById("ProdLink0").style.paddingTop = "0px"
			document.getElementById("ProdLink1").style.paddingTop = "0px"
			document.getElementById("ProdLink2").style.paddingTop = "0px"
			document.getElementById("ProdLink3").style.paddingTop = "0px"

			document.getElementById("ProdLink0").style.paddingBottom = "0px"
			document.getElementById("ProdLink1").style.paddingBottom = "0px"
			document.getElementById("ProdLink2").style.paddingBottom = "0px"
			document.getElementById("ProdLink3").style.paddingBottom = "0px"
		}
	}
	resizeDivs()
}

onresize = function(){
	resizeDivs()
}

var resizeDivs = function(){
	var myWidth = 0, myHeight = 0, htmlHeight = 0, adjustHeight;

	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
		htmlHeight = document.body.scrollHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
		htmlHeight = document.documentElement.scrollHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
		htmlHeight = document.body.scrollHeight;
	}

	myHeight = myHeight - correctieWaarde
	if(myHeight < 0){
		myHeight = 200
	}
	htmlHeight = htmlHeight - correctieWaarde
	if(htmlHeight < 0){
		htmlHeight = 200
	}

	adjustHeight = myHeight
	if(htmlHeight > adjustHeight){
		adjustHeight = htmlHeight
	}
	if(document.getElementById("kolomContentLeftDiv")){
		document.getElementById("kolomContentLeftDiv").style.height = adjustHeight + "px"
	}
	if(document.getElementById("kolomContentMiddleDiv")){
		document.getElementById("kolomContentMiddleDiv").style.height = adjustHeight + "px"
	}
}
