!function(a,b,c){"use strict";var d=function(d,e){var f=!!b.getcomputedstyle;f||(b.getcomputedstyle=function(a){return this.el=a,this.getpropertyvalue=function(b){var c=/(\-([a-z]){1})/g;return"float"===b&&(b="stylefloat"),c.test(b)&&(b=b.replace(c,function(){return arguments[2].touppercase()})),a.currentstyle[b]?a.currentstyle[b]:null},this});var g,h,i,j,k,l,m=function(a,b,c,d){if("addeventlistener"in a)try{a.addeventlistener(b,c,d)}catch(e){if("object"!=typeof c||!c.handleevent)throw e;a.addeventlistener(b,function(a){c.handleevent.call(c,a)},d)}else"attachevent"in a&&("object"==typeof c&&c.handleevent?a.attachevent("on"+b,function(){c.handleevent.call(c)}):a.attachevent("on"+b,c))},n=function(a,b,c,d){if("removeeventlistener"in a)try{a.removeeventlistener(b,c,d)}catch(e){if("object"!=typeof c||!c.handleevent)throw e;a.removeeventlistener(b,function(a){c.handleevent.call(c,a)},d)}else"detachevent"in a&&("object"==typeof c&&c.handleevent?a.detachevent("on"+b,function(){c.handleevent.call(c)}):a.detachevent("on"+b,c))},o=function(a){if(a.children.length<1)throw new error("the nav container has no containing elements");for(var b=[],c=0;c10||math.abs(a.touches[0].clienty-this.starty)>10)&&(this.touchhasmoved=!0)},_ontouchend:function(a){if(this._preventdefault(a),k&&!this.touchhasmoved){if("touchend"===a.type)return void this.toggle();var c=a||b.event;3!==c.which&&2!==c.button&&this.toggle()}},_onkeyup:function(a){var c=a||b.event;13===c.keycode&&this.toggle()},_transitions:function(){if(h.animate){var a=g.style,b="max-height "+h.transition+"ms";a.webkittransition=a.moztransition=a.otransition=a.transition=b}},_calcheight:function(){for(var a=0,b=0;b