(function($){$.fn.always_at_bottom=function(){return this.each(function(){var $this=$(this);if($(document.body).height()<$(window).height()){$(window).load(function(){var footer_width=$this.css('width');var footer_margin_bottom=$this.css('margin-bottom');var footer_margin_bottom_d=getDigitFromDigitPX(footer_margin_bottom);var footer_bottom_position_should_be=0-footer_margin_bottom_d;$this.css({position:"absolute",bottom:(footer_bottom_position_should_be+"px"),'width':footer_width});});};function getDigitFromDigitPX(input){var re=new RegExp(/(\d*)px/);var m=re.exec(input);if(m==null){return 0;}else{return parseInt(m[1]);}};});};})(jQuery);
