function intPageHeight() {
	// http://www.quirksmode.org/viewport/compatibility.html
	var x,y;
	var test1 = document.body.scrollHeight;
	var test2 = document.body.offsetHeight
	if (test1 > test2) // all but Explorer Mac
	{
		//x = document.body.scrollWidth;
		y = document.body.scrollHeight;
	}
	else // Explorer Mac;
	//would also work in Explorer 6 Strict, Mozilla and Safari
	{
		//x = document.body.offsetWidth;
		y = document.body.offsetHeight;
	}
	return y;
}

function intScreenHeight() {
	// http://www.quirksmode.org/viewport/compatibility.html
	var x,y;
	if (self.innerHeight) // all except Explorer
	{
		// x = self.innerWidth;
		y = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight)
	// Explorer 6 Strict Mode
	{
		// x = document.documentElement.clientWidth;
		y = document.documentElement.clientHeight;
	}
	else if (document.body) // other Explorers
	{
		// x = document.body.clientWidth;
		y = document.body.clientHeight;
	}
	
	return y;
}


function setMargeKolomHeight(){
	if ((pageType=="index") || (pageType=="content")) {	
		headerHeight=getElt('header').offsetHeight;
		intFtHeight=getElt('theFooter').offsetHeight;
		intContentHeight=getElt('allecontent').offsetHeight;
		
		if (pageType=="content") {
			/* content pagina, opbouw als volgt:
			[header]
			[navsmall]
			[allecontent]
			[footer]
			
			Bijzonderheid voor ijoevers is dat de derde kolom in de allecontent div, soms, grijs moet zijn... deze kolom heeft als div id "margeKolom" en reageert op de variable fillUpThirdKol.			
			*/
			navHeight=getElt('navSmall').offsetHeight;
			getElt('allecontent').style.top=headerHeight + navHeight;
			if (fillUpThirdKol) {
				getElt("margeKolom").style.top=headerHeight + navHeight;
				getElt("margeKolom").style.height=intContentHeight;
				getElt("margeKolom").style.visibility='visible';
			}
		}
		
		if  (pageType=="index") {
			/* index pagina, opbouw als volgt:
			[header]
			[topnav]
			[allecontent]
			[footer]
			*/
			navHeight=getElt('topnav').offsetHeight;
			getElt('allecontent').style.top=headerHeight + navHeight;
		}
		
		getElt("theFooter").style.top=headerHeight + navHeight + intContentHeight;
	} else {
		// sorry? onbekend paginatype? 
	}
}