function returnBlockHeight(elem){$elem=$(elem);return $elem.height()+parseInt($elem.css('borderBottomWidth'))+parseInt($elem.css('borderTopWidth'))+parseInt($elem.css('paddingTop'))+parseInt($elem.css('paddingBottom'));}MinHeight100percent=function(elem,params){var params=params||{};this.params=params;this.subtract=params.subtract||'#footer';this.elem=elem||null;this.$elem=$(elem)||null;this.$body=$('body').eq(0);this.attachEvents();}
MinHeight100percent.prototype.calcHeight=function(){var self=this;var body=this.$body.height();var subtract=0;$(this.subtract).each(function(){subtract+=returnBlockHeight(this);});this.$elem.each(function(){$elem=$(this);var contentHeight=0;var top=this.offsetTop;var newHeight=body-top-subtract;$elem.height(newHeight);});}
MinHeight100percent.prototype.attachEvents=function(){var self=this;self.calcHeight();$(window).resize(function(){self.calcHeight();});$(window).load(function(){self.calcHeight();});}
$(document).ready(function(){new MinHeight100percent('.js-100percentMinHeight');})