
jQuery(document).ready(function(){var excludedPages=['https://homeiswhereyourbagis.com/','https://homeiswhereyourbagis.com/newsletter/','https://homeiswhereyourbagis.com/ueber-uns/','https://homeiswhereyourbagis.com/neu-hier/','https://homeiswhereyourbagis.com/shop/','https://homeiswhereyourbagis.com/produkt/3-tage-in-bangkok-einsteiger-guide-buch/','https://homeiswhereyourbagis.com/produkt/3-tage-in-bangkok-einsteiger-guide-ebook/','https://homeiswhereyourbagis.com/produkt/koh-phangan-inselguide-reisefuehrer-buch/','https://homeiswhereyourbagis.com/produkt/koh-phangan-inselguide-reisefuehrer-ebook/','https://homeiswhereyourbagis.com/produkt/koh-samui-inselguide-reisefuehrer-buch/','https://homeiswhereyourbagis.com/produkt/koh-samui-inselguide-reisefuehrer-ebook/','https://homeiswhereyourbagis.com/produkt/lombok-inselguide-reisefuehrer-buch/','https://homeiswhereyourbagis.com/produkt/lombok-inselguide-reisefuehrer-ebook/','https://homeiswhereyourbagis.com/produkt/same-way-but-different-buch/','https://homeiswhereyourbagis.com/produkt/same-way-but-different-ebook/','https://homeiswhereyourbagis.com/produkt/thailand-visum-guide-ebook/','https://homeiswhereyourbagis.com/bangkok-reisefuehrer/','https://homeiswhereyourbagis.com/thailand-ebook/','https://homeiswhereyourbagis.com/lombok-reisefuehrer/','https://homeiswhereyourbagis.com/koh-samui-reisefuehrer/','https://homeiswhereyourbagis.com/koh-phangan-reisefuehrer/','https://homeiswhereyourbagis.com/warenkorb/','https://homeiswhereyourbagis.com/kasse/','https://homeiswhereyourbagis.com/infos-fuer-gastautoren/','https://homeiswhereyourbagis.com/impressum/','https://homeiswhereyourbagis.com/datenschutz','https://homeiswhereyourbagis.com/agb'];if(!excludedPages.includes(window.location.href)&&!Cookies.get('popupNLShown')){setTimeout(function(){jQuery('#newsletter-popup').fadeIn()},30000)}
jQuery('.close-btn, .close-btn-text').click(function(){jQuery('#newsletter-popup').fadeOut();Cookies.set('popupNLShown','true',{expires:30})})});



/*! js-cookie v3.0.1 | MIT */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o}}())}(this,(function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}return function t(n,o){function r(t,r,i){if("undefined"!=typeof document){"number"==typeof(i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u].split(";")[0]));return document.cookie=t+"="+n.write(r,t)+c}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],o={},r=0;r<t.length;r++){var i=t[r].split("="),c=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(o[u]=n.read(c,u),e===u)break}catch(e){}}return e?o[e]:o}},remove:function(t,n){r(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}));



(function(){"use strict";var UNCODE=window.UNCODE||{};window.UNCODE=UNCODE})();



(function($){"use strict";window.requestAnimFrame=(function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback,element){window.setTimeout(callback,1000/60)}})();window.requestTimeout=function(fn,delay){if(!window.requestAnimationFrame&&!window.webkitRequestAnimationFrame&&!(window.mozRequestAnimationFrame&&window.mozCancelRequestAnimationFrame)&&!window.oRequestAnimationFrame&&!window.msRequestAnimationFrame)
return window.setTimeout(fn,delay);var start=new Date().getTime(),handle=new Object();function loop(){var current=new Date().getTime(),delta=current-start;delta>=delay?fn.call():handle.value=requestAnimFrame(loop)};handle.value=requestAnimFrame(loop);return handle};window.clearRequestTimeout=function(handle){if(typeof handle!=='undefined'){window.cancelAnimationFrame?window.cancelAnimationFrame(handle.value):window.webkitCancelAnimationFrame?window.webkitCancelAnimationFrame(handle.value):window.webkitCancelRequestAnimationFrame?window.webkitCancelRequestAnimationFrame(handle.value):window.mozCancelRequestAnimationFrame?window.mozCancelRequestAnimationFrame(handle.value):window.oCancelRequestAnimationFrame?window.oCancelRequestAnimationFrame(handle.value):window.msCancelRequestAnimationFrame?window.msCancelRequestAnimationFrame(handle.value):clearTimeout(handle)}};if(SiteParameters.smoothScroll==='on'&&!SiteParameters.is_frontend_editor){const lenis=new Lenis({duration:1})
function raf(time){lenis.raf(time)
requestAnimationFrame(raf)
window.dispatchEvent(new CustomEvent('lenis-scroll'))}
requestAnimationFrame(raf)
$(window).on('unmodal-open',function(){lenis.stop()});$(document).on('unmodal-close',function(){lenis.start()})}
UNCODE.checkImgLoad=function(src,cb,err,el){var img=new Image();img.onload=function(){var result=(img.width>0)&&(img.height>0);cb(el)};img.onerror=function(){err()};img.src=src};UNCODE.betterResize=function(){var setResize,doubleResize=!0,oldW=UNCODE.wwidth,oldH=UNCODE.wheight,setCTA;$(window).on('resize orientationchange',function(){if(oldW===UNCODE.wwidth){return}else{oldW=UNCODE.wwidth;$(window).trigger('wwResize')}
if(oldH===UNCODE.wheight){return}else{oldH=UNCODE.wheight;$(window).trigger('whResize')}});$(window).on('resize orientationchange',function(){clearRequestTimeout(setCTA);setCTA=requestTimeout(function(){$(window).trigger('resize-int')},100)})};UNCODE.shuffle=function(array){var currentIndex=array.length,randomIndex;while(currentIndex>0){randomIndex=Math.floor(Math.random()*currentIndex);currentIndex--;[array[currentIndex],array[randomIndex]]=[array[randomIndex],array[currentIndex]]}
return array};Number.isInteger=Number.isInteger||function(value){return typeof value==="number"&&isFinite(value)&&Math.floor(value)===value};UNCODE.utils=function(){$(document).on('mouseover','a',function(){if(!$(this).hasClass('star')){$(this).attr('data-title',$(this).attr('title'));$(this).removeAttr('title')}});$(document).on('mouseout','a',function(){if(!$(this).hasClass('star')){$(this).attr('title',$(this).attr('data-title'));$(this).removeAttr('data-title')}});this.get_scroll_offset=function(e){var scroll_offset=0,target,trigger;if(Number.isInteger(e)!==!0&&typeof e!=='undefined'&&typeof e.target!=='undefined'&&typeof e.currentTarget!=='undefined'){target=e.target;trigger=e.currentTarget}
if($('.menu-hide').length||$('.menu-hide-vertical').length){if(UNCODE.bodyTop>UNCODE.wheight/2){UNCODE.hideMenu(100)}}
if(!$('body').hasClass('vmenu')||UNCODE.wwidth<UNCODE.mediaQuery){if(!($('.menu-desktop-transparent').length&&UNCODE.wwidth>UNCODE.mediaQuery)){if(($('.menu-sticky').length&&!$('.menu-hide').length&&!UNCODE.isMobile)||($('.menu-sticky-mobile').length&&UNCODE.isMobile)){if(!$('.menu-hided').length){if($('body').hasClass('hmenu-center')){scroll_offset+=$('.menu-sticky .menu-container').outerHeight()}else{scroll_offset+=$('.logo-container:visible').outerHeight()}}}else if($('.menu-sticky .menu-container:not(.menu-hide)').length&&!$('.menu-shrink').length){var shrink=typeof $('.navbar-brand').data('padding-shrink')!=='undefined'?$('.navbar-brand').data('padding-shrink')*2:36;scroll_offset+=$('.menu-sticky .menu-container').outerHeight()-($('.navbar-brand').data('minheight')+shrink)}else{if(($('.menu-sticky').length&&!$('.menu-hide').length)||($('.menu-sticky-vertical').length&&!$('.menu-hide-vertical').length)){scroll_offset+=UNCODE.menuMobileHeight}else{if(typeof target!=='undefined'&&target.closest('.main-menu-container')!=null&&UNCODE.wwidth<UNCODE.mediaQuery&&!$('body').hasClass('vmenu')&&!$('body').hasClass('menu-mobile-transparent')&&!$('.menu-sticky').length){}else{if($(trigger)[0]!==$(document)[0]&&$(trigger).length&&typeof $(trigger).offset()!=='undefined'&&window.scrollY>($(trigger).offset().top+UNCODE.menuMobileHeight)){scroll_offset+=UNCODE.menuMobileHeight}}}}}}
scroll_offset+=UNCODE.bodyBorder;return scroll_offset}
if(!UNCODE.isFullPage){$(document).on('click','a[href*="#"]:not(.woocommerce-review-link):not(.one-dot-link)',function(e){var hash=(e.currentTarget).hash,is_scrolltop=$(e.currentTarget).hasClass('scroll-top')?!0:!1,anchor='';if($(e.currentTarget).data('toggle')=='tab'||$(e.currentTarget).data('toggle')=='collapse')return;if($(e.currentTarget).hasClass('woocommerce-review-link')&&$('.wootabs .tab-content').length){e.preventDefault();if(!$('#tab-reviews').is(':visible')){$('a[href="#tab-reviews"]').trigger('click')}
var calc_scroll=$('.wootabs .tab-content').offset().top;calc_scroll-=UNCODE.get_scroll_offset(e);if(!($('.menu-desktop-transparent').length&&UNCODE.wwidth>UNCODE.mediaQuery)&&!($('.menu-mobile-transparent').length&&UNCODE.wwidth<=UNCODE.mediaQueryMobile)){var shrink=typeof $('.navbar-brand').data('padding-shrink')!=='undefined'?$('.navbar-brand').data('padding-shrink')*2:36;if($('.menu-sticky .menu-container:not(.menu-hide)').length&&$('.menu-shrink').length){scrollTo+=UNCODE.menuHeight-($('.navbar-brand').data('minheight')+shrink)}}
var bodyTop=document.documentElement.scrollTop||document.body.scrollTop,delta=bodyTop-calc_scroll,scrollSpeed=(SiteParameters.constant_scroll=='on')?Math.abs(delta)/parseFloat(SiteParameters.scroll_speed):SiteParameters.scroll_speed;if(scrollSpeed<1000&&SiteParameters.constant_scroll=='on')scrollSpeed=1000;requestTimeout(function(){if(scrollSpeed==0){$('html, body').scrollTop(calc_scroll);UNCODE.scrolling=!1}else{$('html, body').on("scroll wheel DOMMouseScroll mousewheel touchmove",function(){$(this).stop()}).animate({scrollTop:calc_scroll},scrollSpeed,'easeInOutCubic',function(){$(this).off("scroll wheel DOMMouseScroll mousewheel touchmove");UNCODE.scrolling=!1})}},200);return}
if(hash!=undefined){var specialFormat=/[ !@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/;var anchor=this.hash.slice(1);if(!specialFormat.test(hash)&&location.pathname.replace(/^\//g,'')==this.pathname.replace(/^\//g,'')&&location.hostname==this.hostname){if(!specialFormat.test(hash)){if($(hash).length)
anchor=$(hash);}}}
if(is_scrolltop||anchor!=''){if(is_scrolltop){e.preventDefault();var bodyTop=document.documentElement.scrollTop||document.body.scrollTop,scrollSpeed=(SiteParameters.constant_scroll=='on')?Math.abs(bodyTop)/parseFloat(SiteParameters.scroll_speed):SiteParameters.scroll_speed;if(scrollSpeed<1000&&SiteParameters.constant_scroll=='on')scrollSpeed=1000;if(scrollSpeed==0){$('html, body').scrollTop(0);UNCODE.scrolling=!1}else{$('html, body').on("scroll wheel DOMMouseScroll mousewheel touchmove",function(){$(this).stop()}).animate({scrollTop:0},scrollSpeed,'easeInOutCubic',function(){$(this).off("scroll wheel DOMMouseScroll mousewheel touchmove");UNCODE.scrolling=!1})}}else{var scrollSection=(typeof anchor==='string')?$('[data-name="'+anchor+'"]'):anchor;$.each($('.menu-container .menu-item > a, .widget_nav_menu .menu-smart .menu-item > a'),function(index,val){var get_href=$(val).attr('href');if(get_href!=undefined){if(get_href.substring(get_href.indexOf('#')+1)==anchor)$(val).parent().addClass('active');else $(val).parent().removeClass('active')}});if(scrollSection.length){if($('body').hasClass('uncode-scroll-no-history')){e.preventDefault()}
if(UNCODE.menuOpened){if(UNCODE.wwidth<UNCODE.mediaQuery){window.dispatchEvent(UNCODE.menuMobileTriggerEvent)}else{$('.mmb-container-overlay .overlay-close').trigger('click');$('.mmb-container .trigger-overlay.close')[0].dispatchEvent(new Event("click"))}}
var calc_scroll=scrollSection.offset().top,getOffset=UNCODE.get_scroll_offset(e),$logo=$('.logo-container:visible'),logoH,$menu=$('#masthead .menu-container'),menuH;calc_scroll-=isNaN(getOffset)?0:getOffset;var bodyTop=document.documentElement.scrollTop||document.body.scrollTop,delta=bodyTop-calc_scroll,scrollSpeed=(SiteParameters.constant_scroll=='on')?Math.abs(delta)/parseFloat(SiteParameters.scroll_speed):SiteParameters.scroll_speed;if(scrollSpeed<1000&&SiteParameters.constant_scroll=='on')scrollSpeed=1000;if(!($('.menu-desktop-transparent').length&&UNCODE.wwidth>UNCODE.mediaQuery)&&!($('.menu-mobile-transparent').length&&UNCODE.wwidth<=UNCODE.mediaQueryMobile)){if($('.menu-sticky .menu-container:not(.menu-hide)').length&&!$('.menu-shrink').length&&!$('body').hasClass('vmenu')&&UNCODE.wwidth>UNCODE.mediaQuery){logoH=$logo.outerHeight(),menuH=$menu.outerHeight();if(calc_scroll<(logoH+menuH)){calc_scroll=0}}}
if(UNCODE.menuStickyMobileOverlay===!1&&UNCODE.isMobile){calc_scroll=calc_scroll-parseFloat($('.overlay.overlay-menu').outerHeight())}
if(scrollSpeed==0){$('html, body').scrollTop(calc_scroll);UNCODE.scrolling=!1}else{$('html, body').on("scroll wheel DOMMouseScroll mousewheel touchmove",function(){$(this).stop()}).animate({scrollTop:(delta>0)?calc_scroll-0.1:calc_scroll},scrollSpeed,'easeInOutCubic',function(){$(this).off("scroll wheel DOMMouseScroll mousewheel touchmove");UNCODE.scrolling=!1;if((getOffset!=UNCODE.get_scroll_offset(e)&&!($('.menu-desktop-transparent').length&&UNCODE.wwidth>UNCODE.mediaQuery)&&!($('.menu-mobile-transparent').length&&UNCODE.wwidth<=UNCODE.mediaQueryMobile))||$('.menu-hided').length){calc_scroll=scrollSection.offset().top;getOffset=UNCODE.get_scroll_offset(e);calc_scroll-=getOffset;$('html, body').on("scroll wheel DOMMouseScroll mousewheel touchmove",function(){$(this).stop()}).animate({scrollTop:(delta>0)?calc_scroll-0.1:calc_scroll},scrollSpeed,'easeInOutCubic',function(){$(this).off("scroll wheel DOMMouseScroll mousewheel touchmove");UNCODE.scrolling=!1})}})}}}}});$('.header-scrolldown').on('click',function(event){event.preventDefault();var pageHeader=$(event.target).closest('#page-header'),pageHeaderTop=pageHeader.offset().top,pageHeaderHeight=pageHeader.outerHeight(),scrollSpeed=(SiteParameters.constant_scroll=='on')?Math.abs(pageHeaderTop+pageHeaderHeight)/parseFloat(SiteParameters.scroll_speed):SiteParameters.scroll_speed;if(scrollSpeed<1000&&SiteParameters.constant_scroll=='on')scrollSpeed=1000;var calc_scroll=pageHeaderTop+pageHeaderHeight,getOffset=UNCODE.get_scroll_offset(event);calc_scroll-=getOffset;if(!($('.menu-desktop-transparent').length&&UNCODE.wwidth>UNCODE.mediaQuery)&&!($('.menu-mobile-transparent').length&&UNCODE.wwidth<=UNCODE.mediaQueryMobile)){var shrink=typeof $('.navbar-brand').data('padding-shrink')!=='undefined'?$('.navbar-brand').data('padding-shrink')*2:36;if($('.menu-sticky .menu-container:not(.menu-hide)').length&&$('.menu-shrink').length){scrollTo+=UNCODE.menuHeight-($('.navbar-brand').data('minheight')+shrink)}}
if(scrollSpeed==0){$('html, body').scrollTop(calc_scroll);UNCODE.scrolling=!1}else{$('html, body').on("scroll wheel DOMMouseScroll mousewheel touchmove",function(){$(this).stop()}).animate({scrollTop:calc_scroll},scrollSpeed,'easeInOutCubic',function(){$(this).off("scroll wheel DOMMouseScroll mousewheel touchmove");UNCODE.scrolling=!1;if(getOffset!=UNCODE.get_scroll_offset(event)||$('.menu-hided').length){calc_scroll=pageHeaderTop+pageHeaderHeight;getOffset=UNCODE.get_scroll_offset(event);calc_scroll-=getOffset;$('html, body').on("scroll wheel DOMMouseScroll mousewheel touchmove",function(){$(this).stop()}).animate({scrollTop:calc_scroll},scrollSpeed,'easeInOutCubic',function(){$(this).off("scroll wheel DOMMouseScroll mousewheel touchmove");UNCODE.scrolling=!1})}})}})}
$(document).on('mouseenter','.col-link',function(e){var uncol=$(e.target).prev('.uncol'),el=uncol.find('.column-background');if(el){$('.btn-container .btn',uncol).addClass('active');var elOverlay=$(el[0]).find('.block-bg-overlay');if(elOverlay.length){var getOpacity=$(elOverlay).css('opacity');if(getOpacity!=1){getOpacity=Math.round(getOpacity*100)/100;var newOpacity=getOpacity+.1;$(elOverlay).data('data-opacity',getOpacity);$(elOverlay).css('opacity',newOpacity)}}}}).on('mouseleave','.col-link',function(e){var uncol=$(e.target).prev('.uncol'),el=uncol.find('.column-background');$('.btn-container .btn',uncol).removeClass('active');if(el){var elOverlay=$(el[0]).find('.block-bg-overlay');if(elOverlay.length){var getOpacity=$(elOverlay).data('data-opacity');$(elOverlay).css('opacity',getOpacity)}}});var fixAdminBar=function(){if($('html').hasClass('admin-mode')&&!SiteParameters.is_frontend_editor){var getAdminBar=$('#wpadminbar');if(getAdminBar.length){if(getAdminBar.css('position')!=='hidden'){var getAdminBarHeight=getAdminBar.height();if(getAdminBar.css('position')==='fixed'){$('html').css({'margin-top':getAdminBarHeight+'px','padding-top':UNCODE.bodyBorder+'px'});$('.body-borders .top-border').css({'margin-top':getAdminBarHeight+'px'})}else{$('html').css({'padding-top':UNCODE.bodyBorder+'px','margin-top':'0px'});$('.body-borders .top-border').css({'margin-top':'0px'})}}}}};window.addEventListener('load',fixAdminBar);window.addEventListener('resize',fixAdminBar);var beforePrint=function(){window.dispatchEvent(new CustomEvent('resize'));window.dispatchEvent(UNCODE.boxEvent)};if(window.matchMedia){var mediaQueryList=window.matchMedia('print');mediaQueryList.addListener(function(mql){if(mql.matches){beforePrint()}})}
window.onbeforeprint=beforePrint;var safariSrcSet=function(){if(!SiteParameters.is_frontend_editor){$('html.safari img[sizes]').each(function(){var $img=$(this),sizeImg=parseInt($img.attr('sizes'));if(typeof(sizeImg)==='number'){$img.attr('sizes',(sizeImg)+'px')}})}};window.addEventListener('load',safariSrcSet)}
UNCODE.lettering=function(){var setCTA;var highlightStill=function(){var $heading_texts=$('.heading-text:not(.animate_inner_when_almost_visible)');$.each($heading_texts,function(key,el){var $heading=$(el);if(!$('.heading-text-highlight-inner[data-animated="yes"]',$heading).length){return}
if(UNCODE.isUnmodalOpen&&!el.closest('#unmodal-content')){return}
var waypoint=new Waypoint({context:UNCODE.isUnmodalOpen?document.getElementById('unmodal-content'):window,element:el,handler:function(){var $anims=$('.heading-text-highlight-inner[data-animated="yes"]',this.element),anims_l=$anims.length;$anims.each(function(_key_,_el_){var $anim=$(_el_);if(!$anim.hasClass('heading-text-highlight-animated')){$anim.addClass('heading-text-highlight-animated');if($heading.data('animate')===!0){$anim.css({'-webkit-transition-duration':'0ms','-moz-transition-duration':'0ms','-o-transition-duration':'0ms','transition-duration':'0ms',})}else{$anim.css({'-webkit-transition-delay':((_key_+2)*200)+'ms','-moz-transition-delay':((_key_+2)*200)+'ms','-o-transition-delay':((_key_+2)*200)+'ms','transition-delay':((_key_+2)*200)+'ms',})}}});$anims.last().one('webkitTransitionEnd oTransitionEnd mozTransitionEnd msTransitionEnd transitionEnd',function(e){$heading.data('animate',!0)});$anims.removeAttr('data-animated')},offset:'100%'})});Waypoint.refreshAll();$(document.body).trigger('uncode_waypoints')}
requestTimeout(function(){highlightStill();$(window).on('resize',function(){clearRequestTimeout(setCTA);setCTA=requestTimeout(highlightStill,100)})},400)};UNCODE.isUnmodalOpen=!1;var manageVideoSize=function(){var setVideoFit;$('.wp-block-embed').each(function(){var $this=$(this);if($('iframe',$this).length){var $iframe=$('> iframe, > a > iframe',$this),w=parseFloat($iframe.attr('width')),h=parseFloat($iframe.attr('height')),url=$iframe.attr('src'),ratio,frW;if(typeof url!='undefined'&&url.indexOf('soundcloud')==-1&&h!==0){ratio=h/w;var setResizeiFto,resizeiFrame=function(){frW=$iframe.width();$iframe.css({height:frW*ratio})};resizeiFrame();$(window).on('resize load',function(){clearRequestTimeout(setResizeiFto);setResizeiFto=requestTimeout(function(){resizeiFrame()},10)})}}})};manageVideoSize();UNCODE.vivus=function(icon,time,delay,file){if(typeof Vivus!=='undefined'){var icon_options={type:'delayed',pathTimingFunction:Vivus.EASE_OUT,animTimingFunction:Vivus.LINEAR,duration:time,}
if(delay){icon_options.delayStart=delay}
if(file){icon_options.file=file}
new Vivus(icon,icon_options)}};UNCODE.lastURL='';UNCODE.getURLParams=function(current_location,is_string){var params={};if(is_string){var url=current_location.split('?')[1]}else{var url=current_location.search;url=url.substring(1)}
if(url){var parts=url.split('&');for(var i=0;i<parts.length;i++){var nv=parts[i].split('=');if(!nv[0]){continue}
params[nv[0]]=nv[1]||!0}}
return params}
UNCODE.hasEqualURLParams=function(obj1,obj2){for(var i in obj1){if(obj1.hasOwnProperty(i)){if(!obj2.hasOwnProperty(i)){return!1}
if(obj1[i]!=obj2[i]){return!1}}}
for(var i in obj2){if(obj2.hasOwnProperty(i)){if(!obj1.hasOwnProperty(i)){return!1}
if(obj1[i]!=obj2[i]){return!1}}}
return!0}
UNCODE.magnetic=function(){$(document).on('mousemove','.un-magnetic-zone',function(e){var $zone=$(this),zoneOff=$zone.offset(),$mgntcEl=$('.un-magnetic-el',this),elBound=this.getBoundingClientRect(),maxSize=Math.max($zone.outerWidth(),$zone.outerHeight());var Xvalue=e.pageX-(zoneOff.left+maxSize/2),Yvalue=e.pageY-(zoneOff.top+maxSize/2);$mgntcEl.each(function(key,val){var magneticValue=$(val).attr('data-mgntc')||0.5;val.animate({transform:'translate('+(Xvalue*magneticValue)+'%, '+(Yvalue*magneticValue)+'%)',},{duration:500,fill:'forwards',})})})
$(document).on('mouseleave','.un-magnetic-zone',function(e){var $mgntcEl=$('.un-magnetic-el',this);$mgntcEl.each(function(key,val){val.animate({transform:'translate(0)',},{duration:500,fill:'forwards',})})})}})(jQuery);



