stuffPage = function() {
	// OffsetHeight is the distance between the top of
	// the 'PagePadder' DIV block and the bottom of the page. minus the footer height
	//in practice you will have to jiggle this into place...
	var OffsetHeight = 70;
	// get the height of the display area on the browser
	var winHeight = 0;
	if ( typeof( window.innerHeight ) == 'number' ) {
		winHeight = window.innerHeight;	// non IE
	} else if ( document.documentElement && document.documentElement.clientHeight ) {
		winHeight = document.documentElement.clientHeight;
		//IE 6+ in 'standards compliant mode'
	} else if ( document.body && document.body.clientHeight ) {
		winHeight = document.body.clientHeight; //IE 4 compatible
	}
	// get the top of the StuffPage container on the page
	Temp = document.getElementById("StuffPage");
	divHeight = findPosY( Temp );
	if ( parseInt(winHeight - divHeight) - OffsetHeight > 0 ) {
		Temp.style.height = String( parseInt(winHeight - divHeight) - OffsetHeight + "px" ); // IE
	}
}
 
function findPosY(obj) {
	var curtop = 0;
	if (obj.offsetParent) {
		while ( obj.offsetParent ) {
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if ( obj.y ) { curtop += obj.y; }
	return curtop;
}
 
addHandler( window, 'load', stuffPage , false );
addHandler( window, 'resize', stuffPage , false );
