function getHeightFromLayer(objStartPoint) {
	// from quirksmode?
	var intDivHeight=0;
	var objChild;
	var intTotal=0;
	var intTop=0;
	var intHeight=0;
	for (var i=0;i<objStartPoint.childNodes.length;i++) {				
		objChild=objStartPoint.childNodes[i];
		try {
			intTop=parseInt(objChild.style.top);
			intHeight=parseInt(objChild.offsetHeight);
			
			intTotal=intTop+intHeight;
			if (isNaN(intTotal)) intTotal=0;
			
			if (objChild.childNodes.length>0) {				
				intHeightChildren=getHeightFromLayer(objChild);				
				if (intHeightChildren>intTotal) intTotal=intHeightChildren;
			}			
			if (intTotal>intDivHeight) intDivHeight=intTotal;
		} catch(e) {
		}
	}
	
	return intDivHeight;
}

function hoogteAanpassing() {
	intMax=0;
	intFooter=0;
		
	try {
		intHeightContent=document.getElementById("content").offsetHeight;
		if (intHeightContent>intMax) intMax=intHeightContent;
		
		intHeightContent=getHeightFromLayer(document.getElementById("content"));		
		if (intHeightContent>intMax) intMax=intHeightContent;
	
		intHeightSideKick1=document.getElementById("content_sidekick_1").offsetHeight;
		if (intHeightSideKick1>intMax) intMax=intHeightSideKick1;
	
		intHeightSideKick2=document.getElementById("content_sidekick_2").offsetHeight;
		if (intHeightSideKick2>intMax) intMax=intHeightSideKick2;
		
	} catch(e) {
	}
	
	try {				
		document.getElementById("content").style.height=intMax + "px";						
		intFooterTop=document.getElementById("content").offsetHeight + document.getElementById("content").offsetTop;	
		document.getElementById("thefooter").style.top=intFooterTop + 'px';
		document.getElementById("thefooter").style.visibility='visible';
		document.getElementById("content_sidekick_1").style.height=intMax + "px";
		document.getElementById("content_sidekick_2").style.height=intMax + "px";		
	} catch(e) {
	}

	try {
	  document.getElementById("thefooter").style.display='block';
	} catch(e) {
	}
}