(function($){"use strict";UNCODE.menuSystem=function(){function menuMobile(){var $body=$('body'),scrolltop,$mobileToggleButton=$('.mobile-menu-button, .uncode-close-offcanvas-mobile'),$masthead=$('#masthead'),$box,$el,$el_transp,elHeight,offCanvasAnim,check,animating=!1,stickyMobile=!1,menuClose=new CustomEvent('menuMobileClose'),menuOpen=new CustomEvent('menuMobileOpen');UNCODE.menuOpened=!1;$mobileToggleButton.on('click',function(event){event.stopPropagation();var btn=this;if($(btn).hasClass('overlay-close'))return;event.preventDefault();$('.overlay-search.open .menu-close-dd',$masthead).trigger('click');if(UNCODE.wwidth<=UNCODE.mediaQuery){$box=$(this).closest('.box-container').find('.main-menu-container');$el=$(this).closest('.box-container').find('.menu-horizontal-inner:not(.row-brand), .menu-sidebar-inner');$el_transp=$('.menu-absolute.menu-transparent');if(UNCODE.isMobile){if($('.menu-wrapper.menu-sticky, .menu-wrapper.menu-hide-only, .main-header .menu-sticky-vertical, .main-header .menu-hide-only-vertical, .menu-mobile-centered, .menu-sticky-mobile').length){stickyMobile=!0;elHeight=window.innerHeight-UNCODE.menuMobileHeight-(UNCODE.bodyBorder*2)-UNCODE.adminBarHeight+1}else{elHeight=0;$.each($box.find('> div'),function(index,val){elHeight+=$(val).outerHeight()})}}else{elHeight=0;$.each($el,function(index,val){elHeight+=$(val).outerHeight()})}
var open=function(){clearTimeout(offCanvasAnim);if(!animating){$body.addClass('open-overlay-menu').addClass('opening-overlay-menu');scrolltop=$(window).scrollTop();window.dispatchEvent(menuOpen);animating=!0;UNCODE.menuOpened=!0;if($('body[class*="vmenu-"], body.hmenu-center').length&&($('.menu-hide, .menu-sticky, .menu-transparent').length)){if($body.hasClass('menu-sticky-mobile')||($('#masthead.menu-transparent').length&&!UNCODE.isMobile)){$('.main-header > .vmenu-container').css({position:'fixed',top:($('.menu-container').outerHeight()+UNCODE.bodyBorder+UNCODE.adminBarHeight)+'px'})}
if($('body.menu-offcanvas').length){$('.menu-container:not(.sticky-element):not(.grid-filters)').css({position:'fixed'});$('.vmenu-container.menu-container:not(.sticky-element):not(.grid-filters)').css({position:'fixed',top:(UNCODE.menuMobileHeight+UNCODE.bodyBorder+UNCODE.adminBarHeight)+'px'})}else{if($('.menu-hide, .menu-sticky').length){if(UNCODE.wwidth>=960&&$('.menu-sticky').length){$('.menu-container:not(.sticky-element):not(.grid-filters)').css({position:'fixed'})}}}}
if($('body.hmenu-center').length&&((!UNCODE.isMobile&&$('.menu-hide, .menu-sticky').length)||(UNCODE.isMobile&&$('.menu-sticky-mobile').length))){$('.menu-container:not(.sticky-element):not(.grid-filters)').css({position:'fixed',top:(UNCODE.menuMobileHeight+UNCODE.bodyBorder+UNCODE.adminBarHeight)+'px'})}
$box.addClass('open-items');if($el_transp.length&&$('body.menu-mobile-transparent').length){$el_transp.addClass('is_mobile_open')}
if(!$('body').hasClass('menu-mobile-off-canvas')){btn.classList.add('close');$box.animate({height:elHeight},600,"easeInOutCirc",function(){animating=!1;if(!stickyMobile)$box.css('height','auto');})}else{animating=!1}}};var close=function(){clearTimeout(offCanvasAnim);if(!animating){window.dispatchEvent(menuClose);animating=!0;UNCODE.menuOpened=!1;if(!$('body').hasClass('menu-mobile-off-canvas')){btn.classList.remove('close');btn.classList.add('closing')}
$box.addClass('close');requestTimeout(function(){$box.removeClass('close');$box.removeClass('open-items');btn.classList.remove('closing');if($el_transp.length){$el_transp.removeClass('is_mobile_open')}},500);$body.removeClass('opening-overlay-menu');if(!$('body').hasClass('menu-mobile-off-canvas')){$box.animate({height:0},{duration:600,easing:"easeInOutCirc",complete:function(elements){$(elements).css('height','');animating=!1;if($('body[class*="vmenu-"]').length&&UNCODE.wwidth>=960){$('.main-header > .vmenu-container').add('.menu-container:not(.sticky-element):not(.grid-filters)').css('position','relative')}
$body.removeClass('open-overlay-menu')}})}else{animating=!1;offCanvasAnim=setTimeout(function(){$body.removeClass('open-overlay-menu')},1000)}}};check=(!UNCODE.menuOpened)?open():close()}});$('html').on('click',function(event){if($('body').hasClass('menu-mobile-off-canvas')&&UNCODE.wwidth<960&&UNCODE.menuOpened&&event.clientX<SiteParameters.menu_mobile_offcanvas_gap){$('.uncode-close-offcanvas-mobile').trigger('click')}});window.addEventListener('menuMobileTrigged',function(e){$('.mobile-menu-button.close, .opening-overlay-menu .uncode-close-offcanvas-mobile').trigger('click')});window.addEventListener('orientationchange',function(e){$('#logo-container-mobile .mobile-menu-button.close').trigger('click')});window.addEventListener("resize",function(){if($(window).width()<UNCODE.mediaQuery){if(UNCODE.isMobile){var $box=$('.box-container .main-menu-container'),$el=$('.box-container .menu-horizontal-inner, .box-container .menu-sidebar-inner');if($($box).length&&$($box).hasClass('open-items')&&$($box).css('height')!='auto'&&!$('body').hasClass('menu-mobile-off-canvas')){if($('.menu-wrapper.menu-sticky, .menu-wrapper.menu-hide-only').length){elHeight=0;$.each($el,function(index,val){elHeight+=$(val).outerHeight()});elHeight=window.innerHeight-$('.menu-wrapper.menu-sticky .menu-container .row-menu-inner, .menu-wrapper.menu-hide-only .menu-container .row-menu-inner').height()-(UNCODE.bodyBorder*2)+1;$($box).css('height',elHeight+'px')}}}}else{$('.menu-hide-vertical').removeAttr('style');$('.menu-container-mobile').removeAttr('style');$('.vmenu-container.menu-container').removeAttr('style')}});$(window).on('scroll',function(){if($body.hasClass('opening-overlay-menu')&&$body.hasClass('menu-mobile-off-canvas')&&UNCODE.wwidth<960){$(window).scrollTop(scrolltop);return!1}})};function menuOffCanvas(){var menuClose=new CustomEvent('menuCanvasClose'),menuOpen=new CustomEvent('menuCanvasOpen');$('.menu-primary .menu-button-offcanvas:not(.menu-close-search)').on('click',function(event){if($(window).width()>UNCODE.mediaQuery){if($('body.vmenu-offcanvas-overlay').length){if($(event.currentTarget).hasClass('off-close')){$(event.currentTarget).removeClass('off-close');requestTimeout(function(){window.dispatchEvent(menuClose)},500)}else{$(event.currentTarget).addClass('off-close');window.dispatchEvent(menuOpen)}}else{if($(event.currentTarget).hasClass('close')){$(event.currentTarget).removeClass('close');$(event.currentTarget).addClass('closing');requestTimeout(function(){$(event.currentTarget).removeClass('closing');window.dispatchEvent(menuClose)},500)}else{$(event.currentTarget).addClass('close');window.dispatchEvent(menuOpen)}}}
$('body').toggleClass('off-opened')});$('body').off('click.menu-off-canvas-mobile').on('click.menu-off-canvas-mobile',function(e){if($(window).width()>UNCODE.mediaQuery&&$('body.menu-offcanvas.vmenu-offcanvas-overlay.off-opened').length){var $vMenuCont=$('#masthead .vmenu-container'),$close_menu=$('.uncode-close-offcanvas-overlay',$vMenuCont),vmenu_h=parseFloat($vMenuCont.outerHeight()),vmenu_w=parseFloat($vMenuCont.outerWidth()),vmenu_off=$vMenuCont.offset(),vmenu_l=parseFloat(vmenu_off.left),vmenu_t=parseFloat(vmenu_off.top),vmenu_r=vmenu_l+vmenu_w,vmenu_b=vmenu_t+vmenu_h,close_h=parseFloat($close_menu.outerHeight()),close_w=parseFloat($close_menu.outerWidth()),close_off=$close_menu.offset(),close_l=parseFloat(close_off.left),close_t=parseFloat(close_off.top),close_r=close_l+close_w,close_b=close_t+close_h;if(!(e.clientX>vmenu_l&&e.clientX<vmenu_r&&e.clientY>vmenu_t&&e.clientY<vmenu_b)||(e.clientX>close_l&&e.clientX<close_r&&e.clientY>close_t&&e.clientY<close_b)){$('.menu-primary .menu-button-offcanvas:not(.menu-close-search)').trigger('click')}}})};function menuOverlay(){if($('.overlay').length){$('.overlay').removeClass('hidden')}
if(($('.overlay-sequential').length>0&&UNCODE.wwidth>=UNCODE.mediaQuery)||($('.menu-mobile-animated').length>0&&UNCODE.wwidth<UNCODE.mediaQuery)){$('.overlay-sequential .menu-smart > li, .menu-sticky .menu-container .menu-smart > li, .menu-hide.menu-container .menu-smart > li, .vmenu-container .menu-smart > li, .uncode-menu-additional-text').each(function(index,el){var transDelay=(index/20)+0.1;if($('body').hasClass('menu-mobile-centered')&&$(window).width()<UNCODE.mediaQuery)
transDelay=transDelay+0.3;$(this)[0].setAttribute('style','-webkit-transition-delay:'+transDelay+'s; -moz-transition-delay:'+transDelay+'s; -ms-transition-delay:'+transDelay+'s; -o-transition-delay:'+transDelay+'s; transition-delay:'+transDelay+'s')})}};var $secondary_parent;function menuAppend(){var $body=$('body'),$menuCont=$('.menu-container:not(.vmenu-container)'),$vMenuCont=$('.menu-container.vmenu-container'),$cta=$('.navbar-cta'),$socials=$('.navbar-social:not(.appended-navbar)'),$ul=$('.navbar-main ul.menu-primary-inner'),$ulCta,$ulSocials,$navLast,$firstMenu=$('.main-menu-container:first-child',$menuCont),$secondMenu=$('.main-menu-container:last-child',$menuCont),$firstNav=$('.navbar-nav:not(.uncode-close-offcanvas-mobile):first-child',$firstMenu),$secondNav=$('.navbar-nav:not(.uncode-close-offcanvas-mobile):first-child',$secondMenu),$ulFirst=$('> ul',$firstNav),$ulSecond=$('> ul',$secondNav),setCTA,appendCTA=function(){return!0},appendSocials=function(){return!0},appendSplit=function(){return!0};if(($body.hasClass('menu-offcanvas')||$body.hasClass('menu-overlay')||$body.hasClass('hmenu-center-split'))&&$cta.length){$ulCta=$('> ul',$cta);$ulCta.parent().addClass('mobile-hidden').addClass('tablet-hidden');appendCTA=function(){if(UNCODE.wwidth<UNCODE.mediaQuery){$ul.after($ulCta)}else{$cta.append($ulCta)}}}
if(!$body.hasClass('cta-not-appended')){appendCTA()}
var $smartSocial=$menuCont.add($vMenuCont).find('.menu-smart-social');$smartSocial.each(function(){var $_smartSocial=$(this);$('> li',$_smartSocial).each(function(){var $li=$(this);if($li.hasClass('mobile-hidden')){$_smartSocial.addClass('mobile-hidden')}else{$_smartSocial.removeClass('mobile-hidden');return!1}});$('> li',$_smartSocial).each(function(){var $li=$(this);if($li.hasClass('tablet-hidden')){$_smartSocial.addClass('tablet-hidden')}else{$_smartSocial.removeClass('tablet-hidden');return!1}})});if(($body.hasClass('hmenu-center-split')||$body.hasClass('menu-overlay-center')||$body.hasClass('menu-offcanvas')||$body.hasClass('vmenu'))&&$socials.length){$ulSocials=$('> ul',$socials).addClass('menu-smart-social');if($body.hasClass('hmenu-center-split')){$navLast=$('.menu-horizontal-inner .navbar-nav-last',$menuCont)}else{$navLast=$('.navbar-nav-last',$vMenuCont)}
if(!$navLast.length){var _navLast=$('<div class="nav navbar-nav navbar-social navbar-nav-last appended-navbar" />');if($body.hasClass('hmenu-center-split')){$('.menu-horizontal-inner',$menuCont).append(_navLast);$navLast=$('.menu-horizontal-inner .navbar-nav-last',$menuCont)}else{$('.menu-sidebar-inner',$vMenuCont).last().append(_navLast);$navLast=$('.navbar-nav-last',$vMenuCont)}}
appendSocials=function(){if(!$body.hasClass('menu-overlay-center')){if(UNCODE.wwidth<UNCODE.mediaQuery){$socials.addClass('mobile-hidden').addClass('tablet-hidden')
if(!$('> ul.menu-smart-social li',$socials).length){$('> ul.menu-smart-social li',$socials).remove()}
$navLast.append($ulSocials)}else{if(!$('> ul.menu-smart-social li',$navLast).length){$('> ul.menu-smart-social li',$navLast).remove()}
$socials.append($ulSocials)}}}
appendSocials()}
if($vMenuCont.length){var $accordion_secondary=$('.menu-accordion-secondary',$vMenuCont)}else{var $accordion_secondary=$('.menu-accordion-secondary',$menuCont)}
if($accordion_secondary.length){var $accordion_secondary_ph=$vMenuCont.add($menuCont).find('.accordion-secondary-ph');if(UNCODE.wwidth<UNCODE.mediaQuery){if(!$accordion_secondary_ph.length){$accordion_secondary.after('<span class="accordion-secondary-ph" />')}
if($vMenuCont.length){$('.menu-sidebar-inner',$vMenuCont).first().find('.menu-accordion:not(.menu-accordion-secondary):not(.menu-accordion-extra-icons)').last().after($accordion_secondary)}else{if($('.navbar-nav.navbar-cta:not(.mobile-hidden)',$menuCont).length){$('.navbar-nav.navbar-cta',$menuCont).after($accordion_secondary)}else{$('.navbar-nav.navbar-main',$menuCont).after($accordion_secondary)}}}else{if(typeof $accordion_secondary_ph!=='undefined'&&$accordion_secondary_ph.length){$accordion_secondary_ph.before($accordion_secondary)}}}
if($vMenuCont.length){var $extra_icons=$('.menu-accordion-extra-icons',$vMenuCont)}else{var $extra_icons=$('.navbar-extra-icons',$menuCont)}
if($extra_icons.length){if($vMenuCont.length){if($('li:not(.social-icon)',$extra_icons).length){if(UNCODE.wwidth<UNCODE.mediaQuery){var $not_social=$('> ul > li:not(.social-icon)',$extra_icons),$primary_after=$('.menu-accordion-primary-after',$vMenuCont);$not_social.each(function(){if(!$primary_after.length){$('.menu-accordion-primary',$vMenuCont).after('<div class="menu-accordion menu-accordion-primary-after" />');$primary_after=$('.menu-accordion-primary-after',$vMenuCont);$primary_after.append('<ul class="menu-smart sm sm-vertical menu-smart-social" />')}
var $extra_li=$(this);$primary_after.find('> ul').append($extra_li)})}else{var $primary_after=$('.menu-accordion-primary-after',$vMenuCont),$not_social=$('> ul > li:not(.social-icon)',$primary_after);$not_social.each(function(){var $extra_li=$(this);$extra_icons.find('> ul').append($extra_li)})}}}else{if(!$body.hasClass('hmenu-center-double')){if(UNCODE.wwidth<UNCODE.mediaQuery){var $not_social=$('> ul > li:not(.social-icon)',$extra_icons),$primary_after=$('.nav.navbar-main-after',$menuCont);if(!$primary_after.length&&$not_social.length){if($('.navbar-nav.navbar-cta:not(.mobile-hidden)',$menuCont).length){$('.navbar-nav.navbar-cta',$menuCont).after('<div class="nav navbar-main-after" />')}else{$('.navbar-nav.navbar-main',$menuCont).after('<div class="nav navbar-main-after" />')}
$primary_after=$('.nav.navbar-main-after',$menuCont);$primary_after.append('<ul class="menu-smart sm menu-smart-social" />')}
var tablet_hidden=!0,mobile_hidden=!0;$not_social.each(function(){var $extra_li=$(this);$primary_after.find('> ul').append($extra_li);if(!$extra_li.hasClass('tablet-hidden')){tablet_hidden=!1}
if(!$extra_li.hasClass('mobile-hidden')){mobile_hidden=!1}});if(tablet_hidden===!0&&$not_social.length){$primary_after.addClass('tablet-hidden')}
if(mobile_hidden===!0&&$not_social.length){$primary_after.addClass('mobile-hidden')}}else{var $primary_after=$('.nav.navbar-main-after',$menuCont);if($primary_after.length){var $not_social=$('> ul > li:not(.social-icon)',$primary_after);$not_social.each(function(){var $extra_li=$(this);$extra_icons.find('> ul').append($extra_li)});$primary_after.remove()}}}}}
if(($body.hasClass('hmenu-center-double'))){appendSplit=function(){if(UNCODE.wwidth<UNCODE.mediaQuery){if($extra_icons.length){if($('li:not(.social-icon):not(.tablet-hidden):not(.mobile-hidden)',$extra_icons).length){var $not_social=$('> ul > li:not(.social-icon)',$extra_icons),$append_ul=$('<ul class="menu-smart sm sm-vertical append-extra-icons" />');$not_social.each(function(){var $extra_li=$(this);$append_ul.append($extra_li)});if($secondNav.length){$secondNav.append($append_ul)}else{$('.menu-horizontal-inner',$menuCont).prepend($append_ul)}}}
if($secondNav.length){$secondNav.prepend($ulFirst)}else{$('.menu-horizontal-inner',$menuCont).prepend($ulFirst)}
$firstMenu.hide()}else{$firstNav.append($ulFirst);var $append_ul=$('.menu-horizontal-inner ul.append-extra-icons',$menuCont).eq(0);if($append_ul.length){var $not_social=$('> li:not(.social-icon)',$append_ul);$not_social.each(function(){var $extra_li=$(this);$extra_icons.find('> ul').append($extra_li)})}
$('.menu-horizontal-inner ul.append-extra-icons',$menuCont).remove();$('.menu-horizontal-inner > .menu-primary-inner',$menuCont).remove();$firstMenu.css({'display':'table-cell'})}}}
appendSplit();$(window).on('resize',function(){clearRequestTimeout(setCTA);setCTA=requestTimeout(function(){appendCTA();appendSocials();appendSplit()},10)})}
menuMobile();menuOffCanvas();menuAppend();menuOverlay();var stickyDropdownSearch=function(){var $masthead=$('#masthead'),$ddSearch=$('.overlay.overlay-search',$masthead),$styles=$('#stickyDropdownSearch').remove();if($('body.hmenu-center.menu-sticky-mobile').length&&$ddSearch.length){var $menuWrapper=$('.menu-wrapper'),$navbar=$('.menu-container-mobile',$menuWrapper),navbarH=$navbar.outerHeight(),_css;_css='<style id="stickyDropdownSearch">';_css+='@media (max-width: 959px) {';_css+='body.hmenu-center.menu-sticky-mobile #masthead .overlay.overlay-search {';_css+='margin-top: '+parseFloat(navbarH)+'px !important;';_css+='}';_css+='body.hmenu-center.menu-sticky-mobile .navbar.is_stuck + #masthead .overlay.overlay-search {';_css+='position: fixed;';_css+='top: 0;';_css+='}';_css+='</style>';$(_css).appendTo($('head'))}}
stickyDropdownSearch();var setMenuOverlay;$(window).on('resize',function(){if($('.overlay').length&&$(window).width()>1024){$('.overlay').addClass('hidden')}
clearRequestTimeout(setMenuOverlay);setMenuOverlay=requestTimeout(function(){menuOverlay();menuAppend();stickyDropdownSearch()},150)});UNCODE.menuSmartInit()};UNCODE.menuSmartInit=function(){var $menusmart=$('[class*="menu-smart"]'),$masthead=$('#masthead'),$hMenu=$('.menu-horizontal-inner',$masthead),$focus=$('.overlay-menu-focus'),showTimeout=50,hideTimeout=50,showTimeoutFunc,hideTimeoutFunc;$('> li.menu-item-has-children',$menusmart).hover(function(){$(this).data('hover',!0)},function(){$(this).data('hover',!1)});$('> li.menu-item a[href="#"]',$menusmart).on('click',function(e){e.preventDefault()});if($(window).width()>=UNCODE.mediaQuery&&$('.overlay-menu-focus').length){var $notLis=$('> .nav > ul > li a',$hMenu),$menuA=$('a',$masthead).not($notLis),$hoverSelector=$('> .nav > ul > li',$hMenu).has('> ul'),showFuncCond=function(){return!0};if($('body').hasClass('focus-megamenu')){$hoverSelector=$('> .nav > ul > li',$hMenu).has('.mega-menu-inner');showFuncCond=function($ul){return $ul.hasClass('mega-menu-inner')}}else if($('body').hasClass('focus-links')){$hoverSelector=$('> .nav > ul > li',$hMenu).add($menuA)}
$hoverSelector.hover(function(){clearRequestTimeout(hideTimeoutFunc);showTimeoutFunc=requestTimeout(function(){$('body').addClass('navbar-hover')},showTimeout*2)},function(){hideTimeoutFunc=requestTimeout(function(){if(!$('.overlay-search.open',$masthead).length){$('body').removeClass('navbar-hover')}},hideTimeout*2)})}else{showFuncCond=function(){return!1}}
if($menusmart.length>0){$menusmart.smartmenus({subIndicators:!1,subIndicatorsPos:'append',subIndicatorsText:'',showTimeout:showTimeout,hideTimeout:hideTimeout,scrollStep:8,showFunction:function($ul,complete){clearRequestTimeout(showTimeoutFunc);$ul.fadeIn(0,'linear',function(){complete();if($ul.hasClass('vc_row')){$ul.css({'display':'table'})}
if($('.overlay-menu-focus').length&&$ul.hasClass('mega-menu-inner')){$('body').addClass('open-megamenu')}
if($('.overlay-menu-focus').length&&showFuncCond($ul)&&$(window).width()>=UNCODE.mediaQuery&&$ul.closest('.main-menu-container').length){$('body').addClass('navbar-hover')}}).addClass('open-animated')},hideFunction:function($ul,complete){if($('.overlay-menu-focus').length&&$ul.hasClass('mega-menu-inner')&&!$('.overlay-search.open',$masthead).length){$('body').removeClass('open-megamenu')}
var fixIE=$('html.ie').length;if(fixIE){var $rowParent=$($ul).closest('.main-menu-container');$rowParent.height('auto')}
$ul.fadeOut(0,'linear',function(){complete();$ul.removeClass('open-animated');if($ul.closest('li.menu-item-has-children').data('hover')===!1){$('body').removeClass('open-submenu')}})},collapsibleShowFunction:function($ul,complete){$ul.slideDown(400,'easeInOutCirc',complete)},collapsibleHideFunction:function($ul,complete){$ul.slideUp(200,'easeInOutCirc',complete)},hideOnClick:SiteParameters.menuHideOnClick,});if($('body').hasClass('menu-accordion-active')){requestTimeout(function(){$menusmart.addClass('menu-smart-init');$menusmart.smartmenus('itemActivate',$menusmart.find('.current-menu-item > a').eq(-1))},1000)}
$(document).on('uncode.smartmenu-appended',function(){requestTimeout(function(){$menusmart.smartmenus('refresh')},1000)})}
$('.main-menu-container').each(function(){var $main_cont=$(this),$uls=$('ul',$main_cont);$uls.each(function(){var $ul=$(this),mobile_hidden=!0,tablet_hidden=!0;$('> li:not(.hidden)',$ul).each(function(){if(!$(this).hasClass('mobile-hidden')){mobile_hidden=!1;return!1}});$('> li:not(.hidden)',$ul).each(function(){if(!$(this).hasClass('tablet-hidden')){tablet_hidden=!1;return!1}});if(mobile_hidden){$ul.addClass('mobile-hidden')}
if(tablet_hidden){$ul.addClass('tablet-hidden')}});var $divUlsMB=$('div:has(>ul.mobile-hidden)');$divUlsMB.each(function(){var $divUlMB=$(this),div_mobile_hidden=!0,div_tablet_hidden=!0;$('> ul:not(.hidden)',$divUlMB).each(function(){if(!$(this).hasClass('mobile-hidden')){div_mobile_hidden=!1;return!1}});$('> ul:not(.hidden)',$divUlMB).each(function(){if(!$(this).hasClass('tablet-hidden')){div_tablet_hidden=!1;return!1}});if(div_mobile_hidden){$divUlMB.addClass('mobile-hidden')}
if(div_tablet_hidden){$divUlMB.addClass('tablet-hidden')}})});var overlaySearchButton=function(){var $search_wrap=$('.overlay.overlay-search, .widget_search');$search_wrap.each(function(){var $form=$('form',this),$icon=$('i',$form);$icon.on('click',function(){$form.submit()})})};overlaySearchButton()}})(jQuery);



