(function(c){var b=c.event,a;b.special.smartresize={setup:function(){c(this).bind("resize",b.special.smartresize.handler)},teardown:function(){c(this).unbind("resize",b.special.smartresize.handler)},handler:function(g,d){var f=this,e=arguments;g.type="smartresize";if(a){clearTimeout(a)}a=setTimeout(function(){jQuery.event.handle.apply(f,e)},d==="execAsap"?0:100)}};c.fn.smartresize=function(d){return d?this.bind("smartresize",d):this.trigger("smartresize",["execAsap"])}})(jQuery);
