/*
* jquery mmenu v5.5.3
* @requires jquery 1.7.0 or later
*
* mmenu.frebsite.nl
*
* copyright (c) fred heusschen
* www.frebsite.nl
*
* licensed under the mit license:
* http://en.wikipedia.org/wiki/mit_license
*/
!function(e){function n(){e[t].glbl||(l={$wndw:e(window),$html:e("html"),$body:e("body")},a={},i={},r={},e.each([a,i,r],function(e,n){n.add=function(e){e=e.split(" ");for(var t=0,s=e.length;s>t;t++)n[e[t]]=n.mm(e[t])}}),a.mm=function(e){return"mm-"+e},a.add("wrapper menu panels panel nopanel current highest opened subopened navbar hasnavbar title btn prev next listview nolistview inset vertical selected divider spacer hidden fullsubopen"),a.umm=function(e){return"mm-"==e.slice(0,3)&&(e=e.slice(3)),e},i.mm=function(e){return"mm-"+e},i.add("parent sub"),r.mm=function(e){return e+".mm"},r.add("transitionend webkittransitionend mousedown mouseup touchstart touchmove touchend click keydown"),e[t]._c=a,e[t]._d=i,e[t]._e=r,e[t].glbl=l)}var t="mmenu",s="5.5.3";if(!(e[t]&&e[t].version>s)){e[t]=function(e,n,t){this.$menu=e,this._api=["bind","init","update","setselected","getinstance","openpanel","closepanel","closeallpanels"],this.opts=n,this.conf=t,this.vars={},this.cbck={},"function"==typeof this.___deprecated&&this.___deprecated(),this._initmenu(),this._initanchors();var s=this.$pnls.children();return this._initaddons(),this.init(s),"function"==typeof this.___debug&&this.___debug(),this},e[t].version=s,e[t].addons={},e[t].uniqueid=0,e[t].defaults={extensions:[],navbar:{add:!0,title:"",titlelink:"panel"},onclick:{setselected:!0},slidingsubmenus:!0},e[t].configuration={classnames:{divider:"divider",inset:"inset",panel:"panel",selected:"selected",spacer:"spacer",vertical:"vertical"},clone:!1,openinginterval:25,panelnodetype:"ul, ol, div",transitionduration:400},e[t].prototype={init:function(e){e=e.not("."+a.nopanel),e=this._initpanels(e),this.trigger("init",e),this.trigger("update")},update:function(){this.trigger("update")},setselected:function(e){this.$menu.find("."+a.listview).children().removeclass(a.selected),e.addclass(a.selected),this.trigger("setselected",e)},openpanel:function(n){var s=n.parent();if(s.hasclass(a.vertical)){var i=s.parents("."+a.subopened);if(i.length)return this.openpanel(i.first());s.addclass(a.opened)}else{if(n.hasclass(a.current))return;var r=this.$pnls.children("."+a.panel),l=r.filter("."+a.current);r.removeclass(a.highest).removeclass(a.current).not(n).not(l).not("."+a.vertical).addclass(a.hidden),e[t].support.csstransitions||l.addclass(a.hidden),n.hasclass(a.opened)?n.nextall("."+a.opened).addclass(a.highest).removeclass(a.opened).removeclass(a.subopened):(n.addclass(a.highest),l.addclass(a.subopened)),n.removeclass(a.hidden).addclass(a.current),settimeout(function(){n.removeclass(a.subopened).addclass(a.opened)},this.conf.openinginterval)}this.trigger("openpanel",n)},closepanel:function(e){var n=e.parent();n.hasclass(a.vertical)&&(n.removeclass(a.opened),this.trigger("closepanel",e))},closeallpanels:function(){this.$menu.find("."+a.listview).children().removeclass(a.selected).filter("."+a.vertical).removeclass(a.opened);var e=this.$pnls.children("."+a.panel),n=e.first();this.$pnls.children("."+a.panel).not(n).removeclass(a.subopened).removeclass(a.opened).removeclass(a.current).removeclass(a.highest).addclass(a.hidden),this.openpanel(n)},togglepanel:function(e){var n=e.parent();n.hasclass(a.vertical)&&this[n.hasclass(a.opened)?"closepanel":"openpanel"](e)},getinstance:function(){return this},bind:function(e,n){this.cbck[e]=this.cbck[e]||[],this.cbck[e].push(n)},trigger:function(){var e=this,n=array.prototype.slice.call(arguments),t=n.shift();if(this.cbck[t])for(var s=0,a=this.cbck[t].length;a>s;s++)this.cbck[t][s].apply(e,n)},_initmenu:function(){this.opts.offcanvas&&this.conf.clone&&(this.$menu=this.$menu.clone(!0),this.$menu.add(this.$menu.find("[id]")).filter("[id]").each(function(){e(this).attr("id",a.mm(e(this).attr("id")))})),this.$menu.contents().each(function(){3==e(this)[0].nodetype&&e(this).remove()}),this.$pnls=e('
').append(this.$menu.children(this.conf.panelnodetype)).prependto(this.$menu),this.$menu.parent().addclass(a.wrapper);var n=[a.menu];this.opts.slidingsubmenus||n.push(a.vertical),this.opts.extensions=this.opts.extensions.length?"mm-"+this.opts.extensions.join(" mm-"):"",this.opts.extensions&&n.push(this.opts.extensions),this.$menu.addclass(n.join(" "))},_initpanels:function(n){var t=this,s=this.__findaddback(n,"ul, ol");this.__refactorclass(s,this.conf.classnames.inset,"inset").addclass(a.nolistview+" "+a.nopanel),s.not("."+a.nolistview).addclass(a.listview);var r=this.__findaddback(n,"."+a.listview).children();this.__refactorclass(r,this.conf.classnames.selected,"selected"),this.__refactorclass(r,this.conf.classnames.divider,"divider"),this.__refactorclass(r,this.conf.classnames.spacer,"spacer"),this.__refactorclass(this.__findaddback(n,"."+this.conf.classnames.panel),this.conf.classnames.panel,"panel");var l=e(),d=n.add(n.find("."+a.panel)).add(this.__findaddback(n,"."+a.listview).children().children(this.conf.panelnodetype)).not("."+a.nopanel);this.__refactorclass(d,this.conf.classnames.vertical,"vertical"),this.opts.slidingsubmenus||d.addclass(a.vertical),d.each(function(){var n=e(this),s=n;n.is("ul, ol")?(n.wrap(''),s=n.parent()):s.addclass(a.panel);var i=n.attr("id");n.removeattr("id"),s.attr("id",i||t.__getuniqueid()),n.hasclass(a.vertical)&&(n.removeclass(t.conf.classnames.vertical),s.add(s.parent()).addclass(a.vertical)),l=l.add(s)});var o=e("."+a.panel,this.$menu);l.each(function(){var n=e(this),s=n.parent(),r=s.children("a, span").first();if(s.is("."+a.panels)||(s.data(i.sub,n),n.data(i.parent,s)),!s.children("."+a.next).length&&s.parent().is("."+a.listview)){var l=n.attr("id"),d=e('').insertbefore(r);r.is("span")&&d.addclass(a.fullsubopen)}if(!n.children("."+a.navbar).length&&!s.hasclass(a.vertical)){if(s.parent().is("."+a.listview))var s=s.closest("."+a.panel);else var r=s.closest("."+a.panel).find('a[href="#'+n.attr("id")+'"]').first(),s=r.closest("."+a.panel);var o=e('');if(s.length){var l=s.attr("id");switch(t.opts.navbar.titlelink){case"anchor":_url=r.attr("href");break;case"panel":case"parent":_url="#"+l;break;case"none":default:_url=!1}o.append('').append(e('").text(r.text())).prependto(n),t.opts.navbar.add&&n.addclass(a.hasnavbar)}else t.opts.navbar.title&&(o.append(''+t.opts.navbar.title+"").prependto(n),t.opts.navbar.add&&n.addclass(a.hasnavbar))}});var c=this.__findaddback(n,"."+a.listview).children("."+a.selected).removeclass(a.selected).last().addclass(a.selected);c.add(c.parentsuntil("."+a.menu,"li")).filter("."+a.vertical).addclass(a.opened).end().not("."+a.vertical).each(function(){e(this).parentsuntil("."+a.menu,"."+a.panel).not("."+a.vertical).first().addclass(a.opened).parentsuntil("."+a.menu,"."+a.panel).not("."+a.vertical).first().addclass(a.opened).addclass(a.subopened)}),c.children("."+a.panel).not("."+a.vertical).addclass(a.opened).parentsuntil("."+a.menu,"."+a.panel).not("."+a.vertical).first().addclass(a.opened).addclass(a.subopened);var h=o.filter("."+a.opened);return h.length||(h=l.first()),h.addclass(a.opened).last().addclass(a.current),l.not("."+a.vertical).not(h.last()).addclass(a.hidden).end().appendto(this.$pnls),l},_initanchors:function(){var n=this;l.$body.on(r.click+"-oncanvas","a[href]",function(s){var i=e(this),r=!1,l=n.$menu.find(i).length;for(var d in e[t].addons)if(r=e[t].addons[d].clickanchor.call(n,i,l))break;if(!r&&l){var o=i.attr("href");if(o.length>1&&"#"==o.slice(0,1))try{var c=e(o,n.$menu);c.is("."+a.panel)&&(r=!0,n[i.parent().hasclass(a.vertical)?"togglepanel":"openpanel"](c))}catch(h){}}if(r&&s.preventdefault(),!r&&l&&i.is("."+a.listview+" > li > a")&&!i.is('[rel="external"]')&&!i.is('[target="_blank"]')){n.__valueorfn(n.opts.onclick.setselected,i)&&n.setselected(e(s.target).parent());var p=n.__valueorfn(n.opts.onclick.preventdefault,i,"#"==o.slice(0,1));p&&s.preventdefault(),n.__valueorfn(n.opts.onclick.close,i,p)&&n.close()}})},_initaddons:function(){for(var n in e[t].addons)e[t].addons[n].add.call(this),e[t].addons[n].add=function(){};for(var n in e[t].addons)e[t].addons[n].setup.call(this)},__api:function(){var n=this,t={};return e.each(this._api,function(){var e=this;t[e]=function(){var s=n[e].apply(n,arguments);return"undefined"==typeof s?t:s}}),t},__valueorfn:function(e,n,t){return"function"==typeof e?e.call(n[0]):"undefined"==typeof e&&"undefined"!=typeof t?t:e},__refactorclass:function(e,n,t){return e.filter("."+n).removeclass(n).addclass(a[t])},__findaddback:function(e,n){return e.find(n).add(e.filter(n))},__filterlistitems:function(e){return e.not("."+a.divider).not("."+a.hidden)},__transitionend:function(e,n,t){var s=!1,a=function(){s||n.call(e[0]),s=!0};e.one(r.transitionend,a),e.one(r.webkittransitionend,a),settimeout(a,1.1*t)},__getuniqueid:function(){return a.mm(e[t].uniqueid++)}},e.fn[t]=function(s,a){return n(),s=e.extend(!0,{},e[t].defaults,s),a=e.extend(!0,{},e[t].configuration,a),this.each(function(){var n=e(this);if(!n.data(t)){var i=new e[t](n,s,a);n.data(t,i.__api())}})},e[t].support={touch:"ontouchstart"in window||navigator.msmaxtouchpoints,csstransitions:function(){if("undefined"!=typeof modernizr&&"undefined"!=typeof modernizr.csstransitions)return modernizr.csstransitions;var e=document.body||document.documentelement,n=e.style,t="transition";if("string"==typeof n[t])return!0;var s=["moz","webkit","webkit","khtml","o","ms"];t=t.charat(0).touppercase()+t.substr(1);for(var a=0;a "+i.pagenodetype),a.$allmenus=(a.$allmenus||e()).add(this.$menu),this.vars.opened=!1;var r=[n.offcanvas];"left"!=s.position&&r.push(n.mm(s.position)),"back"!=s.zposition&&r.push(n.mm(s.zposition)),this.$menu.addclass(r.join(" ")).parent().removeclass(n.wrapper),this.setpage(a.$page),this._initblocker(),this["_initwindow_"+o](),this.$menu[i.menuinjectmethod+"to"](i.menuwrapperselector)}},add:function(){n=e[t]._c,s=e[t]._d,i=e[t]._e,n.add("offcanvas slideout blocking modal background opening blocker page"),s.add("style"),i.add("resize")},clickanchor:function(e){if(!this.opts[o])return!1;var t=this.$menu.attr("id");if(t&&t.length&&(this.conf.clone&&(t=n.umm(t)),e.is('[href="#'+t+'"]')))return this.open(),!0;if(a.$page){var t=a.$page.first().attr("id");return t&&t.length&&e.is('[href="#'+t+'"]')?(this.close(),!0):!1}}},e[t].defaults[o]={position:"left",zposition:"back",blockui:!0,movebackground:!0},e[t].configuration[o]={pagenodetype:"div",pageselector:null,nopageselector:[],wrappageifneeded:!0,menuwrapperselector:"body",menuinjectmethod:"prepend"},e[t].prototype.open=function(){if(!this.vars.opened){var e=this;this._opensetup(),settimeout(function(){e._openfinish()},this.conf.openinginterval),this.trigger("open")}},e[t].prototype._opensetup=function(){var t=this,r=this.opts[o];this.closeallothers(),a.$page.each(function(){e(this).data(s.style,e(this).attr("style")||"")}),a.$wndw.trigger(i.resize+"-"+o,[!0]);var p=[n.opened];r.blockui&&p.push(n.blocking),"modal"==r.blockui&&p.push(n.modal),r.movebackground&&p.push(n.background),"left"!=r.position&&p.push(n.mm(this.opts[o].position)),"back"!=r.zposition&&p.push(n.mm(this.opts[o].zposition)),this.opts.extensions&&p.push(this.opts.extensions),a.$html.addclass(p.join(" ")),settimeout(function(){t.vars.opened=!0},this.conf.openinginterval),this.$menu.addclass(n.current+" "+n.opened)},e[t].prototype._openfinish=function(){var e=this;this.__transitionend(a.$page.first(),function(){e.trigger("opened")},this.conf.transitionduration),a.$html.addclass(n.opening),this.trigger("opening")},e[t].prototype.close=function(){if(this.vars.opened){var t=this;this.__transitionend(a.$page.first(),function(){t.$menu.removeclass(n.current).removeclass(n.opened),a.$html.removeclass(n.opened).removeclass(n.blocking).removeclass(n.modal).removeclass(n.background).removeclass(n.mm(t.opts[o].position)).removeclass(n.mm(t.opts[o].zposition)),t.opts.extensions&&a.$html.removeclass(t.opts.extensions),a.$page.each(function(){e(this).attr("style",e(this).data(s.style))}),t.vars.opened=!1,t.trigger("closed")},this.conf.transitionduration),a.$html.removeclass(n.opening),this.trigger("close"),this.trigger("closing")}},e[t].prototype.closeallothers=function(){a.$allmenus.not(this.$menu).each(function(){var o=e(this).data(t);o&&o.close&&o.close()})},e[t].prototype.setpage=function(t){var s=this,i=this.conf[o];t&&t.length||(t=a.$body.find(i.pageselector),i.nopageselector.length&&(t=t.not(i.nopageselector.join(", "))),t.length>1&&i.wrappageifneeded&&(t=t.wrapall("<"+this.conf[o].pagenodetype+" />").parent())),t.each(function(){e(this).attr("id",e(this).attr("id")||s.__getuniqueid())}),t.addclass(n.page+" "+n.slideout),a.$page=t,this.trigger("setpage",t)},e[t].prototype["_initwindow_"+o]=function(){a.$wndw.off(i.keydown+"-"+o).on(i.keydown+"-"+o,function(e){return a.$html.hasclass(n.opened)&&9==e.keycode?(e.preventdefault(),!1):void 0});var e=0;a.$wndw.off(i.resize+"-"+o).on(i.resize+"-"+o,function(t,o){if(1==a.$page.length&&(o||a.$html.hasclass(n.opened))){var s=a.$wndw.height();(o||s!=e)&&(e=s,a.$page.css("minheight",s))}})},e[t].prototype._initblocker=function(){var t=this;this.opts[o].blockui&&(a.$blck||(a.$blck=e('')),a.$blck.appendto(a.$body).off(i.touchstart+"-"+o+" "+i.touchmove+"-"+o).on(i.touchstart+"-"+o+" "+i.touchmove+"-"+o,function(e){e.preventdefault(),e.stoppropagation(),a.$blck.trigger(i.mousedown+"-"+o)}).off(i.mousedown+"-"+o).on(i.mousedown+"-"+o,function(e){e.preventdefault(),a.$html.hasclass(n.modal)||(t.closeallothers(),t.close())}))};var n,s,i,a}(jquery);
/*
* jquery mmenu autoheight addon
* mmenu.frebsite.nl
*
* copyright (c) fred heusschen
*/
!function(t){var e="mmenu",s="autoheight";t[e].addons[s]={setup:function(){if(this.opts.offcanvas){switch(this.opts.offcanvas.position){case"left":case"right":return}var n=this,o=this.opts[s];if(this.conf[s],h=t[e].glbl,"boolean"==typeof o&&o&&(o={height:"auto"}),"object"!=typeof o&&(o={}),o=this.opts[s]=t.extend(!0,{},t[e].defaults[s],o),"auto"==o.height){this.$menu.addclass(i.autoheight);var u=function(t){var e=parseint(this.$pnls.css("top"),10)||0;_bot=parseint(this.$pnls.css("bottom"),10)||0,this.$menu.addclass(i.measureheight),t=t||this.$pnls.children("."+i.current),t.is("."+i.vertical)&&(t=t.parents("."+i.panel).not("."+i.vertical).first()),this.$menu.height(t.outerheight()+e+_bot).removeclass(i.measureheight)};this.bind("update",u),this.bind("openpanel",u),this.bind("closepanel",u),this.bind("open",u),h.$wndw.off(a.resize+"-autoheight").on(a.resize+"-autoheight",function(){u.call(n)})}}},add:function(){i=t[e]._c,n=t[e]._d,a=t[e]._e,i.add("autoheight measureheight"),a.add("resize")},clickanchor:function(){}},t[e].defaults[s]={height:"default"};var i,n,a,h}(jquery);
/*
* jquery mmenu backbutton addon
* mmenu.frebsite.nl
*
* copyright (c) fred heusschen
*/
!function(o){var t="mmenu",n="backbutton";o[t].addons[n]={setup:function(){if(this.opts.offcanvas){var i=this,e=this.opts[n];if(this.conf[n],a=o[t].glbl,"boolean"==typeof e&&(e={close:e}),"object"!=typeof e&&(e={}),e=o.extend(!0,{},o[t].defaults[n],e),e.close){var c="#"+i.$menu.attr("id");this.bind("opened",function(){location.hash!=c&&history.pushstate(null,document.title,c)}),o(window).on("popstate",function(o){a.$html.hasclass(s.opened)?(o.stoppropagation(),i.close()):location.hash==c&&(o.stoppropagation(),i.open())})}}},add:function(){return window.history&&window.history.pushstate?(s=o[t]._c,i=o[t]._d,void(e=o[t]._e)):void(o[t].addons[n].setup=function(){})},clickanchor:function(){}},o[t].defaults[n]={close:!1};var s,i,e,a}(jquery);
/*
* jquery mmenu counters addon
* mmenu.frebsite.nl
*
* copyright (c) fred heusschen
*/
!function(t){var n="mmenu",e="counters";t[n].addons[e]={setup:function(){var s=this,o=this.opts[e];this.conf[e],c=t[n].glbl,"boolean"==typeof o&&(o={add:o,update:o}),"object"!=typeof o&&(o={}),o=this.opts[e]=t.extend(!0,{},t[n].defaults[e],o),this.bind("init",function(n){this.__refactorclass(t("em",n),this.conf.classnames[e].counter,"counter")}),o.add&&this.bind("init",function(n){n.each(function(){var n=t(this).data(a.parent);n&&(n.children("em."+i.counter).length||n.prepend(t('')))})}),o.update&&this.bind("update",function(){this.$pnls.find("."+i.panel).each(function(){var n=t(this),e=n.data(a.parent);if(e){var c=e.children("em."+i.counter);c.length&&(n=n.children("."+i.listview),n.length&&c.html(s.__filterlistitems(n.children()).length))}})})},add:function(){i=t[n]._c,a=t[n]._d,s=t[n]._e,i.add("counter search noresultsmsg")},clickanchor:function(){}},t[n].defaults[e]={add:!1,update:!1},t[n].configuration.classnames[e]={counter:"counter"};var i,a,s,c}(jquery);
/*
* jquery mmenu dividers addon
* mmenu.frebsite.nl
*
* copyright (c) fred heusschen
*/
!function(i){var e="mmenu",s="dividers";i[e].addons[s]={setup:function(){var n=this,a=this.opts[s];if(this.conf[s],l=i[e].glbl,"boolean"==typeof a&&(a={add:a,fixed:a}),"object"!=typeof a&&(a={}),a=this.opts[s]=i.extend(!0,{},i[e].defaults[s],a),this.bind("init",function(){this.__refactorclass(i("li",this.$menu),this.conf.classnames[s].collapsed,"collapsed")}),a.add&&this.bind("init",function(e){switch(a.addto){case"panels":var s=e;break;default:var s=i(a.addto,this.$pnls).filter("."+d.panel)}i("."+d.divider,s).remove(),s.find("."+d.listview).not("."+d.vertical).each(function(){var e="";n.__filterlistitems(i(this).children()).each(function(){var s=i.trim(i(this).children("a, span").text()).slice(0,1).tolowercase();s!=e&&s.length&&(e=s,i(''+s+"").insertbefore(this))})})}),a.collapse&&this.bind("init",function(e){i("."+d.divider,e).each(function(){var e=i(this),s=e.nextuntil("."+d.divider,"."+d.collapsed);s.length&&(e.children("."+d.subopen).length||(e.wrapinner(""),e.prepend('')))})}),a.fixed){var o=function(e){e=e||this.$pnls.children("."+d.current);var s=e.find("."+d.divider).not("."+d.hidden);if(s.length){this.$menu.addclass(d.hasdividers);var n=e.scrolltop()||0,t="";e.is(":visible")&&e.find("."+d.divider).not("."+d.hidden).each(function(){i(this).position().top+n').prependto(this.$pnls).children(),this.bind("openpanel",o),this.bind("init",function(e){e.off(t.scroll+"-dividers "+t.touchmove+"-dividers").on(t.scroll+"-dividers "+t.touchmove+"-dividers",function(){o.call(n,i(this))})})}},add:function(){d=i[e]._c,n=i[e]._d,t=i[e]._e,d.add("collapsed uncollapsed fixeddivider hasdividers"),t.add("scroll")},clickanchor:function(i,e){if(this.opts[s].collapse&&e){var n=i.parent();if(n.is("."+d.divider)){var t=n.nextuntil("."+d.divider,"."+d.collapsed);return n.toggleclass(d.opened),t[n.hasclass(d.opened)?"addclass":"removeclass"](d.uncollapsed),!0}}return!1}},i[e].defaults[s]={add:!1,addto:"panels",fixed:!1,collapse:!1},i[e].configuration.classnames[s]={collapsed:"collapsed"};var d,n,t,l}(jquery);
/*
* jquery mmenu dragopen addon
* mmenu.frebsite.nl
*
* copyright (c) fred heusschen
*/
!function(e){function t(e,t,n){return t>e&&(e=t),e>n&&(e=n),e}var n="mmenu",o="dragopen";e[n].addons[o]={setup:function(){if(this.opts.offcanvas){var i=this,a=this.opts[o],p=this.conf[o];if(r=e[n].glbl,"boolean"==typeof a&&(a={open:a}),"object"!=typeof a&&(a={}),a=this.opts[o]=e.extend(!0,{},e[n].defaults[o],a),a.open){var d,f,c,u,h,l={},m=0,g=!1,v=!1,w=0,_=0;switch(this.opts.offcanvas.position){case"left":case"right":l.events="panleft panright",l.typelower="x",l.typeupper="x",v="width";break;case"top":case"bottom":l.events="panup pandown",l.typelower="y",l.typeupper="y",v="height"}switch(this.opts.offcanvas.position){case"right":case"bottom":l.negative=!0,u=function(e){e>=r.$wndw[v]()-a.maxstartpos&&(m=1)};break;default:l.negative=!1,u=function(e){e<=a.maxstartpos&&(m=1)}}switch(this.opts.offcanvas.position){case"left":l.open_dir="right",l.close_dir="left";break;case"right":l.open_dir="left",l.close_dir="right";break;case"top":l.open_dir="down",l.close_dir="up";break;case"bottom":l.open_dir="up",l.close_dir="down"}switch(this.opts.offcanvas.zposition){case"front":h=function(){return this.$menu};break;default:h=function(){return e("."+s.slideout)}}var b=this.__valueorfn(a.pagenode,this.$menu,r.$page);"string"==typeof b&&(b=e(b));var y=new hammer(b[0],a.vendors.hammer);y.on("panstart",function(e){u(e.center[l.typelower]),r.$slideoutnodes=h(),g=l.open_dir}).on(l.events+" panend",function(e){m>0&&e.preventdefault()}).on(l.events,function(e){if(d=e["delta"+l.typeupper],l.negative&&(d=-d),d!=w&&(g=d>=w?l.open_dir:l.close_dir),w=d,w>a.threshold&&1==m){if(r.$html.hasclass(s.opened))return;m=2,i._opensetup(),i.trigger("opening"),r.$html.addclass(s.dragging),_=t(r.$wndw[v]()*p[v].perc,p[v].min,p[v].max)}2==m&&(f=t(w,10,_)-("front"==i.opts.offcanvas.zposition?_:0),l.negative&&(f=-f),c="translate"+l.typeupper+"("+f+"px )",r.$slideoutnodes.css({"-webkit-transform":"-webkit-"+c,transform:c}))}).on("panend",function(){2==m&&(r.$html.removeclass(s.dragging),r.$slideoutnodes.css("transform",""),i[g==l.open_dir?"_openfinish":"close"]()),m=0})}}},add:function(){return"function"!=typeof hammer||hammer.version<2?void(e[n].addons[o].setup=function(){}):(s=e[n]._c,i=e[n]._d,a=e[n]._e,void s.add("dragging"))},clickanchor:function(){}},e[n].defaults[o]={open:!1,maxstartpos:100,threshold:50,vendors:{hammer:{}}},e[n].configuration[o]={width:{perc:.8,min:140,max:440},height:{perc:.8,min:140,max:880}};var s,i,a,r}(jquery);
/*
* jquery mmenu fixedelements addon
* mmenu.frebsite.nl
*
* copyright (c) fred heusschen
*/
!function(s){var i="mmenu",t="fixedelements";s[i].addons[t]={setup:function(){if(this.opts.offcanvas){var n=this.opts[t];this.conf[t],d=s[i].glbl,n=this.opts[t]=s.extend(!0,{},s[i].defaults[t],n);var a=function(s){var i=this.conf.classnames[t].fixed;this.__refactorclass(s.find("."+i),i,"slideout").appendto(d.$body)};a.call(this,d.$page),this.bind("setpage",a)}},add:function(){n=s[i]._c,a=s[i]._d,e=s[i]._e,n.add("fixed")},clickanchor:function(){}},s[i].configuration.classnames[t]={fixed:"fixed"};var n,a,e,d}(jquery);
/*
* jquery mmenu iconpanels addon
* mmenu.frebsite.nl
*
* copyright (c) fred heusschen
*/
!function(e){var n="mmenu",i="iconpanels";e[n].addons[i]={setup:function(){var a=this,l=this.opts[i];if(this.conf[i],d=e[n].glbl,"boolean"==typeof l&&(l={add:l}),"number"==typeof l&&(l={add:!0,visible:l}),"object"!=typeof l&&(l={}),l=this.opts[i]=e.extend(!0,{},e[n].defaults[i],l),l.visible++,l.add){this.$menu.addclass(s.iconpanel);for(var t=[],o=0;o<=l.visible;o++)t.push(s.iconpanel+"-"+o);t=t.join(" ");var c=function(n){var i=a.$pnls.children("."+s.panel).removeclass(t),d=i.filter("."+s.subopened);d.removeclass(s.hidden).add(n).slice(-l.visible).each(function(n){e(this).addclass(s.iconpanel+"-"+n)})};this.bind("openpanel",c),this.bind("init",function(n){c.call(a,a.$pnls.children("."+s.current)),l.hidenavbars&&n.removeclass(s.hasnavbar),n.each(function(){e(this).children("."+s.subblocker).length||e(this).prepend('')})})}},add:function(){s=e[n]._c,a=e[n]._d,l=e[n]._e,s.add("iconpanel subblocker")},clickanchor:function(){}},e[n].defaults[i]={add:!1,visible:3,hidenavbars:!1};var s,a,l,d}(jquery);
/*
* jquery mmenu navbar addon
* mmenu.frebsite.nl
*
* copyright (c) fred heusschen
*/
!function(n){var a="mmenu",t="navbars";n[a].addons[t]={setup:function(){var r=this,s=this.opts[t],c=this.conf[t];if(i=n[a].glbl,"undefined"!=typeof s){s instanceof array||(s=[s]);var d={};n.each(s,function(i){var o=s[i];"boolean"==typeof o&&o&&(o={}),"object"!=typeof o&&(o={}),"undefined"==typeof o.content&&(o.content=["prev","title"]),o.content instanceof array||(o.content=[o.content]),o=n.extend(!0,{},r.opts.navbar,o);var l=o.position,h=o.height;"number"!=typeof h&&(h=1),h=math.min(4,math.max(1,h)),"bottom"!=l&&(l="top"),d[l]||(d[l]=0),d[l]++;var f=n("").addclass(e.navbar+" "+e.navbar+"-"+l+" "+e.navbar+"-"+l+"-"+d[l]+" "+e.navbar+"-size-"+h);d[l]+=h-1;for(var v=0,p=o.content.length;p>v;v++){var u=n[a].addons[t][o.content[v]]||!1;u?u.call(r,f,o,c):(u=o.content[v],u instanceof n||(u=n(o.content[v])),u.each(function(){f.append(n(this))}))}var b=math.ceil(f.children().not("."+e.btn).length/h);b>1&&f.addclass(e.navbar+"-content-"+b),f.children("."+e.btn).length&&f.addclass(e.hasbtns),f.prependto(r.$menu)});for(var o in d)r.$menu.addclass(e.hasnavbar+"-"+o+"-"+d[o])}},add:function(){e=n[a]._c,r=n[a]._d,s=n[a]._e,e.add("close hasbtns")},clickanchor:function(){}},n[a].configuration[t]={breadcrumbseparator:"/"},n[a].configuration.classnames[t]={paneltitle:"title",panelnext:"next",panelprev:"prev"};var e,r,s,i}(jquery),/*
* jquery mmenu navbar addon breadcrumbs content
* mmenu.frebsite.nl
*
* copyright (c) fred heusschen
*/
function(n){var a="mmenu",t="navbars",e="breadcrumbs";n[a].addons[t][e]=function(t,e,r){var s=n[a]._c,i=n[a]._d;s.add("breadcrumbs separator"),t.append(''),this.bind("init",function(a){a.removeclass(s.hasnavbar).each(function(){for(var a=[],t=n(this),e=n(''),c=n(this).children().first(),d=!0;c&&c.length;){c.is("."+s.panel)||(c=c.closest("."+s.panel));var o=c.children("."+s.navbar).children("."+s.title).text();a.unshift(d?""+o+"":''+o+""),d=!1,c=c.data(i.parent)}e.append(a.join(''+r.breadcrumbseparator+"")).appendto(t.children("."+s.navbar))})});var c=function(){var n=this.$pnls.children("."+s.current),a=t.find("."+s.breadcrumbs),e=n.children("."+s.navbar).children("."+s.breadcrumbs);a.html(e.html())};this.bind("openpanel",c),this.bind("init",c)}}(jquery),/*
* jquery mmenu navbar addon close content
* mmenu.frebsite.nl
*
* copyright (c) fred heusschen
*/
function(n){var a="mmenu",t="navbars",e="close";n[a].addons[t][e]=function(t){var e=n[a]._c,r=n[a].glbl;t.append('');var s=function(n){t.find("."+e.close).attr("href","#"+n.attr("id"))};s.call(this,r.$page),this.bind("setpage",s)}}(jquery),/*
* jquery mmenu navbar addon next content
* mmenu.frebsite.nl
*
* copyright (c) fred heusschen
*/
function(n){var a="mmenu",t="navbars",e="next";n[a].addons[t][e]=function(e){var r=n[a]._c;e.append('');var s=function(n){n=n||this.$pnls.children("."+r.current);var a=e.find("."+r.next),s=n.find("."+this.conf.classnames[t].panelnext),i=s.attr("href"),c=s.html();a[i?"attr":"removeattr"]("href",i),a[i||c?"removeclass":"addclass"](r.hidden),a.html(c)};this.bind("openpanel",s),this.bind("init",function(){s.call(this)})}}(jquery),/*
* jquery mmenu navbar addon prev content
* mmenu.frebsite.nl
*
* copyright (c) fred heusschen
*/
function(n){var a="mmenu",t="navbars",e="prev";n[a].addons[t][e]=function(e){var r=n[a]._c;e.append(''),this.bind("init",function(n){n.removeclass(r.hasnavbar)});var s=function(){var n=this.$pnls.children("."+r.current),a=e.find("."+r.prev),s=n.find("."+this.conf.classnames[t].panelprev);s.length||(s=n.children("."+r.navbar).children("."+r.prev));var i=s.attr("href"),c=s.html();a[i?"attr":"removeattr"]("href",i),a[i||c?"removeclass":"addclass"](r.hidden),a.html(c)};this.bind("openpanel",s),this.bind("init",s)}}(jquery),/*
* jquery mmenu navbar addon searchfield content
* mmenu.frebsite.nl
*
* copyright (c) fred heusschen
*/
function(n){var a="mmenu",t="navbars",e="searchfield";n[a].addons[t][e]=function(t){var e=n[a]._c,r=n('').appendto(t);"object"!=typeof this.opts.searchfield&&(this.opts.searchfield={}),this.opts.searchfield.add=!0,this.opts.searchfield.addto=r}}(jquery),/*
* jquery mmenu navbar addon title content
* mmenu.frebsite.nl
*
* copyright (c) fred heusschen
*/
function(n){var a="mmenu",t="navbars",e="title";n[a].addons[t][e]=function(e,r){var s=n[a]._c;e.append('');var i=function(n){n=n||this.$pnls.children("."+s.current);var a=e.find("."+s.title),i=n.find("."+this.conf.classnames[t].paneltitle);i.length||(i=n.children("."+s.navbar).children("."+s.title));var c=i.attr("href"),d=i.html()||r.title;a[c?"attr":"removeattr"]("href",c),a[c||d?"removeclass":"addclass"](s.hidden),a.html(d)};this.bind("openpanel",i),this.bind("init",function(){i.call(this)})}}(jquery);
/*
* jquery mmenu searchfield addon
* mmenu.frebsite.nl
*
* copyright (c) fred heusschen
*/
!function(e){function s(e){switch(e){case 9:case 16:case 17:case 18:case 37:case 38:case 39:case 40:return!0}return!1}var n="mmenu",a="searchfield";e[n].addons[a]={setup:function(){var o=this,d=this.opts[a],c=this.conf[a];r=e[n].glbl,"boolean"==typeof d&&(d={add:d}),"object"!=typeof d&&(d={}),d=this.opts[a]=e.extend(!0,{},e[n].defaults[a],d),this.bind("close",function(){this.$menu.find("."+l.search).find("input").blur()}),this.bind("init",function(n){if(d.add){switch(d.addto){case"panels":var a=n;break;default:var a=e(d.addto,this.$menu)}a.each(function(){var s=e(this);if(!s.is("."+l.panel)||!s.is("."+l.vertical)){if(!s.children("."+l.search).length){var n=c.form?"form":"div",a=e("<"+n+' class="'+l.search+'" />');if(c.form&&"object"==typeof c.form)for(var t in c.form)a.attr(t,c.form[t]);a.append(''),s.hasclass(l.search)?s.replacewith(a):s.prepend(a).addclass(l.hassearch)}if(d.noresults){var i=s.closest("."+l.panel).length;if(i||(s=o.$pnls.children("."+l.panel).first()),!s.children("."+l.noresultsmsg).length){var r=s.children("."+l.listview).first();e('').append(d.noresults)[r.length?"insertafter":"prependto"](r.length?r:s)}}}}),d.search&&e("."+l.search,this.$menu).each(function(){var n=e(this),a=n.closest("."+l.panel).length;if(a)var r=n.closest("."+l.panel),c=r;else var r=e("."+l.panel,o.$menu),c=o.$menu;var h=n.children("input"),u=o.__findaddback(r,"."+l.listview).children("li"),f=u.filter("."+l.divider),p=o.__filterlistitems(u),v="> a",m=v+", > span",b=function(){var s=h.val().tolowercase();r.scrolltop(0),p.add(f).addclass(l.hidden).find("."+l.fullsubopensearch).removeclass(l.fullsubopen).removeclass(l.fullsubopensearch),p.each(function(){var n=e(this),a=v;(d.showtextitems||d.showsubpanels&&n.find("."+l.next))&&(a=m),e(a,n).text().tolowercase().indexof(s)>-1&&n.add(n.prevall("."+l.divider).first()).removeclass(l.hidden)}),d.showsubpanels&&r.each(function(){var s=e(this);o.__filterlistitems(s.find("."+l.listview).children()).each(function(){var s=e(this),n=s.data(t.sub);s.removeclass(l.nosubresults),n&&n.find("."+l.listview).children().removeclass(l.hidden)})}),e(r.get().reverse()).each(function(s){var n=e(this),i=n.data(t.parent);i&&(o.__filterlistitems(n.find("."+l.listview).children()).length?(i.hasclass(l.hidden)&&i.children("."+l.next).not("."+l.fullsubopen).addclass(l.fullsubopen).addclass(l.fullsubopensearch),i.removeclass(l.hidden).removeclass(l.nosubresults).prevall("."+l.divider).first().removeclass(l.hidden)):a||(n.hasclass(l.opened)&&settimeout(function(){o.openpanel(i.closest("."+l.panel))},1.5*(s+1)*o.conf.openinginterval),i.addclass(l.nosubresults)))}),c[p.not("."+l.hidden).length?"removeclass":"addclass"](l.noresults),this.update()};h.off(i.keyup+"-searchfield "+i.change+"-searchfield").on(i.keyup+"-searchfield",function(e){s(e.keycode)||b.call(o)}).on(i.change+"-searchfield",function(){b.call(o)})})}})},add:function(){l=e[n]._c,t=e[n]._d,i=e[n]._e,l.add("search hassearch noresultsmsg noresults nosubresults fullsubopensearch"),i.add("change keyup")},clickanchor:function(){}},e[n].defaults[a]={add:!1,addto:"panels",search:!0,placeholder:"search",noresults:"no results found.",showtextitems:!1,showsubpanels:!0},e[n].configuration[a]={form:!1};var l,t,i,r}(jquery);
/*
* jquery mmenu sectionindexer addon
* mmenu.frebsite.nl
*
* copyright (c) fred heusschen
*/
!function(e){var a="mmenu",r="sectionindexer";e[a].addons[r]={setup:function(){var i=this,d=this.opts[r];this.conf[r],t=e[a].glbl,"boolean"==typeof d&&(d={add:d}),"object"!=typeof d&&(d={}),d=this.opts[r]=e.extend(!0,{},e[a].defaults[r],d),this.bind("init",function(a){if(d.add){switch(d.addto){case"panels":var r=a;break;default:var r=e(d.addto,this.$menu).filter("."+n.panel)}r.find("."+n.divider).closest("."+n.panel).addclass(n.hasindexer)}if(!this.$indexer&&this.$pnls.children("."+n.hasindexer).length){this.$indexer=e('').prependto(this.$pnls).append('abcdefghijklmnopqrstuvwxyz'),this.$indexer.children().on(s.mouseover+"-sectionindexer "+n.touchstart+"-sectionindexer",function(){var a=e(this).attr("href").slice(1),r=i.$pnls.children("."+n.current),s=r.find("."+n.listview),t=!1,d=r.scrolltop(),h=s.position().top+parseint(s.css("margin-top"),10)+parseint(s.css("padding-top"),10)+d;r.scrolltop(0),s.children("."+n.divider).not("."+n.hidden).each(function(){t===!1&&a==e(this).text().slice(0,1).tolowercase()&&(t=e(this).position().top+h)}),r.scrolltop(t!==!1?t:d)});var t=function(e){i.$menu[(e.hasclass(n.hasindexer)?"add":"remove")+"class"](n.hasindexer)};this.bind("openpanel",t),t.call(this,this.$pnls.children("."+n.current))}})},add:function(){n=e[a]._c,i=e[a]._d,s=e[a]._e,n.add("indexer hasindexer"),s.add("mouseover touchstart")},clickanchor:function(e){return e.parent().is("."+n.indexer)?!0:void 0}},e[a].defaults[r]={add:!1,addto:"panels"};var n,i,s,t}(jquery);
/*
* jquery mmenu toggles addon
* mmenu.frebsite.nl
*
* copyright (c) fred heusschen
*/
!function(t){var e="mmenu",c="toggles";t[e].addons[c]={setup:function(){var n=this;this.opts[c],this.conf[c],l=t[e].glbl,this.bind("init",function(e){this.__refactorclass(t("input",e),this.conf.classnames[c].toggle,"toggle"),this.__refactorclass(t("input",e),this.conf.classnames[c].check,"check"),t("input."+s.toggle+", input."+s.check,e).each(function(){var e=t(this),c=e.closest("li"),i=e.hasclass(s.toggle)?"toggle":"check",l=e.attr("id")||n.__getuniqueid();c.children('label[for="'+l+'"]').length||(e.attr("id",l),c.prepend(e),t('').insertbefore(c.children("a, span").last()))})})},add:function(){s=t[e]._c,n=t[e]._d,i=t[e]._e,s.add("toggle check")},clickanchor:function(){}},t[e].configuration.classnames[c]={toggle:"toggle",check:"check"};var s,n,i,l}(jquery);