(function($){$.fn.getHeightOfItems=function(count,includeMargin){if(count=='all'||count>this.length)count=this.length;if(count>0)
{var blocksHeight=0;for(var i=0;i<count;i++)
{if(this.get(i))
{var blockEl=this.eq(i);blocksHeight+=blockEl.height()+parseInt(blockEl.css('padding-bottom'))+parseInt(blockEl.css('padding-top'));if(includeMargin!="false")blocksHeight+=parseInt(blockEl.css('margin-top'))+parseInt(blockEl.css('margin-bottom'));}}
return blocksHeight-parseInt(this.eq(this.length-1).css('margin-bottom'))}};})(jQuery);
