(function () {
	var originalHeight = 0;
	
	function FixLayout () {
		var layout = document.getElementById ("Layout");
		var h1 = layout.offsetHeight;
		var h2 = 0;
		
		if (!originalHeight) {
			originalHeight = h1;
		}
		
		if (window.innerHeight) {
			h2 = window.innerHeight;
		} else if (document.documentElement && document.documentElement.clientHeight) {
			h2 = document.documentElement.clientHeight;
		} else {
			h2 = document.body.clientHeight;
		}
		
		if (h2 > originalHeight) {
			layout.style.height = h2 + "px";
		} else {
			layout.style.height = originalHeight + "px";
		}
	}
	
	window.FixLayout = FixLayout;
}) ();