      $(document).ready(function() {
        function SetFooter() { if ($("#body").offset().top + $("#body").height() < $(window).height()) { $("#foot").addClass("absolute"); } else { $("#foot").removeClass("absolute"); } }
        $(window).resize(function() { SetFooter(); });
        SetFooter();
      });
