!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: "", meanscreenwidth: "991", meannavpush: "", meanshowchildren: !0, meanexpandablechildren: !0, meanexpand: "+", meancontract: "-", meanremoveattrs: !1, onepage: !1, meandisplay: "block", removeelements: "", sitelogo: "site logo" }; n = e.extend(a, n); var t = window.innerwidth || document.documentelement.clientwidth; return this.each(function () { var e = n.meanmenutarget, a = n.meanmenucontainer, r = n.meanmenuclose, i = n.meanmenuclosesize, s = n.meanmenuopen, u = n.meanrevealposition, m = n.meanrevealpositiondistance, l = n.meanrevealcolour, o = n.meanscreenwidth, c = n.meannavpush, h = ".meanmenu-reveal", v = n.meanshowchildren, d = n.meanexpandablechildren, y = n.meanexpand, j = n.meancontract, q = n.meanremoveattrs, f = n.onepage, g = n.meandisplay, p = n.removeelements, c = n.sitelogo, w = !1; (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)) && (w = !0), (navigator.useragent.match(/msie 8/i) || navigator.useragent.match(/msie 7/i)) && jquery("html").css("overflow-y", "scroll"); var x = "", a = function () { if ("center" === u) { var e = (window.innerwidth || document.documentelement.clientwidth) / 2 - 22 + "px"; x = "left:" + e + ";right:auto;", w ? jquery(".meanmenu-reveal").animate({ left: e }) : jquery(".meanmenu-reveal").css("left", e) } }, e = !1, m = !1; "right" === u && (x = "right:" + m + ";left:auto;"), "left" === u && (x = "left:" + m + ";right:auto;"), a(); var p = "", w = function () { p.html(jquery(p).is(".meanmenu-reveal.meanclose") ? r : s) }, s = function () { jquery(".mean-bar,.mean-push").remove(), jquery(a).removeclass("mean-container"), jquery(e).css("display", g), e = !1, m = !1, jquery(p).removeclass("mean-remove") }, b = function () { var n = "background:" + l + ";color:" + l + ";" + x; if (o >= t) { jquery(p).addclass("mean-remove"), m = !0, jquery(a).addclass("mean-container"), jquery(".mean-container").prepend('
'); var r = jquery(e).html(); jquery(".mean-nav").html(r), 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(e).before(''), jquery(".mean-push").css("margin-top", c), jquery(e).hide(), jquery(".meanmenu-reveal").show(), jquery(h).html(s), p = jquery(h), jquery(".mean-nav ul").hide(), v ? d ? (jquery(".mean-nav ul ul").each(function () { jquery(this).children().length && jquery(this, "li:first").parent().append('' + y + "") }), jquery(".mean-expand").on("click", function (e) { e.preventdefault(), jquery(this).hasclass("mean-clicked") ? (jquery(this).text(y), jquery(this).prev("ul").slideup(300, function () { })) : (jquery(this).text(j), 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"), p.removeclass("meanclose"), jquery(p).click(function (e) { e.preventdefault(), !1 === e ? (p.css("text-align", "center"), p.css("text-indent", "0"), p.css("font-size", i), jquery(".mean-nav ul:first").slidedown(), e = !0) : (jquery(".mean-nav ul:first").slideup(), e = !1), p.toggleclass("meanclose"), w(), jquery(p).addclass("mean-remove") }), f && jquery(".mean-nav ul > li > a:first-child").on("click", function () { jquery(".mean-nav ul:first").slideup(), e = !1, jquery(p).toggleclass("meanclose").html(s) }) } else s() }; w || jquery(window).resize(function () { t = window.innerwidth || document.documentelement.clientwidth, s(), o >= t ? (b(), a()) : s() }), jquery(window).resize(function () { t = window.innerwidth || document.documentelement.clientwidth, w ? (a(), o >= t ? !1 === m && b() : s()) : (s(), o >= t && (b(), a())) }), b() }) } }(jquery);