function getHeight() {
	var height = 0;

	if(typeof(window.innerHeight) == 'number') {
		// Non-IE
		height = window.innerHeight;
	} else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
		// IE 6+ in 'standards compliant mode'
		height = document.documentElement.clientHeight;
	} else if(document.body && (document.body.clientWidth || document.body.clientHeight)) {
		// IE 4 compatible
		height = document.body.clientHeight;
	}

	return height;
}

function updateHeight() {
	var header = 120;
	var footer = 50;
	var padding = 60;
	var headline = 25;
	var minHeight = 270;
	var height = getHeight();
	var contentHeight = height - header - footer - padding - headline;

	if(contentHeight <= minHeight) {
		contentHeight = minHeight;
	}

	document.getElementById('content').style.height = contentHeight;
	document.getElementById('body').style.height = height;
}

//window.onload = updateHeight();
//window.onresize = updateHeight();