(function($){"use strict";UNCODE.is_scrolling=!1;UNCODE.disableHoverScroll=function(){if(!UNCODE.isMobile&&!UNCODE.isFullPage&&!SiteParameters.is_frontend_editor&&(!SiteParameters.smoothScroll||SiteParameters.smoothScrollDisableHover)){var body=document.body,timer;window.addEventListener('scroll',function(){var delay=(body.classList.contains('bg-changer-init'))?SiteParameters.bg_changer_time:300;clearRequestTimeout(timer);if(body.classList&&!body.classList.contains('disable-hover')){body.classList.add('disable-hover');window.dispatchEvent(new CustomEvent('disable-hover'))}
UNCODE.is_scrolling=!0;timer=requestTimeout(function(){if(body.classList){body.classList.remove('disable-hover');window.dispatchEvent(new CustomEvent('enable-hover'))}
UNCODE.is_scrolling=!1},delay)},!1)}}})(jQuery);



(function($){"use strict";UNCODE.animations=function(){var runWaypoints_TO,runWaypoints_carousel_TO,runWaypoints_delay=0,highlightComplexFunc=function($wrap,ev){var $lines=$('.heading-line-wrap',$wrap),not_animate=!1;if($wrap.data('animate')===!0){not_animate=!0}
var $rotatingTxt=$('.uncode-rotating-text-start',$wrap);if($rotatingTxt.length&&$rotatingTxt.attr('data-animated')!=='true'){return}
$lines.each(function(_key,_value){var $line=$(_value),$inners=$('.split-word-inner',$line),$highlights=$('.heading-text-highlight-inner',$line);var highlitInnerFunc=function(ev){var delay=0;$highlights.each(function(h_key,high){var $highlight=$(high),$split=$highlight.closest('.split-word:not(.uncode-rotating-span)'),$nextSplit=$split.nextUntil(),$next=$('.heading-text-highlight-inner',$nextSplit),countCh=$split.text().length;$highlight.css({'-webkit-transition-duration':(30*countCh)+'ms','-moz-transition-duration':(30*countCh)+'ms','-o-transition-duration':(30*countCh)+'ms','transition-duration':(30*countCh)+'ms',});delay+=(30*countCh);$next.css({'-webkit-transition-delay':delay+'ms','-moz-transition-delay':delay+'ms','-o-transition-delay':delay+'ms','transition-delay':delay+'ms',})});$highlights.removeAttr('data-animated');if(_key+1===$lines.length){$wrap.data('animate',!0)}};if($('.heading-text-highlight-inner[data-animated="yes"]',$line).length){if(not_animate){$highlights.each(function(h_key,high){var $highlight=$(high);$highlight.css({'-webkit-transition-duration':'0ms','-moz-transition-duration':'0ms','-o-transition-duration':'0ms','transition-duration':'0ms',})});$highlights.removeAttr('data-animated')}else{if(typeof ev!=='undefined'&&ev.type==='defer-highlights'){highlitInnerFunc()}else{$inners.last().one('webkitAnimationEnd oanimationend mozAnimationEnd msAnimationEnd animationEnd',highlitInnerFunc)}}}})};$.each($('.header-content-inner'),function(index,val){var element=$(val),transition='';if(element.hasClass('top-t-bottom'))transition='top-t-bottom';if(element.hasClass('bottom-t-top'))transition='bottom-t-top';if(element.hasClass('left-t-right'))transition='left-t-right';if(element.hasClass('right-t-left'))transition='right-t-left';if(element.hasClass('zoom-in'))transition='zoom-in';if(element.hasClass('zoom-out'))transition='zoom-out';if(element.hasClass('alpha-anim'))transition='alpha-anim';if(transition!=''){$(val).removeClass(transition);var container=element,containerDelay=container.attr('data-delay'),containerSpeed=container.attr('data-speed'),items=$('.header-title > *, .post-info',container);$.each(items,function(index,val){var element=$(val),delayAttr=(containerDelay!=undefined)?containerDelay:400;if(!element.hasClass('animate_when_almost_visible')){delayAttr=Number(delayAttr)+(400*index);if(containerSpeed!=undefined)element.attr('data-speed',containerSpeed);element.addClass(transition+' animate_when_almost_visible').attr('data-delay',delayAttr)}});container.css('opacity',1)}});function animate_css_grids_on_load(){$('.cssgrid-system').each(function(){var grid=$(this);var sequential=grid.hasClass('cssgrid-animate-sequential')?!0:!1;UNCODE.animate_css_grids(grid,grid.find('.tmb-grid'),0,sequential,!1)})}
window.waypoint_animation=function(ev){$.each($('.animate_when_almost_visible:not(.start_animation):not(.t-inside):not(.drop-image-separator), .index-scroll .animate_when_almost_visible, .tmb-media .animate_when_almost_visible:not(.start_animation), .animate_when_almost_visible.has-rotating-text, .custom-grid-container .animate_when_almost_visible:not(.start_animation)'),function(index,val){if($(val).hasClass('el-text-split')||(($(val).closest('.unscroll-horizontal').length||$(val).closest('.index-scroll').length||$(val).closest('.tab-pane:not(.active)').length||$(val).closest('.panel:not(.active-group)').length)&&!SiteParameters.is_frontend_editor)){return!0}
if(UNCODE.isUnmodalOpen&&!val.closest('#unmodal-content')){return}
var run=!0,$carousel=$(val).closest('.owl-carousel');if($carousel.length){run=!1}
if(run){new Waypoint({context:UNCODE.isUnmodalOpen?document.getElementById('unmodal-content'):window,element:val,handler:function(){var element=$(this.element),index=element.index(),delayAttr=element.attr('data-delay');if(delayAttr==undefined)delayAttr=0;requestTimeout(function(){element.addClass('start_animation')},delayAttr);if(!UNCODE.isUnmodalOpen){this.destroy()}},offset:UNCODE.isFullPage?'100%':'90%'})}});$.each($('.animate_inner_when_almost_visible'),function(index,val){if(UNCODE.isUnmodalOpen&&!val.closest('#unmodal-content')){return}
var run=!0,$carousel=$(val).closest('.owl-carousel');if($carousel.length){run=!1}
if(run){new Waypoint({context:UNCODE.isUnmodalOpen?document.getElementById('unmodal-content'):window,element:val,handler:function(){var $element=$(this.element),$childs=$('.animate_when_parent_almost_visible',$element);$childs.each(function(key,el){var $child=$(el),delaySpeed=$child.attr('data-speed'),delayAttr=$child.attr('data-delay'),intervalAttr=$child.attr('data-interval');if(delayAttr==undefined){delayAttr=50*key}
requestTimeout(function(){$child.addClass('start_animation');if($child.hasClass('anim-line-checker')){$child.on('webkitAnimationEnd oanimationend mozAnimationEnd msAnimationEnd animationEnd',function(e){var $line=$child.closest('.heading-line-wrap')})}
var $wrapText=$child.closest('.animate_inner_when_almost_visible');highlightComplexFunc($wrapText,ev);if($child.hasClass('anim-tot-checker')){$child.on('webkitAnimationEnd oanimationend mozAnimationEnd msAnimationEnd animationEnd',function(e){if($child.hasClass('anim-tot-checker')){$wrapText.addClass('already-animated');$element.trigger('already-animated')}})}},delayAttr)});$element.addClass('start_animation');if(!UNCODE.isUnmodalOpen){this.destroy()}},offset:UNCODE.isFullPage?'100%':'90%'})}})}
window.waypoint_carousel_animation=function(ev){$.each($('.owl-carousel').find('.animate_when_almost_visible:not(.start_animation):not(.t-inside):not(.drop-image-separator), .tmb-media .animate_when_almost_visible:not(.start_animation)'),function(index,val){if($(val).hasClass('el-text-split')){return!0}
if(UNCODE.isUnmodalOpen&&!val.closest('#unmodal-content')){return}
var run=!0,$carousel=$(val).closest('.owl-carousel'),$first_item=$(val).closest('.owl-item[data-index="1"]'),$all_first=$('.owl-item[data-index="1"]',$carousel);if(!($first_item.length&&$first_item.attr('data-already-reached')!=='true')&&$carousel.attr('data-front-edited')!=='true'){run=!1}
if(run){new Waypoint({context:UNCODE.isUnmodalOpen?document.getElementById('unmodal-content'):window,element:val,handler:function(){var element=$(this.element),index=element.index(),delayAttr=element.attr('data-delay');if(delayAttr==undefined)delayAttr=0;requestTimeout(function(){if($first_item.length&&$first_item.attr('data-already-reached')!=='true'){$all_first.attr('data-already-reached','true')}
element.addClass('start_animation')},delayAttr);if(!UNCODE.isUnmodalOpen){this.destroy()}},offset:UNCODE.isFullPage?'100%':'90%'})}});$.each($('.owl-carousel').find('.animate_inner_when_almost_visible'),function(index,val){if(UNCODE.isUnmodalOpen&&!val.closest('#unmodal-content')){return}
var run=!0,$carousel=$(val).closest('.owl-carousel'),$first_item=$(val).closest('.owl-item[data-index="1"]'),$all_first=$('.owl-item[data-index="1"]',$carousel);if(!($first_item.length&&$first_item.attr('data-already-reached')!=='true')&&$carousel.attr('data-front-edited')!=='true'){run=!1}
if(run){new Waypoint({context:UNCODE.isUnmodalOpen?document.getElementById('unmodal-content'):window,element:val,handler:function(){var $element=$(this.element),$childs=$('.animate_when_parent_almost_visible',$element);$childs.each(function(key,el){var $child=$(el),delaySpeed=$child.attr('data-speed'),delayAttr=$child.attr('data-delay'),intervalAttr=$child.attr('data-interval');if(delayAttr==undefined){delayAttr=50*key}
requestTimeout(function(){if($first_item.length&&$first_item.attr('data-already-reached')!=='true'){$all_first.attr('data-already-reached','true')}
$child.addClass('start_animation');if($child.hasClass('anim-line-checker')){$child.on('webkitAnimationEnd oanimationend mozAnimationEnd msAnimationEnd animationEnd',function(e){var $line=$child.closest('.heading-line-wrap')})}
var $wrapText=$child.closest('.animate_inner_when_almost_visible');highlightComplexFunc($wrapText,ev);if($child.hasClass('anim-tot-checker')){$child.on('webkitAnimationEnd oanimationend mozAnimationEnd msAnimationEnd animationEnd',function(e){if($child.hasClass('anim-tot-checker')){$wrapText.addClass('already-animated')}})}},delayAttr)});$element.addClass('start_animation');if(!UNCODE.isUnmodalOpen){this.destroy()}},offset:UNCODE.isFullPage?'100%':'90%'})}})}
var runWaypoints=function(ev){if(typeof runWaypoints_TO!=='undefined'&&runWaypoints_TO!==''){runWaypoints_delay=400}
clearRequestTimeout(runWaypoints_TO);runWaypoints_TO=requestTimeout(function(){window.waypoint_animation(ev)},runWaypoints_delay);clearRequestTimeout(runWaypoints_carousel_TO);runWaypoints_carousel_TO=requestTimeout(function(){window.waypoint_carousel_animation(ev)},400)};runWaypoints();animate_css_grids_on_load();$(document.body).on('uncode_waypoints defer-highlights',function(ev){runWaypoints(ev)});if($('body').hasClass('compose-mode')&&typeof window.parent.vc!=='undefined'){window.parent.vc.events.on('shortcodeView:updated',runWaypoints)}};UNCODE.animate_css_grids=function(container,elements,startIndex,sequential,filtering){var $allItems=elements.length-startIndex,showed=0,index=0,use_index=!1;if(filtering){if(sequential){use_index=!0}
sequential=!1}
$.each(elements,function(index,val){var $this=$(val),elInner=$('> .t-inside',val);if(UNCODE.isUnmodalOpen&&!val.closest('#unmodal-content')){return}
if(val[0])val=val[0];if(elInner.hasClass('animate_when_almost_visible')&&!elInner.hasClass('force-anim')){new Waypoint({context:UNCODE.isUnmodalOpen?document.getElementById('unmodal-content'):window,element:val,handler:function(){var element=$('> .t-inside',this.element),parent=$(this.element);var _index=use_index?index:0;var delay=(!sequential)?_index:((startIndex!==0)?index-$allItems:index),delayAttr=parseInt(element.attr('data-delay'));if(isNaN(delayAttr))delayAttr=100;if(sequential||use_index){delay-=showed}
var objTimeout=requestTimeout(function(){element.removeClass('zoom-reverse').addClass('start_animation');showed=index},delay*delayAttr);parent.data('objTimeout',objTimeout);if(!UNCODE.isUnmodalOpen){this.destroy()}},offset:UNCODE.isFullPage?'100%':'90%'})}
index++})}})(jQuery);



