
$(document).ready(function() {
    var space = $(document).height() - $('div#container').height() + 10;
    if (space > 10) {
      $('div#footer').css('margin-top', space + 'px');
    }
  });
  
