jQuery(document).on("ready fusion-element-render-fusion_faq",(function(i,s){(void 0!==s?jQuery('div[data-cid="'+s+'"]').find(".fusion-faq-shortcode"):jQuery(".fusion-faq-shortcode")).each((function(){var i,s,n,e,f=jQuery(this),a=f.find(".fusion-filters");f.find(".fusion-faqs-wrapper").fadeIn(),a.length&&(a.fadeIn(),i=a.find(".fusion-filter"),s=a.find(".fusion-active").children("a"),n=s.attr("data-filter").substr(1),e=jQuery(this).find(".fusion-faqs-wrapper .fusion-faq-post"),i&&i.each((function(){var i=jQuery(this),s=i.children("a").data("filter");e&&(n.length&&e.hide(),e.each((function(){var e=jQuery(this);e.hasClass(s.substr(1))&&i.hasClass("fusion-hidden")&&i.removeClass("fusion-hidden"),n.length&&e.hasClass(n)&&e.show()})))}))),f.find(".fusion-filters a").on("click",(function(i){var s=jQuery(this).attr("data-filter");i.preventDefault(),f.find(".fusion-faqs-wrapper .fusion-faq-post").fadeOut(),setTimeout((function(){f.find(".fusion-faqs-wrapper .fusion-faq-post"+s).fadeIn()}),400),jQuery(this).parents(".fusion-filters").find(".fusion-filter").removeClass("fusion-active"),jQuery(this).parent().addClass("fusion-active")}))}))}));