var minPageHeight = 290;

function getHeight(){
	if (document.body.scrollHeight && navigator.appVersion.indexOf("Win") != -1) {
		return document.body.scrollHeight;
	}else if (document.documentElement.scrollHeight) {
		return document.documentElement.scrollHeight;
	}else if (document.documentElement.offsetHeight) {
		return document.documentElement.offsetHeight;
	}else{
		return 4000;
	}
}

function resizeFrame(howHigh) {
	if(parent.document.getElementById("content")){
		var newHeight=Math.max(howHigh,minPageHeight)+"px";
		parent.document.getElementById("content").style.height=newHeight;
		if(document.getElementById("footerimage")){
			document.getElementById("footerimage").style.top=(parseInt(newHeight)-10)+"px";
		}
	}
}


function loadAll(){
	resizeFrame(minPageHeight);
	var newHeight = getHeight();
	resizeFrame(newHeight);
}
