!function(n){function o(t,i,r){if("object"!=typeof t&&(t={}),r){if("boolean"!=typeof t.isMenu){var f=r.children();t.isMenu=1==f.length&&f.is(i.panelNodetype)}return t}if("object"!=typeof t.onClick&&(t.onClick={}),"undefined"!=typeof t.onClick.setLocationHref&&(n[u].deprecated("onClick.setLocationHref option","!onClick.preventDefault"),"boolean"==typeof t.onClick.setLocationHref&&(t.onClick.preventDefault=!t.onClick.setLocationHref)),t=n.extend(!0,{},n[u].defaults,t),n[u].useOverflowScrollingFallback()){switch(t.position){case"top":case"right":case"bottom":n[u].debug('position: "'+t.position+'" not supported when using the overflowScrolling-fallback.');t.position="left"}switch(t.zposition){case"front":case"next":n[u].debug('z-position: "'+t.zposition+'" not supported when using the overflowScrolling-fallback.');t.zposition="back"}}return t}function h(t){return"object"!=typeof t&&(t={}),"undefined"!=typeof t.panelNodeType&&(n[u].deprecated("panelNodeType configuration option","panelNodetype"),t.panelNodetype=t.panelNodeType),t=n.extend(!0,{},n[u].configuration,t),"string"!=typeof t.pageSelector&&(t.pageSelector="> "+t.pageNodetype),t}function c(){r.$wndw=n(window);r.$html=n("html");r.$body=n("body");r.$allMenus=n();n.each([t,f,i],function(n,t){t.add=function(n){n=n.split(" ");for(var i in n)t[n[i]]=t.mm(n[i])}});t.mm=function(n){return"mm-"+n};t.add("menu ismenu panel list subtitle selected label spacer current highest hidden page blocker modal background opened opening subopened subopen fullsubopen subclose nooverflowscrolling");t.umm=function(n){return"mm-"==n.slice(0,3)&&(n=n.slice(3)),n};f.mm=function(n){return"mm-"+n};f.add("parent style scrollTop offetLeft");i.mm=function(n){return n+".mm"};i.add("toggle open opening opened close closing closed update setPage setSelected transitionend webkitTransitionEnd touchstart touchend mousedown mouseup click keydown keyup resize");n[u]._c=t;n[u]._d=f;n[u]._e=i;n[u].glbl=r;n[u].useOverflowScrollingFallback(e)}function l(i,r){if(i.hasClass(t.current))return!1;var f=n("."+t.panel,r),u=f.filter("."+t.current);return f.removeClass(t.highest).removeClass(t.current).not(i).not(u).addClass(t.hidden),i.hasClass(t.opened)?u.addClass(t.highest).removeClass(t.opened).removeClass(t.subopened):(i.addClass(t.highest),u.addClass(t.subopened)),i.removeClass(t.hidden).removeClass(t.subopened).addClass(t.current).addClass(t.opened),"open"}function a(){return r.$scrollTopNode||(0!=r.$html.scrollTop()?r.$scrollTopNode=r.$html:0!=r.$body.scrollTop()&&(r.$scrollTopNode=r.$body)),r.$scrollTopNode?r.$scrollTopNode.scrollTop():0}function s(n,t,r){var f=!1,u=function(){f||t.call(n[0]);f=!0};n.one(i.transitionend,u);n.one(i.webkitTransitionEnd,u);setTimeout(u,1.1*r)}var u="mmenu",e;if(!n[u]){var r={$wndw:null,$html:null,$body:null,$page:null,$blck:null,$allMenus:null,$scrollTopNode:null},t={},i={},f={},v=0;n[u]=function(n,t,i){return r.$allMenus=r.$allMenus.add(n),this.$menu=n,this.opts=t,this.conf=i,this.serialnr=v++,this._init(),this};n[u].prototype={open:function(){return this._openSetup(),this._openFinish(),"open"},_openSetup:function(){var u=a(),n;this.$menu.addClass(t.current);r.$allMenus.not(this.$menu).trigger(i.close);r.$page.data(f.style,r.$page.attr("style")||"").data(f.scrollTop,u).data(f.offetLeft,r.$page.offset().left);n=0;r.$wndw.off(i.resize).on(i.resize,function(i,u){if(u||r.$html.hasClass(t.opened)){var e=r.$wndw.width();e!=n&&(n=e,r.$page.width(e-r.$page.data(f.offetLeft)))}}).trigger(i.resize,[!0]);this.conf.preventTabbing&&r.$wndw.off(i.keydown).on(i.keydown,function(n){if(9==n.keyCode)return(n.preventDefault(),!1)});this.opts.modal&&r.$html.addClass(t.modal);this.opts.moveBackground&&r.$html.addClass(t.background);"left"!=this.opts.position&&r.$html.addClass(t.mm(this.opts.position));"back"!=this.opts.zposition&&r.$html.addClass(t.mm(this.opts.zposition));this.opts.classes&&r.$html.addClass(this.opts.classes);r.$html.addClass(t.opened);this.$menu.addClass(t.opened);r.$page.scrollTop(u);this.$menu.scrollTop(0)},_openFinish:function(){var n=this;s(r.$page,function(){n.$menu.trigger(i.opened)},this.conf.transitionDuration);r.$html.addClass(t.opening);this.$menu.trigger(i.opening);window.scrollTo(0,1)},close:function(){var n=this;return s(r.$page,function(){n.$menu.removeClass(t.current).removeClass(t.opened);r.$html.removeClass(t.opened).removeClass(t.modal).removeClass(t.background).removeClass(t.mm(n.opts.position)).removeClass(t.mm(n.opts.zposition));n.opts.classes&&r.$html.removeClass(n.opts.classes);r.$wndw.off(i.resize).off(i.keydown);r.$page.attr("style",r.$page.data(f.style));r.$scrollTopNode&&r.$scrollTopNode.scrollTop(r.$page.data(f.scrollTop));n.$menu.trigger(i.closed)},this.conf.transitionDuration),r.$html.removeClass(t.opening),this.$menu.trigger(i.closing),"close"},_init:function(){if(this.opts=o(this.opts,this.conf,this.$menu),this.direction=this.opts.slidingSubmenus?"horizontal":"vertical",this._initPage(r.$page),this._initMenu(),this._initBlocker(),this._initPanles(),this._initLinks(),this._initOpenClose(),this._bindCustomEvents(),n[u].addons)for(var t=0;t<n[u].addons.length;t++)"function"==typeof this["_addon_"+n[u].addons[t]]&&this["_addon_"+n[u].addons[t]]()},_bindCustomEvents:function(){var r=this,u;this.$menu.off(i.open+" "+i.close+" "+i.setPage+" "+i.update).on(i.open+" "+i.close+" "+i.setPage+" "+i.update,function(n){n.stopPropagation()});this.$menu.on(i.open,function(i){return n(this).hasClass(t.current)?(i.stopImmediatePropagation(),!1):r.open()}).on(i.close,function(i){return n(this).hasClass(t.current)?r.close():(i.stopImmediatePropagation(),!1)}).on(i.setPage,function(n,t){r._initPage(t);r._initOpenClose()});u=this.$menu.find(this.opts.isMenu&&"horizontal"!=this.direction?"ul, ol":"."+t.panel);u.off(i.toggle+" "+i.open+" "+i.close).on(i.toggle+" "+i.open+" "+i.close,function(n){n.stopPropagation()});"horizontal"==this.direction?u.on(i.open,function(){return l(n(this),r.$menu)}):u.on(i.toggle,function(){var r=n(this);return r.triggerHandler(r.parent().hasClass(t.opened)?i.close:i.open)}).on(i.open,function(){return n(this).parent().addClass(t.opened),"open"}).on(i.close,function(){return n(this).parent().removeClass(t.opened),"close"})},_initBlocker:function(){var u=this;r.$blck||(r.$blck=n('<div id="'+t.blocker+'" />').css("opacity",0).appendTo(r.$body));r.$blck.off(i.touchstart).on(i.touchstart,function(n){n.preventDefault();n.stopPropagation();r.$blck.trigger(i.mousedown)}).on(i.mousedown,function(n){n.preventDefault();r.$html.hasClass(t.modal)||u.$menu.trigger(i.close)})},_initPage:function(i){i||(i=n(this.conf.pageSelector,r.$body),i.length>1&&(n[u].debug("Multiple nodes found for the page-node, all nodes are wrapped in one <"+this.conf.pageNodetype+">."),i=i.wrapAll("<"+this.conf.pageNodetype+" />").parent()));i.addClass(t.page);r.$page=i},_initMenu:function(){this.conf.clone&&(this.$menu=this.$menu.clone(!0),this.$menu.add(this.$menu.find("*")).filter("[id]").each(function(){n(this).attr("id",t.mm(n(this).attr("id")))}));this.$menu.contents().each(function(){3==n(this)[0].nodeType&&n(this).remove()});this.$menu.prependTo("body").addClass(t.menu);this.$menu.addClass(t.mm(this.direction));this.opts.classes&&this.$menu.addClass(this.opts.classes);this.opts.isMenu&&this.$menu.addClass(t.ismenu);"left"!=this.opts.position&&this.$menu.addClass(t.mm(this.opts.position));"back"!=this.opts.zposition&&this.$menu.addClass(t.mm(this.opts.zposition))},_initPanles:function(){var o=this,u,r,h,s,e;this.__refactorClass(n("."+this.conf.listClass,this.$menu),"list");this.opts.isMenu&&n("ul, ol",this.$menu).not(".mm-nolist").addClass(t.list);u=n("."+t.list+" > li",this.$menu);this.__refactorClass(u.filter("."+this.conf.selectedClass),"selected");this.__refactorClass(u.filter("."+this.conf.labelClass),"label");this.__refactorClass(u.filter("."+this.conf.spacerClass),"spacer");u.off(i.setSelected).on(i.setSelected,function(i,r){i.stopPropagation();u.removeClass(t.selected);"boolean"!=typeof r&&(r=!0);r&&n(this).addClass(t.selected)});this.__refactorClass(n("."+this.conf.panelClass,this.$menu),"panel");this.$menu.children().filter(this.conf.panelNodetype).add(this.$menu.find("."+t.list).children().children().filter(this.conf.panelNodetype)).addClass(t.panel);r=n("."+t.panel,this.$menu);r.each(function(i){var r=n(this),u=r.attr("id")||t.mm("m"+o.serialnr+"-p"+i);r.attr("id",u)});r.find("."+t.panel).each(function(){var i=n(this),s=i.is("ul, ol")?i:i.find("ul ,ol").first(),r=i.parent(),u=r.find("> a, > span"),h=r.closest("."+t.panel),e;(i.data(f.parent,r),r.parent().is("."+t.list))&&(e=n('<a class="'+t.subopen+'" href="#'+i.attr("id")+'" />').insertBefore(u),u.is("a")||e.addClass(t.fullsubopen),"horizontal"==o.direction&&s.prepend('<li class="'+t.subtitle+'"><a class="'+t.subclose+'" href="#'+h.attr("id")+'">'+u.text()+"<\/a><\/li>"))});h="horizontal"==this.direction?i.open:i.toggle;(r.each(function(){var t=n(this),r=t.attr("id");n('a[href="#'+r+'"]',o.$menu).off(i.click).on(i.click,function(n){n.preventDefault();t.trigger(h)})}),"horizontal"==this.direction)?(s=n("."+t.list+" > li."+t.selected,this.$menu),s.add(s.parents("li")).parents("li").removeClass(t.selected).end().each(function(){var i=n(this),r=i.find("> ."+t.panel);r.length&&(i.parents("."+t.panel).addClass(t.subopened),r.addClass(t.opened))}).closest("."+t.panel).addClass(t.opened).parents("."+t.panel).addClass(t.subopened)):n("li."+t.selected,this.$menu).addClass(t.opened).parents("."+t.selected).removeClass(t.selected);e=r.filter("."+t.opened);e.length||(e=r.first());e.addClass(t.opened).last().addClass(t.current);"horizontal"==this.direction&&r.find("."+t.panel).appendTo(this.$menu)},_initLinks:function(){var u=this;n("."+t.list+" > li > a",this.$menu).not("."+t.subopen).not("."+t.subclose).not('[rel="external"]').not('[target="_blank"]').off(i.click).on(i.click,function(f){var e=n(this),s=e.attr("href"),o;u.__valueOrFn(u.opts.onClick.setSelected,e)&&e.parent().trigger(i.setSelected);o=u.__valueOrFn(u.opts.onClick.preventDefault,e,"#"==s.slice(0,1));o&&f.preventDefault();u.__valueOrFn(u.opts.onClick.blockUI,e,!o)&&r.$html.addClass(t.blocking);u.__valueOrFn(u.opts.onClick.close,e,o)&&u.$menu.triggerHandler(i.close)})},_initOpenClose:function(){var f=this,u=this.$menu.attr("id");u&&u.length&&(this.conf.clone&&(u=t.umm(u)),n('a[href="#'+u+'"]').off(i.click).on(i.click,function(n){n.preventDefault();f.$menu.trigger(i.open)}));u=r.$page.attr("id");u&&u.length&&n('a[href="#'+u+'"]').off(i.click).on(i.click,function(n){n.preventDefault();f.$menu.trigger(i.close)})},__valueOrFn:function(n,t,i){return"function"==typeof n?n.call(t[0]):"undefined"==typeof n&&"undefined"!=typeof i?i:n},__refactorClass:function(n,i){n.removeClass(this.conf[i+"Class"]).addClass(t[i])}};n.fn[u]=function(t,i){return r.$wndw||c(),t=o(t,i),i=h(i),this.each(function(){var r=n(this);r.data(u)||r.data(u,new n[u](r,t,i))})};n[u].version="4.1.8";n[u].defaults={position:"left",zposition:"back",moveBackground:!0,slidingSubmenus:!0,modal:!1,classes:"",onClick:{setSelected:!0}};n[u].configuration={preventTabbing:!0,panelClass:"Panel",listClass:"List",selectedClass:"Selected",labelClass:"Label",spacerClass:"Spacer",pageNodetype:"div",panelNodetype:"ul, ol, div",transitionDuration:400},function(){var i=window.document,t=window.navigator.userAgent,r=(document.createElement("div").style,"ontouchstart"in i),e="WebkitOverflowScrolling"in i.documentElement.style,f=function(){return t.indexOf("Android")>=0?2.4>parseFloat(t.slice(t.indexOf("Android")+8)):!1}();n[u].support={touch:r,oldAndroidBrowser:f,overflowscrolling:function(){return r?e?!0:f?!1:!0:!0}()}}();n[u].useOverflowScrollingFallback=function(n){return r.$html?("boolean"==typeof n&&r.$html[n?"addClass":"removeClass"](t.nooverflowscrolling),r.$html.hasClass(t.nooverflowscrolling)):(e=n,n)};n[u].debug=function(){};n[u].deprecated=function(n,t){"undefined"!=typeof console&&"undefined"!=typeof console.warn&&console.warn("MMENU: "+n+" is deprecated, use "+t+" instead.")};e=!n[u].support.overflowscrolling}}(jQuery);$(document).ready(function(){$("nav#menu").mmenu({slidingSubmenus:!1,isMenu:!0,classes:"mm-light"}).on("opening.mm",function(){$("#loggedLink").prependTo($(".userLogName"));$("#loginLink").prependTo($(".userLogName"));$("#logoutForm").prependTo($(".userLogout"));$("#registerLink").prependTo($(".userRegister"));$("#translatedLink").prependTo($(".userLang"));$("#freightLogo").prependTo($(".mmFreight"));$("#expressLogo").prependTo($(".mmExpress"));$("#registerContent #arrowRollOrange").prependTo($(".topBannerRed"));$(".mediaSociauxIco").insertAfter($(".userLang"))}).on("closing.mm",function(){$("#loggedLink").prependTo($("#nameUser"));$("#logoutLink").prependTo($("#logoutForm"));$("#translatedLink").prependTo("#currentLang");$("#registerLink").prependTo($("#logPartial"));$("#logoutForm").insertAfter($("#registerLink"));$("#freightLogo").prependTo($(".freightContainer"));$("#expressLogo").prependTo($(".expressContainer"));$("#arrowRollOrange").prependTo($("#registerContent"));$(".mediaSociauxIco").insertAfter($(".blockCopyright"))})})