text: (function(){var a=function(a,b){return function(){return a.apply(b,arguments)}},b=[].slice;!function(c){var d;return d=function(){function b(b,d){this._clickHandler=a(this._clickHandler,this),this.options=c.extend({},this.defaults,d),this.$el=c(b),this._checkOptions(),this.$el.addClass("tendina"),this.firstLvlSubmenu=".tendina > li",this.secondLvlSubmenu=".tendina > li > ul > li",this.firstLvlSubmenuLink=""+this.firstLvlSubmenu+" > a",this.secondLvlSubmenuLink=""+this.secondLvlSubmenu+" > a",this._hideSubmenus(),this._bindEvents()}return b.prototype.defaults={animate:!0,speed:500},b.prototype._bindEvents=function(){return c(document).on("click.tendina",""+this.firstLvlSubmenuLink+", "+this.secondLvlSubmenuLink,this._clickHandler)},b.prototype._unbindEvents=function(){return c(document).off("click.tendina")},b.prototype._isFirstLevel=function(a){return c(a).parent().parent().hasClass("tendina")?!0:void 0},b.prototype._clickHandler=function(a){var b,c;return b=a.currentTarget,c=this._isFirstLevel(b)?this.firstLvlSubmenu:this.secondLvlSubmenu,this._hasChildenAndIsHidden(b)?(a.preventDefault(),this._openSubmenu(c,b)):this._isCurrentlyOpen(b)?(a.preventDefault(),this._closeSubmenu(b)):void 0},b.prototype._openSubmenu=function(a,b){var d,e,f;return e=c(a).find("> ul"),f=c(a).find("> ul > li > ul"),d=c(b).next("ul"),c(a).removeClass("selected"),c(b).parent().addClass("selected"),this._close(e),this._open(d),a===this.firstLvlSubmenu&&(c(a).find("> ul > li").removeClass("selected"),this._close(f)),this.options.openCallback?this.options.openCallback(c(b).parent()):void 0},b.prototype._closeSubmenu=function(a){var b;return b=c(a).next("ul"),c(a).parent().removeClass("selected"),this._close(b),this.options.closeCallback?this.options.closeCallback(c(a).parent()):void 0},b.prototype._open=function(a){return this.options.animate?a.slideDown(this.options.speed):a.show()},b.prototype._close=function(a){return this.options.animate?a.slideUp(this.options.speed):a.hide()},b.prototype._hasChildenAndIsHidden=function(a){return c(a).next("ul").length>0&&c(a).next("ul").is(":hidden")},b.prototype._isCurrentlyOpen=function(a){return c(a).parent().hasClass("selected")},b.prototype._hideSubmenus=function(){return c(""+this.firstLvlSubmenu+" > ul, "+this.secondLvlSubmenu+" > ul").hide(),c(""+this.firstLvlSubmenu+" > ul").removeClass("selected")},b.prototype._showSubmenus=function(){return c(""+this.firstLvlSubmenu+" > ul, "+this.secondLvlSubmenu+" > ul").show(),c(""+this.firstLvlSubmenu).removeClass("selected")},b.prototype._checkOptions=function(){return this.options.animate!==!0&&console.warn("jQuery.fn.Tendina - '"+this.options.animate+"' is not a valid parameter for the 'animate' option. Falling back to default value."),this.options.speed!==parseInt(this.options.speed)?console.warn("jQuery.fn.Tendina - '"+this.options.speed+"' is not a valid parameter for the 'speed' option. Falling back to default value."):void 0},b.prototype.destroy=function(){return this.$el.removeData("tendina"),this._unbindEvents(),this._showSubmenus(),this.$el.removeClass("tendina"),this.$el.find(".selected").removeClass("selected")},b.prototype.hideAll=function(){return this._hideSubmenus()},b.prototype.showAll=function(){return this._showSubmenus()},b}(),c.fn.extend({tendina:function(){var a,e;return e=arguments[0],a=2<=arguments.length?b.call(arguments,1):[],this.each(function(){var b,f;return b=c(this),f=b.data("tendina"),f||b.data("tendina",f=new d(this,e)),"string"==typeof e?f[e].apply(f,a):void 0})}})}(window.jQuery,window)}).call(this);