!function(a){a.fn.tile=function(b){var c,d,e,f,g,h=this.length-1;return b||(b=this.length),this.each(function(){g=this.style,g.removeProperty&&g.removeProperty("height"),g.removeAttribute&&g.removeAttribute("height")}),this.each(function(g){e=g%b,0==e&&(c=[]),c[e]=a(this),f=c[e].height(),(0==e||f>d)&&(d=f),g!=h&&e!=b-1||a.each(c,function(){this.height(d)})})}}(jQuery);