window.onresize = function() {
	resizeShadow();
}

window.onload = function() {
	if (window.location.href == "http://www.stichtinghip.nl/#")
	{
		window.location = "http://www.stichtinghip.nl/index.php?id=192";
	}
}

function resizeShadow() {
	if (document.getElementById('tmpl_container') && document.getElementById('tmpl_header') && document.getElementById('tmpl_body') && document.getElementById('tmpl_copy')) {
		var siteHeight = document.getElementById('tmpl_header').offsetHeight + document.getElementById('tmpl_body').offsetHeight + document.getElementById('tmpl_copy').offsetHeight;
		var container = document.getElementById('tmpl_container');

		if (container.offsetHeight < siteHeight) {
			container.style.height = siteHeight + 30 + 'px';
		}

		if (window.innerHeight) {
			if (container.offsetHeight < window.innerHeight) {
				container.style.height = (window.innerHeight) + 'px';
			}
		} else if (document.body.clientHeight) {
			if (container.offsetHeight < document.body.clientHeight) {
				container.style.height = (document.body.clientHeight) + 'px';
			}
		}
	}
}