function init() {
	setFooter();
	//initImage();
}

		 function openURI() {
		 	var control = document.snelmenu.documentkeuze;
			 if (control.options[control.selectedIndex].value != 'geen-url') {
			 location.href = control.options[control.selectedIndex].value;
			 }
		 }
		 
		 
function setFooter() {

	//initImage();
	
	if (document.getElementById) {
		var windowHeight = getWindowHeight() - 3;  // ik weet niet waarom, maar zonder deze 3 pixels doet de strict document-type mode vreemd
		
		if (windowHeight > 0) {
			var wrapperHeight = document.getElementById('wrapper').offsetHeight;
			//var footerHeight = document.getElementById('frame_bottom').offsetHeight;
			var topperHeight = 20; 
			var maincontentHeight = document.getElementById('horizon').offsetHeight;
			//alert(wrapperHeight + " + " + windowHeight);
			
			//if (maincontentHeight+topperHeight > wrapperHeight) {
			//	document.getElementById('wrapper').style.height = maincontentHeight+topperHeight + 'px';
			//}
			
			if (maincontentHeight<windowHeight) {
				document.getElementById('horizon').style.height = windowHeight-topperHeight + 'px';
				//document.getElementById('frame_bottom').style.top = windowHeight + 'px';
				//document.getElementById('container').style.height = windowHeight-footerHeight + 'px';
				//document.getElementById('frame_bottom').style.top = windowHeight-footerHeight + 'px';
			} else {
				document.getElementById('horizon').style.height = wrapperHeight + 'px';
				//document.getElementById('frame_bottom').style.top = maincontentHeight+topperHeight-footerHeight + 'px';
				//document.getElementById('frame_bottom').style.top = maincontentHeight+topperHeight-footerHeight + 'px';
			}
			
			
			
			
			
			
			
			
			
			}
		}
	}

function getWindowHeight() {
			var windowHeight = 0;
			if (typeof(window.innerHeight) == 'number') {
				windowHeight = window.innerHeight;
			}
			else {
				if (document.documentElement && document.documentElement.clientHeight) {
					windowHeight = document.documentElement.clientHeight;
				}
				else {
					if (document.body && document.body.clientHeight) {
						windowHeight = document.body.clientHeight;
					}
				}
			}
			return windowHeight;
		}

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