!function(n){"use strict";n.fn.meanmenu=function(E){var e={meanMenuTarget:jQuery(this),meanMenuContainer:"body",meanMenuClose:"X",meanMenuCloseSize:"18px",meanMenuOpen:"",meanRevealPosition:"right",meanRevealPositionDistance:"0",meanRevealColour:"",meanScreenWidth:"480",meanNavPush:"",meanShowChildren:!0,meanExpandableChildren:!0,meanRemoveAttrs:!1,onePage:!1,meanDisplay:"block",removeElements:""},W=(E=n.extend(e,E),window.innerWidth||document.documentElement.clientWidth);return this.each(function(){function e(){var e;"center"===m&&(e=(window.innerWidth||document.documentElement.clientWidth)/2-22+"px",w="left:"+e+";right:auto;",C?jQuery(".meanmenu-reveal").animate({left:e}):jQuery(".meanmenu-reveal").css("left",e))}function n(){jQuery(".mean-bar,.mean-push").remove(),jQuery(r).removeClass("mean-container"),jQuery(t).css("display",g),M=A=!1,jQuery(f).removeClass("mean-remove")}function a(){var e="background:"+o+";color:"+o+";"+w;W<=c?(jQuery(f).addClass("mean-remove"),M=!0,jQuery(r).addClass("mean-container"),jQuery(".mean-container").prepend(''),e=jQuery(t).html(),jQuery(".mean-nav").html(e),Q&&jQuery("nav.mean-nav ul, nav.mean-nav ul *").each(function(){jQuery(this).is(".mean-remove")?jQuery(this).attr("class","mean-remove"):jQuery(this).removeAttr("class"),jQuery(this).removeAttr("id")}),jQuery(t).before('
'),jQuery(".mean-push").css("margin-top",d),jQuery(t).hide(),jQuery(".meanmenu-reveal").show(),jQuery(h).html(u),P=jQuery(h),jQuery(".mean-nav ul").hide(),v?y?(jQuery(".mean-nav ul ul").each(function(){jQuery(this).children().length&&jQuery(this,"li:first").parent().append(''+j+"")}),jQuery(".mean-expand").on("click",function(e){e.preventDefault(),jQuery(this).hasClass("mean-clicked")?(jQuery(this).prev("ul").slideUp(300,function(){}),jQuery(this).parent().removeClass("dropdown-opened")):(jQuery(this).prev("ul").slideDown(300,function(){}),jQuery(this).parent().addClass("dropdown-opened")),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"),P.removeClass("meanclose"),jQuery(P).click(function(e){e.preventDefault(),A=!1===A?(P.css("text-align","center"),P.css("text-indent","0"),P.css("font-size",s),jQuery(".mean-nav ul:first").slideDown(),!0):(jQuery(".mean-nav ul:first").slideUp(),!1),P.toggleClass("meanclose"),jQuery(P).is(".meanmenu-reveal.meanclose")?P.html(i):P.html(u),jQuery(f).addClass("mean-remove")}),p&&jQuery(".mean-nav ul > li > a:first-child").on("click",function(){jQuery(".mean-nav ul:first").slideUp(),A=!1,jQuery(P).toggleClass("meanclose").html(u)})):n()}var t=E.meanMenuTarget,r=E.meanMenuContainer,i=E.meanMenuClose,s=E.meanMenuCloseSize,u=E.meanMenuOpen,m=E.meanRevealPosition,l=E.meanRevealPositionDistance,o=E.meanRevealColour,c=E.meanScreenWidth,d=E.meanNavPush,h=".meanmenu-reveal",v=E.meanShowChildren,y=E.meanExpandableChildren,j=E.meanExpand,Q=E.meanRemoveAttrs,p=E.onePage,g=E.meanDisplay,f=E.removeElements,C=!1,w=((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))&&(C=!0),(navigator.userAgent.match(/MSIE 8/i)||navigator.userAgent.match(/MSIE 7/i))&&jQuery("html").css("overflow-y","scroll"),""),A=!1,M=!1,P=("right"===m&&(w="right:"+l+";left:auto;"),"left"===m&&(w="left:"+l+";right:auto;"),e(),"");C||jQuery(window).resize(function(){W=window.innerWidth||document.documentElement.clientWidth,n(),(W<=c?(a(),e):n)()}),jQuery(window).resize(function(){W=window.innerWidth||document.documentElement.clientWidth,C?(e(),W<=c?!1===M&&a():n()):(n(),W<=c&&(a(),e()))}),a()})}}(jQuery);