!function(f){f.fn.extend({easyResponsiveTabs:function(o){var a=o=f.extend({type:"default",width:"auto",fit:!0,closed:!1,activate:function(){}},o),d=a.type,l=a.fit,p=a.width,b=window.location.hash,v=!(!window.history||!history.replaceState);f(this).bind("tabactivate",function(a,t){"function"==typeof o.activate&&o.activate.call(t,a)}),this.each(function(){var e,n=f(this),a=n.find("ul.resp-tabs-list"),r=n.attr("id");n.find("ul.resp-tabs-list li").addClass("resp-tab-item"),n.css({display:"block",width:p}),n.find(".resp-tabs-container > div").addClass("resp-tab-content"),function(){"vertical"==d&&n.addClass("resp-vtabs");1==l&&n.css({width:"100%",margin:"0px"});"accordion"==d&&(n.addClass("resp-easy-accordion"),n.find(".resp-tabs-list").css("display","none"))}(),n.find(".resp-tab-content").before("");var s=0;n.find(".resp-accordion").each(function(){e=f(this);var a=n.find(".resp-tab-item:eq("+s+")"),t=n.find(".resp-accordion:eq("+s+")");t.append(a.html()),t.data(a.data()),e.attr("aria-controls","tab_item-"+s),s++});var t=0;n.find(".resp-tab-item").each(function(){$tabItem=f(this),$tabItem.attr("aria-controls","tab_item-"+t),$tabItem.attr("role","tab");var a=0;n.find(".resp-tab-content").each(function(){f(this).attr("aria-labelledby","tab_item-"+a),a++}),t++});var i=0;if(""!=b){var c=b.match(new RegExp(r+"([0-9]+)"));null!==c&&2===c.length&&(i=parseInt(c[1],10)-1,t