var agt = navigator.userAgent.toLowerCase();
var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));

function relocate()
{
	var windowWidth = (window.innerWidth ? window.innerWidth : document.body.clientWidth);
	var windowHeight = (window.innerHeight ? window.innerHeight : document.body.clientHeight);
	
	document.getElementById("menu").style.height = (windowHeight - 80) + "px";
	document.getElementById("knop_info").style.left = (windowWidth/2 - 70) + "px";
	document.getElementById("knop_route").style.left = (windowWidth/2 - 20) + "px";
	document.getElementById("knop_catalogus").style.left = (windowWidth/2 + 30) + "px";
	document.getElementById("knop_toelichting").style.left = (windowWidth/2 - 220) + "px";
	
	var padding_correct = 0;
	if (is_ie) {
		padding_correct = 30;
	}
	
		document.getElementById("inhoud").style.height = (windowHeight - 100) + "px";
	
	if (document.getElementById("blockrandom") != null)
	{
		document.getElementById("blockrandom").style.height = document.getElementById("inhoud").style.height;
		document.getElementById("blockrandom").style.width = document.getElementById("inhoud").style.width;
		document.getElementById("inhoud").style.overflowY = 'hidden';
		document.getElementById("inhoud").style.paddingRight = "0px";
	}
	document.body.style.overflowY = 'hidden';
}

function set_toelichting(txt)
{
	document.getElementById('knop_toelichting').innerHTML = txt;
}