var content_height = 0;
function expand_content() {
  if (content_height == 0) {
    content_height = $('#content').height();
  } else {
    $('#content').height(content_height);
  }
  var extra_room = $(window).height() - $('#main').height();
  if (extra_room > 0) {
    // TODO: should be -4 on about/info pages
    $('#content').height(content_height + extra_room - 5);
  }
}
$(document).ready(expand_content);
$(window).resize(expand_content);
