(function(a){a.topZIndex=function(b){return Math.max(0,Math.max.apply(null,a.map(a(b||"*"),function(c){return isNaN(c=parseInt(a(c).css("z-index")))?null:c})))};a.fn.topZIndex=function(b){if(this.length===0){return this}b=a.extend({increment:1,selector:"*"},b);var d=a.topZIndex(b.selector),c=b.increment;return this.each(function(){a(this).css("z-index",d+=c)})}})(jQuery);
