//haal hoogte window binnen
var isNav4, isNav6
var isBrand = navigator.appName
var navVer = parseInt(navigator.appVersion)

//browser check
var isNav4 = (isBrand == "Netscape" && navVer < 5) ? true : false
var isNav6 = (isBrand == "Netscape" && navVer >= 5) ? true : false

//give back the computed style
function getStyle(obj,Attribute) {
	if (obj) {
		if (obj.currentStyle)
			var value = eval('obj.currentStyle.'+Attribute)
		else
			var value = eval('document.defaultView.getComputedStyle(obj, null).'+Attribute)
		return parseInt(value);
	}
}

//haal hoogte browser binnen
function getInsideWindowHeight() {
	if (isNav4 || isNav6)
		return window.innerHeight
 	else 
	    return document.body.clientHeight
}

function setHeight() {
	var content 		= document.getElementById('content');
	var footer	 		= document.getElementById('footer');
	var contentmargin 	= getStyle(content,'top');
	var schermhoogte 	= getInsideWindowHeight();
	
	if (!footer || !content)
		return false;
	
	if (/\/admin\//.test(document.location))
		footer.style.display = 'none';
	
	content.style.height = (schermhoogte - contentmargin) + 'px';
}