!function(e){e.fn.collapsible=function(i){var a={accordion:void 0};return i=e.extend(a,i),this.each(function(){function a(i){c=o.find("> li > .collapsible-header"),i.hasClass("active")?i.parent().addClass("active"):i.parent().removeClass("active"),i.parent().hasClass("active")?i.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){e(this).css("height","")}}):i.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){e(this).css("height","")}}),c.not(i).removeClass("active").parent().removeClass("active"),c.not(i).parent().children(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){e(this).css("height","")}})}function s(i){i.hasClass("active")?i.parent().addClass("active"):i.parent().removeClass("active"),i.parent().hasClass("active")?i.siblings(".collapsible-body").stop(!0,!1).slideDown({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){e(this).css("height","")}}):i.siblings(".collapsible-body").stop(!0,!1).slideUp({duration:350,easing:"easeOutQuart",queue:!1,complete:function(){e(this).css("height","")}})}function t(e){var i=l(e);return i.length>0}function l(e){return e.closest("li > .collapsible-header")}var o=e(this),c=e(this).find("> li > .collapsible-header"),n=o.data("collapsible");o.off("click.collapse","> li > .collapsible-header"),c.off("click.collapse"),o.on("click.collapse","> li > .collapsible-header",function(o){var c=e(this),r=e(o.target);t(r)&&(r=l(r)),r.toggleClass("active"),i.accordion||"accordion"===n||void 0===n?a(r):(s(r),c.hasClass("active")&&s(c))});var c=o.find("> li > .collapsible-header");i.accordion||"accordion"===n||void 0===n?a(c.filter(".active").first()):c.filter(".active").each(function(){s(e(this))})})},e(document).ready(function(){e(".collapsible").collapsible()})}(jQuery);