function autoSize(id, offset) {
	var n = document.getElementById(id);
	if (n) {
		var top = n.offsetTop;
		var availHeight = document.body.clientHeight;
		var newHeight = availHeight-top-offset;
		if (newHeight > 200) n.style.height = newHeight + "px";
		else n.style.height = 200 + "px";
	}
}
window.storedOnload = window.onload;
window.onload = function () {
	autoSize("contentContain", 0); //Alter this line to set the correct id and offset (for allowing some space below the div...)
	autoSize("welcome", 330); //Alter this line to set the correct id and offset (for allowing some space below the div...)
	window.onresize = document.body.onresize = this.onload;
	if (window.onload) return window.storedOnload();
	else return true;
}