(function($){"use strict";UNCODE.tapHover=function(){var $el=$('html.touch .tmb:not(.tmb-no-double-tap)').find('.t-entry-visual-cont > a, .drop-hover-link'),elClass="hover";$(window).on('click',function(){$el.removeClass(elClass)});$el.on("click",function(e){e.stopPropagation();var link=$(this);if(!link.hasClass(elClass)){e.preventDefault();link.addClass("hover");$el.not(this).removeClass(elClass);return!1}})}})(jQuery);



(function($){"use strict";UNCODE.preventDoubleTransition=function(){$('.sticky-element .animate_when_almost_visible').each(function(){var $el=$(this).one('webkitAnimationEnd mozAnimationEnd oAnimationEnd animationEnd',function(e){$el.addClass('do_not_reanimate')})})}})(jQuery);



(function($){"use strict";UNCODE.printScreen=function(){var inlineMediaStyle=null,setResize;function changeMediaStyle(){clearRequestTimeout(setResize);setResize=requestTimeout(function(){var $head=document.getElementsByTagName('head')[0],$newStyle=document.createElement('style'),winW=window.innerWidth,printH=window.innerHeight;$newStyle.setAttribute('type','text/css');$newStyle.setAttribute('media','print');$newStyle.appendChild(document.createTextNode('@page { size: '+winW+'px '+printH+'px; margin: 0; }'));if(inlineMediaStyle!=null){$head.replaceChild($newStyle,inlineMediaStyle)}else{$head.appendChild($newStyle)}
inlineMediaStyle=$newStyle},1000)}
changeMediaStyle();window.addEventListener('resize',changeMediaStyle)}})(jQuery);



/*!
Waypoints - 4.0.1
Copyright © 2011-2016 Caleb Troughton
Licensed under the MIT license.
https://github.com/imakewebthings/waypoints/blob/master/licenses.txt
*/
(function(){'use strict'
var keyCounter=0
var allWaypoints={}
function Waypoint(options){if(!options){throw new Error('No options passed to Waypoint constructor')}
if(!options.element){throw new Error('No element option passed to Waypoint constructor')}
if(!options.handler){throw new Error('No handler option passed to Waypoint constructor')}
this.key='waypoint-'+keyCounter
this.options=Waypoint.Adapter.extend({},Waypoint.defaults,options)
this.element=this.options.element
this.adapter=new Waypoint.Adapter(this.element)
this.callback=options.handler
this.axis=this.options.horizontal?'horizontal':'vertical'
this.enabled=this.options.enabled
this.triggerPoint=null
this.group=Waypoint.Group.findOrCreate({name:this.options.group,axis:this.axis})
this.context=Waypoint.Context.findOrCreateByElement(this.options.context)
if(Waypoint.offsetAliases[this.options.offset]){this.options.offset=Waypoint.offsetAliases[this.options.offset]}
this.group.add(this)
this.context.add(this)
allWaypoints[this.key]=this
keyCounter+=1}
Waypoint.prototype.queueTrigger=function(direction){this.group.queueTrigger(this,direction)}
Waypoint.prototype.trigger=function(args){if(!this.enabled){return}
if(this.callback){this.callback.apply(this,args)}}
Waypoint.prototype.destroy=function(){this.context.remove(this)
this.group.remove(this)
delete allWaypoints[this.key]}
Waypoint.prototype.disable=function(){this.enabled=!1
return this}
Waypoint.prototype.enable=function(){this.context.refresh()
this.enabled=!0
return this}
Waypoint.prototype.next=function(){return this.group.next(this)}
Waypoint.prototype.previous=function(){return this.group.previous(this)}
Waypoint.invokeAll=function(method){var allWaypointsArray=[]
for(var waypointKey in allWaypoints){allWaypointsArray.push(allWaypoints[waypointKey])}
for(var i=0,end=allWaypointsArray.length;i<end;i++){allWaypointsArray[i][method]()}}
Waypoint.destroyAll=function(){Waypoint.invokeAll('destroy')}
Waypoint.disableAll=function(){Waypoint.invokeAll('disable')}
Waypoint.enableAll=function(){Waypoint.Context.refreshAll()
for(var waypointKey in allWaypoints){allWaypoints[waypointKey].enabled=!0}
return this}
Waypoint.refreshAll=function(){Waypoint.Context.refreshAll()}
Waypoint.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight}
Waypoint.viewportWidth=function(){return document.documentElement.clientWidth}
Waypoint.adapters=[]
Waypoint.defaults={context:window,continuous:!0,enabled:!0,group:'default',horizontal:!1,offset:0}
Waypoint.offsetAliases={'bottom-in-view':function(){return this.context.innerHeight()-this.adapter.outerHeight()},'right-in-view':function(){return this.context.innerWidth()-this.adapter.outerWidth()}}
window.Waypoint=Waypoint}());(function(){'use strict'
function requestAnimationFrameShim(callback){window.setTimeout(callback,1000/60)}
var keyCounter=0
var contexts={}
var Waypoint=window.Waypoint
var oldWindowLoad=window.onload
function Context(element){this.element=element
this.Adapter=Waypoint.Adapter
this.adapter=new this.Adapter(element)
this.key='waypoint-context-'+keyCounter
this.didScroll=!1
this.didResize=!1
this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()}
this.waypoints={vertical:{},horizontal:{}}
element.waypointContextKey=this.key
contexts[element.waypointContextKey]=this
keyCounter+=1
if(!Waypoint.windowContext){Waypoint.windowContext=!0
Waypoint.windowContext=new Context(window)}
this.createThrottledScrollHandler()
this.createThrottledResizeHandler()}
Context.prototype.add=function(waypoint){var axis=waypoint.options.horizontal?'horizontal':'vertical'
this.waypoints[axis][waypoint.key]=waypoint
this.refresh()}
Context.prototype.checkEmpty=function(){var horizontalEmpty=this.Adapter.isEmptyObject(this.waypoints.horizontal)
var verticalEmpty=this.Adapter.isEmptyObject(this.waypoints.vertical)
var isWindow=this.element==this.element.window
if(horizontalEmpty&&verticalEmpty&&!isWindow){this.adapter.off('.waypoints')
delete contexts[this.key]}}
Context.prototype.createThrottledResizeHandler=function(){var self=this
function resizeHandler(){self.handleResize()
self.didResize=!1}
this.adapter.on('resize.waypoints',function(){if(!self.didResize){self.didResize=!0
Waypoint.requestAnimationFrame(resizeHandler)}})}
Context.prototype.createThrottledScrollHandler=function(){var self=this
function scrollHandler(){self.handleScroll()
self.didScroll=!1}
this.adapter.on('scroll.waypoints',function(){if(!self.didScroll||Waypoint.isTouch){self.didScroll=!0
Waypoint.requestAnimationFrame(scrollHandler)}})}
Context.prototype.handleResize=function(){Waypoint.Context.refreshAll()}
Context.prototype.handleScroll=function(){var triggeredGroups={}
var axes={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:'right',backward:'left'},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:'down',backward:'up'}}
for(var axisKey in axes){var axis=axes[axisKey]
var isForward=axis.newScroll>axis.oldScroll
var direction=isForward?axis.forward:axis.backward
for(var waypointKey in this.waypoints[axisKey]){var waypoint=this.waypoints[axisKey][waypointKey]
if(waypoint.triggerPoint===null){continue}
var wasBeforeTriggerPoint=axis.oldScroll<waypoint.triggerPoint
var nowAfterTriggerPoint=axis.newScroll>=waypoint.triggerPoint
var crossedForward=wasBeforeTriggerPoint&&nowAfterTriggerPoint
var crossedBackward=!wasBeforeTriggerPoint&&!nowAfterTriggerPoint
if(crossedForward||crossedBackward){waypoint.queueTrigger(direction)
triggeredGroups[waypoint.group.id]=waypoint.group}}}
for(var groupKey in triggeredGroups){triggeredGroups[groupKey].flushTriggers()}
this.oldScroll={x:axes.horizontal.newScroll,y:axes.vertical.newScroll}}
Context.prototype.innerHeight=function(){if(this.element==this.element.window){return Waypoint.viewportHeight()}
return this.adapter.innerHeight()}
Context.prototype.remove=function(waypoint){delete this.waypoints[waypoint.axis][waypoint.key]
this.checkEmpty()}
Context.prototype.innerWidth=function(){if(this.element==this.element.window){return Waypoint.viewportWidth()}
return this.adapter.innerWidth()}
Context.prototype.destroy=function(){var allWaypoints=[]
for(var axis in this.waypoints){for(var waypointKey in this.waypoints[axis]){allWaypoints.push(this.waypoints[axis][waypointKey])}}
for(var i=0,end=allWaypoints.length;i<end;i++){allWaypoints[i].destroy()}}
Context.prototype.refresh=function(){var isWindow=this.element==this.element.window
var contextOffset=isWindow?undefined:this.adapter.offset()
var triggeredGroups={}
var axes
this.handleScroll()
axes={horizontal:{contextOffset:isWindow?0:contextOffset.left,contextScroll:isWindow?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:'right',backward:'left',offsetProp:'left'},vertical:{contextOffset:isWindow?0:contextOffset.top,contextScroll:isWindow?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:'down',backward:'up',offsetProp:'top'}}
for(var axisKey in axes){var axis=axes[axisKey]
for(var waypointKey in this.waypoints[axisKey]){var waypoint=this.waypoints[axisKey][waypointKey]
var adjustment=waypoint.options.offset
var oldTriggerPoint=waypoint.triggerPoint
var elementOffset=0
var freshWaypoint=oldTriggerPoint==null
var contextModifier,wasBeforeScroll,nowAfterScroll
var triggeredBackward,triggeredForward
if(waypoint.element!==waypoint.element.window){elementOffset=waypoint.adapter.offset()[axis.offsetProp]}
if(typeof adjustment==='function'){adjustment=adjustment.apply(waypoint)}else if(typeof adjustment==='string'){adjustment=parseFloat(adjustment)
if(waypoint.options.offset.indexOf('%')>-1){adjustment=Math.ceil(axis.contextDimension*adjustment/100)}}
contextModifier=axis.contextScroll-axis.contextOffset
waypoint.triggerPoint=Math.floor(elementOffset+contextModifier-adjustment)
wasBeforeScroll=oldTriggerPoint<axis.oldScroll
nowAfterScroll=waypoint.triggerPoint>=axis.oldScroll
triggeredBackward=wasBeforeScroll&&nowAfterScroll
triggeredForward=!wasBeforeScroll&&!nowAfterScroll
if(!freshWaypoint&&triggeredBackward){waypoint.queueTrigger(axis.backward)
triggeredGroups[waypoint.group.id]=waypoint.group}else if(!freshWaypoint&&triggeredForward){waypoint.queueTrigger(axis.forward)
triggeredGroups[waypoint.group.id]=waypoint.group}else if(freshWaypoint&&axis.oldScroll>=waypoint.triggerPoint){waypoint.queueTrigger(axis.forward)
triggeredGroups[waypoint.group.id]=waypoint.group}}}
Waypoint.requestAnimationFrame(function(){for(var groupKey in triggeredGroups){triggeredGroups[groupKey].flushTriggers()}})
return this}
Context.findOrCreateByElement=function(element){return Context.findByElement(element)||new Context(element)}
Context.refreshAll=function(){for(var contextId in contexts){contexts[contextId].refresh()}}
Context.findByElement=function(element){return contexts[element.waypointContextKey]}
window.onload=function(){if(oldWindowLoad){oldWindowLoad()}
Context.refreshAll()}
Waypoint.requestAnimationFrame=function(callback){var requestFn=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||requestAnimationFrameShim
requestFn.call(window,callback)}
Waypoint.Context=Context}());(function(){'use strict'
function byTriggerPoint(a,b){return a.triggerPoint-b.triggerPoint}
function byReverseTriggerPoint(a,b){return b.triggerPoint-a.triggerPoint}
var groups={vertical:{},horizontal:{}}
var Waypoint=window.Waypoint
function Group(options){this.name=options.name
this.axis=options.axis
this.id=this.name+'-'+this.axis
this.waypoints=[]
this.clearTriggerQueues()
groups[this.axis][this.name]=this}
Group.prototype.add=function(waypoint){this.waypoints.push(waypoint)}
Group.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}}
Group.prototype.flushTriggers=function(){for(var direction in this.triggerQueues){var waypoints=this.triggerQueues[direction]
var reverse=direction==='up'||direction==='left'
waypoints.sort(reverse?byReverseTriggerPoint:byTriggerPoint)
for(var i=0,end=waypoints.length;i<end;i+=1){var waypoint=waypoints[i]
if(waypoint.options.continuous||i===waypoints.length-1){waypoint.trigger([direction])}}}
this.clearTriggerQueues()}
Group.prototype.next=function(waypoint){this.waypoints.sort(byTriggerPoint)
var index=Waypoint.Adapter.inArray(waypoint,this.waypoints)
var isLast=index===this.waypoints.length-1
return isLast?null:this.waypoints[index+1]}
Group.prototype.previous=function(waypoint){this.waypoints.sort(byTriggerPoint)
var index=Waypoint.Adapter.inArray(waypoint,this.waypoints)
return index?this.waypoints[index-1]:null}
Group.prototype.queueTrigger=function(waypoint,direction){this.triggerQueues[direction].push(waypoint)}
Group.prototype.remove=function(waypoint){var index=Waypoint.Adapter.inArray(waypoint,this.waypoints)
if(index>-1){this.waypoints.splice(index,1)}}
Group.prototype.first=function(){return this.waypoints[0]}
Group.prototype.last=function(){return this.waypoints[this.waypoints.length-1]}
Group.findOrCreate=function(options){return groups[options.axis][options.name]||new Group(options)}
Waypoint.Group=Group}());(function(){'use strict'
var $=window.jQuery
var Waypoint=window.Waypoint
function JQueryAdapter(element){this.$element=$(element)}
$.each(['innerHeight','innerWidth','off','offset','on','outerHeight','outerWidth','scrollLeft','scrollTop'],function(i,method){JQueryAdapter.prototype[method]=function(){var args=Array.prototype.slice.call(arguments)
return this.$element[method].apply(this.$element,args)}})
$.each(['extend','inArray','isEmptyObject'],function(i,method){JQueryAdapter[method]=$[method]})
Waypoint.adapters.push({name:'jquery',Adapter:JQueryAdapter})
Waypoint.Adapter=JQueryAdapter}());(function(){'use strict'
var Waypoint=window.Waypoint
function createExtension(framework){return function(){var waypoints=[]
var overrides=arguments[0]
if(framework.isFunction(arguments[0])){overrides=framework.extend({},arguments[1])
overrides.handler=arguments[0]}
this.each(function(){var options=framework.extend({},overrides,{element:this})
if(typeof options.context==='string'){options.context=framework(this).closest(options.context)[0]}
waypoints.push(new Waypoint(options))})
return waypoints}}
if(window.jQuery){window.jQuery.fn.waypoint=createExtension(window.jQuery)}
if(window.Zepto){window.Zepto.fn.waypoint=createExtension(window.Zepto)}}());



