!function(a){var t=function(t,e){function n(e){f(e),t.addClass("febatab-parent-div"),o.addClass("febatab-ul febatab-rounded-all"),r.addClass("febatab-normal-tab febatab-rounded-top febatab-inactive-tab"),a.browser.msie&&o.css("height","1%");var n;r.each(function(){n=a(this).find("a").attr("href"),n=n.replace(location.href.substring(0,location.href.lastIndexOf("/"))+"/",""),d=d.add(a(n))}),n=null,d.addClass("febatab-content"),s(),r.each(function(e,n){a(n).click(function(n){n.preventDefault(),t.trigger("febatabselected"),s(),a(this).addClass("febatab-active-tab").removeClass("febatab-inactive-tab"),a(d[e]).addClass("febatab-active-content").removeClass("febatab-inactive-content"),t.trigger("febatabvisible")})}),c.selectedTab>0&&setTimeout(function(){a(r[c.selectedTab-1]).triggerHandler("click")},0)}function b(a){t.removeClass("febatab-parent-div"),o.removeClass("febatab-ul febatab-rounded-all"),r.removeClass("febatab-normal-tab febatab-rounded-top febatab-inactive-tab febatab-active-tab"),d.removeClass("febatab-content febatab-active-content febatab-inactive-content"),t.removeData("febaTabsInstance")}function i(a){f(a)}function s(){r.each(function(t){a(this).removeClass("febatab-active-tab").addClass("febatab-inactive-tab"),a(d[t]).addClass("febatab-inactive-content").removeClass("febatab-active-content")})}function f(t){t&&a.extend(!0,c,t)}var c={selectedTab:"1"},o=t.find("ul:first"),r=o.find("li"),d=a([]);this.initialize=n,this.destroyTabs=b,this.setOptions=i};a.febaTabs={version:"0.09"};a.fn.febaTabs=function(e){var n=arguments,b={init:function(a){if(!this.data("febaTabsInstance")){var e=new t(this,a);this.data("febaTabsInstance",e),e.initialize(a)}},destroy:function(a){var t=this.data("febaTabsInstance");t&&t.destroyTabs(a)},setOptions:function(a){var t=this.data("febaTabsInstance");t&&t.destroyTabs(a)}};return this.each(function(t,i){var s=a(i);b[e]?b[e].call(s,n[1]):"object"!=typeof e&&e?a.error("Method "+e+" does not exist on jQuery.febaTabs"):b.init.call(s,n[0])})}}(jQuery);