beginStuff = function() {
	stuffPage();
	window.onresize = stuffPage;
}

stuffPage = function() {
	// get the height of the display area on the browser
	var winHeight = 0;
	var offset = 80;
	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");
	if ( Temp ) {
		divHeight = findPosY( Temp );
			//alert( winHeight + "\n" + divHeight + "\n" + (parseInt(winHeight - divHeight) -offset) );
		// if the StuffPage top - display height < X then stuff page with the difference
		if ( parseInt(winHeight - divHeight) - offset > 0 ) {
			Temp.style.height = String( parseInt(winHeight - divHeight) - offset + "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' , beginStuff , false );