(function($){var menuTrees=[],IE=!!window.createPopup,IElt9=IE&&!document.defaultView,IElt8=IE&&!document.querySelector,IE6=IE&&typeof document.documentElement.currentStyle.minWidth=='undefined',mouse=!1,mouseDetectionEnabled=!1;function initMouseDetection(disable){if(!mouseDetectionEnabled&&!disable){var firstTime=!0,lastMove=null;$(document).bind({'mousemove.smartmenus_mouse':function(e){var thisMove={x:e.pageX,y:e.pageY,timeStamp:new Date().getTime()};if(lastMove){var deltaX=Math.abs(lastMove.x-thisMove.x),deltaY=Math.abs(lastMove.y-thisMove.y);if((deltaX>0||deltaY>0)&&deltaX<=2&&deltaY<=2&&thisMove.timeStamp-lastMove.timeStamp<=300){mouse=!0;if(firstTime){var $a=$(e.target).closest('a');if($a.is('a')){$.each(menuTrees,function(){if($.contains(this.$root[0],$a[0])){this.itemEnter({currentTarget:$a[0]});return!1}})}
firstTime=!1}}}
lastMove=thisMove},'touchstart.smartmenus_mouse pointerover.smartmenus_mouse MSPointerOver.smartmenus_mouse':function(e){if(!/^(4|mouse|pen)$/.test(e.originalEvent.pointerType)){mouse=!1}}});mouseDetectionEnabled=!0}else if(mouseDetectionEnabled&&disable){$(document).unbind('.smartmenus_mouse');mouseDetectionEnabled=!1}};$.SmartMenus=function(elm,options){this.$root=$(elm);this.opts=options;this.rootId='';this.$subArrow=null;this.subMenus=[];this.activatedItems=[];this.visibleSubMenus=[];this.showTimeout=0;this.hideTimeout=0;this.scrollTimeout=0;this.clickActivated=!1;this.zIndexInc=0;this.$firstLink=null;this.$firstSub=null;this.disabled=!1;this.$disableOverlay=null;this.init()};$.extend($.SmartMenus,{hideAll:function(){$.each(menuTrees,function(){this.menuHideAll()})},destroy:function(){while(menuTrees.length){menuTrees[0].destroy()}
initMouseDetection(!0)},prototype:{init:function(refresh){var self=this;if(!refresh){menuTrees.push(this);this.rootId=(new Date().getTime()+Math.random()+'').replace(/\D/g,'');if(this.$root.hasClass('sm-rtl')){this.opts.rightToLeftSubMenus=!0}
this.$root.data('smartmenus',this).attr('data-smartmenus-id',this.rootId).dataSM('level',1).bind({'mouseover.smartmenus focusin.smartmenus':$.proxy(this.rootOver,this),'mouseout.smartmenus focusout.smartmenus':$.proxy(this.rootOut,this)}).delegate('a, div.logo-container',{'mouseenter.smartmenus':$.proxy(this.itemEnter,this),'mouseleave.smartmenus':$.proxy(this.itemLeave,this),'mousedown.smartmenus':$.proxy(this.itemDown,this),'focus.smartmenus':$.proxy(this.itemFocus,this),'blur.smartmenus':$.proxy(this.itemBlur,this),'click.smartmenus':$.proxy(this.itemClick,this),'touchend.smartmenus':$.proxy(this.itemTouchEnd,this)});var eNamespace='.smartmenus'+this.rootId;if(this.opts.hideOnClick){$(document).on('touchstart'+eNamespace,$.proxy(this.docTouchStart,this)).on('touchmove'+eNamespace,$.proxy(this.docTouchMove,this)).on('touchend'+eNamespace,$.proxy(this.docTouchEnd,this)).on('click'+eNamespace,$.proxy(this.docClick,this))}
$(window).on('resize'+eNamespace+' orientationchange'+eNamespace,$.proxy(this.winResize,this));var $vmenu=$('body.vmenu .vmenu-container');if(!$vmenu.length&&UNCODE.wwidth>UNCODE.mediaQuery){$(window).on('scroll'+eNamespace+' orientationchange'+eNamespace,$.proxy(this.winResize,this))}
if(this.opts.subIndicators){this.$subArrow=$('<span/>').addClass('sub-arrow');if(this.opts.subIndicatorsText){this.$subArrow.html(this.opts.subIndicatorsText)}}
initMouseDetection()}
this.$firstSub=this.$root.find('ul').each(function(){self.menuInit($(this))}).eq(0);this.$firstLink=this.$root.find('a').eq(0);if(this.opts.markCurrentItem){var reDefaultDoc=/(index|default)\.[^#\?\/]*/i,reHash=/#.*/,locHref=window.location.href.replace(reDefaultDoc,''),locHrefNoHash=locHref.replace(reHash,'');this.$root.find('a').each(function(){var href=this.href.replace(reDefaultDoc,''),$this=$(this);if(href==locHref||href==locHrefNoHash){$this.addClass('current');if(self.opts.markCurrentTree){$this.parents('li').each(function(){var $this=$(this);if($this.dataSM('sub')){$this.children('a').addClass('current')}})}}})}},destroy:function(){this.menuHideAll();this.$root.removeData('smartmenus').removeAttr('data-smartmenus-id').removeDataSM('level').unbind('.smartmenus').undelegate('.smartmenus');var eNamespace='.smartmenus'+this.rootId;$(document).unbind(eNamespace);$(window).unbind(eNamespace);if(this.opts.subIndicators){this.$subArrow=null}
var self=this;$.each(this.subMenus,function(){if(this.hasClass('mega-menu')){this.find('ul').removeDataSM('in-mega')}
if(this.dataSM('shown-before')){if(IElt8){this.children().css({styleFloat:'',width:''})}
if(self.opts.subMenusMinWidth||self.opts.subMenusMaxWidth){if(!IE6){this.css({width:'',minWidth:'',maxWidth:''}).removeClass('sm-nowrap')}else{this.css({width:'',overflowX:'',overflowY:''}).children().children('a').css('white-space','')}}
if(this.dataSM('scroll-arrows')){this.dataSM('scroll-arrows').remove()}
this.css({zIndex:'',top:'',left:'',marginLeft:'',marginTop:'',display:''})}
if(self.opts.subIndicators){this.dataSM('parent-a').removeClass('has-submenu').children('span.sub-arrow').remove()}
this.removeDataSM('shown-before').removeDataSM('ie-shim').removeDataSM('scroll-arrows').removeDataSM('parent-a').removeDataSM('level').removeDataSM('beforefirstshowfired').parent().removeDataSM('sub')});if(this.opts.markCurrentItem){this.$root.find('a.current').removeClass('current')}
this.$root=null;this.$firstLink=null;this.$firstSub=null;if(this.$disableOverlay){this.$disableOverlay.remove();this.$disableOverlay=null}
menuTrees.splice($.inArray(this,menuTrees),1)},disable:function(noOverlay){if(!this.disabled){this.menuHideAll();if(!noOverlay&&!this.opts.isPopup&&this.$root.is(':visible')){var pos=this.$root.offset();this.$disableOverlay=$('<div class="sm-jquery-disable-overlay"/>').css({position:'absolute',top:pos.top,left:pos.left,width:this.$root.outerWidth(),height:this.$root.outerHeight(),zIndex:this.getStartZIndex()+1,opacity:0}).appendTo(document.body)}
this.disabled=!0}},docClick:function(e){if(this.visibleSubMenus.length&&!$.contains(this.$root[0],e.target)||$(e.target).is('a')){this.menuHideAll($(e.target))}},docTouchEnd:function(e){if(!this.lastTouch){return}
if(this.visibleSubMenus.length&&(this.lastTouch.x2===undefined||this.lastTouch.x1==this.lastTouch.x2)&&(this.lastTouch.y2===undefined||this.lastTouch.y1==this.lastTouch.y2)&&(!this.lastTouch.target||!$.contains(this.$root[0],this.lastTouch.target))){if(this.hideTimeout){clearTimeout(this.hideTimeout);this.hideTimeout=0}
var self=this;this.hideTimeout=setTimeout(function(){self.menuHideAll($(e.target))},350)}
this.lastTouch=null},docTouchMove:function(e){if(!this.lastTouch){return}
var touchPoint=e.originalEvent.touches[0];this.lastTouch.x2=touchPoint.pageX;this.lastTouch.y2=touchPoint.pageY},docTouchStart:function(e){var touchPoint=e.originalEvent.touches[0];this.lastTouch={x1:touchPoint.pageX,y1:touchPoint.pageY,target:touchPoint.target}},enable:function(){if(this.disabled){if(this.$disableOverlay){this.$disableOverlay.remove();this.$disableOverlay=null}
this.disabled=!1}},getHeight:function($elm){return this.getOffset($elm,!0)},getOffset:function($elm,height){var old,$win=$(window),winW=$win.width();if($elm.css('display')=='none'){old={position:$elm[0].style.position,visibility:$elm[0].style.visibility};$elm.css({position:'absolute',visibility:'hidden'}).show();if(($('body').hasClass('menu-mobile-off-canvas')&&winW<960&&$elm.closest('.main-menu-container').length)||(($('body').hasClass('vmenu-offcanvas-overlay')||$('body').hasClass('vmenu'))&&winW>=960&&$elm.closest('.main-menu-container').length&&!$elm.closest('.menu-horizontal-inner').length)){$elm.closest('li').addClass('smartmenu-open-item')}}
var defaultView=$elm[0].ownerDocument.defaultView,compStyle=defaultView&&defaultView.getComputedStyle&&defaultView.getComputedStyle($elm[0],null),val=compStyle&&parseFloat(compStyle[height?'height':'width']);if(val){val+=parseFloat(compStyle[height?'paddingTop':'paddingLeft'])+parseFloat(compStyle[height?'paddingBottom':'paddingRight'])+parseInt(compStyle[height?'borderTopWidth':'borderLeftWidth'])+parseInt(compStyle[height?'borderBottomWidth':'borderRightWidth'])}else{val=height?$elm[0].offsetHeight:$elm[0].offsetWidth}
if(old){$elm.hide().css(old)}
return val},getWidth:function($elm){return this.getOffset($elm)},getStartZIndex:function(){var zIndex=parseInt(this.$root.css('z-index'));return!isNaN(zIndex)?zIndex:1},handleEvents:function(){return!this.disabled&&this.isCSSOn()},handleItemEvents:function($a){return this.handleEvents()&&!this.isLinkInMegaMenu($a)},isCollapsible:function(){return this.$firstSub.css('position')=='static'},isCSSOn:function(){return this.$firstLink.css('display')=='block'||this.$firstLink.css('display')=='flex'||this.$firstLink.css('display')=='inline-flex'||this.$firstLink.css('display')=='table-cell'||this.$firstLink.css('display')=='inline'},isFixed:function(){return this.$root.css('position')=='fixed'},isLinkInMegaMenu:function($a){return!$a.parent().parent().dataSM('level')},isTouchMode:function(){return!mouse||this.isCollapsible()},itemActivate:function($a){var $li=$a.parent(),$ul=$li.parent(),level=$ul.dataSM('level');if(level>1&&(!this.activatedItems[level-2]||this.activatedItems[level-2][0]!=$ul.dataSM('parent-a')[0])){var self=this;$($ul.parentsUntil('[data-smartmenus-id]','ul').get().reverse()).add($ul).each(function(){self.itemActivate($(this).dataSM('parent-a'))})}
if(this.visibleSubMenus.length>level){for(var i=this.visibleSubMenus.length-1,l=!this.activatedItems[level-1]||this.activatedItems[level-1][0]!=$a[0]?level-1:level;i>l;i--){this.menuHide(this.visibleSubMenus[i])}}
this.activatedItems[level-1]=$a;this.visibleSubMenus[level-1]=$ul;if(this.$root.triggerHandler('activate.smapi',$a[0])===!1){return}
var $sub=$li.dataSM('sub');if($sub&&(this.isTouchMode()||(!this.opts.showOnClick||this.clickActivated))){this.menuShow($sub)}},itemBlur:function(e){var $a=$(e.currentTarget);if(!this.handleItemEvents($a)){return}
this.$root.triggerHandler('blur.smapi',$a[0])},itemClick:function(e){var $a=$(e.currentTarget);if(!this.handleItemEvents($a)){return}
$a.removeDataSM('mousedown');if(this.$root.triggerHandler('click.smapi',$a[0])===!1){return!1}
var $sub=$a.parent().dataSM('sub');if(this.isTouchMode()){if($a.dataSM('href')){$a.attr('href',$a.dataSM('href')).removeDataSM('href')}
if($sub&&(!$sub.dataSM('shown-before')||!$sub.is(':visible'))){this.itemActivate($a);if($sub.is(':visible')){return!1}}}else if(this.opts.showOnClick&&$a.parent().parent().dataSM('level')==1&&$sub){this.clickActivated=!0;this.menuShow($sub);return!1}
if($a.hasClass('disabled')){return!1}
if(this.$root.triggerHandler('select.smapi',$a[0])===!1){return!1}},itemDown:function(e){var $a=$(e.currentTarget);if(!this.handleItemEvents($a)){return}
$a.dataSM('mousedown',!0)},itemEnter:function(e){var $a=$(e.currentTarget);if(!this.handleItemEvents($a)){return}
if(!this.isTouchMode()){if(this.showTimeout){clearTimeout(this.showTimeout);this.showTimeout=0}
var self=this;this.showTimeout=setTimeout(function(){self.itemActivate($a)},this.opts.showOnClick&&$a.parent().parent().dataSM('level')==1?1:this.opts.showTimeout)}
this.$root.triggerHandler('mouseenter.smapi',$a[0])},itemFocus:function(e){var $a=$(e.currentTarget);if(!this.handleItemEvents($a)){return}
if((!this.isTouchMode()||!$a.dataSM('mousedown'))&&(!this.activatedItems.length||this.activatedItems[this.activatedItems.length-1][0]!=$a[0])){this.itemActivate($a)}
this.$root.triggerHandler('focus.smapi',$a[0])},itemLeave:function(e){var $a=$(e.currentTarget);if(!this.handleItemEvents($a)){return}
if(!this.isTouchMode()){if($a[0].blur){$a[0].blur()}
if(this.showTimeout){clearTimeout(this.showTimeout);this.showTimeout=0}}
$a.removeDataSM('mousedown');this.$root.triggerHandler('mouseleave.smapi',$a[0])},itemTouchEnd:function(e){var $a=$(e.currentTarget);if(!this.handleItemEvents($a)){return}
var $sub=$a.parent().dataSM('sub');if($a.attr('href').charAt(0)!=='#'&&$sub&&(!$sub.dataSM('shown-before')||!$sub.is(':visible'))){$a.dataSM('href',$a.attr('href'));$a.attr('href','#')}},menuFixLayout:function($ul){if(!$ul.dataSM('shown-before')){$ul.hide().dataSM('shown-before',!0);if(IElt8){$ul.children().css({styleFloat:'left',width:'100%'})}}},menuHide:function($sub){if(this.$root.triggerHandler('beforehide.smapi',$sub[0])===!1){return}
$sub.stop(!0,!0);if($sub.is(':visible')){var complete=function(){if(IElt9){$sub.parent().css('z-index','')}else{$sub.css('z-index','')}};if(this.isCollapsible()){if(this.opts.collapsibleHideFunction){this.opts.collapsibleHideFunction.call(this,$sub,complete)}else{$sub.hide(this.opts.collapsibleHideDuration,complete)}}else{if(this.opts.hideFunction){this.opts.hideFunction.call(this,$sub,complete)}else{$sub.hide(this.opts.hideDuration,complete)}}
if($sub.dataSM('ie-shim')){$sub.dataSM('ie-shim').remove()}
if($sub.dataSM('scroll')){$sub.unbind('.smartmenus_scroll').removeDataSM('scroll').dataSM('scroll-arrows').hide()}
$sub.dataSM('parent-a').removeClass('highlighted');var level=$sub.dataSM('level');this.activatedItems.splice(level-1,1);this.visibleSubMenus.splice(level-1,1);this.$root.triggerHandler('hide.smapi',$sub[0])}},menuHideAll:function($item){if($item!=undefined&&$item.parent().hasClass('menu-item')&&!$item.parent().hasClass('menu-item-has-children'))return;var $win=$(window),winW=$win.width();if(this.showTimeout){clearTimeout(this.showTimeout);this.showTimeout=0}
for(var i=this.visibleSubMenus.length-1;i>0;i--){if(this.visibleSubMenus[i].closest('.smartmenu-open-item').length){if($item!=undefined&&$item.closest('.smartmenu-open-item').length){this.menuHide(this.visibleSubMenus[i]);$(this.visibleSubMenus[i]).closest('.smartmenu-open-item').removeClass('smartmenu-open-item')}else{return}}else{this.menuHide(this.visibleSubMenus[i])}}
if(this.opts.isPopup){this.$root.stop(!0,!0);if(this.$root.is(':visible')){if(this.opts.hideFunction){this.opts.hideFunction.call(this,this.$root)}else{this.$root.hide(this.opts.hideDuration)}
if(this.$root.dataSM('ie-shim')){this.$root.dataSM('ie-shim').remove()}}}
this.activatedItems=[];this.visibleSubMenus=[];this.clickActivated=!1;this.zIndexInc=0},menuIframeShim:function($ul){if(IE&&this.opts.overlapControlsInIE&&!$ul.dataSM('ie-shim')){$ul.dataSM('ie-shim',$('<iframe/>').attr({src:'javascript:0',tabindex:-9}).css({position:'absolute',top:'auto',left:'0',opacity:0,border:'0'}))}},menuInit:function($ul){if(!$ul.dataSM('in-mega')){this.subMenus.push($ul);if($ul.hasClass('mega-menu')){$ul.find('ul').dataSM('in-mega',!0)}
var level=2,par=$ul[0];while(par!=null&&par.parentNode!=null&&(par=par.parentNode.parentNode)!=this.$root[0]){level++}
$ul.dataSM('parent-a',$ul.prevAll('a').eq(-1)).dataSM('level',level).parent().dataSM('sub',$ul);if(this.opts.subIndicators){$ul.dataSM('parent-a').addClass('has-submenu')[this.opts.subIndicatorsPos](this.$subArrow.clone())}}},menuPosition:function($sub){var fixIE=$('html.ie').length;var $a=$sub.dataSM('parent-a'),$li=$sub.parent(),$ul=$sub.parent().parent(),$container=$ul.closest('.row-menu-inner').length?($('body').hasClass('megamenu-side-to-side')?$ul.closest('.row-menu'):$ul.closest('.row-menu-inner')):$ul.closest('.uncol'),level=$sub.dataSM('level'),subW=this.getWidth($sub),subH=this.getHeight($sub),itemOffset=$a.offset(),itemX=itemOffset.left,itemY=itemOffset.top,itemW=this.getWidth($a),itemH=this.getHeight($a),$win=$(window),winX=$win.scrollLeft(),winY=$win.scrollTop(),winW=$win.width(),winH=$win.height(),containerW=$container.width(),containerOffsetX=containerW+((winW-containerW)/2),horizontalParent=$ul.hasClass('sm')&&!$ul.hasClass('sm-vertical'),subOffsetX=level==2?this.opts.mainMenuSubOffsetX:this.opts.subMenusSubOffsetX,subOffsetY=level==2?this.opts.mainMenuSubOffsetY:this.opts.subMenusSubOffsetY,x,y,leftPos;if(horizontalParent){x=this.opts.rightToLeftSubMenus?itemW-subW-subOffsetX:subOffsetX;y=this.opts.bottomToTopSubMenus?-subH-subOffsetY:itemH+subOffsetY}else{x=this.opts.rightToLeftSubMenus?subOffsetX-subW:subW-subOffsetX;y=this.opts.bottomToTopSubMenus?itemH-subOffsetY-subH:subOffsetY}
if(this.opts.keepInViewport&&!this.isCollapsible()){if(this.isFixed()){itemX-=winX;itemY-=winY;winX=winY=0}
var absX=itemX+x,absY=itemY+y;if(this.opts.rightToLeftSubMenus&&absX<winX){x=horizontalParent?winX-absX+x:itemW-subOffsetX}else if(!this.opts.rightToLeftSubMenus&&absX+subW>winX+containerOffsetX){x=horizontalParent?winX+containerOffsetX-subW-absX+x:subOffsetX-subW}
if(!horizontalParent){if(subH<winH&&absY+subH>winY+winH){y+=winY+winH-subH-absY}else if(subH>=winH||absY<winY){y+=winY-absY}}
if(mouse&&(horizontalParent&&(absY+subH>winY+winH+0.49||absY<winY)||!horizontalParent&&subH>winH+0.49)){var self=this;if(!$sub.dataSM('scroll-arrows')){$sub.dataSM('scroll-arrows',$([$('<span class="scroll-up"><span class="scroll-up-arrow"></span></span>')[0],$('<span class="scroll-down"><span class="scroll-down-arrow"></span></span>')[0]]).bind({mouseenter:function(){self.menuScroll($sub,$(this).hasClass('scroll-up'))},mouseleave:function(e){self.menuScrollStop($sub);self.menuScrollOut($sub,e)},'mousewheel DOMMouseScroll':function(e){e.preventDefault()}}).insertAfter($sub))}
var vportY=winY-(itemY+itemH);$sub.dataSM('scroll',{vportY:vportY,subH:subH,winH:winH,step:1}).bind({'mouseover.smartmenus_scroll':function(e){self.menuScrollOver($sub,e)},'mouseout.smartmenus_scroll':function(e){self.menuScrollOut($sub,e)},'mousewheel.smartmenus_scroll DOMMouseScroll.smartmenus_scroll':function(e){self.menuScrollMousewheel($sub,e)}}).dataSM('scroll-arrows').css({top:'auto',left:'0',marginLeft:x+(parseInt($sub.css('border-left-width'))||0),width:this.getWidth($sub)-(parseInt($sub.css('border-left-width'))||0)-(parseInt($sub.css('border-right-width'))||0),zIndex:this.getStartZIndex()+this.zIndexInc}).eq(0).css('margin-top',vportY).end().eq(1).css('margin-top',vportY+winH-this.getHeight($sub.dataSM('scroll-arrows').eq(1))).end().eq(horizontalParent&&this.opts.bottomToTopSubMenus?0:1).show()}}
if(!$sub.closest('.menu-accordion').length){var rightPos='auto';if($sub.closest('.grid-filters').length){if($sub.closest('.text-right').length){leftPos='0px';rightPos='auto'}else{leftPos='auto';rightPos='0px'}
x=0}else{if($sub.hasClass('mega-menu-inner')){$sub.css({width:containerW});leftPos=-1*(parseFloat($sub.closest('ul.menu-smart').offset().left)-parseFloat($sub.closest('.row-menu').offset().left));if(!$('body').hasClass('megamenu-side-to-side')){leftPos+=parseFloat($sub.closest('.row-menu-inner').css('paddingLeft'))}
x=0}else{leftPos=(level>2?$li.position().left-parseFloat($li.closest('ul').css('paddingLeft')):$li.position().left)+'px';x=(level>2&&x>=0)?x+1:x-1}}}
$sub.css({top:(level>2)?$a[0].offsetTop:(fixIE?itemH:'100%'),left:leftPos,right:rightPos,marginLeft:x,marginTop:(level>2)?0:y-itemH+($sub.closest('.menu-borders').length&&!$sub.closest('.menu-borders.needs-after').length?1:0)});this.menuIframeShim($sub);if($sub.dataSM('ie-shim')){$sub.dataSM('ie-shim').css({zIndex:$sub.css('z-index'),width:subW,height:subH,marginLeft:x,marginTop:y-itemH+($sub.closest('.menu-mini').length?0:1)})}},menuScroll:function($sub,up,wheel){var y=parseFloat($sub.css('margin-top')),scroll=$sub.dataSM('scroll'),navH=$('.navbar-main').outerHeight(),end=scroll.vportY+(up?navH+54:scroll.winH-scroll.subH),step=wheel||!this.opts.scrollAccelerate?this.opts.scrollStep:Math.floor($sub.dataSM('scroll').step);$sub.add($sub.dataSM('ie-shim')).css('margin-top',Math.abs(end-y)>step?y+(up?step:-step):end);y=parseFloat($sub.css('margin-top'));if(up&&y+scroll.subH>scroll.vportY+scroll.winH||!up&&y<scroll.vportY){$sub.dataSM('scroll-arrows').eq(up?1:0).show()}
if(!wheel&&this.opts.scrollAccelerate&&$sub.dataSM('scroll').step<this.opts.scrollStep){$sub.dataSM('scroll').step+=0.5}
if(Math.abs(y-end)<1){$sub.dataSM('scroll-arrows').eq(up?0:1).hide();$sub.dataSM('scroll').step=1}else if(!wheel){var self=this;this.scrollTimeout=setTimeout(function(){self.menuScroll($sub,up)},this.opts.scrollInterval)}},menuScrollMousewheel:function($sub,e){var $closestSub=$(e.target).closest('ul');while($closestSub.dataSM('in-mega')){$closestSub=$closestSub.parent().closest('ul')}
if($closestSub[0]==$sub[0]){var up=(e.originalEvent.wheelDelta||-e.originalEvent.detail)>0;if($sub.dataSM('scroll-arrows').eq(up?0:1).is(':visible')){this.menuScroll($sub,up,!0)}}
if(!$sub.hasClass('mega-menu-inner')){e.preventDefault()}},menuScrollOut:function($sub,e){var reClass=/^scroll-(up|down)/,$closestSub=$(e.relatedTarget).closest('ul');while($closestSub.dataSM('in-mega')){$closestSub=$closestSub.parent().closest('ul')}
if(!reClass.test((e.relatedTarget||'').className)&&($sub[0]!=e.relatedTarget&&!$.contains($sub[0],e.relatedTarget)||$closestSub[0]!=$sub[0])){$sub.dataSM('scroll-arrows').css('visibility','hidden')}},menuScrollOver:function($sub,e){var reClass=/^scroll-(up|down)/,$closestSub=$(e.target).closest('ul');while($closestSub.dataSM('in-mega')){$closestSub=$closestSub.parent().closest('ul')}
if(!reClass.test(e.target.className)&&$closestSub[0]==$sub[0]){$sub.dataSM('scroll-arrows').css('visibility','visible')}},menuScrollStop:function($sub){if(this.scrollTimeout){clearTimeout(this.scrollTimeout);this.scrollTimeout=0;$sub.dataSM('scroll').step=1}},menuShow:function($sub){if(!$sub.dataSM('beforefirstshowfired')){$sub.dataSM('beforefirstshowfired',!0);if(this.$root.triggerHandler('beforefirstshow.smapi',$sub[0])===!1){return}}
if(this.$root.triggerHandler('beforeshow.smapi',$sub[0])===!1){return}
this.menuFixLayout($sub);$sub.stop(!0,!0);if(!$sub.is(':visible')){$sub.css({'visibility':'visible','pointer-events':'auto',});var zIndex=this.getStartZIndex()+(++this.zIndexInc);if(IElt9){$sub.parent().css('z-index',zIndex)}else{$sub.css('z-index',zIndex)}
if(this.opts.keepHighlighted||this.isCollapsible()){if($sub.dataSM('parent-a').attr('data-type')!='title')
$sub.dataSM('parent-a').addClass('highlighted');}
if(this.opts.subMenusMinWidth||this.opts.subMenusMaxWidth){if(!IElt8){$sub.css({width:($sub.hasClass('mega-menu-inner'))?$('.box-container').outerWidth()+'px':'auto',minWidth:'',maxWidth:''}).addClass('sm-nowrap');if(this.opts.subMenusMinWidth){$sub.css('min-width',this.opts.subMenusMinWidth)}
if(this.opts.subMenusMaxWidth){var noMaxWidth=this.getWidth($sub);if(!$sub.hasClass('mega-menu-inner')){$sub.css('max-width',this.opts.subMenusMaxWidth)}
if(noMaxWidth>this.getWidth($sub)){$sub.removeClass('sm-nowrap').css('width',this.opts.subMenusMaxWidth)}}}else{$sub.children().css('styleFloat','none');if(IE6){$sub.width(this.opts.subMenusMinWidth?this.opts.subMenusMinWidth:1).children().children('a').css('white-space','nowrap')}else{$sub.css({width:($sub.hasClass('mega-menu-inner'))?$('.box-container').outerWidth()+'px':'auto',minWidth:'',maxWidth:''}).addClass('sm-nowrap');if(this.opts.subMenusMinWidth){$sub.css('min-width',this.opts.subMenusMinWidth)}}
if(this.opts.subMenusMaxWidth){var noMaxWidth=$sub.width();if(IE6){var maxWidth=$sub.css({width:this.opts.subMenusMaxWidth,overflowX:'hidden',overflowY:'hidden'}).width();if(noMaxWidth>maxWidth){$sub.css({width:maxWidth,overflowX:'visible',overflowY:'visible'}).children().children('a').css('white-space','')}else{$sub.css({width:noMaxWidth,overflowX:'visible',overflowY:'visible'})}}else{if(!$sub.hasClass('mega-menu-inner')){$sub.css('max-width',this.opts.subMenusMaxWidth)}
if(noMaxWidth>$sub.width()){$sub.removeClass('sm-nowrap').css('width',this.opts.subMenusMaxWidth)}else{$sub.width(noMaxWidth)}}}else{$sub.width($sub.width())}
$sub.children().css('styleFloat','left')}}
if($sub.hasClass('mega-menu-inner')&&$('body').hasClass('scrollable-megamenu')&&UNCODE.wwidth>UNCODE.mediaQuery){var $nav=$('.navbar-main'),navH=0,navTop=0,$vmenu=$('body.vmenu .vmenu-container, body.menu-overlay .vmenu-container, body.menu-offcanvas .vmenu-container');if($nav.length&&typeof $nav[0]!=='undefined'){var navRect=$nav[0].getBoundingClientRect();navH=navRect.height;navTop=navRect.top}
if(!$vmenu.length){$sub.css({maxHeight:UNCODE.wheight-navH})}}
this.menuPosition($sub);if($sub.dataSM('ie-shim')){$sub.dataSM('ie-shim').insertBefore($sub)}
var complete=function(){$sub.css('overflow','')};if(this.isCollapsible()){if(this.opts.collapsibleShowFunction){this.opts.collapsibleShowFunction.call(this,$sub,complete)}else{$sub.show(this.opts.collapsibleShowDuration,complete)}}else{if(this.opts.showFunction){this.opts.showFunction.call(this,$sub,complete)}else{$sub.show(this.opts.showDuration,complete)}}
this.visibleSubMenus[$sub.dataSM('level')-1]=$sub;this.$root.triggerHandler('show.smapi',$sub[0])}},popupHide:function(noHideTimeout){if(this.hideTimeout){clearTimeout(this.hideTimeout);this.hideTimeout=0}
var self=this;this.hideTimeout=setTimeout(function(){self.menuHideAll()},noHideTimeout?1:this.opts.hideTimeout)},popupShow:function(left,top){if(!this.opts.isPopup){alert('SmartMenus jQuery Error:\n\nIf you want to show this menu via the "popupShow" method, set the isPopup:true option.');return}
if(this.hideTimeout){clearTimeout(this.hideTimeout);this.hideTimeout=0}
this.menuFixLayout(this.$root);this.$root.stop(!0,!0);if(!this.$root.is(':visible')){this.$root.css({left:left,top:top});this.menuIframeShim(this.$root);if(this.$root.dataSM('ie-shim')){this.$root.dataSM('ie-shim').css({zIndex:this.$root.css('z-index'),width:this.getWidth(this.$root),height:this.getHeight(this.$root),left:left,top:top}).insertBefore(this.$root)}
if(this.opts.showFunction){this.opts.showFunction.call(this,this.$root)}else{this.$root.show(this.opts.showDuration)}
this.visibleSubMenus[0]=this.$root}},refresh:function(){this.menuHideAll();this.$root.find('ul').each(function(){var $this=$(this);if($this.dataSM('scroll-arrows')){$this.dataSM('scroll-arrows').remove()}}).removeDataSM('in-mega').removeDataSM('shown-before').removeDataSM('ie-shim').removeDataSM('scroll-arrows').removeDataSM('parent-a').removeDataSM('level').removeDataSM('beforefirstshowfired');this.$root.find('a.has-submenu').removeClass('has-submenu').parent().removeDataSM('sub');if(this.opts.subIndicators){this.$root.find('span.sub-arrow').remove()}
if(this.opts.markCurrentItem){this.$root.find('a.current').removeClass('current')}
this.subMenus=[];this.init(!0)},rootOut:function(e){if(!this.handleEvents()||this.isTouchMode()||e.target==this.$root[0]){return}
if(this.hideTimeout){clearTimeout(this.hideTimeout);this.hideTimeout=0}
if(!this.opts.showOnClick||!this.opts.hideOnClick){var self=this;this.hideTimeout=setTimeout(function(){self.menuHideAll()},this.opts.hideTimeout)}},rootOver:function(e){if(!this.handleEvents()||this.isTouchMode()||e.target==this.$root[0]){return}
if(this.hideTimeout){clearTimeout(this.hideTimeout);this.hideTimeout=0}},winResize:function(e){if(!this.handleEvents()){if(this.$disableOverlay){var pos=this.$root.offset();this.$disableOverlay.css({top:pos.top,left:pos.left,width:this.$root.outerWidth(),height:this.$root.outerHeight()})}
return}
if(!this.isCollapsible()&&(!('onorientationchange' in window)||e.type=='orientationchange')){if(this.activatedItems.length){this.activatedItems[this.activatedItems.length-1][0].blur()}
this.menuHideAll()}}}});$.fn.dataSM=function(key,val){if(val){return this.data(key+'_smartmenus',val)}
return this.data(key+'_smartmenus')}
$.fn.removeDataSM=function(key){return this.removeData(key+'_smartmenus')}
$.fn.smartmenus=function(options){if(typeof options=='string'){var args=arguments,method=options;Array.prototype.shift.call(args);return this.each(function(){var smartmenus=$(this).data('smartmenus');if(smartmenus&&smartmenus[method]){smartmenus[method].apply(smartmenus,args)}})}
var opts=$.extend({},$.fn.smartmenus.defaults,options);return this.each(function(){new $.SmartMenus(this,opts)})}
$.fn.smartmenus.defaults={isPopup:!1,mainMenuSubOffsetX:0,mainMenuSubOffsetY:0,subMenusSubOffsetX:0,subMenusSubOffsetY:0,subMenusMinWidth:!1,subMenusMaxWidth:!1,subIndicators:!0,subIndicatorsPos:'prepend',subIndicatorsText:'+',scrollStep:30,scrollInterval:30,scrollAccelerate:!0,showTimeout:250,hideTimeout:500,showDuration:0,showFunction:null,hideDuration:0,hideFunction:function($ul,complete){$ul.fadeOut(200,complete)},collapsibleShowDuration:0,collapsibleShowFunction:function($ul,complete){$ul.slideDown(200,complete)},collapsibleHideDuration:0,collapsibleHideFunction:function($ul,complete){$ul.slideUp(200,complete)},showOnClick:!1,hideOnClick:!0,keepInViewport:!0,keepHighlighted:!0,markCurrentItem:!1,markCurrentTree:!0,rightToLeftSubMenus:!1,bottomToTopSubMenus:!1,overlapControlsInIE:!0}})(jQuery);



(function(factory){if(typeof define==="function"&&define.amd){define(['jquery'],function($){return factory($)})}else if(typeof module==="object"&&typeof module.exports==="object"){module.exports=factory(require('jquery'))}else{factory(jQuery)}})(function($){if(typeof $.easing!=='undefined'){$.easing.jswing=$.easing.swing}
var pow=Math.pow,sqrt=Math.sqrt,sin=Math.sin,cos=Math.cos,PI=Math.PI,c1=1.70158,c2=c1*1.525,c3=c1+1,c4=(2*PI)/3,c5=(2*PI)/4.5;function bounceOut(x){var n1=7.5625,d1=2.75;if(x<1/d1){return n1*x*x}else if(x<2/d1){return n1*(x-=(1.5/d1))*x+.75}else if(x<2.5/d1){return n1*(x-=(2.25/d1))*x+.9375}else{return n1*(x-=(2.625/d1))*x+.984375}}
$.extend($.easing,{def:'easeOutQuad',swing:function(x){return $.easing[$.easing.def](x)},easeInQuad:function(x){return x*x},easeOutQuad:function(x){return 1-(1-x)*(1-x)},easeInOutQuad:function(x){return x<0.5?2*x*x:1-pow(-2*x+2,2)/2},easeInCubic:function(x){return x*x*x},easeOutCubic:function(x){return 1-pow(1-x,3)},easeInOutCubic:function(x){return x<0.5?4*x*x*x:1-pow(-2*x+2,3)/2},easeInQuart:function(x){return x*x*x*x},easeOutQuart:function(x){return 1-pow(1-x,4)},easeInOutQuart:function(x){return x<0.5?8*x*x*x*x:1-pow(-2*x+2,4)/2},easeInQuint:function(x){return x*x*x*x*x},easeOutQuint:function(x){return 1-pow(1-x,5)},easeInOutQuint:function(x){return x<0.5?16*x*x*x*x*x:1-pow(-2*x+2,5)/2},easeInSine:function(x){return 1-cos(x*PI/2)},easeOutSine:function(x){return sin(x*PI/2)},easeInOutSine:function(x){return-(cos(PI*x)-1)/2},easeInExpo:function(x){return x===0?0:pow(2,10*x-10)},easeOutExpo:function(x){return x===1?1:1-pow(2,-10*x)},easeInOutExpo:function(x){return x===0?0:x===1?1:x<0.5?pow(2,20*x-10)/2:(2-pow(2,-20*x+10))/2},easeInCirc:function(x){return 1-sqrt(1-pow(x,2))},easeOutCirc:function(x){return sqrt(1-pow(x-1,2))},easeInOutCirc:function(x){return x<0.5?(1-sqrt(1-pow(2*x,2)))/2:(sqrt(1-pow(-2*x+2,2))+1)/2},easeInElastic:function(x){return x===0?0:x===1?1:-pow(2,10*x-10)*sin((x*10-10.75)*c4)},easeOutElastic:function(x){return x===0?0:x===1?1:pow(2,-10*x)*sin((x*10-0.75)*c4)+1},easeInOutElastic:function(x){return x===0?0:x===1?1:x<0.5?-(pow(2,20*x-10)*sin((20*x-11.125)*c5))/2:pow(2,-20*x+10)*sin((20*x-11.125)*c5)/2+1},easeInBack:function(x){return c3*x*x*x-c1*x*x},easeOutBack:function(x){return 1+c3*pow(x-1,3)+c1*pow(x-1,2)},easeInOutBack:function(x){return x<0.5?(pow(2*x,2)*((c2+1)*2*x-c2))/2:(pow(2*x-2,2)*((c2+1)*(x*2-2)+c2)+2)/2},easeInBounce:function(x){return 1-bounceOut(1-x)},easeOutBounce:bounceOut,easeInOutBounce:function(x){return x<0.5?(1-bounceOut(1-2*x))/2:(1+bounceOut(2*x-1))/2}});return $});



/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
 * Licensed under the MIT License (LICENSE.txt).
 *
 * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
 * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
 * Thanks to: Seamus Leahy for adding deltaX and deltaY
 *
 * Version: 3.0.6
 *
 * Requires: 1.2.2+
 */
(function($){var types=['DOMMouseScroll','mousewheel'];if($.event.fixHooks){for(var i=types.length;i;){$.event.fixHooks[types[--i]]=$.event.mouseHooks}}
$.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var i=types.length;i;){this.addEventListener(types[--i],handler,!1)}}else{this.onmousewheel=handler}},teardown:function(){if(this.removeEventListener){for(var i=types.length;i;){this.removeEventListener(types[--i],handler,!1)}}else{this.onmousewheel=null}}};$.fn.extend({mousewheel:function(fn){return fn?this.bind("mousewheel",fn):this.trigger("mousewheel")},unmousewheel:function(fn){return this.unbind("mousewheel",fn)}});function handler(event){var orgEvent=event||window.event,args=[].slice.call(arguments,1),delta=0,returnValue=!0,deltaX=0,deltaY=0;event=$.event.fix(orgEvent);event.type="mousewheel";if(orgEvent.wheelDelta){delta=orgEvent.wheelDelta/120}
if(orgEvent.detail){delta=-orgEvent.detail/3}
deltaY=delta;if(orgEvent.axis!==undefined&&orgEvent.axis===orgEvent.HORIZONTAL_AXIS){deltaY=0;deltaX=-1*delta}
if(orgEvent.wheelDeltaY!==undefined){deltaY=orgEvent.wheelDeltaY/120}
if(orgEvent.wheelDeltaX!==undefined){deltaX=-1*orgEvent.wheelDeltaX/120}
args.unshift(event,delta,deltaX,deltaY);return($.event.dispatch||$.event.handle).apply(this,args)}})(jQuery);



