/*! * jquery meanmenu v2.0.6 * @copyright (c) 2012-2013 chris wharton (https://github.com/weare2ndfloor/meanmenu) * */ !function(e){"use strict";e.fn.meanmenu=function(n){var a={meanmenutarget:jquery(this),meanmenucontainer:"body",meanmenuclose:"x",meanmenuclosesize:"18px",meanmenuopen:"",meanrevealposition:"right",meanrevealpositiondistance:"0",meanrevealcolour:"",meanrevealhovercolour:"",meanscreenwidth:"480",meannavpush:"",meanshowchildren:!0,meanexpandablechildren:!0,meanexpand:"+",meancontract:"-",meanremoveattrs:!1,onepage:!1,removeelements:""},n=e.extend(a,n),t=window.innerwidth||document.documentelement.clientwidth;return this.each(function(){function e(){if("center"==c){var e=window.innerwidth||document.documentelement.clientwidth,n=e/2-22+"px";p="left:"+n+";right:auto;",a?jquery(".meanmenu-reveal").animate({left:n}):jquery(".meanmenu-reveal").css("left",n)}}function a(){jquery(w).is(".meanmenu-reveal.meanclose")?w.html(o):w.html(s)}function r(){jquery(".mean-bar,.mean-push").remove(),jquery(m).removeclass("mean-container"),jquery(u).show(),e=!1,m=!1,jquery(x).removeclass("mean-remove")}function i(){if(d>=t){jquery(x).addclass("mean-remove"),m=!0,jquery(m).addclass("mean-container"),jquery(".mean-container").prepend('
');var e=jquery(u).html();jquery(".mean-nav").html(e),c&&jquery("nav.mean-nav ul, nav.mean-nav ul *").each(function(){jquery(this).removeattr("class"),jquery(this).removeattr("id")}),jquery(u).before(''),jquery(".mean-push").css("margin-top",y),jquery(u).hide(),jquery(".meanmenu-reveal").show(),jquery(j).html(s),w=jquery(j),jquery(".mean-nav ul").hide(),q?f?(jquery(".mean-nav ul ul").each(function(){jquery(this).children().length&&jquery(this,"li:first").parent().append(''+g+"")}),jquery(".mean-expand").on("click",function(e){e.preventdefault(),jquery(this).hasclass("mean-clicked")?(jquery(this).text(g),jquery(this).prev("ul").slideup(300,function(){})):(jquery(this).text(p),jquery(this).prev("ul").slidedown(300,function(){})),jquery(this).toggleclass("mean-clicked")})):jquery(".mean-nav ul ul").show():jquery(".mean-nav ul ul").hide(),jquery(".mean-nav ul li").last().addclass("mean-last"),w.removeclass("meanclose"),jquery(w).click(function(e){e.preventdefault(),0==e?(w.css("text-align","center"),w.css("text-indent","0"),w.css("font-size",l),jquery(".mean-nav ul:first").slidedown(),e=!0):(jquery(".mean-nav ul:first").slideup(),e=!1),w.toggleclass("meanclose"),a(),jquery(x).addclass("mean-remove")}),w&&jquery(".mean-nav ul > li > a:first-child").on("click",function(){jquery(".mean-nav ul:first").slideup(),e=!1,jquery(w).toggleclass("meanclose").html(s)})}else r()}var u=n.meanmenutarget,m=n.meanmenucontainer;n.meanreveal;var o=n.meanmenuclose,l=n.meanmenuclosesize,s=n.meanmenuopen,c=n.meanrevealposition,v=n.meanrevealpositiondistance,h=n.meanrevealcolour;n.meanrevealhovercolour;var d=n.meanscreenwidth,y=n.meannavpush,j=".meanmenu-reveal",q=n.meanshowchildren,f=n.meanexpandablechildren,g=n.meanexpand,p=n.meancontract,c=n.meanremoveattrs,w=n.onepage,x=n.removeelements;if(navigator.useragent.match(/iphone/i)||navigator.useragent.match(/ipod/i)||navigator.useragent.match(/ipad/i)||navigator.useragent.match(/android/i)||navigator.useragent.match(/blackberry/i)||navigator.useragent.match(/windows phone/i))var a=!0;(navigator.useragent.match(/msie 8/i)||navigator.useragent.match(/msie 7/i))&&jquery("html").css("overflow-y","scroll");var e=!1,m=!1;if("right"==c&&(p="right:"+v+";left:auto;"),"left"==c)var p="left:"+v+";right:auto;";e();var r="background:"+h+";color:"+h+";"+p,w="";a||jquery(window).resize(function(){t=window.innerwidth||document.documentelement.clientwidth,t>d?r():r(),d>=t?(i(),e()):r()}),window.onorientationchange=function(){e(),t=window.innerwidth||document.documentelement.clientwidth,t>=d&&r(),d>=t&&0==m&&i()},i()})}}(jquery);