$(document).ready(function(){
  adjust_content_size();
  
  var ie55 = (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) == 4 && navigator.appVersion.indexOf("MSIE 5.5") != -1);
	var ie6 = (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) == 4 && navigator.appVersion.indexOf("MSIE 6.0") != -1);

	if(!jQuery.browser.msie && !(ie55 || ie6)) {
    $(window).resize(adjust_content_size);
  }
});

function adjust_content_size() {
  visible_height = $("#content").height() + $("#header").height() + $("#footer").height();
  if(visible_height < $("#page").height()) {
    var difference = $("#page").height() - visible_height;
    $("#content").height($("#content").height() + difference+30);
  }
}