(function(){var $,win;$=this.jQuery||window.jQuery;win=$(window);$.fn.stick_in_parent=function(opts){var doc,elm,enable_bottoming,fn,i,inner_scrolling,len,manual_spacer,offset_top,outer_width,parent_selector,recalc_every,sticky_class;if(opts==null){opts={}}
sticky_class=opts.sticky_class,inner_scrolling=opts.inner_scrolling,recalc_every=opts.recalc_every,parent_selector=opts.parent,offset_top=opts.offset_top,manual_spacer=opts.spacer,enable_bottoming=opts.bottoming;if(offset_top==null){offset_top=0}
if(parent_selector==null){parent_selector=void 0}
if(inner_scrolling==null){inner_scrolling=!0}
if(sticky_class==null){sticky_class="is_stuck"}
doc=$(document);if(enable_bottoming==null){enable_bottoming=!0}
outer_width=function(el){var _el,computed,w;if(window.getComputedStyle){_el=el[0];computed=window.getComputedStyle(el[0]);w=parseFloat(computed.getPropertyValue("width"))+parseFloat(computed.getPropertyValue("margin-left"))+parseFloat(computed.getPropertyValue("margin-right"));if(computed.getPropertyValue("box-sizing")!=="border-box"){w+=parseFloat(computed.getPropertyValue("border-left-width"))+parseFloat(computed.getPropertyValue("border-right-width"))+parseFloat(computed.getPropertyValue("padding-left"))+parseFloat(computed.getPropertyValue("padding-right"))}
return w}else{return el.outerWidth(!0)}};fn=function(elm,padding_bottom,parent_top,parent_height,top,height,el_float,detached){var bottomed,detach,fixed,last_pos,last_scroll_height,offset,parent,recalc,recalc_and_tick,recalc_counter,spacer,tick;if(elm.data("sticky_kit")){return}
elm.data("sticky_kit",!0);last_scroll_height=doc.height();parent=elm.parent();if(parent_selector!=null){parent=parent.closest(parent_selector)}
if(!parent.length){throw "failed to find stick parent"}
fixed=!1;bottomed=!1;spacer=manual_spacer!=null?manual_spacer&&elm.closest(manual_spacer):$("<div />");if(spacer){spacer.css('position',elm.css('position'))}
recalc=function(){var border_top,padding_top,restore;if(detached){return}
last_scroll_height=doc.height();border_top=parseInt(parent.css("border-top-width"),10);padding_top=parseInt(parent.css("padding-top"),10);padding_bottom=parseInt(parent.css("padding-bottom"),10);parent_top=parent.offset().top+border_top+padding_top;parent_height=parent.height();if(fixed){fixed=!1;bottomed=!1;if(manual_spacer==null){elm.insertAfter(spacer);spacer.detach()}
elm.css({position:"",top:"",width:"",bottom:""}).removeClass(sticky_class);restore=!0}
top=elm.offset().top-(parseInt(elm.css("margin-top"),10)||0)-offset_top;height=elm.outerHeight(!0);el_float=elm.css("float");if(spacer){spacer.css({width:outer_width(elm),height:height,display:elm.css("display"),"vertical-align":elm.css("vertical-align"),"float":el_float})}
if(restore){return tick()}};recalc();if(height===parent_height){return}
last_pos=void 0;offset=offset_top;recalc_counter=recalc_every;tick=function(){var css,delta,recalced,scroll,will_bottom,win_height;if(detached){return}
recalced=!1;if(recalc_counter!=null){recalc_counter-=1;if(recalc_counter<=0){recalc_counter=recalc_every;recalc();recalced=!0}}
if(!recalced&&doc.height()!==last_scroll_height){recalc();recalced=!0}
scroll=win.scrollTop();if(last_pos!=null){delta=scroll-last_pos}
last_pos=scroll;if(fixed){if(enable_bottoming){will_bottom=scroll+height+offset>parent_height+parent_top;if(bottomed&&!will_bottom){bottomed=!1;elm.css({position:"fixed",bottom:"",top:offset}).trigger("sticky_kit:unbottom")}}
if(scroll<top){fixed=!1;offset=offset_top;if(manual_spacer==null){if(el_float==="left"||el_float==="right"){elm.insertAfter(spacer)}
spacer.detach()}
css={position:"",width:"",top:""};elm.css(css).removeClass(sticky_class).trigger("sticky_kit:unstick")}
if(inner_scrolling){win_height=win.height();if(height+offset_top>win_height){if(!bottomed){offset-=delta;offset=Math.max(win_height-height,offset);offset=Math.min(offset_top,offset);if(fixed){elm.css({top:offset+"px"})}}}}}else{if(scroll>top){fixed=!0;css={position:"fixed",top:offset};css.width=elm.css("box-sizing")==="border-box"?elm.outerWidth()+"px":elm.width()+"px";elm.css(css).addClass(sticky_class);if(manual_spacer==null){elm.after(spacer);if(el_float==="left"||el_float==="right"){spacer.append(elm)}}
elm.trigger("sticky_kit:stick")}}
if(fixed&&enable_bottoming){if(will_bottom==null){will_bottom=scroll+height+offset>parent_height+parent_top}
if(!bottomed&&will_bottom){bottomed=!0;if(parent.css("position")==="static"){parent.css({position:"relative"})}
return elm.css({position:"absolute",bottom:padding_bottom,top:"auto"}).trigger("sticky_kit:bottom")}}};recalc_and_tick=function(){recalc();return tick()};detach=function(){detached=!0;win.off("touchmove",tick);win.off("scroll",tick);win.off("resize",recalc_and_tick);$(document.body).off("sticky_kit:recalc",recalc_and_tick);elm.off("sticky_kit:detach",detach);elm.removeData("sticky_kit");elm.css({position:"",bottom:"",top:"",width:""});parent.position("position","");if(fixed){if(manual_spacer==null){if(el_float==="left"||el_float==="right"){elm.insertAfter(spacer)}
spacer.remove()}
return elm.removeClass(sticky_class)}};win.on("touchmove",tick);win.on("scroll",tick);win.on("resize",recalc_and_tick);$(document.body).on("sticky_kit:recalc",recalc_and_tick);elm.on("sticky_kit:detach",detach);return setTimeout(tick,0)};for(i=0,len=this.length;i<len;i++){elm=this[i];fn($(elm))}
return this}}).call(this);



