
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;
}


function getWindowWidth() {
	var windowWidth = 0;
	if (typeof(window.innerWidth) == 'number') {
		windowWidth = window.innerWidth;
	}  
	else {
		if (document.documentElement && document.documentElement.clientWidth) {
				windowWidth = document.documentElement.clientWidth;
		} 
		else {
			if (document.body && document.body.clientWidth) {
				windowWidth = document.body.clientWidth;
			}
		}
	}
	return windowWidth;
}


var DEFAULTCONTENTHEIGHT = 0;

function setFooter() {
/*
	if (document.getElementById) {
		var windowHeight = getWindowHeight();
		if (windowHeight > 0) {
			DEFAULTCONTENTHEIGHT = document.getElementById('con').offsetHeight;
			var footerElement = document.getElementById('con_footer');
			var footerHeight = footerElement.offsetHeight;
			if (windowHeight - (DEFAULTCONTENTHEIGHT + footerHeight) >= 0) {
				footerElement.style.position = 'absolute';
				footerElement.style.top = (windowHeight - footerHeight + 0) + 'px'; // het getal erbij is de padding van de 'con' container. 
			}
			else {
				//footerElement.style.position = 'static';
				footerElement.style.position = 'absolute';
				footerElement.style.top = (DEFAULTCONTENTHEIGHT + 0) + 'px'; // het getal erbij is de padding van de 'con' container.
			}
		}
	}
*/
}

function setCenter() {
/*
	var windowWidth = getWindowWidth();
	var obj = document.getElementById('con')
	if (navigator.appName == 'Microsoft Internet Explorer') {
		if (windowWidth > 770) { 
			if (windowWidth % 2) { // == odd
				obj.style.left ='+1px';
				obj.style.margin = '';
			}
			else { // === even
				obj.style.margin = '0 auto';
				obj.style.left = ''; 
			}
		}
	}
*/
}
