text: !function(a){a.fn.extend({easyResponsiveTabs:function(t){var e={type:"default",width:"auto",fit:!0,closed:!1,activate:function(){}},s=t=a.extend(e,t),i=s.type,r=s.fit,n=s.width,c="vertical",o="accordion";a(this).bind("tabactivate",function(a,e){"function"==typeof t.activate&&t.activate.call(e,a)}),this.each(function(){var e=a(this),s=e.find("ul.resp-tabs-list");e.find("ul.resp-tabs-list li").addClass("resp-tab-item"),e.css({display:"block",width:n}),e.find(".resp-tabs-container > div").addClass("resp-tab-content"),i==c&&e.addClass("resp-vtabs"),1==r&&e.css({width:"100%",margin:"0px"}),i==o&&(e.addClass("resp-easy-accordion"),e.find(".resp-tabs-list").css("display","none"));var d;e.find(".resp-tab-content").before("<h2 class='resp-accordion' role='tab'><span class='resp-arrow'></span></h2>");var l=0;e.find(".resp-accordion").each(function(){d=a(this);var t=e.find(".resp-tab-item:eq("+l+")").html();e.find(".resp-accordion:eq("+l+")").append(t),d.attr("aria-controls","tab_item-"+l),l++});var p,b=0;e.find(".resp-tab-item").each(function(){$tabItem=a(this),$tabItem.attr("aria-controls","tab_item-"+b),$tabItem.attr("role","tab"),!0===t.closed||"accordion"===t.closed&&!s.is(":visible")||"tabs"===t.closed&&s.is(":visible")||(e.find(".resp-tab-item").first().addClass("resp-tab-active"),e.find(".resp-accordion").first().addClass("resp-tab-active"),e.find(".resp-tab-content").first().addClass("resp-tab-content-active").attr("style","display:block"));var i=0;e.find(".resp-tab-content").each(function(){(p=a(this)).attr("aria-labelledby","tab_item-"+i),i++}),b++}),e.find("[role=tab]").each(function(){var t=a(this);t.click(function(){var s=t.attr("aria-controls");if(t.hasClass("resp-accordion")&&t.hasClass("resp-tab-active"))return e.find(".resp-tab-content-active").slideUp("",function(){a(this).addClass("resp-accordion-closed")}),t.removeClass("resp-tab-active"),!1;!t.hasClass("resp-tab-active")&&t.hasClass("resp-accordion")?(e.find(".resp-tab-active").removeClass("resp-tab-active"),e.find(".resp-tab-content-active").slideUp().removeClass("resp-tab-content-active resp-accordion-closed"),e.find("[aria-controls="+s+"]").addClass("resp-tab-active"),e.find(".resp-tab-content[aria-labelledby = "+s+"]").slideDown().addClass("resp-tab-content-active")):(e.find(".resp-tab-active").removeClass("resp-tab-active"),e.find(".resp-tab-content-active").removeAttr("style").removeClass("resp-tab-content-active").removeClass("resp-accordion-closed"),e.find("[aria-controls="+s+"]").addClass("resp-tab-active"),e.find(".resp-tab-content[aria-labelledby = "+s+"]").addClass("resp-tab-content-active").attr("style","display:block")),t.trigger("tabactivate",t)}),a(window).resize(function(){e.find(".resp-accordion-closed").removeAttr("style")})})})}})}(jQuery);