(function($){"use strict";UNCODE.stickyElements=function(){var isMobile_wide=UNCODE.isMobile&&UNCODE.wwidth<1024;if(!isMobile_wide){var $pageHeader=$('#page-header'),$headerRow=$('.vc_row',$pageHeader),startSticky=!1;if($headerRow.hasClass('sticky-element')){$headerRow.removeClass('sticky-element');$pageHeader.addClass('sticky-element');startSticky=!0}
var calculateOffset=function(el){var getRowPadding=(!$(el).hasClass('with-bg'))?$(el).closest('.row-parent').css("padding-top"):0,sideOffset=(getRowPadding!=undefined&&getRowPadding!=0)?parseInt(getRowPadding.replace("px","")):0,shrink=typeof $('.navbar-brand').data('padding-shrink')!=='undefined'?$('.navbar-brand').data('padding-shrink')*2:0,elTop=window.pageYOffset+el.getBoundingClientRect().top;sideOffset+=UNCODE.bodyBorder;if(UNCODE.adminBarHeight>0)sideOffset+=UNCODE.adminBarHeight;if($('.menu-sticky .menu-container:not(.menu-hide)').length&&elTop>sideOffset){if($('.menu-shrink').length){sideOffset+=parseFloat($('.navbar-brand').data('minheight'))+shrink}else{sideOffset+=($('body.hmenu-center').length?$('#masthead .menu-container').outerHeight():parseInt(UNCODE.menuMobileHeight))}}
return sideOffset},initStickyElement=function($els){if($('body').hasClass('vc-safe-mode')){return!0}
if(typeof $els==='undefined'){$els=$('.sticky-element')}
$.each($els,function(index,element){if($(element).closest('.tab-pane').length){var $paneParent=$(element).closest('.tab-pane');if(!$paneParent.hasClass('active')){return!0}}
$(element).stick_in_parent({sticky_class:'is_stucked',offset_top:calculateOffset(element),bottoming:!0,inner_scrolling:SiteParameters.sticky_elements==='on'})})};var oldW=UNCODE.wwidth,oldH=UNCODE.wHeight;requestTimeout(function(){if($('.sticky-element').length){if($(window).width()>UNCODE.mediaQuery){initStickyElement();if(startSticky===!0){$('#page-header').trigger('sticky_kit:recalc')}}
$(window).on('resize lateral_resize',function(event){if(oldW!==UNCODE.wwidth||oldH!==UNCODE.wHeight){$(".sticky-element").trigger("sticky_kit:detach");if($(window).width()>UNCODE.mediaQuery){initStickyElement()}
oldW=UNCODE.wwidth;oldH=UNCODE.wHeight}})}},1000);if($('.sticky-element').length){$(window).on('uncode_wc_variation_gallery_loaded',function(event){requestTimeout(function(){$(document.body).trigger("sticky_kit:recalc")},100)})}
var $panels=$('.panel-collapse');if($panels.length){$panels.each(function(){var $panel=$(this);$panel.on('shown.bs.collapse hidden.bs.collapse',function(){$(document.body).trigger("sticky_kit:recalc")})})}
$('.nav-tabs a').on('shown.bs.tab',function(e){var $tabs=$(e.target).closest('.tab-container'),$panel=$('.tab-pane.active',$tabs),$els=$(e.target).nextAll(".sticky-element");$els.trigger("sticky_kit:detach");initStickyElement($els)});$(window).on('vc-safe-mode-on',function(){$(".sticky-element").trigger("sticky_kit:detach")});$(window).on('vc-safe-mode-off',function(){initStickyElement()})}}})(jQuery);



