// This script extends the out div to fit the page height.

function resize(){  

var frame = document.getElementById("main");
var htmlheight = document.body.parentNode.scrollHeight; // Read content height.
var windowheight = window.innerHeight; // Read window height in Moz.
var isIE = (navigator.appName.indexOf("Microsoft") !=-1); // Check if browser is IE.

if(isIE) {windowheight = document.documentElement.clientHeight;} // Read window height in IE.

if ( htmlheight > windowheight ) { 
	frame.style.height = htmlheight - 228 + "px";
	}  
else { 
	frame.style.height = windowheight - 228 + "px"; 
	}  
}
