text: !function(a){a.fn.tabbify=function(b){function c(){b.onChange&&b.onChange.call(this,d,g,h)}var b=b||{};if(this.length>1)return this.each(function(){a(this).tabbify(b)}),this;var d=0,e="",f=null,g=a(this).find("ul li > a"),h=a(this).find(".tab-pane"),i=this;return g.click(function(b){return g.removeClass("active"),e=a(b.target).attr("href"),g.each(function(c,e){var f=a(e).attr("href");if(b.target==e)d=c,a(b.target).addClass("active");else{var g=a(f);0==g.length&&(g=a(h[c])),g.removeClass("active"),g.css("display","none")}}),f=a(e),0==f.length&&(f=a(h[d])),f.fadeIn(),c.call(i),!1}),this.prev=function(){return d>0&&g[--d].click(),i},this.next=function(){return d<g.length&&g[++d].click(),i},this.changeTab=function(b){return"number"===a.type(b)?b<g.length&&b>=0&&g[b].click():"string"===a.type(b)?a(i).find(b).click():"object"===a.type(b)&&b.click(),i},this.selectedTabIndex=function(){return d},this.tabs=function(){return g},this.panes=function(){return h},this.isFirst=function(){return 0==d},this.isLast=function(){return d==g.length-1},this}}(jQuery);