+function($){'use strict';function transitionEnd(){var el=document.createElement('bootstrap')
var transEndEventNames={WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd otransitionend',transition:'transitionend'}
for(var name in transEndEventNames){if(el.style[name]!==undefined){return{end:transEndEventNames[name]}}}
return!1}
$.fn.emulateTransitionEnd=function(duration){var called=!1,$el=this
$(this).one($.support.transition.end,function(){called=!0})
var callback=function(){if(!called)$($el).trigger($.support.transition.end)}
setTimeout(callback,duration)
return this}
$(function(){$.support.transition=transitionEnd()})}(jQuery);



(function($){"use strict";UNCODE.init=function(){var wfl_check=!1,wfl_request,waypoint_request;UNCODE.preventDoubleTransition();UNCODE.betterResize();UNCODE.utils();UNCODE.magnetic();if(typeof UNCODE.rowParallax!=='undefined'){UNCODE.rowParallax()}
if(typeof UNCODE.changeSkinOnScroll!=='undefined'){UNCODE.changeSkinOnScroll()}
if(typeof UNCODE.share!=='undefined'){UNCODE.share()}
if(typeof UNCODE.tooltip!=='undefined'){UNCODE.tooltip()}
if(typeof UNCODE.counters!=='undefined'){UNCODE.counters()}
if(typeof UNCODE.countdowns!=='undefined'){UNCODE.countdowns()}
if(typeof UNCODE.tabs!=='undefined'){UNCODE.tabs()}
if(typeof UNCODE.collapse!=='undefined'){UNCODE.collapse()}
if(typeof UNCODE.bigText!=='undefined'){UNCODE.bigText()}
UNCODE.menuSystem();if(typeof UNCODE.bgChanger!=='undefined'){UNCODE.bgChanger()}
if(typeof UNCODE.magicCursor!=='undefined'){UNCODE.magicCursor()}
if(typeof UNCODE.magneticCursor!=='undefined'){UNCODE.magneticCursor()}
if(typeof UNCODE.dropImage!=='undefined'){UNCODE.dropImage()}
if(typeof UNCODE.postTable!=='undefined'){UNCODE.postTable()}
if(typeof UNCODE.rotatingTxt!=='undefined'){UNCODE.rotatingTxt()}
if(typeof UNCODE.okvideo!=='undefined'){UNCODE.okvideo();window.addEventListener("uncode-more-items-loaded",function(){UNCODE.okvideo()})}
if(typeof UNCODE.backgroundSelfVideos!=='undefined'){UNCODE.backgroundSelfVideos()}
UNCODE.tapHover();if(typeof UNCODE.isotopeLayout!=='undefined'){UNCODE.isotopeLayout()}
if(typeof UNCODE.justifiedGallery!=='undefined'){UNCODE.justifiedGallery()}
if(typeof UNCODE.cssGrid!=='undefined'){UNCODE.cssGrid()}
if(typeof UNCODE.linearGrid!=='undefined'){UNCODE.linearGrid()}
if(typeof UNCODE.lightbox!=='undefined'&&!SiteParameters.lbox_enhanced){UNCODE.lightbox()}
if(typeof UNCODE.lightgallery!=='undefined'&&SiteParameters.lbox_enhanced){$(window).on('load more-items-loaded',function(){UNCODE.lightgallery()})}
if(typeof UNCODE.carousel!=='undefined'){UNCODE.carousel($('body'))}
if(typeof UNCODE.lettering!=='undefined'){UNCODE.lettering()}
UNCODE.animations();if(typeof UNCODE.stickyElements!=='undefined'&&!SiteParameters.is_frontend_editor){UNCODE.stickyElements()}
if(typeof UNCODE.twentytwenty!=='undefined'){UNCODE.twentytwenty()}
UNCODE.disableHoverScroll();UNCODE.printScreen();if(typeof UNCODE.particles!=='undefined'){UNCODE.particles()}
if(typeof UNCODE.filters!=='undefined'){UNCODE.filters()}
if(typeof UNCODE.ajax_filters!=='undefined'){UNCODE.ajax_filters()}
if(typeof UNCODE.widgets!=='undefined'){UNCODE.widgets()}
if(typeof UNCODE.unmodal!=='undefined'){UNCODE.unmodal()}
if(typeof UNCODE.checkScrollForTabs!=='undefined'){if(!UNCODE.isFullPage){UNCODE.checkScrollForTabs()}}
if(typeof UNCODE.onePage!=='undefined'){UNCODE.onePage(UNCODE.isMobile)}
if(typeof UNCODE.fullPage!=='undefined'){$(document).ready(function(){UNCODE.fullPage()})}
if(typeof UNCODE.skewIt!=='undefined'){UNCODE.skewIt()}
if(typeof UNCODE.rotateIt!=='undefined'){UNCODE.rotateIt()}
if(typeof UNCODE.textMarquee!=='undefined'){UNCODE.textMarquee()}
if(typeof UNCODE.stickyScroll!=='undefined'){UNCODE.stickyScroll()}
if(typeof UNCODE.stickyTrigger!=='undefined'){UNCODE.stickyTrigger()}
if(typeof UNCODE.verticalText!=='undefined'){UNCODE.verticalText()}
if(typeof UNCODE.videoThumbs!=='undefined'){UNCODE.videoThumbs()}
if(typeof UNCODE.revslider!=='undefined'){UNCODE.revslider()}
if(typeof UNCODE.layerslider!=='undefined'){UNCODE.layerslider()}
if(typeof UNCODE.lottie!=='undefined'){UNCODE.lottie()}
if(typeof UNCODE.inlineImgs!=='undefined'){UNCODE.inlineImgs()}
if(typeof UNCODE.animatedBgGradient!=='undefined'){UNCODE.animatedBgGradient()}
if(typeof UNCODE.readMoreCol!=='undefined'){UNCODE.readMoreCol()}
if(typeof UNCODE.multibg!=='undefined'){UNCODE.multibg()}
if(typeof UNCODE.flexEqual!=='undefined'){UNCODE.flexEqual()}
$(window).on('load',function(){clearRequestTimeout(waypoint_request);waypoint_request=requestTimeout(function(){Waypoint.refreshAll()},1000)});$(window).one('load',function(){if(typeof UNCODE.parallax!=='undefined'){UNCODE.parallax()}})}
if(!SiteParameters.is_frontend_editor){UNCODE.init()}})(jQuery);



(()=>{var o;o=jQuery,window.BorlabsCookie=function(){"use strict";var e,t,n="#BorlabsCookieBox input[type='checkbox']",i="#BorlabsCookieBox",a="#BorlabsCookieBoxWrap",s="#BorlabsCookieBox input[type='checkbox'][name='cookieGroup[]']",c="._brlbs-btn-switch-status",r="data-borlabs-cookie-uid",l="data-borlabs-cookie-consent-history",d=".BorlabsCookie",u={},b={},h={},k={},p={scriptBlockerId:{},jsHandle:{}},f=!1,v={consents:{},expires:null,uid:"anonymous",version:null},g="borlabs-cookie",m={consentSaved:null,codeUnblocked:null,codeUnblockedAfterConsent:null},x=null,C=!1,y=null;function B(o,e){if(e){var t=e.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),n=Array.from(t).filter((function(o){return 0!==o.offsetHeight})),i=n[0],a=n[n.length-1];("Tab"===o.key||9===o.keyCode)&&(o.shiftKey?document.activeElement===i&&(o.preventDefault(),a.focus()):document.activeElement===a&&(o.preventDefault(),i.focus()))}}function w(o){o.addEventListener("keydown",(function(e){return B(e,o)}),!0)}function O(o){o.removeEventListener("keydown",(function(e){return B(e,o)}),!0)}function L(){o(i).attr("aria-modal",!1)}var S,_=function(t){o(i).attr("aria-modal",!0),o("body").addClass("borlabs-position-fix"),w(document.querySelector(".cookie-box")),void 0===t&&(t=!1);var a=o(s),c=null;Object.keys(v.consents).length?(o("[data-borlabs-cookie-group]").each((function(){-1===Object.keys(v.consents).indexOf(this.dataset.borlabsCookieGroup)&&o(this).addClass("borlabs-hide")})),a.length&&"1"===e.boxLayoutAdvanced&&a.each((function(){c=this.value,"string"==typeof this.dataset.borlabsCookieCheckbox&&("object"==typeof v.consents[c]?o(this).prop("checked",!0):o(this).prop("checked",!1))}))):a.length&&a.each((function(){c=this.value,"1"===e.boxLayoutAdvanced&&"1"===e.ignorePreSelectStatus&&!1===f&&"essential"!==c&&(o(this).prop("checked",!1),o(n+"[name='cookies["+c+"][]']").prop("checked",!1).trigger("change"))})),e.blockContent?(o("#BorlabsCookieBox > div").addClass("_brlbs-block-content"),e.animation?(o("#BorlabsCookieBox > div").addClass("_brlbs-bg-animation"),setTimeout((function(){o("#BorlabsCookieBox > div").addClass("_brlbs-bg-dark")}),25)):o("#BorlabsCookieBox > div").addClass("_brlbs-bg-dark")):o("._brlbs-"+e.boxLayout+"-wrap").addClass("_brlbs-position-fixed"),o("#BorlabsCookieBox > div").css("display",""),o("#BorlabsCookieBox > div").addClass("show-cookie-box"),e.animation&&o("#BorlabsCookieBox ._brlbs-"+e.boxLayout).addClass("_brlbs-animated "+e.animationIn+(t&&e.animationDelay?" delay-1s":""));const r=o("#BorlabsCookieBox > div")[0];return r.offsetWidth,r.offsetHeight,o("#CookieBoxSaveButton")[0].focus({preventScroll:!0}),y=o("._brlbs-"+e.boxLayout+"-wrap")[0].offsetWidth+"px",!0},j=function(){return L(),O(document.querySelector(".cookie-box")),e.animation&&(o("#BorlabsCookieBox ._brlbs-"+e.boxLayout).removeClass("delay-1s "),o("#BorlabsCookieBox ._brlbs-"+e.boxLayout).removeClass(e.animationIn),o("#BorlabsCookieBox ._brlbs-"+e.boxLayout).addClass(e.animationOut)),o("#BorlabsCookieBox > div").addClass("borlabs-hide"),e.blockContent?o("#BorlabsCookieBox > div").removeClass("_brlbs-bg-dark"):o("._brlbs-"+e.boxLayout+"-wrap").addClass("_brlbs-position-fixed"),setTimeout((function(){o("._brlbs-"+e.boxLayout+"-wrap").removeAttr("style"),o("._brlbs-"+e.boxLayout+" .cookie-box .container").removeAttr("style"),o("._brlbs-"+e.boxLayout+" .cookie-preference .container").removeAttr("style"),e.animation&&(o("._brlbs-"+e.boxLayout).removeClass("_brlbs-animated"),o("._brlbs-"+e.boxLayout).removeClass("delay-1s"),o("._brlbs-"+e.boxLayout).removeClass(e.animationIn),o("._brlbs-"+e.boxLayout).removeClass(e.animationOut)),o("#BorlabsCookieBox > div").removeClass("show-cookie-box"),e.blockContent&&o("#BorlabsCookieBox > div").removeClass("_brlbs-block-content")}),e.animation?1e3:0),o("body").removeClass("borlabs-position-fix"),!0},D=function(){O(document.querySelector(".cookie-box")),w(document.querySelector(".cookie-preference"));var t=o(s),i=null;t.length&&t.each((function(){i=this.value,Object.keys(v.consents).length?!1===f&&(void 0!==v.consents[i]?(o(this).prop("checked",!0),o(this).trigger("change"),o(n+"[name='cookies["+i+"][]']").each((function(){-1!==v.consents[i].indexOf(this.value)?o(this).prop("checked",!0):o(this).prop("checked",!1),o(this).trigger("change")}))):(o(this).prop("checked",!1),o(this).trigger("change"),o(n+"[name='cookies["+i+"][]']").prop("checked",!1).trigger("change"))):("1"===e.ignorePreSelectStatus&&!1===f&&(o(this).prop("checked",!1),o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.value+"']").addClass("borlabs-hide")),o(this).trigger("change"),o(n+"[name='cookies["+i+"][]']").each((function(){"1"===e.ignorePreSelectStatus&&!1===f&&o(this).prop("checked",!1),o(this).trigger("change")})))})),o("._brlbs-"+e.boxLayout+" .cookie-box .container").animate({height:0,opacity:0},(function(){o("._brlbs-"+e.boxLayout+" .cookie-box").attr("aria-hidden",!0),o("._brlbs-"+e.boxLayout+" .cookie-preference").attr("aria-hidden",!1),o("#CookiePrefSave")[0].focus({preventScroll:!0}),o("._brlbs-"+e.boxLayout+"-wrap").animate({width:"100vw",maxWidth:"box"===e.boxLayout?"768px":"100%"},"box"===e.boxLayout?400:0,(function(){var t=o("._brlbs-"+e.boxLayout+" .cookie-preference .container")[0].scrollHeight;o("._brlbs-"+e.boxLayout+" .cookie-preference .container").animate({height:"80vh",maxHeight:t,opacity:1})}))}))},I=function(){O(document.querySelector(".cookie-preference")),o("._brlbs-"+e.boxLayout+" .cookie-preference .container").animate({height:0,opacity:0},(function(){o("._brlbs-"+e.boxLayout+" .cookie-box").attr("aria-hidden",!1),o("._brlbs-"+e.boxLayout+" .cookie-preference").attr("aria-hidden",!0),o("._brlbs-"+e.boxLayout+"-wrap").animate({maxWidth:"box"===e.boxLayout?y:"100%"},"box"===e.boxLayout?400:0,(function(){var t=o("._brlbs-"+e.boxLayout+" .cookie-box .container")[0].scrollHeight+"px";o("._brlbs-"+e.boxLayout+" .cookie-box .container").animate({height:t,opacity:1})})),o("#CookieBoxSaveButton")[0].focus()}))},T=function(t){return void 0!==t&&t.preventDefault(),o("._brlbs-"+e.boxLayout+" .cookie-preference .container a["+"data-cookie-back]").css("display","none"),o("._brlbs-"+e.boxLayout+" .cookie-preference .container a["+"data-cookie-back] + span._brlbs-separator").css("display","none"),o("._brlbs-"+e.boxLayout+" .cookie-box .container").css("height",0),o("._brlbs-"+e.boxLayout+" .cookie-box .container").css("opacity",0),o("._brlbs-"+e.boxLayout+"-wrap").css({width:"100vw",maxWidth:"box"===e.boxLayout?"768px":"100%"}),_(!1),setTimeout((function(){D()}),500),!0},E=function(){o("[data-cookie-accordion]").on("click","[data-cookie-accordion-target]",(function(e){e.preventDefault();var t=o(this).closest("[data-cookie-accordion]");t.find("[data-cookie-accordion-parent]:visible").length&&(t.find("[data-cookie-accordion-status='hide']").addClass("borlabs-hide"),t.find("[data-cookie-accordion-status='show']").removeClass("borlabs-hide"),t.find("[data-cookie-accordion-parent]:visible").slideUp()),t.find("[data-cookie-accordion-parent='"+this.dataset.cookieAccordionTarget+"']:hidden").length&&(o(this).children("[data-cookie-accordion-status='show']").addClass("borlabs-hide"),o(this).children("[data-cookie-accordion-status='hide']").removeClass("borlabs-hide"),t.find("[data-cookie-accordion-parent='"+this.dataset.cookieAccordionTarget+"']").slideDown())}))},A=function(){var e=o(s),t=null;e.length&&e.each((function(){t=this.value,o(this).prop("checked",!0),o(this).trigger("change"),o(n+"[name='cookies["+t+"][]']").each((function(){o(this).prop("checked",!0),o(this).trigger("change")}))})),N(),j()},U=function(){o(document).on("click",s,(function(){f=!0,this.checked?(o(n+"[name='cookies["+this.value+"][]']").prop("checked",!0).trigger("change"),o(s+"[value='"+this.value+"']").prop("checked",!0),o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.value+"']").length&&o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.value+"']").removeClass("borlabs-hide")):(o(n+"[name='cookies["+this.value+"][]']").prop("checked",!1).trigger("change"),o(s+"[value='"+this.value+"']").prop("checked",!1),o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.value+"']").length&&o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.value+"']").addClass("borlabs-hide"))}))},P=function(){o(document).on("click",n+"[name^='cookies']",(function(){f=!0,this.checked&&(o(s+"[value='"+this.dataset.cookieGroup+"']").prop("checked",!0).trigger("change"),o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.dataset.cookieGroup+"']").length&&o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.dataset.cookieGroup+"']").removeClass("borlabs-hide"))}))},H=function(){!0===this.checked?(o(this).parent().parent().children(c).children().last().css("display","none"),o(this).parent().parent().children(c).children().first().css("display","inline-block")):(o(this).parent().parent().children(c).children().first().css("display","none"),o(this).parent().parent().children(c).children().last().css("display","inline-block"))},N=function(){var t={essential:e.cookies.essential},i=o(s+":checked"),a=o(n+"[name^='cookies']:checked");if(i.length&&(i.each((function(){this.value.length&&new RegExp(/^[a-z-_]{3,}$/).test(this.value)&&"essential"!==this.value&&(t[this.value]=[])})),a.length&&a.each((function(){this.value.length&&"string"==typeof this.dataset.cookieGroup&&new RegExp(/^[a-z-_]{3,}$/).test(this.value)&&new RegExp(/^[a-z-_]{3,}$/).test(this.dataset.cookieGroup)&&t[this.dataset.cookieGroup].push(this.value)}))),Object.keys(v.consents).length)for(var c in v.consents)if(void 0!==t[c])for(var r in v.consents[c])-1===t[c].indexOf(v.consents[c][r])&&K(v.consents[c][r]);else if(void 0!==u[c])for(var l in u[c])K(l);if(Object.keys(v.consents).length)for(var c in v.consents)if(void 0!==t[c])for(var r in v.consents[c])-1===t[c].indexOf(v.consents[c][r])&&Q(c,v.consents[c][r]);else if(void 0!==u[c])for(var l in u[c])Q(c,l);J(t,!1),"1"!==e.reloadAfterConsent&&(V(),F(),Y(),document.dispatchEvent(m.codeUnblockedAfterConsent),document.dispatchEvent(m.codeUnblocked))},R=function(){var o=!1;return"string"==typeof v.version&&(v.version===e.cookieVersion?o=!0:v.consents={}),o},G=function(){if(document.cookie.length)for(var o=document.cookie.split(";"),t=0;t<o.length;t++)try{o[t]=decodeURIComponent(o[t]);var n=o[t].split("="),i=void 0!==n[0]?n[0].trim():"",a=void 0!==n[1]?n[1].trim():"";if(i===g){var s=JSON.parse(decodeURIComponent(a));void 0!==s.domainPath?s.domainPath===e.cookieDomain+e.cookiePath&&(v=s):v=s}}catch(e){console.log("The cookie is spoiled:"),console.dir(o[t]),console.dir(e)}return v},J=function(o,t){var n={},i="",a=[],s=e.cookieLifetime;if(1===Object.keys(o).length&&void 0!==e.cookieLifetimeEssentialOnly&&(s=e.cookieLifetimeEssentialOnly),!1===t||!1===R()){var c=new Date;c.setTime(c.getTime()+24*parseInt(s)*60*60*1e3),i=c.toUTCString()}else i=v.expires;n.consents=o,n.domainPath=e.cookieDomain+e.cookiePath,n.expires=i,n.uid=v.uid,n.version=e.cookieVersion,void 0===n.consents.essential&&(n.consents.essential=e.cookies.essential);var r=!0;1===Object.keys(o).length?(n.uid="anonymous",("anonymous"!==v.uid||1===Object.keys(v.consents).length)&&(r=!1)):"anonymous"===v.uid?(n.uid=$(),1===Object.keys(v.consents).length&&(r=!1)):"anonymous"!==v.uid&&(r=!1),a.push(g+"="+encodeURIComponent(JSON.stringify(n))),""!==e.cookieDomain&&""===e.automaticCookieDomainAndPath&&a.push("domain="+e.cookieDomain),a.push("path="+e.cookiePath),a.push("expires="+i),a.push("SameSite="+e.cookieSameSite),e.cookieSecure&&a.push("secure"),document.cookie=a.join(";"),G(),no(r),ao(r),document.dispatchEvent(m.consentSaved)},M=function(o,t,n){var i,a="",s=[],c="",r=new Date;return null==t||!1===t?""!==e.cookieDomain&&""===e.automaticCookieDomainAndPath&&(a=e.cookieDomain):a=t,void 0===n&&(n=!1),i=function(o,e){var t={name:"",value:""};if(void 0===e&&(e=!1),e&&(o=o.replace("*","")),document.cookie.length)for(var n=document.cookie.split(";"),i=0;i<n.length;i++)try{n[i]=decodeURIComponent(n[i]);var a=n[i].split("="),s=void 0!==a[0]?a[0].trim():"",c=void 0!==a[1]?a[1].trim():"";e?-1!==s.indexOf(o)&&(t.name=s,t.value=c):s===o&&(t.name=s,t.value=c)}catch(o){console.log("The cookie is spoiled:"),console.dir(n[i]),console.dir(o)}return t}(o,n),i.name.length&&(s.push(i.name+"="),""!==a&&s.push("domain="+a),s.push("path="+e.cookiePath),r.setTime(r.getTime()-864e5),c=r.toUTCString(),s.push("expires="+c),document.cookie=s.join(";")),!0},z=function(o,e){return function(o,e){"string"==typeof o&&o.length&&new RegExp(/^[a-z-_]{3,}$/).test(o)&&(void 0===v.consents[o]&&(v.consents[o]=[]),"string"==typeof e&&new RegExp(/^[a-z-_]{3,}$/).test(e)&&-1===v.consents[o].indexOf(e)&&v.consents[o].push(e)),J(v.consents,!0)}(o,e),!0},W=function(o,e){return function(o,e){if("string"==typeof o&&o.length&&new RegExp(/^[a-z-_]{3,}$/).test(o)){var t=!0;"string"==typeof e&&new RegExp(/^[a-z-_]{3,}$/).test(e)&&void 0!==v.consents[o]&&-1!==v.consents[o].indexOf(e)&&(v.consents[o].splice(v.consents[o].indexOf(e),1),t=!1),!0===t&&void 0!==v.consents[o]&&delete v.consents[o]}Object.keys(v.consents).length&&J(v.consents,!0)}(o,e),K(e),Q(o,e),!0},q=function(o){var e=!1;for(var t in v.consents)-1!==v.consents[t].indexOf(o)&&(e=!0);return e},$=function(){function o(){var o="";if("object"==typeof window.crypto){var e=0,t=new Uint32Array(4);for(window.crypto.getRandomValues(t);e<4;e++)o+="abcdefhgihjklmnopqrstuvwxyz0123456789"[t[e]%37]}else o=Math.floor(65536*(1+Math.random())).toString(16).substring(1);return o}return o()+o()+"-"+o()+o()+"-"+o()+o()+"-"+o()+o()},V=function(){for(var e in v.consents)for(var n in v.consents[e]){var i=v.consents[e][n];void 0!==u[e]&&void 0!==u[e][i]&&(void 0!==t[e]&&void 0!==t[e][i]&&(o("body").append(to(t[e][i])),delete t[e][i]),void 0!==u[e][i].optInJS&&(o("body").append(to(u[e][i].optInJS)),u[e][i].optInJS=""))}},F=function(){o("[data-borlabs-cookie-type='cookie-group']").each((function(){if(void 0!==v.consents[this.dataset.borlabsCookieId]){var t;t="javascript"===e.cookieBoxIntegration?to(this.firstChild.innerHTML):to(this.innerHTML),o(this).prev().length?o(this).prev().after(t):o(this).parent().prepend(t),this.parentNode.removeChild(this)}}))},Y=function(){o("[data-borlabs-cookie-type='cookie']").each((function(){for(var t in v.consents)if(-1!==v.consents[t].indexOf(this.dataset.borlabsCookieId)){var n;n="javascript"===e.cookieBoxIntegration?to(this.firstChild.innerHTML):to(this.innerHTML),o(this).prev().length?o(this).prev().after(n):o(this).parent().prepend(n),this.parentNode.removeChild(this)}}))},K=function(o){null===x&&(x=[],C=!0),x.push(o)},Q=function(e,t){if(void 0!==u[e]&&void 0!==u[e][t]&&void 0!==u[e][t].optOutJS){var n=to(u[e][t].optOutJS);void 0!==u[e][t].settings.asyncOptOutCode&&"1"===u[e][t].settings.asyncOptOutCode||(n+="<script>window.BorlabsCookie.optOutDone('"+t+"')<\/script>"),o("body").append(n),u[e][t].optOutJS=""}},X=function(t){t.preventDefault();var n,i,a=o(this).parents(".BorlabsCookie"),s=!1;if(n=a.find("[data-borlabs-cookie-type='content-blocker']")[0].dataset.borlabsCookieId,void 0!==b[n]&&void 0!==b[n].settings.unblockAll&&"1"===b[n].settings.unblockAll&&(s=!0),(i=a.find("input[type='checkbox'][name='unblockAll']")).length&&(s=!!i[0].checked),s)for(var c in o("[data-borlabs-cookie-type='content-blocker'][data-borlabs-cookie-id='"+n+"']").each((function(){Z(o(this).parents(".BorlabsCookie"))})),e.cookies)-1!==e.cookies[c].indexOf(n)&&z(c,n);else Z(a)},Z=function(o){var t=o.find("[data-borlabs-cookie-type='content-blocker']"),n="";if(t.length){var i;n=t[0].dataset.borlabsCookieId,void 0!==b[n].settings.executeGlobalCodeBeforeUnblocking&&"1"===b[n].settings.executeGlobalCodeBeforeUnblocking&&void 0===h[n]&&(b[n].global(b[n]),h[n]=!0),i="javascript"===e.cookieBoxIntegration?to(t[0].firstChild.innerHTML):to(t[0].innerHTML);var a=setInterval((function(){var e=!0;void 0!==k[n]&&(void 0!==k[n].scriptBlockerId&&Object.entries(k[n].scriptBlockerId).forEach((o=>{var t=o[0];!0!==eo(k[n].scriptBlockerId[t],"scriptBlockerId")&&(e=!1)})),void 0!==k[n].jsHandle&&Object.entries(k[n].jsHandle).forEach((o=>{var t=o[0];!0!==eo(k[n].jsHandle[t],"jsHandle")&&(e=!1)}))),!0===e&&(clearInterval(a),o.prev().length?o.prev().after(i):o.parent().prepend(i),void 0!==b[n].settings.executeGlobalCodeBeforeUnblocking&&"0"!==b[n].settings.executeGlobalCodeBeforeUnblocking||void 0===h[n]&&(b[n].global(b[n]),h[n]=!0),b[n].init(o.prev()[0],b[n]),o[0].parentNode.removeChild(o[0]))}),50)}},oo=function(e,t,n){var i=o(e)[0];if(void 0!==i){var a=document.createElement("script");for(var s of i.attributes)-1===s.name.indexOf("borlabs")&&-1===s.name.indexOf("type")&&a.setAttribute(s.name,s.value);"string"==typeof i.dataset.borlabsScriptBlockerSrc?(a.src=i.dataset.borlabsScriptBlockerSrc,a.onload=function(){p[n][t]--,oo(e,t,n)},i.parentNode.insertBefore(a,i),i.parentNode.removeChild(i)):(a.type="text/javascript",a.innerHTML=i.innerHTML,i.parentNode.insertBefore(a,i),i.parentNode.removeChild(i),p[n][t]--,oo(e,t,n))}return!0},eo=function(o,e){var t=!1;return void 0!==p[e][o]&&0===p[e][o]&&(t=!0),t},to=function(o){return decodeURIComponent(Array.prototype.map.call(window.atob(o),(function(o){return"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)})).join(""))},no=function(t){!1===/bot|googlebot|crawler|spider|robot|crawling|lighthouse/i.test(navigator.userAgent.toLowerCase())&&o.ajax(e.ajaxURL,{type:"POST",data:{action:"borlabs_cookie_handler",type:"log",language:e.language,cookieData:v,essentialStatistic:t}}).done((function(){e.reloadAfterConsent&&Object.keys(v.consents).length>0&&location.reload(!0),C&&bo()}))},io=function(){o.ajax(e.ajaxURL,{type:"POST",data:{action:"borlabs_cookie_handler",type:"consent_history",language:e.language,uid:v.uid}}).done((function(e){(e=o.parseJSON(e)).length&&o.each(e,(function(e,t){o("["+l+"] table").append("<tr><td>"+t.stamp+"</td><td>"+t.version+"</td><td>"+t.consent+"</td></tr>")}))}))},ao=function(t){e.crossDomainCookie.length&&Object.entries(e.crossDomainCookie).forEach((n=>{var i=e.crossDomainCookie[n[0]];o("body").append('<iframe class="borlabs-hide" src="'+i+"?__borlabsCookieCall=cDC&cookieLang="+e.language+"&cookieData="+encodeURIComponent(JSON.stringify(v))+"&essentialStatistic="+(t?1:0)+'"></iframe>')}))},so=function(){o(".BorlabsCookie [name^='borlabsCookie']").each((function(){q(this.value)?this.checked=!0:this.checked=!1,o(this).trigger("change")})),o(document).on("change",".BorlabsCookie [name^='borlabsCookie']",(function(){this.checked?z(this.dataset.cookieGroup,this.value):W(this.dataset.cookieGroup,this.value)}))},co=window.scrollY||document.documentElement.scrollTop,ro=null,lo=null,uo=document.getElementById("BorlabsCookieBoxWidget");uo&&window.addEventListener("scroll",(function(){(S=window.scrollY||document.documentElement.scrollTop)>co?ro="up":S<co&&(ro="down"),ro!==lo&&("up"===ro?(uo.classList.add("_brlbs-hide-mobile"),lo=ro):"down"===ro&&(uo.classList.remove("_brlbs-hide-mobile"),lo=ro)),co=S}));var bo=function(){C=!1,0===x.length&&(x=null,e.reloadAfterOptOut&&window.location.reload())};return{addConsent:z,allocateScriptBlockerToContentBlocker:function(o,e,t){"scriptBlockerId"!==t&&"jsHandle"!==t||(void 0===k[o]&&(k[o]={scriptBlockerId:[],jsHandle:[]}),-1===k[o][t].indexOf(e)&&k[o][t].push(e))},callWhenLoaded:function(o,e){var t=function(){!0===window.hasOwnProperty(o)?e(e):window.setTimeout(t,1e3)};t()},checkCookieConsent:q,checkCookieGroupConsent:function(o){var e=!1;return void 0!==v.consents[o]&&(e=!0),e},deleteCookie:M,getCookie:G,hideCookieBox:j,init:function(n,i,c,h){return"about:blank"!==window.location.href&&(e=o.extend({ajaxURL:"",language:"en",animation:"1",animationDelay:"",animationIn:"fadeIn",animationOut:"fadeOut",blockContent:"",boxLayout:"box",boxLayoutAdvanced:"0",automaticCookieDomainAndPath:"",cookieDomain:"",cookiePath:"",cookieSameSite:"Lax",cookieSecure:!0,cookieLifetime:"365",crossDomainCookie:[],cookieBeforeConsent:"",cookiesForBots:"1",cookieVersion:"1",hideCookieBoxOnPages:[],respectDoNotTrack:"",reloadAfterConsent:"",reloadAfterOptOut:"1",showCookieBox:"1",cookieBoxIntegration:"javascript",ignorePreSelectStatus:"1",cookies:[]},n),t=h,u=i,b=c,m.consentSaved=document.createEvent("Event"),m.consentSaved.initEvent("borlabs-cookie-consent-saved",!0,!0),m.codeUnblocked=document.createEvent("Event"),m.codeUnblocked.initEvent("borlabs-cookie-code-unblocked",!0,!0),m.codeUnblockedAfterConsent=document.createEvent("Event"),m.codeUnblockedAfterConsent.initEvent("borlabs-cookie-code-unblocked-after-consent",!0,!0),G(),function(){if(Object.keys(u).length)for(var o in u)if(Object.keys(u[o]).length)for(var e in u[o])if(void 0!==u[o][e].settings&&void 0!==u[o][e].settings.blockCookiesBeforeConsent&&"1"===u[o][e].settings.blockCookiesBeforeConsent&&void 0!==u[o][e].cookieNameList&&!1===q(e))for(var t in u[o][e].cookieNameList)M(t,null,-1!==t.indexOf("*")),M(t,"",-1!==t.indexOf("*"))}(),e.cookieBeforeConsent&&(null!==v.uid&&"anonymous"!==v.uid||(v.uid=$()),"function"==typeof Object&&(void 0===Object.entries&&(Object.entries=function(o){for(var e=Object.keys(o),t=e.length,n=new Array(t);t--;)n[t]=[e[t],o[e[t]]];return n}),0===Object.entries(v.consents).length&&null===v.expires&&(function(){var o={},t=[],n=e.cookieLifetimeEssentialOnly,i=new Date;i.setTime(i.getTime()+24*parseInt(n)*60*60*1e3);var a=i.toUTCString();o.consents={},o.domainPath=e.cookieDomain+e.cookiePath,o.expires=a,o.uid=v.uid,o.version=null,t.push(g+"="+encodeURIComponent(JSON.stringify(o))),""!==e.cookieDomain&&""===e.automaticCookieDomainAndPath&&t.push("domain="+e.cookieDomain),t.push("path="+e.cookiePath),t.push("expires="+a),t.push("SameSite="+e.cookieSameSite),e.cookieSecure&&t.push("secure"),document.cookie=t.join(";"),G()}(),no(!0)))),o(a).length&&"SCRIPT"===o(a)[0].tagName&&o(a).after(o(a).html()),o(document).on("click","[data-cookie-accept]",(function(o){o.preventDefault(),N(),j()})),o(document).on("click","[data-cookie-accept-all]",(function(o){o.preventDefault(),A()})),o(document).on("click","[data-cookie-back]",(function(o){o.preventDefault(),I()})),o(document).on("click","[data-cookie-individual]",(function(o){o.preventDefault(),D()})),o(document).on("click","[data-cookie-refuse]",(function(e){e.preventDefault();var t=[];o(s+":checked").each((function(){-1===t.indexOf(this.value)&&(o(this).trigger("click"),t.push(this.value))})),N(),j()})),E(),U(),P(),!0===R()?(V(),F(),Y(),document.dispatchEvent(m.codeUnblocked),L()):e.showCookieBox?0===e.hideCookieBoxOnPages.length||-1===e.hideCookieBoxOnPages.indexOf(window.location.protocol+"//"+window.location.host+window.location.pathname)?e.cookiesForBots&&/bot|googlebot|crawler|spider|robot|crawling|lighthouse/i.test(navigator.userAgent.toLowerCase())?(J(e.cookies,!1),V(),F(),Y(),L(),document.dispatchEvent(m.codeUnblocked)):e.respectDoNotTrack&&void 0!==navigator.doNotTrack&&"1"===navigator.doNotTrack?(J({essential:e.cookies.essential},!1),V(),F(),Y(),L(),document.dispatchEvent(m.codeUnblocked)):_(!0):(V(),F(),Y(),L(),document.dispatchEvent(m.codeUnblocked)):L(),o(document).on("click","[data-borlabs-cookie-unblock]",X),o(document).on("click","[data-borlabs-cookie-preference]",T),o(document).on("click",".borlabs-cookie-preference",T),o(document).on("change","[data-borlabs-cookie-switch]",H),o(document).on("keydown",(function(e){9===e.keyCode&&o(d).addClass("_brlbs-keyboard")})),o(document).on("mousedown",(function(e){o(d).is(":visible")&&o(d).removeClass("_brlbs-keyboard")})),o("body").on("focus",".BorlabsCookie._brlbs-keyboard input[type='checkbox']",(function(e){var t=o(e.currentTarget).closest("label");t&&o(t).addClass("_brlbs-focused")})),o(d).on("blur","input[type='checkbox']",(function(e){var t=o(e.currentTarget).closest("label");t&&o(t).removeClass("_brlbs-focused")})),o("["+l+"]").length&&io(),so(),o("["+r+"]").length&&o("["+r+"]").each((function(){o(this).html(v.uid)})),!0)},initConsentHistoryTable:io,initSwitchConsentButtonStatus:so,openCookiePreference:T,removeConsent:W,showCookieBox:_,unblockContentId:function(e){o("[data-borlabs-cookie-type='content-blocker'][data-borlabs-cookie-id='"+e+"']").each((function(){Z(o(this).parents(".BorlabsCookie"))}))},unblockScriptBlockerId:function(e){var t="[data-borlabs-script-blocker-id='"+e+"']";return o(t).length&&(p.scriptBlockerId[e]=o(t).length,oo(t,e,"scriptBlockerId")),!0},unblockScriptBlockerJSHandle:function(e){var t="[data-borlabs-script-blocker-js-handle='"+e+"']";return o(t).length&&(p.jsHandle[e]=o(t).length,oo(t,e,"jsHandle")),!0},optOutDone:function(o){null!==x?x.length!==(x=x.filter((function(e,t,n){return e!==o}))).length?0!==x.length||C||(x=null,e.reloadAfterOptOut&&window.location.reload()):console.log('No opt out found for cookie "'+o+'"'):console.log("No opt out has been initialized")}}}()})();


document.addEventListener("DOMContentLoaded", function (e) {
var borlabsCookieContentBlocker = {"facebook": {"id": "facebook","global": function (contentBlockerData) {  },"init": function (el, contentBlockerData) { if(typeof FB === "object") { FB.XFBML.parse(el.parentElement); } },"settings": {"executeGlobalCodeBeforeUnblocking":false}},"default": {"id": "default","global": function (contentBlockerData) {  },"init": function (el, contentBlockerData) {  },"settings": {"executeGlobalCodeBeforeUnblocking":false}},"googlemaps": {"id": "googlemaps","global": function (contentBlockerData) {  },"init": function (el, contentBlockerData) {  },"settings": {"executeGlobalCodeBeforeUnblocking":false}},"instagram": {"id": "instagram","global": function (contentBlockerData) {  },"init": function (el, contentBlockerData) { if (typeof instgrm === "object") { instgrm.Embeds.process(); } },"settings": {"executeGlobalCodeBeforeUnblocking":false}},"openstreetmap": {"id": "openstreetmap","global": function (contentBlockerData) {  },"init": function (el, contentBlockerData) {  },"settings": {"executeGlobalCodeBeforeUnblocking":false}},"twitter": {"id": "twitter","global": function (contentBlockerData) {  },"init": function (el, contentBlockerData) {  },"settings": {"executeGlobalCodeBeforeUnblocking":false}},"vimeo": {"id": "vimeo","global": function (contentBlockerData) {  },"init": function (el, contentBlockerData) {  },"settings": {"executeGlobalCodeBeforeUnblocking":false,"saveThumbnails":false,"autoplay":false,"videoWrapper":false}},"youtube": {"id": "youtube","global": function (contentBlockerData) {  },"init": function (el, contentBlockerData) {  },"settings": {"executeGlobalCodeBeforeUnblocking":false,"changeURLToNoCookie":true,"saveThumbnails":false,"autoplay":false,"thumbnailQuality":"maxresdefault","videoWrapper":false}}};
    var BorlabsCookieInitCheck = function () {

    if (typeof window.BorlabsCookie === "object" && typeof window.jQuery === "function") {

        if (typeof borlabsCookiePrioritized !== "object") {
            borlabsCookiePrioritized = { optInJS: {} };
        }

        window.BorlabsCookie.init(borlabsCookieConfig, borlabsCookieCookies, borlabsCookieContentBlocker, borlabsCookiePrioritized.optInJS);
    } else {
        window.setTimeout(BorlabsCookieInitCheck, 50);
    }
};

BorlabsCookieInitCheck();});
