function adjustBackground() {
  // Footer on bottom, forever and ever and ever.
  // Couldn't do this with CSS & get the background to go all the way to the bottom, too.
  
  var wrapperHeight = $('#wrapper').height();
  var footerHeight = $('#footer').height();
  var windowHeight = $(window).height();
  if( (wrapperHeight + footerHeight) < windowHeight ) {
    $('#footer').addClass('sticky');
  }

  $('#bg').height($('#envelope').height());

}
(function($) {
  $(window).ready(function() {
    $('body').removeClass('no-background');
    adjustBackground();
    $(window).resize(adjustBackground);
  });
})(jQuery);

