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