$(window).bind("load", function() { 

       var footerHeight = 0,
           footerTop = 0,
           $footer = $(".footer_bottom");
		var header = $('.header').height();
		var content = $('#content').height();
	

       positionFooter();

       function positionFooter() {

                footerHeight = $footer.height();
				
				max_push = header + content;
				
                footerTop = ($(window).scrollTop()+$(window).height()-footerHeight-max_push)+"px";
				

               if ( ($(document.body).height()+footerHeight) < $(window).height()) {
                   $footer.css({
						paddingTop: footerTop
                   })
               } 
       }

       $(window).scroll(positionFooter)
       $(window).resize(positionFooter)

});
