(function(t){'use strict';t(document).ready(function(){var e=o('html');t.avia_utilities=t.avia_utilities||{};if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&'ontouchstart' in document.documentElement){t.avia_utilities.isMobile=!0}
else{t.avia_utilities.isMobile=!1};c();l();i();new t.AviaTooltip({'class':'avia-search-tooltip',data:'avia-search-tooltip',event:'click',position:'bottom',scope:'body',attach:'element',within_screen:!0});new t.AviaTooltip({'class':'avia-related-tooltip',data:'avia-related-tooltip',scope:'.related_posts, .av-share-box',attach:'element',delay:0});new t.AviaAjaxSearch({scope:'#header, .avia_search_element'});if(t.fn.avia_iso_sort)t('.grid-sort-container').avia_iso_sort();a();t.avia_utilities.avia_ajax_call()});t.avia_utilities=t.avia_utilities||{};t.avia_utilities.avia_ajax_call=function(e){if(typeof e=='undefined'){e='body'};t('a.avianolink').on('click',function(t){t.preventDefault()});t('a.aviablank').attr('target','_blank');if(t.fn.avia_activate_lightbox){t(e).avia_activate_lightbox()};if(t.fn.avia_scrollspy){if(e=='body'){t('body').avia_scrollspy({target:'.main_menu .menu li > a'})}
else{t('body').avia_scrollspy('refresh')}};if(t.fn.avia_smoothscroll)t('a[href*="#"]',e).avia_smoothscroll(e);r(e);n(e);s(e);if(t.fn.avia_html5_activation&&t.fn.mediaelementplayer)t('.avia_video, .avia_audio',e).avia_html5_activation({ratio:'16:9'})};t.avia_utilities.log=function(t,e,i){if(typeof console=='undefined'){return};if(typeof e=='undefined'){e='log'};e='AVIA-'+e.toUpperCase();console.log('['+e+'] '+t);if(typeof i!='undefined')console.log(i)};function i(){var n=t(window),i=t('html').is('.html_header_sidebar')?'#main':'#header',a=t(i),s=a.parents('div:eq(0)'),r=t(i+' .container:first'),e='',o=function(){var i='',o=Math.round(r.width()),n=Math.round(a.width()),l=Math.round(s.width());i+=' #header .three.units{width:'+(o*0.25)+'px;}';i+=' #header .six.units{width:'+(o*0.50)+'px;}';i+=' #header .nine.units{width:'+(o*0.75)+'px;}';i+=' #header .twelve.units{width:'+(o)+'px;}';i+=' .av-framed-box .av-layout-tab-inner .container{width:'+(l)+'px;}';i+=' .html_header_sidebar .av-layout-tab-inner .container{width:'+(n)+'px;}';i+=' .boxed .av-layout-tab-inner .container{width:'+(n)+'px;}';i+=' .av-framed-box#top .av-submenu-container{width:'+(l)+'px;}';try{e.text(i)}catch(c){e.remove();e=t('<style type=\'text/css\' id=\'av-browser-width-calc\'>'+i+'</style>').appendTo('head:first')}};if(t('.avia_mega_div').length>0||t('.av-layout-tab-inner').length>0||t('.av-submenu-container').length>0){e=t('<style type=\'text/css\' id=\'av-browser-width-calc\'></style>').appendTo('head:first');n.on('debouncedresize',o);o()}};function a(){var e=t('.sidebar_shadow#top #main .sidebar'),i=t('.sidebar_shadow .content');if(e.height()>=i.height()){e.addClass('av-enable-shadow')}
else{i.addClass('av-enable-shadow')}};function e(e,a){var i=this,s=t.proxy(i.process,i),o=t.proxy(i.refresh,i),r=t(e).is('body')?t(window):t(e),n;i.$body=t('body');i.$win=t(window);i.options=t.extend({},t.fn.avia_scrollspy.defaults,a);i.selector=(i.options.target||((n=t(e).attr('href'))&&n.replace(/.*(?=#[^\s]+$)/,''))||'');i.activation_true=!1;if(i.$body.find(i.selector+'[href*=\'#\']').length){i.$scrollElement=r.on('scroll.scroll-spy.data-api',s);i.$win.on('av-height-change',o);i.$body.on('av_resize_finished',o);i.activation_true=!0;i.checkFirst();setTimeout(function(){i.refresh();i.process()},100)}};e.prototype={constructor:e,checkFirst:function(){var t=window.location.href.split('#')[0],e=this.$body.find(this.selector+'[href=\''+t+'\']').attr('href',t+'#top')},refresh:function(){if(!this.activation_true)return;var e=this,i;this.offsets=t([]);this.targets=t([]);i=this.$body.find(this.selector).map(function(){var o=t(this),n=o.data('target')||o.attr('href'),i=this.hash,i=i.replace(/\//g,''),a=/^#\w/.test(i)&&t(i);return(a&&a.length&&[[a.position().top+(!t.isWindow(e.$scrollElement.get(0))&&e.$scrollElement.scrollTop()),n]])||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]);e.targets.push(this[1])})},process:function(){if(!this.offsets)return;if(isNaN(this.options.offset))this.options.offset=0;var i=this.$scrollElement.scrollTop()+this.options.offset,n=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,s=n-this.$scrollElement.height(),e=this.offsets,a=this.targets,o=this.activeTarget,t;if(i>=s){return o!=(t=a.last()[0])&&this.activate(t)};for(t=e.length;t--;){o!=a[t]&&i>=e[t]&&(!e[t+1]||i<=e[t+1])&&this.activate(a[t])}},activate:function(e){var i,a;this.activeTarget=e;t(this.selector).parent('.'+this.options.applyClass).removeClass(this.options.applyClass);a=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]';i=t(a).parent('li').addClass(this.options.applyClass);if(i.parent('.sub-menu').length){i=i.closest('li.dropdown_ul_available').addClass(this.options.applyClass)};i.trigger('activate')}};t.fn.avia_scrollspy=function(i){return this.each(function(){var o=t(this),a=o.data('scrollspy'),n=typeof i=='object'&&i;if(!a)o.data('scrollspy',(a=new e(this,n)));if(typeof i=='string')a[i]()})};t.fn.avia_scrollspy.Constructor=e;t.fn.avia_scrollspy.calc_offset=function(){var e=(parseInt(t('.html_header_sticky #main').data('scroll-offset'),10))||0,i=(t('.html_header_sticky:not(.html_top_nav_header) #header_main_alternate').outerHeight())||0,a=(t('.html_header_sticky.html_header_unstick_top_disabled #header_meta').outerHeight())||0,o=1,n=parseInt(t('html').css('margin-top'),10)||0,s=parseInt(t('.av-frame-top ').outerHeight(),10)||0;return e+i+a+o+n+s};t.fn.avia_scrollspy.defaults={offset:t.fn.avia_scrollspy.calc_offset(),applyClass:'current-menu-item'};function o(e){var i={},s=function(t){t=t.toLowerCase();var e=/(edge)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(chrome)[ \/]([\w.]+)/.exec(t)||/(iemobile)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf('trident')>=0&&/(rv)(?::| )([\w.]+)/.exec(t)||t.indexOf('compatible')<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:e[5]||e[3]||e[1]||'',version:e[2]||e[4]||'0',versionNumber:e[4]||e[2]||'0'}};var o=s(navigator.userAgent);if(o.browser){i.browser=o.browser;i[o.browser]=!0;i.version=o.version};if(i.chrome){i.webkit=!0}
else if(i.webkit){i.safari=!0};if(typeof(i)!=='undefined'){var a='',n=i.version?parseInt(i.version):'';if(i.msie||i.rv||i.iemobile){a+='avia-msie'}
else if(i.webkit){a+='avia-webkit'}
else if(i.mozilla){a+='avia-mozilla'};if(i.version)a+=' '+a+'-'+n+' ';if(i.browser)a+=' avia-'+i.browser+' avia-'+i.browser+'-'+n+' '};if(e)t(e).addClass(a);return a};t.fn.avia_html5_activation=function(e){var i={ratio:'16:9'};var e=t.extend(i,e),a=t.avia_utilities.isMobile;this.each(function(){var e=t(this),a='#'+e.attr('id'),i=e.attr('poster');e.mediaelementplayer({defaultVideoWidth:480,defaultVideoHeight:270,videoWidth:-1,videoHeight:-1,audioWidth:400,audioHeight:30,startVolume:0.8,loop:!1,enableAutosize:!1,features:['playpause','progress','current','duration','tracks','volume'],alwaysShowControls:!1,iPadUseNativeControls:!1,iPhoneUseNativeControls:!1,AndroidUseNativeControls:!1,alwaysShowHours:!1,showTimecodeFrameCount:!1,framesPerSecond:25,enableKeyboard:!0,pauseOtherPlayers:!1,poster:i,success:function(i,a,o){t.AviaVideoAPI.players[e.attr('id').replace(/_html5/,'')]=o;setTimeout(function(){if(i.pluginType=='flash'){i.addEventListener('canplay',function(){e.trigger('av-mediajs-loaded')},!1)}
else{e.trigger('av-mediajs-loaded').addClass('av-mediajs-loaded')};i.addEventListener('ended',function(){e.trigger('av-mediajs-ended')},!1)},10)},error:function(){},keyActions:[]})})};function n(e){if(t.avia_utilities.isMobile)return;if(t('body').hasClass('av-disable-avia-hover-effect')){return};var o='',a=t.avia_utilities.supports('transition');if(e=='body'){var i=t('#main a img').parents('a').not('.noLightbox, .noLightbox a, .avia-gallery-thumb a, .ls-wp-container a, .noHover, .noHover a, .av-logo-container .logo a').add('#main .avia-hover-fx')}
else{var i=t('a img',e).parents('a').not('.noLightbox, .noLightbox a, .avia-gallery-thumb a, .ls-wp-container a, .noHover, .noHover a, .av-logo-container .logo a').add('.avia-hover-fx',e)};i.each(function(e){var o=t(this),r=o.find('img:first');if(r.hasClass('alignleft'))o.addClass('alignleft').css({float:'left',margin:0,padding:0});if(r.hasClass('alignright'))o.addClass('alignright').css({float:'right',margin:0,padding:0});if(r.hasClass('aligncenter'))o.addClass('aligncenter').css({float:'none','text-align':'center',margin:0,padding:0});if(r.hasClass('alignnone')){o.addClass('alignnone').css({margin:0,padding:0});if(!o.css('display')||o.css('display')=='inline'){o.css({display:'inline-block'})}};if(!o.css('position')||o.css('position')=='static'){o.css({position:'relative',overflow:'hidden'})};var l=o.attr('href'),n='overlay-type-video',h=o.data('opacity')||0.7,c=5,s=o.find('.image-overlay');if(l){if(l.match(/(jpg|gif|jpeg|png|tif)/))n='overlay-type-image';if(!l.match(/(jpg|gif|jpeg|png|\.tif|\.mov|\.swf|vimeo\.com|youtube\.com)/))n='overlay-type-extern'};if(!s.length){s=t('<span class=\'image-overlay '+n+'\'><span class=\'image-overlay-inside\'></span></span>').appendTo(o)};o.on('mouseenter',function(e){var i=o.find('img:first'),r=i.get(0),l=i.outerHeight(),f=i.outerWidth(),p=i.position(),d=o.css('display'),s=o.find('.image-overlay');if(l>100){if(!s.length){s=t('<span class=\'image-overlay '+n+'\'><span class=\'image-overlay-inside\'></span></span>').appendTo(o)};if(o.height()==0){o.addClass(r.className);r.className=''};if(!d||d=='inline'){o.css({display:'block'})};s.css({left:(p.left-c)+parseInt(i.css('margin-left'),10),top:p.top+parseInt(i.css('margin-top'),10)}).css({overflow:'hidden',display:'block','height':l,'width':(f+(2*c))});if(a===!1)s.stop().animate({opacity:h},400)}
else{s.css({display:'none'})}}).on('mouseleave',i,function(){if(s.length){if(a===!1)s.stop().animate({opacity:0},400)}})})}(function(t){t.fn.avia_smoothscroll=function(e){if(!this.length)return;var o=t(window),d=t('#header'),f=t('.html_header_top.html_header_sticky #main').not('.page-template-template-blank-php #main'),u=t('.html_header_top.html_header_unstick_top_disabled #header_meta'),v=t('.html_header_top:not(.html_top_nav_header) #header_main_alternate'),m=t('.html_header_top.html_top_nav_header'),l=t('.html_header_top.html_header_shrinking').length,c=t('.av-frame-top'),i=0,h=t.avia_utilities.isMobile,a=t('.sticky_placeholder:first'),p=function(){if(d.css('position')=='fixed'){var e=parseInt(f.data('scroll-offset'),10)||0,a=parseInt(u.outerHeight(),10)||0,o=parseInt(v.outerHeight(),10)||0;if(e>0&&l){e=(e/2)+a+o}
else{e=e+a+o};e+=parseInt(t('html').css('margin-top'),10);i=e}
else{i=parseInt(t('html').css('margin-top'),10)};if(c.length){i+=c.height()};if(m.length){i=t('.html_header_sticky #header_main_alternate').height()+parseInt(t('html').css('margin-top'),10)};if(h){i=0}};if(h)l=!1;p();o.on('debouncedresize av-height-change',p);var n=window.location.hash.replace(/\//g,'');if(i>0&&n&&e=='body'&&n.charAt(1)!='!'&&n.indexOf('=')===-1){var s=t(n),r=0;if(s.length){o.on('scroll.avia_first_scroll',function(){setTimeout(function(){if(a.length&&s.offset().top>a.offset().top){r=a.outerHeight()-3};o.off('scroll.avia_first_scroll').scrollTop(s.offset().top-i-r)},10)})}};return this.each(function(){t(this).click(function(e){var n=this.hash.replace(/\//g,''),c=t(this),f=c.data();if(n!=''&&n!='#'&&n!='#prev'&&n!='#next'&&!c.is('.comment-reply-link, #cancel-comment-reply-link, .no-scroll')){var s='',d='';if('#next-section'==n){d=n;s=c.parents('.container_wrap:eq(0)').nextAll('.container_wrap:eq(0)');n='#'+s.attr('id')}
else{s=t(this.hash.replace(/\//g,''))};if(s.length){var h=o.scrollTop(),p=s.offset().top,r=p-i,l=window.location.hash,l=l.replace(/\//g,''),u=window.location.href.replace(l,''),v=this,m=f.duration||1200,g=f.easing||'easeInOutQuint';if(a.length&&p>a.offset().top){r-=a.outerHeight()-3};if(u+n==v||d){if(h!=r){if(!(h==0&&r<=0)){o.trigger('avia_smooth_scroll_start');t('html:not(:animated),body:not(:animated)').animate({scrollTop:r},m,g,function(){if(window.history.replaceState)window.history.replaceState('','',n)})}};e.preventDefault()}}}})})}})(jQuery);function s(t){var e=jQuery('iframe[src*="youtube.com"]:not(.av_youtube_frame)',t),i=jQuery('iframe[src*="youtube.com"]:not(.av_youtube_frame) object, iframe[src*="youtube.com"]:not(.av_youtube_frame) embed',t).attr('wmode','opaque');e.each(function(){var e=jQuery(this),t=e.attr('src');if(t){if(t.indexOf('?')!==-1){t+='&wmode=opaque&rel=0'}
else{t+='?wmode=opaque&rel=0'};e.attr('src',t)}})};function r(t){if(!t)t=document;var a=jQuery(window),e=jQuery('.avia-iframe-wrap iframe:not(.avia-slideshow iframe):not( iframe.no_resize):not(.avia-video iframe)',t),i=function(){e.each(function(){var e=jQuery(this),i=e.parent(),t=56.25;if(this.width&&this.height){t=(100/this.width)*this.height;i.css({'padding-bottom':t+'%'})}})};i()};function l(){var i=t(window),o=!1,e=t('#scroll-top-link'),a=function(){var t=i.scrollTop();if(t<500){e.removeClass('avia_pop_class')}
else if(!e.is('.avia_pop_class')){e.addClass('avia_pop_class')}};i.on('scroll',function(){window.requestAnimationFrame(a)});a()};function c(){var u=t('#header'),c=t('#main .av-logo-container'),v=t('#avia-menu'),s=t('.av-burger-menu-main a'),n=t('html').eq(0),i=t('<div class="av-burger-overlay"></div>'),m=t('<div class="av-burger-overlay-scroll"></div>').appendTo(i),g=t('<div class="av-burger-overlay-inner"></div>').appendTo(m),k=t('<div class="av-burger-overlay-bg"></div>').appendTo(i),r=!1,h={},y=t('.av-logo-container .inner-container'),x=y.find('.main_menu'),p=n.is('.html_av-submenu-display-click.html_av-submenu-clone, .html_av-submenu-display-hover.html_av-submenu-clone'),w=!1,T=0;var f=t('#avia_alternate_menu');if(f.length>0){v=f};var d=function(){if(t.avia_utilities.isMobile){m.outerHeight(window.innerHeight)}},l=function(e,a){if(!e)return;var d,r,n,c,h,f,u,i,o;e.each(function(){n=t(this);c=n.find(' > .sub-menu > li');if(c.length==0){c=n.find(' > .children > li')};h=n.find('.avia_mega_div > .sub-menu > li.menu-item');var e=n.find('>a'),d=!0;if(e.length){if(e.get(0).hash=='#'||'undefined'==typeof e.attr('href')||e.attr('href')=='#'){if(c.length>0||h.length>0){d=!1}}};r=e.clone(d).attr('style','');if('undefined'==typeof e.attr('href')){r.attr('href','#')};i=t('<li>').append(r);var s=[];if('undefined'!=typeof n.attr('class')){s=n.attr('class').split(/\s+/);t.each(s,function(t,e){if((e.indexOf('menu-item')!=0)&&(e.indexOf('page-item')<0)&&(e.indexOf('page_item')!=0)&&(e.indexOf('dropdown_ul')<0)){i.addClass(e)};return!0})};if('undefined'!=typeof n.attr('id')&&''!=n.attr('id')){i.addClass(n.attr('id'))}
else{t.each(s,function(t,e){if(e.indexOf('page-item-')>=0){i.addClass(e);return!1}})};a.append(i);if(c.length){o=t('<ul class="sub-menu">').appendTo(i);if(p&&(r.get(0).hash!='#'&&r.attr('href')!='#')){i.clone(!0).prependTo(o)};i.addClass('av-width-submenu').find('>a').append('<span class="av-submenu-indicator">');l(c,o)}
else if(h.length){o=t('<ul class="sub-menu">').appendTo(i);if(p&&(r.get(0).hash!='#'&&r.attr('href')!='#')){i.clone(!0).prependTo(o)};h.each(function(e){var h=t(this),a=h.find('> .sub-menu'),n=h.find('> .mega_menu_title'),d=n.find('a').attr('href')||'#',r=a.length>0?a.find('>li'):null,f=!1,s=i.find('>a'),u='';if((r===null)||(r.length==0)){if(d=='#'){u=' style="display: none;"'}};if(e==0)i.addClass('av-width-submenu').find('>a').append('<span class="av-submenu-indicator">');if(n.length&&n.text()!=''){f=!0;if(e>0){var c=i.parents('li').eq(0);if(c.length)i=c;o=t('<ul class="sub-menu">').appendTo(i)};i=t('<li'+u+'>').appendTo(o);o=t('<ul class="sub-menu">').appendTo(i);t('<a href="'+d+'"><span class="avia-bullet"></span><span class="avia-menu-text">'+n.text()+'</span></a>').insertBefore(o);s=i.find('>a');if(p&&(a.length>0)&&(s.length&&s.get(0).hash!='#'&&s.attr('href')!='#')){i.clone(!0).addClass('av-cloned-title').prependTo(o)}};if(f&&(a.length>0))i.addClass('av-width-submenu').find('>a').append('<span class="av-submenu-indicator">');l(r,o)})}});s.trigger('avia_burger_list_created');return d},o,e;t('body').on('mousewheel DOMMouseScroll touchmove','.av-burger-overlay-scroll',function(t){var a=this.offsetHeight,e=this.scrollHeight,i=t.originalEvent.wheelDelta;if(e!=this.clientHeight){if((this.scrollTop>=(e-a)&&i<0)||(this.scrollTop<=0&&i>0)){t.preventDefault()}}
else{t.preventDefault()}});t(document).on('mousewheel DOMMouseScroll touchmove','.av-burger-overlay-bg, .av-burger-overlay-active .av-burger-menu-main',function(t){t.preventDefault()});var a={};t(document).on('touchstart','.av-burger-overlay-scroll',function(t){a.Y=t.originalEvent.touches[0].clientY});t(document).on('touchend','.av-burger-overlay-scroll',function(t){a={}});t(document).on('touchmove','.av-burger-overlay-scroll',function(e){if(!a.Y){a.Y=e.originalEvent.touches[0].clientY};var s=e.originalEvent.touches[0].clientY-a.Y,i=this,o=i.scrollTop,r=i.scrollHeight,l=o+i.offsetHeight,n=s>0?'up':'down';t('body').get(0).scrollTop=a.body;if(o<=0){if(n=='up')e.preventDefault()}
else if(l>=r){if(n=='down')e.preventDefault()}});t(window).on('debouncedresize',function(t){if(e&&e.length){if(!s.is(':visible')){e.filter('.is-active').parents('a').eq(0).trigger('click')}};d()});t('.html_av-overlay-side').on('click','.av-burger-overlay-bg',function(t){t.preventDefault();e.parents('a').eq(0).trigger('click')});t(window).on('avia_smooth_scroll_start',function(){if(e&&e.length){e.filter('.is-active').parents('a').eq(0).trigger('click')}});t('.html_av-submenu-display-hover').on('mouseenter','.av-width-submenu',function(e){t(this).children('ul.sub-menu').slideDown('fast')});t('.html_av-submenu-display-hover').on('mouseleave','.av-width-submenu',function(e){t(this).children('ul.sub-menu').slideUp('fast')});t('.html_av-submenu-display-hover').on('click','.av-width-submenu > a',function(t){t.preventDefault();t.stopImmediatePropagation()});t('.html_av-submenu-display-hover').on('touchstart','.av-width-submenu > a',function(e){var i=t(this);b(i,e)});t('.html_av-submenu-display-click').on('click','.av-width-submenu > a',function(e){var i=t(this);b(i,e)});t('.html_av-submenu-display-click').on('click','.av-burger-overlay a',function(i){var a=window.location.href.match(/(^[^#]*)/)[0],o=t(this).attr('href').match(/(^[^#]*)/)[0];if(o==a){i.preventDefault();i.stopImmediatePropagation();e.parents('a').eq(0).trigger('click');return!1};return!0});function b(t,e){e.preventDefault();e.stopImmediatePropagation();var i=t.parents('li').eq(0);i.toggleClass('av-show-submenu');if(i.is('.av-show-submenu')){i.children('ul.sub-menu').slideDown('fast')}
else{i.children('ul.sub-menu').slideUp('fast')}};(function(){if(x.length)return;var e=t('#header .main_menu').clone(!0),o=e.find('ul.av-main-nav'),a=o.attr('id');if('string'==typeof a&&''!=a.trim()){o.attr('id',a+'-'+T++)};e.find('.menu-item:not(.menu-item-avia-special)').remove();e.insertAfter(y.find('.logo').first());var i=t('#header .social_bookmarks').clone(!0);if(!i.length)i=t('.av-logo-container .social_bookmarks').clone(!0);if(i.length){e.find('.avia-menu').addClass('av_menu_icon_beside');e.append(i)};s=t('.av-burger-menu-main a')}());s.click(function(a){if(r)return;e=t(this).find('.av-hamburger'),r=!0;if(!w){w=!0;e.addClass('av-inserted-main-menu');o=t('<ul>').attr({id:'av-burger-menu-ul',class:''});var p=v.find('> li:not(.menu-item-avia-special)'),f=l(p,o);o.find('.noMobile').remove();o.appendTo(g);h=g.find('#av-burger-menu-ul > li');if(t.fn.avia_smoothscroll){t('a[href*="#"]',i).avia_smoothscroll(i)}};if(e.is('.is-active')){e.removeClass('is-active');n.removeClass('av-burger-overlay-active-delayed');i.animate({opacity:0},function(){i.css({display:'none'});n.removeClass('av-burger-overlay-active');r=!1})}
else{d();var s=c.length?c.outerHeight()+c.position().top:u.outerHeight()+u.position().top;i.appendTo(t(a.target).parents('.avia-menu'));o.css({padding:(s)+'px 0px'});h.removeClass('av-active-burger-items');e.addClass('is-active');n.addClass('av-burger-overlay-active');i.css({display:'block'}).animate({opacity:1},function(){r=!1});setTimeout(function(){n.addClass('av-burger-overlay-active-delayed')},100);h.each(function(e){var i=t(this);setTimeout(function(){i.addClass('av-active-burger-items')},(e+1)*125)})};a.preventDefault()})};t.AviaAjaxSearch=function(e){var i={delay:300,minChars:3,scope:'body'};this.options=t.extend({},i,e);this.scope=t(this.options.scope);this.timer=!1;this.lastVal='';this.bind_events()};t.AviaAjaxSearch.prototype={bind_events:function(){this.scope.on('keyup','#s:not(".av_disable_ajax_search #s")',t.proxy(this.try_search,this));this.scope.on('click','#s.av-results-parked',t.proxy(this.reset,this))},try_search:function(e){var i=t(e.currentTarget).parents('form:eq(0)'),a=i.find('.ajax_search_response');clearTimeout(this.timer);if(e.currentTarget.value.length>=this.options.minChars&&this.lastVal!=t.trim(e.currentTarget.value)){this.timer=setTimeout(t.proxy(this.do_search,this,e),this.options.delay)}
else if(e.currentTarget.value.length==0){this.timer=setTimeout(t.proxy(this.reset,this,e),this.options.delay)};if(e.keyCode===27){this.reset(e)}},reset:function(e){var i=t(e.currentTarget).parents('form:eq(0)'),a=i.find('.ajax_search_response'),o=t(i.attr('data-ajaxcontainer')).find('.ajax_search_response'),n=t(e.currentTarget);if(t(e.currentTarget).hasClass('av-results-parked')){a.show();o.show();t('body > .ajax_search_response').show()}
else{a.remove();o.remove();n.val('');t('body > .ajax_search_response').remove()}},do_search:function(e){var g=this,l=t(e.currentTarget).attr('autocomplete','off'),c=t(e.currentTarget).parents('.av_searchform_wrapper:eq(0)'),p=c.offset(),u=c.outerWidth(),v=c.outerHeight(),i=l.parents('form:eq(0)'),m=i.find('#searchsubmit'),n=i,a=n.find('.ajax_search_response'),d=t('<div class="ajax_load"><span class="ajax_load_inner"></span></div>'),s=i.attr('action'),h=i.serialize();h+='&action=avia_ajax_search';if(!a.length){a=t('<div class="ajax_search_response" style="display:none;"></div>')};if(i.attr('id')=='searchform_element'){a.addClass('av_searchform_element_results')};if(s.indexOf('?')!=-1){s=s.split('?');h+='&'+s[1]};if(i.attr('data-ajaxcontainer')){var r=i.attr('data-ajaxcontainer');if(t(r).length){t(r).find('.ajax_search_response').remove();n=t(r)}};o={};if(i.hasClass('av_results_container_fixed')){t('body').find('.ajax_search_response').remove();n=t('body');var o={top:p.top+v,left:p.left,width:u};a.addClass('main_color');t(window).resize(function(){a.remove();t.proxy(this.reset,this);l.val('')})};if(i.attr('data-results_style')){var f=JSON.parse(i.attr('data-results_style'));o=Object.assign(o,f);if('color' in o){a.addClass('av_has_custom_color')}};a.css(o);if(n.hasClass('avia-section')){a.addClass('container')};a.appendTo(n);if(a.find('.ajax_not_found').length&&e.currentTarget.value.indexOf(this.lastVal)!=-1)return;this.lastVal=e.currentTarget.value;t.ajax({url:avia_framework_globals.ajaxurl,type:'POST',data:h,beforeSend:function(){d.insertAfter(m);i.addClass('ajax_loading_now')},success:function(t){if(t==0)t='';a.html(t).show()},complete:function(){d.remove();i.removeClass('ajax_loading_now')}});t(document).on('click',function(e){if(!t(e.target).closest(i).length){if(t(a).is(':visible')){t(a).hide();l.addClass('av-results-parked')}}})}};t.AviaTooltip=function(e){var i={delay:1500,delayOut:300,delayHide:0,'class':'avia-tooltip',scope:'body',data:'avia-tooltip',attach:'body',event:'mouseenter',position:'top',extraClass:'avia-tooltip-class',permanent:!1,within_screen:!1};this.options=t.extend({},i,e);this.body=t('body');this.scope=t(this.options.scope);this.tooltip=t('<div class="'+this.options['class']+' avia-tt"><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></div>');this.inner=t('<div class="inner_tooltip"></div>').prependTo(this.tooltip);this.open=!1;this.timer=!1;this.active=!1;this.bind_events()};t.AviaTooltip.openTTs=[];t.AviaTooltip.openTT_Elements=[];t.AviaTooltip.prototype={bind_events:function(){var i='.av-permanent-tooltip [data-'+this.options.data+']',e='[data-'+this.options.data+']:not( .av-permanent-tooltip [data-'+this.options.data+'])';this.scope.on('av_permanent_show',i,t.proxy(this.display_tooltip,this));t(i).addClass('av-perma-tooltip').trigger('av_permanent_show');this.scope.on(this.options.event+' mouseleave',e,t.proxy(this.start_countdown,this));if(this.options.event!='click'){this.scope.on('mouseleave',e,t.proxy(this.hide_tooltip,this));this.scope.on('click',e,t.proxy(this.hide_on_click_tooltip,this))}
else{this.body.on('mousedown',t.proxy(this.hide_tooltip,this))}},start_countdown:function(e){clearTimeout(this.timer);var a=this.options.event=='click'?e.target:e.currentTarget,o=t(a);if(e.type==this.options.event){var i=this.options.event=='click'?0:this.open?0:this.options.delay;this.timer=setTimeout(t.proxy(this.display_tooltip,this,e),i)}
else if(e.type=='mouseleave'){if(!o.hasClass('av-close-on-click-tooltip')){this.timer=setTimeout(t.proxy(this.stop_instant_open,this,e),this.options.delayOut)}};e.preventDefault()},reset_countdown:function(t){clearTimeout(this.timer);this.timer=!1},display_tooltip:function(e){var y=this,w=this.options.event=='click'?e.target:e.currentTarget,i=t(w),p=i.data(this.options.data),u=i.data('avia-created-tooltip'),v=i.data('avia-tooltip-class'),d=this.options.attach=='element'?i:this.body,s=this.options.attach=='element'?i.position():i.offset(),c=i.data('avia-tooltip-position'),h=i.data('avia-tooltip-alignment'),m=!1,a=!1,g=!1;p=t.trim(p);if(i.is('.av-perma-tooltip')){s={top:0,left:0};d=i;m=!0};if(p=='')return;if(c==''||typeof c=='undefined')c=this.options.position;if(h==''||typeof h=='undefined')h='center';if(typeof u!='undefined'){a=t.AviaTooltip.openTTs[u]}
else{this.inner.html(p);a=this.tooltip.clone();g=!0;if(this.options.attach=='element'&&m!==!0){a.insertAfter(d)}
else{a.appendTo(d)};if(v!='')a.addClass(v)};if(this.open&&this.active==a){return};if(i.hasClass('av-close-on-click-tooltip')){this.hide_all_tooltips()};this.open=!0;this.active=a;if((a.is(':animated:visible')&&e.type=='click')||i.is('.'+this.options['class'])||i.parents('.'+this.options['class']).length!=0)return;var r={},l={},n='',o='';if(c=='top'|| c=='bottom'){switch(h){case'left':o=s.left;break;case'right':o=s.left+i.outerWidth()-a.outerWidth();break;default:o=(s.left+(i.outerWidth()/2))-(a.outerWidth()/2);break};if(y.options.within_screen){var f=i.offset().left+(i.outerWidth()/2)-(a.outerWidth()/2)+parseInt(a.css('margin-left'),10);if(f<0){o=o-f}}}
else{switch(h){case'top':n=s.top;break;case'bottom':n=s.top+i.outerHeight()-a.outerHeight();break;default:n=(s.top+(i.outerHeight()/2))-(a.outerHeight()/2);break}};switch(c){case'top':n=s.top-a.outerHeight();r={top:n-10,left:o};l={top:n};break;case'bottom':n=s.top+i.outerHeight();r={top:n+10,left:o};l={top:n};break;case'left':o=s.left-a.outerWidth();r={top:n,left:o-10};l={left:o};break;case'right':o=s.left+i.outerWidth();r={top:n,left:o+10};l={left:o};break};r['display']='block';r['opacity']=0;l['opacity']=1;a.css(r).stop().animate(l,200);a.find('input, textarea').focus();if(g){t.AviaTooltip.openTTs.push(a);t.AviaTooltip.openTT_Elements.push(i);i.data('avia-created-tooltip',t.AviaTooltip.openTTs.length-1)}},hide_on_click_tooltip:function(e){if(this.options.event=='click'){return};var i=t(e.currentTarget);if(!i.hasClass('av-close-on-click-tooltip')){return};if(!i.find('a')){e.preventDefault()};var o=i.data('avia-created-tooltip');if('undefined'!=typeof o){var a=t.AviaTooltip.openTTs[o];if('undefined'!=typeof a&&a==this.active){this.hide_all_tooltips()}}},hide_all_tooltips:function(){var i,a,o;for(var e=0;e<t.AviaTooltip.openTTs.length;++e){i=t.AviaTooltip.openTTs[e];o=t.AviaTooltip.openTT_Elements[e];a=o.data('avia-tooltip-position'),this.animate_hide_tooltip(i,a)};this.open=!1;this.active=!1},hide_tooltip:function(e){var i=t(e.currentTarget),a,s,o=i.data('avia-tooltip-position'),n=i.data('avia-tooltip-alignment'),a=!1;if(o==''||typeof o=='undefined')o=this.options.position;if(n==''||typeof n=='undefined')n='center';if(this.options.event=='click'){i=t(e.target);if(!i.is('.'+this.options['class'])&&i.parents('.'+this.options['class']).length==0){if(this.active.length){a=this.active;this.active=!1}}}
else{if(!i.hasClass('av-close-on-click-tooltip')){a=i.data('avia-created-tooltip');a=typeof a!='undefined'?t.AviaTooltip.openTTs[a]:!1}};this.animate_hide_tooltip(a,o)},animate_hide_tooltip:function(t,e){if(t){var i={opacity:0};switch(e){case'top':i['top']=parseInt(t.css('top'),10)-10;break;case'bottom':i['top']=parseInt(t.css('top'),10)+10;break;case'left':i['left']=parseInt(t.css('left'),10)-10;break;case'right':i['left']=parseInt(t.css('left'),10)+10;break};t.animate(i,200,function(){t.css({display:'none'})})}},stop_instant_open:function(t){this.open=!1}}})(jQuery);!function(){'use strict';function t(a){if(!a)throw new Error('No options passed to Waypoint constructor');if(!a.element)throw new Error('No element option passed to Waypoint constructor');if(!a.handler)throw new Error('No handler option passed to Waypoint constructor');this.key='waypoint-'+i,this.options=t.Adapter.extend({},t.defaults,a),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=a.handler,this.axis=this.options.horizontal?'horizontal':'vertical',this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),e[this.key]=this,i+=1};var i=0,e={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete e[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var a=[];for(var n in e)a.push(e[n]);for(var i=0,o=a.length;o>i;i++)a[i][t]()},t.destroyAll=function(){t.invokeAll('destroy')},t.disableAll=function(){t.invokeAll('disable')},t.enableAll=function(){t.invokeAll('enable')},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:'default',horizontal:!1,offset:0},t.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=t}(),function(){'use strict';function n(t){window.setTimeout(t,1e3/60)};function t(t){this.element=t,this.Adapter=e.Adapter,this.adapter=new this.Adapter(t),this.key='waypoint-context-'+a,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,i[t.waypointContextKey]=this,a+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()};var a=0,i={},e=window.Waypoint,o=window.onload;t.prototype.add=function(t){var e=t.options.horizontal?'horizontal':'vertical';this.waypoints[e][t.key]=t,this.refresh()},t.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical);t&&e&&(this.adapter.off('.waypoints'),delete i[this.key])},t.prototype.createThrottledResizeHandler=function(){function i(){t.handleResize(),t.didResize=!1};var t=this;this.adapter.on('resize.waypoints',function(){t.didResize||(t.didResize=!0,e.requestAnimationFrame(i))})},t.prototype.createThrottledScrollHandler=function(){function i(){t.handleScroll(),t.didScroll=!1};var t=this;this.adapter.on('scroll.waypoints',function(){(!t.didScroll||e.isTouch)&&(t.didScroll=!0,e.requestAnimationFrame(i))})},t.prototype.handleResize=function(){e.Context.refreshAll()},t.prototype.handleScroll=function(){var o={},i={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 a in i){var t=i[a],p=t.newScroll>t.oldScroll,d=p?t.forward:t.backward;for(var h in this.waypoints[a]){var e=this.waypoints[a][h],n=t.oldScroll<e.triggerPoint,s=t.newScroll>=e.triggerPoint,l=n&&s,c=!n&&!s;(l||c)&&(e.queueTrigger(d),o[e.group.id]=e.group)}};for(var r in o)o[r].flushTriggers();this.oldScroll={x:i.horizontal.newScroll,y:i.vertical.newScroll}},t.prototype.innerHeight=function(){return this.element==this.element.window?e.viewportHeight():this.adapter.innerHeight()},t.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},t.prototype.innerWidth=function(){return this.element==this.element.window?e.viewportWidth():this.adapter.innerWidth()},t.prototype.destroy=function(){var e=[];for(var i in this.waypoints)for(var o in this.waypoints[i])e.push(this.waypoints[i][o]);for(var t=0,a=e.length;a>t;t++)e[t].destroy()},t.prototype.refresh=function(){var c,o=this.element==this.element.window,v=this.adapter.offset(),a={};this.handleScroll(),c={horizontal:{contextOffset:o?0:v.left,contextScroll:o?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:'right',backward:'left',offsetProp:'left'},vertical:{contextOffset:o?0:v.top,contextScroll:o?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:'down',backward:'up',offsetProp:'top'}};for(var l in c){var e=c[l];for(var g in this.waypoints[l]){var h,n,s,p,d,t=this.waypoints[l][g],i=t.options.offset,f=t.triggerPoint,u=0,r=null==f;t.element!==t.element.window&&(u=t.adapter.offset()[e.offsetProp]),'function'==typeof i?i=i.apply(t):'string'==typeof i&&(i=parseFloat(i),t.options.offset.indexOf('%')>-1&&(i=Math.ceil(e.contextDimension*i/100))),h=e.contextScroll-e.contextOffset,t.triggerPoint=u+h-i,n=f<e.oldScroll,s=t.triggerPoint>=e.oldScroll,p=n&&s,d=!n&&!s,!r&&p?(t.queueTrigger(e.backward),a[t.group.id]=t.group):!r&&d?(t.queueTrigger(e.forward),a[t.group.id]=t.group):r&&e.oldScroll>=t.triggerPoint&&(t.queueTrigger(e.forward),a[t.group.id]=t.group)}};for(var m in a)a[m].flushTriggers();return this},t.findOrCreateByElement=function(e){return t.findByElement(e)||new t(e)},t.refreshAll=function(){for(var t in i)i[t].refresh()},t.findByElement=function(t){return i[t.waypointContextKey]},window.onload=function(){o&&o(),t.refreshAll()},e.requestAnimationFrame=function(t){var e=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||n;e.call(window,t)},e.Context=t}(),function(){'use strict';function i(t,e){return t.triggerPoint-e.triggerPoint};function o(t,e){return e.triggerPoint-t.triggerPoint};function t(t){this.name=t.name,this.axis=t.axis,this.id=this.name+'-'+this.axis,this.waypoints=[],this.clearTriggerQueues(),a[this.axis][this.name]=this};var a={vertical:{},horizontal:{}},e=window.Waypoint;t.prototype.add=function(t){this.waypoints.push(t)},t.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},t.prototype.flushTriggers=function(){for(var a in this.triggerQueues){var e=this.triggerQueues[a],r='up'===a||'left'===a;e.sort(r?o:i);for(var t=0,s=e.length;s>t;t+=1){var n=e[t];(n.options.continuous||t===e.length-1)&&n.trigger([a])}};this.clearTriggerQueues()},t.prototype.next=function(t){this.waypoints.sort(i);var a=e.Adapter.inArray(t,this.waypoints),o=a===this.waypoints.length-1;return o?null:this.waypoints[a+1]},t.prototype.previous=function(t){this.waypoints.sort(i);var a=e.Adapter.inArray(t,this.waypoints);return a?this.waypoints[a-1]:null},t.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},t.prototype.remove=function(t){var i=e.Adapter.inArray(t,this.waypoints);i>-1&&this.waypoints.splice(i,1)},t.prototype.first=function(){return this.waypoints[0]},t.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},t.findOrCreate=function(e){return a[e.axis][e.name]||new t(e)},e.Group=t}(),function(){'use strict';function e(e){this.$element=t(e)};var t=window.jQuery,i=window.Waypoint;t.each(['innerHeight','innerWidth','off','offset','on','outerHeight','outerWidth','scrollLeft','scrollTop'],function(t,i){e.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),t.each(['extend','inArray','isEmptyObject'],function(i,a){e[a]=t[a]}),i.adapters.push({name:'jquery',Adapter:e}),i.Adapter=e}(),function(){'use strict';function t(t){return function(){var a=[],i=arguments[0];return t.isFunction(arguments[0])&&(i=t.extend({},arguments[1]),i.handler=arguments[0]),this.each(function(){var o=t.extend({},i,{element:this});'string'==typeof o.context&&(o.context=t(this).closest(o.context)[0]),a.push(new e(o))}),a}};var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}();(function(){var i=0,e=['ms','moz','webkit','o'];for(var t=0;t<e.length&&!window.requestAnimationFrame;++t){window.requestAnimationFrame=window[e[t]+'RequestAnimationFrame'];window.cancelAnimationFrame=window[e[t]+'CancelAnimationFrame']||window[e[t]+'CancelRequestAnimationFrame']};if(!window.requestAnimationFrame)window.requestAnimationFrame=function(t,e){var a=new Date().getTime(),o=Math.max(0,16-(a-i)),n=window.setTimeout(function(){t(a+o)},o);i=a+o;return n};if(!window.cancelAnimationFrame)window.cancelAnimationFrame=function(t){clearTimeout(t)}}());jQuery.expr[':'].regex=function(t,e,a){var i=a[3].split(','),o=/^(data|css):/,n={method:i[0].match(o)?i[0].split(':')[0]:'attr',property:i.shift().replace(o,'')},s='ig',r=new RegExp(i.join('').replace(/^\s+|\s+$/g,''),s);return r.test(jQuery(t)[n.method](n.property))};(function(i){"use strict";i(document).ready(function(){i.avia_utilities=i.avia_utilities||{};if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&"ontouchstart" in document.documentElement){i.avia_utilities.isMobile=!0}
else{i.avia_utilities.isMobile=!1};if(i.fn.avia_mobile_fixed)i(".avia-bg-style-fixed").avia_mobile_fixed();if(i.fn.avia_parallax)i(".av-parallax").avia_parallax();if(i.fn.avia_browser_height)i(".av-minimum-height, .avia-fullscreen-slider, .av-cell-min-height").avia_browser_height();if(i.fn.avia_video_section)i(".av-section-with-video-bg").avia_video_section();new i.AviaTooltip({"class":"avia-tooltip",data:"avia-tooltip",delay:0,scope:"body"});new i.AviaTooltip({"class":"avia-tooltip avia-icon-tooltip",data:"avia-icon-tooltip",delay:0,scope:"body"});i.avia_utilities.activate_shortcode_scripts();if(i.fn.layer_slider_height_helper)i(".avia-layerslider").layer_slider_height_helper();if(i.fn.avia_portfolio_preview){i(".grid-links-ajax").avia_portfolio_preview()};if(i.fn.avia_masonry)i(".av-masonry").avia_masonry();if(i.fn.aviaccordion)i(".aviaccordion").aviaccordion();if(i.fn.avia_textrotator)i(".av-rotator-container").avia_textrotator();if(i.fn.avia_sc_tab_section){i(".av-tab-section-container").avia_sc_tab_section()};if(i.fn.avia_hor_gallery){i(".av-horizontal-gallery").avia_hor_gallery()};if(i.fn.avia_link_column){i(".avia-link-column").avia_link_column()};if(i.fn.avia_delayed_animation_in_container){i(".av-animation-delay-container").avia_delayed_animation_in_container()}});i.avia_utilities=i.avia_utilities||{};i.avia_utilities.activate_shortcode_scripts=function(e){if(typeof e=="undefined"){e="body"};if(i.fn.avia_ajax_form){i(".avia_ajax_form:not( .avia-disable-default-ajax )",e).avia_ajax_form()};n(e);if(i.fn.aviaVideoApi){i(".avia-slideshow iframe[src*=\"youtube.com\"], .av_youtube_frame, .av_vimeo_frame, .avia-slideshow video").aviaVideoApi({},"li")};if(i.fn.avia_sc_toggle){i(".togglecontainer",e).avia_sc_toggle()};if(i.fn.avia_sc_tabs){i(".top_tab",e).avia_sc_tabs();i(".sidebar_tab",e).avia_sc_tabs({sidebar:!0})};if(i.fn.avia_sc_gallery){i(".avia-gallery",e).avia_sc_gallery()};if(i.fn.avia_sc_animated_number){i(".avia-animated-number",e).avia_sc_animated_number()};if(i.fn.avia_sc_animation_delayed){i(".av_font_icon",e).avia_sc_animation_delayed({delay:100});i(".avia-image-container",e).avia_sc_animation_delayed({delay:100});i(".av-hotspot-image-container",e).avia_sc_animation_delayed({delay:100});i(".av-animated-generic",e).avia_sc_animation_delayed({delay:100})};if(i.fn.avia_sc_iconlist){i(".avia-icon-list.av-iconlist-big.avia-iconlist-animate",e).avia_sc_iconlist()};if(i.fn.avia_sc_progressbar){i(".avia-progress-bar-container",e).avia_sc_progressbar()};if(i.fn.avia_sc_testimonial){i(".avia-testimonial-wrapper",e).avia_sc_testimonial()};if(i.fn.aviaFullscreenSlider){i(".avia-slideshow.av_fullscreen",e).aviaFullscreenSlider()};if(i.fn.aviaSlider){i(".avia-slideshow:not(.av_fullscreen)",e).aviaSlider();i(".avia-content-slider-active",e).aviaSlider({wrapElement:".avia-content-slider-inner",slideElement:".slide-entry-wrap",fullfade:!0});i(".avia-slider-testimonials",e).aviaSlider({wrapElement:".avia-testimonial-row",slideElement:".avia-testimonial",fullfade:!0})};if(i.fn.aviaMagazine){i(".av-magazine-tabs-active",e).aviaMagazine()};if(i.fn.aviaHotspots){i(".av-hotspot-image-container",e).aviaHotspots()};if(i.fn.aviaCountdown){i(".av-countdown-timer",e).aviaCountdown()};if(i.fn.aviaPlayer){i(".av-player",e).aviaPlayer()}};function n(e){if(i.fn.avia_waypoints){if(typeof e=="undefined"){e="body"};i(".avia_animate_when_visible",e).avia_waypoints();i(".avia_animate_when_almost_visible",e).avia_waypoints({offset:"80%"});if(e=="body")e=".avia_desktop body";i(".av-animated-generic",e).avia_waypoints({offset:"95%"})}};i.AviaParallaxElement=function(e,a){this.$el=i(a).addClass("active-parallax");this.$win=i(window);this.$body=i("body");this.$parent=this.$el.parent();this.property={};this.isMobile=i.avia_utilities.isMobile;this.ratio=this.$el.data("avia-parallax-ratio")||0.5;this.transform=document.documentElement.className.indexOf("avia_transform")!==-1?!0:!1;this.transform3d=document.documentElement.className.indexOf("avia_transform3d")!==-1?!0:!1;this.ticking=!1;if(i.avia_utilities.supported.transition===undefined){i.avia_utilities.supported.transition=i.avia_utilities.supports("transition")};this._init(e)};i.AviaParallaxElement.prototype={_init:function(e){var a=this;if(a.isMobile){return};setTimeout(function(){a._fetch_properties()},30);this.$win.on("debouncedresize av-height-change",i.proxy(a._fetch_properties,a));this.$body.on("av_resize_finished",i.proxy(a._fetch_properties,a));setTimeout(function(){a.$win.on("scroll",i.proxy(a._on_scroll,a))},100)},_fetch_properties:function(){this.property.offset=this.$parent.offset().top;this.property.wh=this.$win.height();this.property.height=this.$parent.outerHeight();this.$el.height(Math.ceil((this.property.wh*this.ratio)+this.property.height));this._parallax_scroll()},_on_scroll:function(e){var a=this;if(!a.ticking){a.ticking=!0;window.requestAnimationFrame(i.proxy(a._parallax_scroll,a))}},_parallax_scroll:function(e){var n=this.$win.scrollTop(),o=n+this.property.wh,a="0",t={};if(this.property.offset<o&&n<=this.property.offset+this.property.height){a=Math.ceil((o-this.property.offset)*this.ratio);if(this.transform3d){t[i.avia_utilities.supported.transition+"transform"]="translate3d(0px,"+a+"px, 0px)"}
else if(this.transform){t[i.avia_utilities.supported.transition+"transform"]="translate(0px,"+a+"px)"}
else{t["background-position"]="0px "+a+"px"};this.$el.css(t)};this.ticking=!1}};i.fn.avia_parallax=function(e){return this.each(function(){var a=i.data(this,"aviaParallax");if(!a){a=i.data(this,"aviaParallax",new i.AviaParallaxElement(e,this))}})};i.fn.avia_mobile_fixed=function(e){var a=i.avia_utilities.isMobile;if(!a)return;return this.each(function(){var a=i(this).addClass("av-parallax-section"),n=a.attr("style"),e=a.data("section-bg-repeat"),t="";if(e=="stretch"||e=="no-repeat"){e=" avia-full-stretch"}
else{e=""};t="<div class='av-parallax "+e+"' data-avia-parallax-ratio='0.0' style = '"+n+"' ></div>";a.prepend(t);a.attr("style","")})};i.fn.avia_sc_animation_delayed=function(e){var a=0,n=e.delay||50,t=10,o=setTimeout(function(){t=20},500);return this.each(function(){var e=i(this);e.on("avia_start_animation",function(){var e=i(this);if(a<t)a++;setTimeout(function(){e.addClass("avia_start_delayed_animation");if(a>0)a--},(a*n))})})};i.fn.avia_delayed_animation_in_container=function(e){return this.each(function(){var e=i(this);e.on("avia_start_animation_if_current_slide_is_active",function(){var e=i(this),a=e.find(".avia_start_animation_when_active");a.addClass("avia_start_animation").trigger("avia_start_animation")});e.on("avia_remove_animation",function(){var e=i(this),a=e.find(".avia_start_animation_when_active, .avia_start_animation");a.removeClass("avia_start_animation avia_start_delayed_animation")})})};i.fn.avia_browser_height=function(){if(!this.length)return;var e=i(window),s=i("html"),r=i("#wpadminbar, #header.av_header_top:not(.html_header_transparency #header), #main>.title_container"),a=i("<style type='text/css' id='av-browser-height'></style>").appendTo("head:first"),n=i(".html_header_sidebar #top #header_main"),c=i(".html_header_sidebar .avia-fullscreen-slider.avia-builder-el-0.avia-builder-el-no-sibling").addClass("av-solo-full"),t=[25,50,75],o=function(){var o="",s=e.height(),c=e.width(),l=s,v=(s/9)*16,u=(c/16)*9,d=0,p=[];if(n.length)d=n.height();r.each(function(){l-=this.offsetHeight-1});var f=(l/9)*16;o+=".avia-section.av-minimum-height .container{opacity: 1; }\n";o+=".av-minimum-height-100 .container, .avia-fullscreen-slider .avia-slideshow, #top.avia-blank .av-minimum-height-100 .container, .av-cell-min-height-100 > .flex_cell{height:"+s+"px;}\n";i.each(t,function(i,e){var a=Math.round(s*(e/100.0));o+=".av-minimum-height-"+e+" .container, .av-cell-min-height-"+e+" > .flex_cell	{height:"+a+"px;}\n"});o+=".avia-builder-el-0.av-minimum-height-100 .container, .avia-builder-el-0.avia-fullscreen-slider .avia-slideshow, .avia-builder-el-0.av-cell-min-height-100 > .flex_cell{height:"+l+"px;}\n";o+="#top .av-solo-full .avia-slideshow {min-height:"+d+"px;}\n";if(c/s<16/9){o+="#top .av-element-cover iframe, #top .av-element-cover embed, #top .av-element-cover object, #top .av-element-cover video{width:"+v+"px; left: -"+(v-c)/2+"px;}\n"}
else{o+="#top .av-element-cover iframe, #top .av-element-cover embed, #top .av-element-cover object, #top .av-element-cover video{height:"+u+"px; top: -"+(u-s)/2+"px;}\n"};if(c/l<16/9){o+="#top .avia-builder-el-0 .av-element-cover iframe, #top .avia-builder-el-0 .av-element-cover embed, #top .avia-builder-el-0 .av-element-cover object, #top .avia-builder-el-0 .av-element-cover video{width:"+f+"px; left: -"+(f-c)/2+"px;}\n"}
else{o+="#top .avia-builder-el-0 .av-element-cover iframe, #top .avia-builder-el-0 .av-element-cover embed, #top .avia-builder-el-0 .av-element-cover object, #top .avia-builder-el-0 .av-element-cover video{height:"+u+"px; top: -"+(u-l)/2+"px;}\n"};try{a.text(o)}catch(h){a.remove();a=i("<style type='text/css' id='av-browser-height'>"+o+"</style>").appendTo("head:first")};setTimeout(function(){e.trigger("av-height-change")},100)};this.each(function(e){var a=i(this).data("av_minimum_height_pc");if("number"!=typeof a){return this};a=parseInt(a);if((-1==i.inArray(a,t))&&(a!=100)){t.push(a)};return this});e.on("debouncedresize",o);o()};i.fn.avia_video_section=function(){if(!this.length)return;var n=this.length,e="",o=i(window),a=i("<style type='text/css' id='av-section-height'></style>").appendTo("head:first"),t=function(t,o){if(o===0){e=""};var s="",r="#"+t.attr("id"),c=t.height(),l=t.width(),v=t.data("sectionVideoRatio").split(":"),u=v[0],f=v[1],d=(c/f)*u,h=(l/u)*f;if(l/c<u/f){s+="#top "+r+" .av-section-video-bg iframe, #top "+r+" .av-section-video-bg embed, #top "+r+" .av-section-video-bg object, #top "+r+" .av-section-video-bg video{width:"+d+"px; left: -"+(d-l)/2+"px;}\n"}
else{s+="#top "+r+" .av-section-video-bg iframe, #top "+r+" .av-section-video-bg embed, #top "+r+" .av-section-video-bg object, #top "+r+" .av-section-video-bg video{height:"+h+"px; top: -"+(h-c)/2+"px;}\n"};e=e+s;if(n==o+1){try{a.text(e)}catch(p){a.remove();a=i("<style type='text/css' id='av-section-height'>"+e+"</style>").appendTo("head:first")}}};return this.each(function(e){var a=i(this);o.on("debouncedresize",function(){t(a,e)});t(a,e)})};i.fn.avia_link_column=function(){return this.each(function(){i(this).on("click",function(e){if("undefined"!==typeof e.target&&"undefined"!==typeof e.target.href){return};var t=i(this),a=t.data("link-column-url"),o=t.data("link-column-target"),s=window.location.hostname+window.location.pathname;if("undefined"===typeof a||"string"!==typeof a){return};if("undefined"!==typeof o||"_blank"==o){var n=document.createElement("a");n.href=a;n.target="_blank";n.rel="noopener noreferrer";n.click();return!1}
else{if(t.hasClass("av-cell-link")||t.hasClass("av-column-link")){var r=t.hasClass("av-cell-link")?t.prev("a.av-screen-reader-only").first():t.find("a.av-screen-reader-only").first();a=a.trim();if((0==a.indexOf("#"))||((a.indexOf(s)>=0)&&(a.indexOf("#")>0))){r.trigger("click");return}};window.location.href=a};e.preventDefault();return})})};i.fn.avia_waypoints=function(e){if(!i("html").is(".avia_transform"))return;var a={offset:"bottom-in-view",triggerOnce:!0},t=i.extend({},a,e),n=i.avia_utilities.isMobile;return this.each(function(){var e=i(this);setTimeout(function(){if(n){e.addClass("avia_start_animation").trigger("avia_start_animation")}
else{e.waypoint(function(e){var t=i(this.element),a=t.parents(".av-animation-delay-container:eq(0)");if(a.length){t.addClass("avia_start_animation_when_active").trigger("avia_start_animation_when_active")};if(!a.length||(a.length&&a.is(".__av_init_open"))){t.addClass("avia_start_animation").trigger("avia_start_animation")}},t)}},100)})};var t=i.event,e,a;e=t.special.debouncedresize={setup:function(){i(this).on("resize",e.handler)},teardown:function(){i(this).off("resize",e.handler)},handler:function(i,n){var r=this,s=arguments,o=function(){i.type="debouncedresize";t.dispatch.apply(r,s)};if(a){clearTimeout(a)};n?o():a=setTimeout(o,e.threshold)},threshold:150};i.easing["jswing"]=i.easing["swing"];i.extend(i.easing,{def:"easeOutQuad",swing:function(e,a,t,n,o){return i.easing[i.easing.def](e,a,t,n,o)},easeInQuad:function(i,e,a,t,n){return t*(e/=n)*e+a},easeOutQuad:function(i,e,a,t,n){return-t*(e/=n)*(e-2)+a},easeInOutQuad:function(i,e,a,t,n){if((e/=n/2)<1)return t/2*e*e+a;return-t/2*((--e)*(e-2)-1)+a},easeInCubic:function(i,e,a,t,n){return t*(e/=n)*e*e+a},easeOutCubic:function(i,e,a,t,n){return t*((e=e/n-1)*e*e+1)+a},easeInOutCubic:function(i,e,a,t,n){if((e/=n/2)<1)return t/2*e*e*e+a;return t/2*((e-=2)*e*e+2)+a},easeInQuart:function(i,e,a,t,n){return t*(e/=n)*e*e*e+a},easeOutQuart:function(i,e,a,t,n){return-t*((e=e/n-1)*e*e*e-1)+a},easeInOutQuart:function(i,e,a,t,n){if((e/=n/2)<1)return t/2*e*e*e*e+a;return-t/2*((e-=2)*e*e*e-2)+a},easeInQuint:function(i,e,a,t,n){return t*(e/=n)*e*e*e*e+a},easeOutQuint:function(i,e,a,t,n){return t*((e=e/n-1)*e*e*e*e+1)+a},easeInOutQuint:function(i,e,a,t,n){if((e/=n/2)<1)return t/2*e*e*e*e*e+a;return t/2*((e-=2)*e*e*e*e+2)+a},easeInSine:function(i,e,t,a,n){return-a*Math.cos(e/n*(Math.PI/2))+a+t},easeOutSine:function(i,e,a,t,n){return t*Math.sin(e/n*(Math.PI/2))+a},easeInOutSine:function(i,e,a,t,n){return-t/2*(Math.cos(Math.PI*e/n)-1)+a},easeInExpo:function(i,e,a,t,n){return(e==0)?a:t*Math.pow(2,10*(e/n-1))+a},easeOutExpo:function(i,e,a,t,n){return(e==n)?a+t:t*(-Math.pow(2,-10*e/n)+1)+a},easeInOutExpo:function(i,e,a,t,n){if(e==0)return a;if(e==n)return a+t;if((e/=n/2)<1)return t/2*Math.pow(2,10*(e-1))+a;return t/2*(-Math.pow(2,-10*--e)+2)+a},easeInCirc:function(i,e,a,t,n){return-t*(Math.sqrt(1-(e/=n)*e)-1)+a},easeOutCirc:function(i,e,a,t,n){return t*Math.sqrt(1-(e=e/n-1)*e)+a},easeInOutCirc:function(i,e,a,t,n){if((e/=n/2)<1)return-t/2*(Math.sqrt(1-e*e)-1)+a;return t/2*(Math.sqrt(1-(e-=2)*e)+1)+a},easeInElastic:function(i,e,t,a,n){var s=1.70158,o=0,r=a;if(e==0)return t;if((e/=n)==1)return t+a;if(!o)o=n*.3;if(r<Math.abs(a)){r=a;var s=o/4}
else var s=o/(2*Math.PI)*Math.asin(a/r);return-(r*Math.pow(2,10*(e-=1))*Math.sin((e*n-s)*(2*Math.PI)/o))+t},easeOutElastic:function(i,e,t,a,n){var s=1.70158,o=0,r=a;if(e==0)return t;if((e/=n)==1)return t+a;if(!o)o=n*.3;if(r<Math.abs(a)){r=a;var s=o/4}
else var s=o/(2*Math.PI)*Math.asin(a/r);return r*Math.pow(2,-10*e)*Math.sin((e*n-s)*(2*Math.PI)/o)+a+t},easeInOutElastic:function(i,e,t,a,n){var s=1.70158,o=0,r=a;if(e==0)return t;if((e/=n/2)==2)return t+a;if(!o)o=n*(.3*1.5);if(r<Math.abs(a)){r=a;var s=o/4}
else var s=o/(2*Math.PI)*Math.asin(a/r);if(e<1)return-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e*n-s)*(2*Math.PI)/o))+t;return r*Math.pow(2,-10*(e-=1))*Math.sin((e*n-s)*(2*Math.PI)/o)*.5+a+t},easeInBack:function(i,e,a,t,n,o){if(o==undefined)o=1.70158;return t*(e/=n)*e*((o+1)*e-o)+a},easeOutBack:function(i,e,a,t,n,o){if(o==undefined)o=1.70158;return t*((e=e/n-1)*e*((o+1)*e+o)+1)+a},easeInOutBack:function(i,e,a,t,n,o){if(o==undefined)o=1.70158;if((e/=n/2)<1)return t/2*(e*e*(((o*=(1.525))+1)*e-o))+a;return t/2*((e-=2)*e*(((o*=(1.525))+1)*e+o)+2)+a},easeInBounce:function(i,e,t,a,n){return a-jQuery.easing.easeOutBounce(i,n-e,0,a,n)+t},easeOutBounce:function(i,e,a,t,n){if((e/=n)<(1/2.75)){return t*(7.5625*e*e)+a}
else if(e<(2/2.75)){return t*(7.5625*(e-=(1.5/2.75))*e+.75)+a}
else if(e<(2.5/2.75)){return t*(7.5625*(e-=(2.25/2.75))*e+.9375)+a}
else{return t*(7.5625*(e-=(2.625/2.75))*e+.984375)+a}},easeInOutBounce:function(i,e,n,a,t){if(e<t/2)return jQuery.easing.easeInBounce(i,e*2,0,a,t)*.5+n;return jQuery.easing.easeOutBounce(i,e*2-t,0,a,t)*.5+a*.5+n}})})(jQuery);(function(i){"use strict";i.avia_utilities=i.avia_utilities||{};i.avia_utilities.loading=function(e,a){var t={active:!1,show:function(){if(t.active===!1){t.active=!0;t.loading_item.css({display:"block",opacity:0})};t.loading_item.stop().animate({opacity:1})},hide:function(){if(typeof a==="undefined"){a=600};t.loading_item.stop().delay(a).animate({opacity:0},function(){t.loading_item.css({display:"none"});t.active=!1})},attach:function(){if(typeof e==="undefined"){e="body"};t.loading_item=i("<div class=\"avia_loading_icon\"><div class=\"av-siteloader\"></div></div>").css({display:"none"}).appendTo(e)}};t.attach();return t};i.avia_utilities.playpause=function(e,a){var t={active:!1,to1:"",to2:"",set:function(i){t.loading_item.removeClass("av-play av-pause");t.to1=setTimeout(function(){t.loading_item.addClass("av-"+i)},10);t.to2=setTimeout(function(){t.loading_item.removeClass("av-"+i)},1500)},attach:function(){if(typeof e==="undefined"){e="body"};t.loading_item=i("<div class=\"avia_playpause_icon\"></div>").css({display:"none"}).appendTo(e)}};t.attach();return t};i.avia_utilities.preload=function(e){new i.AviaPreloader(e)};i.AviaPreloader=function(e){this.win=i(window);this.defaults={container:"body",maxLoops:10,trigger_single:!0,single_callback:function(){},global_callback:function(){}};this.options=i.extend({},this.defaults,e);this.preload_images=0;this.load_images()};i.AviaPreloader.prototype={load_images:function(){var e=this;if(typeof e.options.container==="string"){e.options.container=i(e.options.container)};e.options.container.each(function(){var a=i(this);a.images=a.find("img");a.allImages=a.images;e.preload_images+=a.images.length;setTimeout(function(){e.checkImage(a)},10)})},checkImage:function(i){var e=this;i.images.each(function(){if(this.complete===!0){i.images=i.images.not(this);e.preload_images-=1}});if(i.images.length&&e.options.maxLoops>=0){e.options.maxLoops-=1;setTimeout(function(){e.checkImage(i)},500)}
else{e.preload_images=e.preload_images-i.images.length;e.trigger_loaded(i)}},trigger_loaded:function(i){var e=this;if(e.options.trigger_single!==!1){e.win.trigger("avia_images_loaded_single",[i]);e.options.single_callback.call(i)};if(e.preload_images===0){e.win.trigger("avia_images_loaded");e.options.global_callback.call()}}};i.avia_utilities.css_easings={linear:"linear",swing:"ease-in-out",bounce:"cubic-bezier(0.0, 0.35, .5, 1.3)",easeInQuad:"cubic-bezier(0.550, 0.085, 0.680, 0.530)",easeInCubic:"cubic-bezier(0.550, 0.055, 0.675, 0.190)",easeInQuart:"cubic-bezier(0.895, 0.030, 0.685, 0.220)",easeInQuint:"cubic-bezier(0.755, 0.050, 0.855, 0.060)",easeInSine:"cubic-bezier(0.470, 0.000, 0.745, 0.715)",easeInExpo:"cubic-bezier(0.950, 0.050, 0.795, 0.035)",easeInCirc:"cubic-bezier(0.600, 0.040, 0.980, 0.335)",easeInBack:"cubic-bezier(0.600, -0.280, 0.735, 0.04)",easeOutQuad:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",easeOutCubic:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",easeOutQuart:"cubic-bezier(0.165, 0.840, 0.440, 1.000)",easeOutQuint:"cubic-bezier(0.230, 1.000, 0.320, 1.000)",easeOutSine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)",easeOutExpo:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",easeOutCirc:"cubic-bezier(0.075, 0.820, 0.165, 1.000)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.320, 1.275)",easeInOutQuad:"cubic-bezier(0.455, 0.030, 0.515, 0.955)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1.000)",easeInOutQuart:"cubic-bezier(0.770, 0.000, 0.175, 1.000)",easeInOutQuint:"cubic-bezier(0.860, 0.000, 0.070, 1.000)",easeInOutSine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)",easeInOutExpo:"cubic-bezier(1.000, 0.000, 0.000, 1.000)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.150, 0.860)",easeInOutBack:"cubic-bezier(0.680, -0.550, 0.265, 1.55)",easeInOutBounce:"cubic-bezier(0.580, -0.365, 0.490, 1.365)",easeOutBounce:"cubic-bezier(0.760, 0.085, 0.490, 1.365)"};i.avia_utilities.supported={};i.avia_utilities.supports=(function(){var e=document.createElement("div"),i=["Khtml","Ms","Moz","Webkit"];return function(a,t){if(e.style[a]!==undefined){return""};if(t!==undefined){i=t};a=a.replace(/^[a-z]/,function(i){return i.toUpperCase()});var n=i.length;while(n--){if(e.style[i[n]+a]!==undefined){return"-"+i[n].toLowerCase()+"-"}};return!1}}());i.fn.avia_animate=function(e,a,t,n){if(typeof a==="function"){n=a;a=!1};if(typeof t==="function"){n=t;t=!1};if(typeof a==="string"){t=a;a=!1};if(n===undefined||n===!1){n=function(){}};if(t===undefined||t===!1){t="easeInQuad"};if(a===undefined||a===!1){a=400};if(i.avia_utilities.supported.transition===undefined){i.avia_utilities.supported.transition=i.avia_utilities.supports("transition")};if(i.avia_utilities.supported.transition!==!1){var c=i.avia_utilities.supported.transition+"transition",r={},l={},u=document.body.style,o=(u.WebkitTransition!==undefined)?"webkitTransitionEnd":(u.OTransition!==undefined)?"oTransitionEnd":"transitionend";t=i.avia_utilities.css_easings[t];r[c]="all "+(a/1000)+"s "+t;o=o+".avia_animate";for(var s in e){if(e.hasOwnProperty(s)){l[s]=e[s]}};e=l;this.each(function(){var t=i(this),f=!1,s,u;for(s in e){if(e.hasOwnProperty(s)){u=t.css(s);if(e[s]!=u&&e[s]!=u.replace(/px|%/g,"")){f=!0;break}}};if(f){if(!(i.avia_utilities.supported.transition+"transform" in e)){e[i.avia_utilities.supported.transition+"transform"]="translateZ(0)"};var l=!1;t.on(o,function(i){if(i.target!=i.currentTarget)return!1;if(l==!0)return!1;l=!0;r[c]="none";t.off(o);t.css(r);setTimeout(function(){n.call(t)})});setTimeout(function(){if(!l&&!avia_is_mobile&&i("html").is(".avia-safari")){t.trigger(o);i.avia_utilities.log("Safari Fallback "+o+" trigger")}},a+100);setTimeout(function(){t.css(r)},10);setTimeout(function(){t.css(e)},20)}
else{setTimeout(function(){n.call(t)})}})}
else{this.animate(e,a,t,n)};return this}})(jQuery);(function(i){"use strict";i.fn.avia_keyboard_controls=function(e){var t={37:".prev-slide",39:".next-slide"},a={mousebind:function(i){i.hover(function(){i.mouseover=!0},function(){i.mouseover=!1})},keybind:function(e){i(document).keydown(function(i){if(e.mouseover&&typeof e.options[i.keyCode]!=="undefined"){var a;if(typeof e.options[i.keyCode]==="string"){a=e.find(e.options[i.keyCode])}
else{a=e.options[i.keyCode]};if(a.length){a.trigger("click",["keypress"]);return!1}}})}};return this.each(function(){var n=i(this);n.options=i.extend({},t,e);n.mouseover=!1;a.mousebind(n);a.keybind(n)})};i.fn.avia_swipe_trigger=function(e){var o=i(window),a=i.avia_utilities.isMobile,t={prev:".prev-slide",next:".next-slide",event:{prev:"click",next:"click"}},n={activate_touch_control:function(i){var e,a,t;i.touchPos={};i.hasMoved=!1;i.on("touchstart",function(e){i.touchPos.X=e.originalEvent.touches[0].clientX;i.touchPos.Y=e.originalEvent.touches[0].clientY});i.on("touchend",function(e){i.touchPos={};if(i.hasMoved){e.preventDefault()};i.hasMoved=!1});i.on("touchmove",function(n){if(!i.touchPos.X){i.touchPos.X=n.originalEvent.touches[0].clientX;i.touchPos.Y=n.originalEvent.touches[0].clientY}
else{a=n.originalEvent.touches[0].clientX-i.touchPos.X;t=n.originalEvent.touches[0].clientY-i.touchPos.Y;if(Math.abs(a)>Math.abs(t)){n.preventDefault();if(i.touchPos!==n.originalEvent.touches[0].clientX){if(Math.abs(a)>50){e=a>0?"prev":"next";if(typeof i.options[e]==="string"){i.find(i.options[e]).trigger(i.options.event[e],["swipe"])}
else{i.options[e].trigger(i.options.event[e],["swipe"])};i.hasMoved=!0;i.touchPos={};return!1}}}}})}};return this.each(function(){if(a){var o=i(this);o.options=i.extend({},t,e);n.activate_touch_control(o)}})}}(jQuery));(function(a){a.fn.avia_ajax_form=function(e){var t={sendPath:'send.php',responseContainer:'.ajaxresponse'};var r=a.extend(t,e);return this.each(function(){var t=a(this),i=!1,e={formElements:t.find('textarea, select, input[type=text], input[type=checkbox], input[type=hidden]'),validationError:!1,button:t.find('input:submit'),dataObj:{}},s=t.next(r.responseContainer+':eq(0)');e.button.on('click',n);if(a.avia_utilities.isMobile){e.formElements.each(function(e){var r=a(this),t=r.hasClass('is_email');if(t)r.attr('type','email')})};function n(r){e.validationError=!1;e.datastring='ajax=true';e.formElements=t.find('textarea, select, input[type=text], input[type=checkbox], input[type=hidden], input[type=email]');e.formElements.each(function(l){var o=a(this),r=o.parent(),s=o.val(),v=o.attr('name'),i=o.attr('class'),n=!0;if(o.is(':checkbox')){if(o.is(':checked')){s=!0}
else{s=''}};e.dataObj[v]=encodeURIComponent(s);if(i&&i.match(/is_empty/)){if(s==''||s==null){r.removeClass('valid error ajax_alert').addClass('error');e.validationError=!0}
else{r.removeClass('valid error ajax_alert').addClass('valid')};n=!1};if(i&&i.match(/is_email/)){if(!s.match(/^[\w|\.|\-]+@\w[\w|\.|\-]*\.[a-zA-Z]{2,20}$/)){r.removeClass('valid error ajax_alert').addClass('error');e.validationError=!0}
else{r.removeClass('valid error ajax_alert').addClass('valid')};n=!1};if(i&&i.match(/is_ext_email/)){if(!s.match(/^[\w|\.|\-|ÄÖÜäöü]+@\w[\w|\.|\-|ÄÖÜäöü]*\.[a-zA-Z]{2,20}$/)){r.removeClass('valid error ajax_alert').addClass('error');e.validationError=!0}
else{r.removeClass('valid error ajax_alert').addClass('valid')};n=!1};if(i&&i.match(/is_phone/)){if(!s.match(/^(\d|\s|\-|\/|\(|\)|\[|\]|e|x|t|ension|\.|\+|\_|\,|\:|\;){3,}$/)){r.removeClass('valid error ajax_alert').addClass('error');e.validationError=!0}
else{r.removeClass('valid error ajax_alert').addClass('valid')};n=!1};if(i&&i.match(/is_number/)){if(!s.match(/^-?\s*(0|[1-9]\d*)([\.,]\d+)?$/)){r.removeClass('valid error ajax_alert').addClass('error');e.validationError=!0}
else{r.removeClass('valid error ajax_alert').addClass('valid')};n=!1};if(i&&i.match(/is_positiv_number/)){if(!(a.isNumeric(s))||s==''||s<0){r.removeClass('valid error ajax_alert').addClass('error');e.validationError=!0}
else{r.removeClass('valid error ajax_alert').addClass('valid')};n=!1};if(i&&i.match(/captcha/)&&!i.match(/recaptcha/)){var d=t.find('#'+v+'_verifier').val(),c=d.charAt(d.length-1),f=d.charAt(c);if(s!=f){r.removeClass('valid error ajax_alert').addClass('error');e.validationError=!0}
else{r.removeClass('valid error ajax_alert').addClass('valid')};n=!1};if(n&&s!=''){r.removeClass('valid error ajax_alert').addClass('valid')}});if(e.validationError==!1){if(t.data('av-custom-send')){l()}
else{o()}};return!1};function o(){if(i){return!1};if(e.button.hasClass('avia_button_inactive')){return!1};i=!0;e.button.addClass('av-sending-button');e.button.val(e.button.data('sending-label'));var n=t.data('avia-redirect')||!1,o=t.attr('action'),l=t.is('.av-form-labels-style');if(l)return;s.load(o+' '+r.responseContainer,e.dataObj,function(){if(n&&o!=n){t.attr('action',n);location.href=n}
else{s.removeClass('hidden').css({display:'block'});t.slideUp(400,function(){s.slideDown(400,function(){a('body').trigger('av_resize_finished')});e.formElements.val('')})}})};function l(){if(i){return!1};i=!0;var v=e.button.val();e.button.addClass('av-sending-button');e.button.val(e.button.data('sending-label'));e.dataObj.ajax_mailchimp=!0;var n=t.data('avia-redirect')||!1,l=t.attr('action'),o=t.find('.av-form-error-container'),d=t.data('avia-form-id');a.ajax({url:l,type:'POST',data:e.dataObj,beforeSend:function(){if(o.length){o.slideUp(400,function(){o.remove();a('body').trigger('av_resize_finished')})}},success:function(o){var f=jQuery('<div>').append(jQuery.parseHTML(o)),c=f.find('.av-form-error-container');if(c.length){i=!1;t.prepend(c);c.css({display:'none'}).slideDown(400,function(){a('body').trigger('av_resize_finished')});e.button.removeClass('av-sending-button');e.button.val(v)}
else{if(n&&l!=n){t.attr('action',n);location.href=n}
else{var m=f.find(r.responseContainer+'_'+d);s.html(m).removeClass('hidden').css({display:'block'});t.slideUp(400,function(){s.slideDown(400,function(){a('body').trigger('av_resize_finished')});e.formElements.val('')})}}},error:function(){},complete:function(){}})}})}})(jQuery);(function(a){'use strict';a.fn.avia_sc_gallery=function(t){return this.each(function(){var i=a(this),e=i.find('img'),t=i.find('.avia-gallery-big');i.on('avia_start_animation',function(){e.each(function(t){var i=a(this);setTimeout(function(){i.addClass('avia_start_animation')},(t*110))})});if(i.hasClass('deactivate_avia_lazyload'))i.trigger('avia_start_animation');if(t.length){i.on('mouseenter','.avia-gallery-thumb a',function(){var i=this;t.attr('data-onclick',i.getAttribute('data-onclick'));t.height(t.height());t.attr('href',i.href);var o=i.getAttribute('data-prev-img'),e=t.find('img'),s=e.attr('src');if(o!=s){var r=new Image();r.src=o;var n=a(r);if(t.hasClass('avia-gallery-big-no-crop-thumb')){n.css({'height':t.height(),'width':'auto'})};t.stop().animate({opacity:0},function(){n.insertAfter(e);e.remove();t.animate({opacity:1});t.attr('title',a(i).attr('title'))})}});t.on('click',function(){var a=i.find('.avia-gallery-thumb a').eq(this.getAttribute('data-onclick')-1);if(a&&!a.hasClass('aviaopeninbrowser')){a.trigger('click')}
else if(a){var t=a.attr('href');if(a.hasClass('aviablank')&&t!=''){window.open(t,'_blank')}
else if(t!=''){window.open(t,'_self')}};return!1});a(window).on('debouncedresize',function(){t.height('auto')})}})}}(jQuery));(function(t){t.fn.avia_sc_animated_number=function(a){if(!this.length)return;if(this.is('.avia_sc_animated_number_active'))return;this.addClass('avia_sc_animated_number_active');var e=(a&&a.simple_up)?!0:!1,r=(a&&a.start_timer)?a.start_timer:300,i=function(t,a,i){var r='',s=i.toString().length-t.toString().length;for(var n=s;n>0;n--){r+='0'};t=(e)?t.toString():r+t.toString();if(''==a){return t};return t.split(/(?=(?:...)*$)/).join(a)},n=function(t,a,r,f,u,s){var o=f+r,final='';if(o>=u){final=i(a,s,a);t.text(final)}
else{final=i(o,s,a);t.text(final);window.requestAnimationFrame(function(){n(t,a,r,o,u,s)})}};return this.each(function(){var i=t(this),e=i.find('.__av-single-number'),s=i.data('timer')||3000;e.each(function(a){var i=t(this),n=i.text();if(window.addEventListener)i.text(n.replace(/./g,'0'))});i.addClass('number_prepared').on('avia_start_animation',function(){if(i.is('.avia_animation_done'))return;i.addClass('avia_animation_done');e.each(function(i){var a=t(this),e=a.data('number'),u=e,f=parseInt(a.text(),10),d=/^0+$/.test(e),o=0,m=a.data('number_format');if('undefined'!=typeof a.data('start_from')){f=a.data('start_from')};if(d&&e!==0){u=e.replace(/0/g,'9')};o=Math.round(u*32/s);if(o==0||o%10==0)o+=1;setTimeout(function(){n(a,e,o,f,u,m)},r)})});if(a&&a.instant_start==!0){i.trigger('avia_start_animation')}})}})(jQuery);(function(i){'use strict';i.AviaSlider=function(t,s){var e=this;this.$win=i(window);this.$slider=i(s);this.isMobile=i.avia_utilities.isMobile;this._prepareSlides(t);i.avia_utilities.preload({container:this.$slider,single_callback:function(){e._init(t)}})};i.AviaSlider.defaults={interval:5,autoplay:!1,stopinfiniteloop:!1,animation:'slide',transitionSpeed:900,easing:'easeInOutQuart',wrapElement:'>ul',slideElement:'>li',hoverpause:!1,bg_slider:!1,show_slide_delay:0,fullfade:!1,carousel:'no',carouselSlidesToShow:3,carouselSlidesToScroll:1,carouselResponsive:[],};i.AviaSlider.prototype={_init:function(t){this.options=this._setOptions(t);this.$sliderUl=this.$slider.find(this.options.wrapElement);this.$slides=this.$sliderUl.find(this.options.slideElement);this.gotoButtons=this.$slider.find('.avia-slideshow-dots a');this.permaCaption=this.$slider.find('>.av-slideshow-caption');this.itemsCount=this.$slides.length;this.current=0;this.currentCarousel=0;this.slideWidthCarousel='240';this.loopCount=0;this.isAnimating=!1;this.browserPrefix=i.avia_utilities.supports('transition');this.cssActive=this.browserPrefix!==!1?!0:!1;this.css3DActive=document.documentElement.className.indexOf('avia_transform3d')!==-1?!0:!1;if(this.options.bg_slider==!0){this.imageUrls=[];this.loader=i.avia_utilities.loading(this.$slider);this._bgPreloadImages()}
else{this._kickOff()};if(this.options.carousel==='yes'){this.options.animation='carouselslide'}},_setOptions:function(t){var a=i.extend(!0,{},i.AviaSlider.defaults,t),e=this.$slider.data(),s='';for(s in e){if(e.hasOwnProperty(s)){if(typeof e[s]==='string'||typeof e[s]==='number'||typeof e[s]==='boolean'){a[s]=e[s]}}};return a},_prepareSlides:function(t){if(this.isMobile){var s=this.$slider.find('.av-mobile-fallback-image');s.each(function(){var s=i(this).removeClass('av-video-slide').data({'avia_video_events':!0,'video-ratio':0}),n=s.data('mobile-img'),e=s.data('fallback-link'),a=s.find('.avia-slide-wrap');s.find('.av-click-overlay, .mejs-mediaelement, .mejs-container').remove();if(!n){i('<p class="av-fallback-message"><span>Please set a mobile device fallback image for this video in your wordpress backend</span></p>').appendTo(a)};if(t&&t.bg_slider){s.data('img-url',n);if(e!=''){if(a.is('a')){a.attr('href',e)}
else{a.find('a').remove();a.replaceWith(function(){var t=i(this);return i('<a>').attr({'data-rel':t.data('rel'),'class':t.attr('class'),'href':e}).append(i(this).contents())});a=s.find('.avia-slide-wrap')};if(i.fn.avia_activate_lightbox){s.parents('#main').avia_activate_lightbox()}}}
else{var o='<img src="'+n+'" alt="" title="" />',l=!1;if('string'==typeof e&&e.trim()!=''){if(a.is('a')){a.attr('href',e)}
else{var r=e.match(/\.(jpg|jpeg|gif|png)$/i)!=null?' rel="lightbox" ':'';o='<a href="'+e.trim()+'"'+r+'>'+o+'</a>'};l=!0};s.find('.avia-slide-wrap').append(o);if(l&&i.fn.avia_activate_lightbox){s.parents('#main').avia_activate_lightbox()}}})}},_bgPreloadImages:function(i){this._getImageURLS();this._preloadSingle(0,function(){this._kickOff();this._preloadNext(1)})},_getImageURLS:function(){var t=this;this.$slides.each(function(s){t.imageUrls[s]=[];t.imageUrls[s]['url']=i(this).data('img-url');if(typeof t.imageUrls[s]['url']=='string'){t.imageUrls[s]['status']=!1}
else{t.imageUrls[s]['status']=!0}})},_preloadSingle:function(t,s){var e=this,a=new Image();if(typeof e.imageUrls[t]['url']=='string'){i(a).on('load error',function(){e.imageUrls[t]['status']=!0;e.$slides.eq(t).css('background-image','url('+e.imageUrls[t]['url']+')');if(typeof s=='function')s.apply(e,[a,t])});if(e.imageUrls[t]['url']!=''){a.src=e.imageUrls[t]['url']}
else{i(a).trigger('error')}}
else{if(typeof s=='function')s.apply(e,[a,t])}},_preloadNext:function(i){if(typeof this.imageUrls[i]!='undefined'){this._preloadSingle(i,function(){this._preloadNext(i+1)})}},_bindEvents:function(){var s=this,t=i(window);this.$slider.on('click','.next-slide',i.proxy(this.next,this));this.$slider.on('click','.prev-slide',i.proxy(this.previous,this));this.$slider.on('click','.goto-slide',i.proxy(this.go2,this));if(this.options.hoverpause){this.$slider.on('mouseenter',i.proxy(this.pause,this));this.$slider.on('mouseleave',i.proxy(this.resume,this))};if(this.options.stopinfiniteloop&&this.options.autoplay){if(this.options.stopinfiniteloop=='last'){this.$slider.on('avia_slider_last_slide',i.proxy(this._stopSlideshow,this))}
else if(this.options.stopinfiniteloop=='first'){this.$slider.on('avia_slider_first_slide',i.proxy(this._stopSlideshow,this))}};if(this.options.carousel==='yes'){if(!this.isMobile){t.on('debouncedresize',i.proxy(this._buildCarousel,this))}}
else{t.on('debouncedresize.aviaSlider',i.proxy(this._setSize,this))};if(!this.isMobile){this.$slider.avia_keyboard_controls()}
else{this.$slider.avia_swipe_trigger()};s._attach_video_events()},_kickOff:function(){var t=this,s=t.$slides.eq(0),e=s.data('video-ratio');t._bindEvents();this.$slider.removeClass('av-default-height-applied');if(e){t._setSize(!0)}
else{if(this.options.keep_pading!=!0){t.$sliderUl.css('padding',0);t.$win.trigger('av-height-change')}};t._setCenter();if(this.options.carousel==='no'){s.css({visibility:'visible',opacity:0}).avia_animate({opacity:1},function(){var s=i(this).addClass('active-slide');if(t.permaCaption.length){t.permaCaption.addClass('active-slide')}})};if(t.options.autoplay){t._startSlideshow()};if(t.options.carousel==='yes'){t._buildCarousel()};t.$slider.trigger('_kickOff')},_buildCarousel:function(){var r=this,a=this.$slider.outerWidth(),t=parseInt(a/this.options.carouselSlidesToShow),l=window.innerWidth||i(window).width();if(this.options.carouselResponsive&&this.options.carouselResponsive.length&&this.options.carouselResponsive!==null){for(var e in this.options.carouselResponsive){var n=this.options.carouselResponsive[e]['breakpoint'],s=this.options.carouselResponsive[e]['settings']['carouselSlidesToShow'];if(n>=l){t=parseInt(a/s);this.options.carouselSlidesToShow=s}}};this.slideWidthCarousel=t;this.$slides.each(function(s){i(this).width(t)});var o=t*this.itemsCount;this.$sliderUl.width(o).css('transform','translateX(0px)');if(this.options.carouselSlidesToShow>=this.itemsCount){this.$slider.find('.av-timeline-nav').hide()}},_navigate:function(i,t){if(this.isAnimating||this.itemsCount<2 ||!this.$slider.is(':visible')){return!1};this.isAnimating=!0;this.prev=this.current;if(t!==undefined){this.current=t;i=this.current>this.prev?'next':'prev'}
else if(i==='next'){this.current=this.current<this.itemsCount-1?this.current+1:0;if(this.current===0&&this.options.autoplay_stopper==1&&this.options.autoplay){this.isAnimating=!1;this.current=this.prev;this._stopSlideshow();return!1}}
else if(i==='prev'){this.current=this.current>0?this.current-1:this.itemsCount-1};this.gotoButtons.removeClass('active').eq(this.current).addClass('active');if(this.options.carousel==='no'){this._setSize()};if(this.options.bg_slider==!0){if(this.imageUrls[this.current]['status']==!0){this['_'+this.options.animation].call(this,i)}
else{this.loader.show();this._preloadSingle(this.current,function(){this['_'+this.options.animation].call(this,i);this.loader.hide()})}}
else{this['_'+this.options.animation].call(this,i)};if(this.current==0){this.loopCount++;this.$slider.trigger('avia_slider_first_slide')}
else if(this.current==this.itemsCount-1){this.$slider.trigger('avia_slider_last_slide')}
else{this.$slider.trigger('avia_slider_navigate_slide')}},_setSize:function(i){if(this.options.bg_slider==!0)return;var n=this,t=this.$slides.eq(this.current),r=t.find('img'),a=Math.floor(this.$sliderUl.height()),o=t.data('video-ratio'),s=o?this.$sliderUl.width()/o:Math.floor(t.height()),e=t.data('video-height'),l=t.data('video-toppos');this.$sliderUl.height(a).css('padding',0);if(s!=a){if(i==!0){this.$sliderUl.css({height:s});this.$win.trigger('av-height-change')}
else{this.$sliderUl.avia_animate({height:s},function(){n.$win.trigger('av-height-change')})}};this._setCenter();if(e&&e!='set'){t.find('iframe, embed, video, object, .av_youtube_frame').css({height:e+'%',top:l+'%'});t.data('video-height','set')}},_setCenter:function(){var e=this.$slides.eq(this.current),o=e.find('img'),i=parseInt(o.css('min-width'),10),t=e.width(),a=e.find('.av-slideshow-caption'),s=((t-i)/2);if(a.length){if(a.is('.caption_left')){s=((t-i)/1.5)}
else if(a.is('.caption_right')){s=((t-i)/2.5)}};if(t>=i){s=0};o.css({left:s})},_carouselmove:function(){var i=this.slideWidthCarousel*this.currentCarousel;this.$sliderUl.css('transform','translateX(-'+i+'px)')},_carouselslide:function(i){if(i==='next'){if(this.options.carouselSlidesToShow+this.currentCarousel<this.itemsCount){this.currentCarousel++;this._carouselmove()}}
else if(i==='prev'){if(this.currentCarousel>0){this.currentCarousel--;this._carouselmove()}};this.isAnimating=!1},_slide:function(i){var l=!1,h=l==!0?2:1,r=this.$slider.width(),d=i==='next'?-1:1,t=this.browserPrefix+'transform',a={},s={},e={},o=(r*d*-1),n=(r*d)/h;if(this.cssActive){t=this.browserPrefix+'transform';if(this.css3DActive){a[t]='translate3d('+o+'px, 0, 0)';s[t]='translate3d('+n+'px, 0, 0)';e[t]='translate3d(0,0,0)'}
else{a[t]='translate('+o+'px,0)';s[t]='translate('+n+'px,0)';e[t]='translate(0,0)'}}
else{a.left=o;s.left=n;e.left=0};if(l){s['z-index']='1';e['z-index']='2'};this._slide_animate(a,s,e)},_slide_up:function(i){var l=!0,h=l==!0?2:1,r=this.$slider.height(),d=i==='next'?-1:1,t=this.browserPrefix+'transform',a={},s={},e={},o=(r*d*-1),n=(r*d)/h;if(this.cssActive){t=this.browserPrefix+'transform';if(this.css3DActive){a[t]='translate3d( 0,'+o+'px, 0)';s[t]='translate3d( 0,'+n+'px, 0)';e[t]='translate3d(0,0,0)'}
else{a[t]='translate( 0,'+o+'px)';s[t]='translate( 0,'+n+'px)';e[t]='translate(0,0)'}}
else{a.top=o;s.top=n;e.top=0};if(l){s['z-index']='1';e['z-index']='2'};this._slide_animate(a,s,e)},_slide_animate:function(i,e,a){var s=this,t=this.$slides.eq(this.current),o=this.$slides.eq(this.prev);o.trigger('pause');if(!t.data('disableAutoplay')){if(t.hasClass('av-video-lazyload')&&!t.hasClass('av-video-lazyload-complete')){t.find('.av-click-to-play-overlay').trigger('click')}
else{t.trigger('play')}};t.css({visibility:'visible',zIndex:4,opacity:1,left:0,top:0});t.css(i);o.avia_animate(e,this.options.transitionSpeed,this.options.easing);var n=function(){s.isAnimating=!1;t.addClass('active-slide');o.css({visibility:'hidden'}).removeClass('active-slide');s.$slider.trigger('avia-transition-done')};if(s.options.show_slide_delay>0){setTimeout(function(){t.avia_animate(a,s.options.transitionSpeed,s.options.easing,n)},s.options.show_slide_delay)}
else{t.avia_animate(a,s.options.transitionSpeed,s.options.easing,n)}},_fade:function(){var t=this,i=this.$slides.eq(this.current),s=this.$slides.eq(this.prev),e={visibility:'visible',zIndex:3,opacity:0},a=function(){t.isAnimating=!1;i.addClass('active-slide');s.css({visibility:'hidden',zIndex:2}).removeClass('active-slide');t.$slider.trigger('avia-transition-done')};s.trigger('pause');if(!i.data('disableAutoplay')){if(i.hasClass('av-video-lazyload')&&!i.hasClass('av-video-lazyload-complete')){i.find('.av-click-to-play-overlay').trigger('click')}
else{i.trigger('play')}};if(t.options.fullfade==!0){s.avia_animate({opacity:0},200,'linear',function(){i.css(e).avia_animate({opacity:1},t.options.transitionSpeed,'linear',a)})}
else{i.css(e).avia_animate({opacity:1},t.options.transitionSpeed/2,'linear',function(){s.avia_animate({opacity:0},200,'linear',a)})}},_attach_video_events:function(){var t=this,s=i('html');t.$slides.each(function(s){var n=i(this),r=n.find('.caption_fullwidth, .av-click-overlay'),d=n.find('.mejs-mediaelement'),l=n.hasClass('av-video-lazyload')?!0:!1;if(n.data('avia_video_events')!=!0){n.data('avia_video_events',!0);n.on('av-video-events-bound',{slide:n,wrap:d,iteration:s,self:t,lazyload:l},e);n.on('av-video-ended',{slide:n,self:t},a);n.on('av-video-play-executed',function(){setTimeout(function(){t.pause()},100)});r.on('click',{slide:n},o);if(n.is('.av-video-events-bound'))n.trigger('av-video-events-bound');if(l&&s===0&&!n.data('disableAutoplay')){n.find('.av-click-to-play-overlay').trigger('click')}}});function e(i){if(i.data.iteration===0){i.data.wrap.css('opacity',0);if(!i.data.self.isMobile&&!i.data.slide.data('disableAutoplay')){i.data.slide.trigger('play')}; ;setTimeout(function(){i.data.wrap.avia_animate({opacity:1},400)},50)}
else if(s.is('.avia-msie')&&!i.data.slide.is('.av-video-service-html5')){if(!i.data.slide.data('disableAutoplay'))i.data.slide.trigger('play')};if(i.data.slide.is('.av-video-service-html5')&&i.data.iteration!==0){i.data.slide.trigger('pause')};if(i.data.lazyload){i.data.slide.addClass('av-video-lazyload-complete');i.data.slide.trigger('play')}};function a(i){if(!i.data.slide.is('.av-single-slide')&&!i.data.slide.is('.av-loop-video')){i.data.slide.trigger('reset');t._navigate('next');t.resume()};if(i.data.slide.is('.av-loop-video')&&i.data.slide.is('.av-video-service-html5')){if(s.is('.avia-safari-8')){setTimeout(function(){i.data.slide.trigger('play')},1)}}};function o(i){if(i.target.tagName!='A'){i.data.slide.trigger('toggle')}}},_timer:function(i,t,o){var s=this,e,a=t;s.timerId=0;this.pause=function(){window.clearTimeout(s.timerId);a-=new Date()-e};this.resume=function(){e=new Date();s.timerId=window.setTimeout(i,a)};this.destroy=function(){window.clearTimeout(s.timerId)};this.resume(!0)},_startSlideshow:function(){var i=this;this.isPlaying=!0;this.slideshow=new this._timer(function(){i._navigate('next');if(i.options.autoplay){i._startSlideshow()}},(this.options.interval*1000))},_stopSlideshow:function(){if(this.options.autoplay){this.slideshow.destroy();this.isPlaying=!1;this.options.autoplay=!1}},next:function(i){i.preventDefault();this._stopSlideshow();this._navigate('next')},previous:function(i){i.preventDefault();this._stopSlideshow();this._navigate('prev')},go2:function(i){if(isNaN(i)){i.preventDefault();i=i.currentTarget.hash.replace('#','')};i-=1;if(i===this.current||i>=this.itemsCount||i<0){return!1};this._stopSlideshow();this._navigate(!1,i)},play:function(){if(!this.isPlaying){this.isPlaying=!0;this._navigate('next');this.options.autoplay=!0;this._startSlideshow()}},pause:function(){if(this.isPlaying){this.slideshow.pause()}},resume:function(){if(this.isPlaying){this.slideshow.resume()}},destroy:function(i){this.slideshow.destroy(i)}};i.fn.aviaSlider=function(t){return this.each(function(){var s=i.data(this,'aviaSlider');if(!s){s=i.data(this,'aviaSlider',new i.AviaSlider(t,this))}})}})(jQuery);(function(e){'use strict';e.AviaVideoAPI=function(i,t,o){this.videoElement=t;this.$video=e(t);this.$option_container=o?e(o):this.$video;this.load_btn=this.$option_container.find('.av-click-to-play-overlay');this.video_wrapper=this.$video.parents('ul').eq(0);this.lazy_load=this.video_wrapper.hasClass('av-show-video-on-click')?!0:!1;this.isMobile=e.avia_utilities.isMobile;this.fallback=this.isMobile?this.$option_container.is('.av-mobile-fallback-image'):!1;if(this.fallback)return;this._init(i)};e.AviaVideoAPI.defaults={loop:!1,mute:!1,controls:!1,events:'play pause mute unmute loop toggle reset unload'};e.AviaVideoAPI.apiFiles={youtube:{loaded:!1,src:'https://www.youtube.com/iframe_api'}};e.AviaVideoAPI.players={};e.AviaVideoAPI.prototype={_init:function(i){this.options=this._setOptions(i);this.type=this._getPlayerType();this.player=!1;this._bind_player();this.eventsBound=!1;this.playing=!1;this.$option_container.addClass('av-video-paused');this.pp=e.avia_utilities.playpause(this.$option_container)},_setOptions:function(i){var n=e.extend(!0,{},e.AviaVideoAPI.defaults,i),o=this.$option_container.data(),t='';for(t in o){if(o.hasOwnProperty(t)&&(typeof o[t]==='string'||typeof o[t]==='number'||typeof o[t]==='boolean')){n[t]=o[t]}};return n},_getPlayerType:function(){var e=this.$video.get(0).src||this.$video.data('src');if(this.$video.is('video'))return'html5';if(this.$video.is('.av_youtube_frame'))return'youtube';if(e.indexOf('vimeo.com')!=-1)return'vimeo';if(e.indexOf('youtube.com')!=-1)return'youtube'},_bind_player:function(){var t=this,o=e('html').hasClass('av-cookies-needs-opt-in')||e('html').hasClass('av-cookies-can-opt-out'),i=!0,n=e('html').hasClass('av-cookies-user-silent-accept'),a='html5'==this.type;if(o&&!n&&!a){if(!document.cookie.match(/aviaCookieConsent/)||e('html').hasClass('av-cookies-session-refused')){i=!1}
else{if(!document.cookie.match(/aviaPrivacyRefuseCookiesHideBar/)){i=!1}
else if(!document.cookie.match(/aviaPrivacyEssentialCookiesEnabled/)){i=!1}
else if(document.cookie.match(/aviaPrivacyVideoEmbedsDisabled/)){i=!1}}};if(!i){this._use_external_link();return};if(this.lazy_load&&this.load_btn.length&&this.type!='html5'){this.$option_container.addClass('av-video-lazyload');this.load_btn.on('click',function(){t.load_btn.remove();t._setPlayer()})}
else{this.lazy_load=!1;this._setPlayer()}},_use_external_link:function(){this.$option_container.addClass('av-video-lazyload');this.load_btn.on('click',function(i){if(i.originalEvent===undefined)return;var t=e(this).parents('.avia-slide-wrap').find('div[data-original_url]').data('original_url');if(t)window.open(t,'_blank')})},_setPlayer:function(){var t=this;switch(this.type){case'html5':this.player=this.$video.data('mediaelementplayer');if(!this.player){this.$video.data('mediaelementplayer',e.AviaVideoAPI.players[this.$video.attr('id').replace(/_html5/,'')]);this.player=this.$video.data('mediaelementplayer')};this._playerReady();break;case'vimeo':var i=document.createElement('iframe');var o=e(i);i.onload=function(){t.player=Froogaloop(i);t._playerReady();t.$option_container.trigger('av-video-loaded')};i.setAttribute('src',this.$video.data('src'));o.insertAfter(this.$video);this.$video.remove();this.$video=i;break;case'youtube':this._getAPI(this.type);e('body').on('av-youtube-iframe-api-loaded',function(){t._playerReady()});break}},_getAPI:function(i){if(e.AviaVideoAPI.apiFiles[i].loaded===!1){e.AviaVideoAPI.apiFiles[i].loaded=!0;var t=document.createElement('script'),o=document.getElementsByTagName('script')[0];t.src=e.AviaVideoAPI.apiFiles[i].src;o.parentNode.insertBefore(t,o)}},_playerReady:function(){var i=this;this.$option_container.on('av-video-loaded',function(){i._bindEvents()});switch(this.type){case'html5':this.$video.on('av-mediajs-loaded',function(){i.$option_container.trigger('av-video-loaded')});this.$video.on('av-mediajs-ended',function(){i.$option_container.trigger('av-video-ended')});break;case'vimeo':i.player.addEvent('ready',function(){i.$option_container.trigger('av-video-loaded');i.player.addEvent('finish',function(){i.$option_container.trigger('av-video-ended')})});break;case'youtube':var t=i.$video.data();if(i._supports_video())t.html5=1;i.player=new YT.Player(i.$video.attr('id'),{videoId:t.videoid,height:i.$video.attr('height'),width:i.$video.attr('width'),playerVars:t,events:{'onReady':function(){i.$option_container.trigger('av-video-loaded')},'onError':function(i){e.avia_utilities.log('YOUTUBE ERROR:','error',i)},'onStateChange':function(e){if(e.data===YT.PlayerState.ENDED){var t=i.options.loop!=!1?'loop':'av-video-ended';i.$option_container.trigger(t)}}}});break};setTimeout(function(){if(i.eventsBound==!0||typeof i.eventsBound=='undefined'||i.type=='youtube'){return};e.avia_utilities.log('Fallback Video Trigger "'+i.type+'":','log',i);i.$option_container.trigger('av-video-loaded')},2000)},_bindEvents:function(){if(this.eventsBound==!0||typeof this.eventsBound=='undefined'){return};var e=this,i='unmute';this.eventsBound=!0;this.$option_container.on(this.options.events,function(i){e.api(i.type)});if(!e.isMobile){if(this.options.mute!=!1){i='mute'};if(this.options.loop!=!1){e.api('loop')};e.api(i)};setTimeout(function(){e.$option_container.trigger('av-video-events-bound').addClass('av-video-events-bound')},50)},_supports_video:function(){return!!document.createElement('video').canPlayType},api:function(e){if(this.isMobile&&!this.was_started())return;if(this.options.events.indexOf(e)===-1)return;this.$option_container.trigger('av-video-'+e+'-executed');if(typeof this['_'+this.type+'_'+e]=='function'){this['_'+this.type+'_'+e].call(this)};if(typeof this['_'+e]=='function'){this['_'+e].call(this)}},was_started:function(){if(!this.player)return!1;switch(this.type){case'html5':if(this.player.getCurrentTime()>0)return!0;break;case'vimeo':if(this.player.api('getCurrentTime')>0)return!0;break;case'youtube':if(this.player.getPlayerState()!==-1)return!0;break};return!1},_play:function(){this.playing=!0;this.$option_container.addClass('av-video-playing').removeClass('av-video-paused')},_pause:function(){this.playing=!1;this.$option_container.removeClass('av-video-playing').addClass('av-video-paused')},_loop:function(){this.options.loop=!0},_toggle:function(){var e=this.playing==!0?'pause':'play';this.api(e);this.pp.set(e)},_vimeo_play:function(){this.player.api('play')},_vimeo_pause:function(){this.player.api('pause')},_vimeo_mute:function(){this.player.api('setVolume',0)},_vimeo_unmute:function(){this.player.api('setVolume',0.7)},_vimeo_loop:function(){},_vimeo_reset:function(){this.player.api('seekTo',0)},_vimeo_unload:function(){this.player.api('unload')},_youtube_play:function(){this.player.playVideo()},_youtube_pause:function(){this.player.pauseVideo()},_youtube_mute:function(){this.player.mute()},_youtube_unmute:function(){this.player.unMute()},_youtube_loop:function(){if(this.playing==!0)this.player.seekTo(0)},_youtube_reset:function(){this.player.stopVideo()},_youtube_unload:function(){this.player.clearVideo()},_html5_play:function(){if(this.player){this.player.options.pauseOtherPlayers=!1;this.player.play()}},_html5_pause:function(){if(this.player)this.player.pause()},_html5_mute:function(){if(this.player)this.player.setMuted(!0)},_html5_unmute:function(){if(this.player)this.player.setVolume(0.7)},_html5_loop:function(){if(this.player)this.player.options.loop=!0},_html5_reset:function(){if(this.player)this.player.setCurrentTime(0)},_html5_unload:function(){this._html5_pause();this._html5_reset()}};e.fn.aviaVideoApi=function(i,t){return this.each(function(){var o=this;if(t){o=e(this).parents(t).get(0)};var n=e.data(o,'aviaVideoApi');if(!n){n=e.data(o,'aviaVideoApi',new e.AviaVideoAPI(i,this,o))}})}})(jQuery);window.onYouTubeIframeAPIReady=function(){jQuery('body').trigger('av-youtube-iframe-api-loaded')};var Froogaloop=(function(){function i(e){return new i.fn.init(e)};var e={},d=!1,t=!1,p=Array.prototype.slice,o='*';i.fn=i.prototype={element:null,init:function(e){if(typeof e==='string'){e=document.getElementById(e)};this.element=e;return this},api:function(e,i){if(!this.element||!e){return!1};var o=this,t=o.element,l=t.id!==''?t.id:null,u=!r(i)?i:null,a=r(i)?i:null;if(a){s(e,a,l)};n(e,u,t);return o},addEvent:function(e,i){if(!this.element){return!1};var a=this,o=a.element,r=o.id!==''?o.id:null;s(e,i,r);if(e!='ready'){n('addEventListener',e,o)}
else if(e=='ready'&&t){i.call(null,r)};return a},removeEvent:function(e){if(!this.element){return!1};var t=this,i=t.element,o=i.id!==''?i.id:null,a=u(e,o);if(e!='ready'&&a){n('removeEventListener',e,i)}}};function n(e,i,t){if(!t.contentWindow.postMessage){return!1};var n=JSON.stringify({method:e,value:i});t.contentWindow.postMessage(n,o)};function a(e){var i,r;try{i=JSON.parse(e.data);r=i.event||i.method}catch(p){};if(r=='ready'&&!t){t=!0};if(!(/^https?:\/\/player.vimeo.com/).test(e.origin)){return!1};if(o==='*'){o=e.origin};var u=i.value,d=i.data,a=a===''?null:i.player_id,s=l(r,a),n=[];if(!s){return!1};if(u!==undefined){n.push(u)};if(d){n.push(d)};if(a){n.push(a)};return n.length>0?s.apply(null,n):s.call()};function s(i,t,o){if(o){if(!e[o]){e[o]={}};e[o][i]=t}
else{e[i]=t}};function l(i,t){if(t&&e[t]&&e[t][i]){return e[t][i]}
else{return e[i]}};function u(i,t){if(t&&e[t]){if(!e[t][i]){return!1};e[t][i]=null}
else{if(!e[i]){return!1};e[i]=null};return!0};function r(e){return!!(e&&e.constructor&&e.call&&e.apply)};function h(e){return toString.call(e)==='[object Array]'};i.fn.init.prototype=i.fn;if(window.addEventListener){window.addEventListener('message',a,!1)}
else{window.attachEvent('onmessage',a)};return(window.Froogaloop=window.$f=i)})();(function(t){'use strict';t.fn.avia_sc_tabs=function(e){var n={heading:'.tab',content:'.tab_content',active:'active_tab',sidebar:!1};var i=t(window),e=t.extend(n,e);return this.each(function(){var n=t(this),c=t('<div class="tab_titles"></div>').prependTo(n),a=t(e.heading,n),r=t(e.content,n),o=!1,d=!1;o=a.clone();d=a.addClass('fullsize-tab').attr('aria-hidden',!0);a=o;a.prependTo(c).each(function(e){var n=t(this),i=!1;if(o)i=d.filter(':eq('+e+')');n.addClass('tab_counter_'+e).on('click',function(){f(n,e,i);return!1});n.on('keydown',function(t){if(t.keyCode===13){n.trigger('click')}});if(o){i.on('click',function(){f(i,e,n);return!1});i.on('keydown',function(t){if(t.keyCode===13){i.trigger('click')}})}});s();l(!1);i.on('debouncedresize',s);t('a').on('click',function(){var e=t(this).attr('href');if(typeof e!='undefined'&&e){e=e.replace(/^.*?#/,'');l('#'+e)}});function s(){if(!e.sidebar)return;r.css({'min-height':c.outerHeight()+1})};function f(a,f,o){if(!a.is('.'+e.active)){t('.'+e.active,n).removeClass(e.active);t('.'+e.active+'_content',n).attr('aria-hidden',!0).removeClass(e.active+'_content');a.addClass(e.active);var s=a.data('fake-id');if(typeof s=='string')location.replace(s);if(o)o.addClass(e.active);var d=r.filter(':eq('+f+')').addClass(e.active+'_content').attr('aria-hidden',!1);if(typeof click_container!='undefined'&&click_container.length){sidebar_shadow.height(d.outerHeight())};var c=d.offset().top,l=c-50-parseInt(t('html').css('margin-top'),10);if(i.scrollTop()>c){t('html:not(:animated),body:not(:animated)').scrollTop(l)}};i.trigger('av-content-el-height-changed',a)};function l(t){if(!t&&window.location.hash)t=window.location.hash;if(!t)return;var e=a.filter('[data-fake-id="'+t+'"]');if(e.length){if(!e.is('.active_tab'))e.trigger('click');window.scrollTo(0,n.offset().top-70)}}})}}(jQuery));(function(i){'use strict';i('body').on('click','.av-lazyload-video-embed .av-click-to-play-overlay',function(l){var n=i(this),d=i('html').hasClass('av-cookies-needs-opt-in')||i('html').hasClass('av-cookies-can-opt-out'),o=!0,c=i('html').hasClass('av-cookies-user-silent-accept');if(d&&!c){if(!document.cookie.match(/aviaCookieConsent/)||i('html').hasClass('av-cookies-session-refused')){o=!1}
else{if(!document.cookie.match(/aviaPrivacyRefuseCookiesHideBar/)){o=!1}
else if(!document.cookie.match(/aviaPrivacyEssentialCookiesEnabled/)){o=!1}
else if(document.cookie.match(/aviaPrivacyVideoEmbedsDisabled/)){o=!1}}};var a=n.parents('.av-lazyload-video-embed');if(a.hasClass('avia-video-lightbox')&&a.hasClass('avia-video-standard-html')){o=!0};if(!o){if(typeof l.originalEvent=='undefined'){return};var t=a.data('original_url');if(t)window.open(t,'_blank','noreferrer noopener');return};var s=a.find('.av-video-tmpl').html(),e='';if(a.hasClass('avia-video-lightbox')){e=a.find('a.lightbox-link');if(e.length==0){a.append(s);setTimeout(function(){e=a.find('a.lightbox-link');if(i('html').hasClass('av-default-lightbox')){e.addClass('lightbox-added').magnificPopup(i.avia_utilities.av_popup);e.trigger('click')}
else{e.trigger('avia-open-video-in-lightbox')}},100)}
else{e.trigger('click')}}
else{a.html(s)}});i('.av-lazyload-immediate .av-click-to-play-overlay').trigger('click')}(jQuery));!function(e){'function'==typeof define&&define.amd?define(['jquery'],e):e('object'==typeof exports?require('jquery'):window.jQuery||window.Zepto)}(function(t){var e,P,r,h,l,j,c='Close',N='BeforeClose',D='AfterClose',U='BeforeAppend',S='MarkupParse',E='Open',W='Change',z='mfp',o='.'+z,y='mfp-ready',Z='mfp-removing',O='mfp-prevent-close',C=function(){},M=!!window.jQuery,d=t(window),i=function(t,n){e.ev.on(z+t+o,n)},p=function(e,n,i,r){var o=document.createElement('div');return o.className='mfp-'+e,i&&(o.innerHTML=i),r?n&&n.appendChild(o):(o=t(o),n&&o.appendTo(n)),o},n=function(n,i){e.ev.triggerHandler(z+n,i),e.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),e.st.callbacks[n]&&e.st.callbacks[n].apply(e,t.isArray(i)?i:[i]))},B=function(n){return n===j&&e.currTemplate.closeBtn||(e.currTemplate.closeBtn=t(e.st.closeMarkup.replace('%title%',e.st.tClose)),j=n),e.currTemplate.closeBtn},L=function(){t.magnificPopup.instance||(e=new C,e.init(),t.magnificPopup.instance=e)},Y=function(){var e=document.createElement('p').style,t=['ms','O','Moz','Webkit'];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+'Transition'in e)return!0;return!1};C.prototype={constructor:C,init:function(){var n=navigator.appVersion;e.isLowIE=e.isIE8=document.all&&!document.addEventListener,e.isAndroid=/android/gi.test(n),e.isIOS=/iphone|ipad|ipod/gi.test(n),e.supportsTransition=Y(),e.probablyMobile=e.isAndroid||e.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),r=t(document),e.popupsCache={}},open:function(a){var s;if(a.isObj===!1){e.items=a.items.toArray(),e.index=0;var c,C=a.items;for(s=0;s<C.length;s++)if(c=C[s],c.parsed&&(c=c.el[0]),c===a.el[0]){e.index=s;break}}
else e.items=t.isArray(a.items)?a.items:[a.items],e.index=a.index||0;if(e.isOpen)return void e.updateItemHTML();e.types=[],l='',a.mainEl&&a.mainEl.length?e.ev=a.mainEl.eq(0):e.ev=r,a.key?(e.popupsCache[a.key]||(e.popupsCache[a.key]={}),e.currTemplate=e.popupsCache[a.key]):e.currTemplate={},e.st=t.extend(!0,{},t.magnificPopup.defaults,a),e.fixedContentPos='auto'===e.st.fixedContentPos?!e.probablyMobile:e.st.fixedContentPos,e.st.modal&&(e.st.closeOnContentClick=!1,e.st.closeOnBgClick=!1,e.st.showCloseBtn=!1,e.st.enableEscapeKey=!1),e.bgOverlay||(e.bgOverlay=p('bg').on('click'+o,function(){e.close()}),e.wrap=p('wrap').attr('tabindex',-1).on('click'+o,function(t){e._checkIfClose(t.target)&&e.close()}),e.container=p('container',e.wrap)),e.contentContainer=p('content'),e.st.preloader&&(e.preloader=p('preloader',e.container,e.st.tLoading));var h=t.magnificPopup.modules;for(s=0;s<h.length;s++){var u=h[s];u=u.charAt(0).toUpperCase()+u.slice(1),e['init'+u].call(e)};n('BeforeOpen'),e.st.showCloseBtn&&(e.st.closeBtnInside?(i(S,function(e,t,n,i){n.close_replaceWith=B(i.type)}),l+=' mfp-close-btn-in'):e.wrap.append(B())),e.st.alignTop&&(l+=' mfp-align-top'),e.fixedContentPos?e.wrap.css({overflow:e.st.overflowY,overflowX:'hidden',overflowY:e.st.overflowY}):e.wrap.css({top:d.scrollTop(),position:'absolute'}),(e.st.fixedBgPos===!1||'auto'===e.st.fixedBgPos&&!e.fixedContentPos)&&e.bgOverlay.css({height:r.height(),position:'absolute'}),e.st.enableEscapeKey&&r.on('keyup'+o,function(t){27===t.keyCode&&e.close()}),d.on('resize'+o,function(){e.updateSize()}),e.st.closeOnContentClick||(l+=' mfp-auto-cursor'),l&&e.wrap.addClass(l);var v=e.wH=d.height(),m={};if(e.fixedContentPos&&e._hasScrollBar(v)){var g=e._getScrollbarSize();g&&(m.marginRight=g)};e.fixedContentPos&&(e.isIE7?t('body, html').css('overflow','hidden'):m.overflow='hidden');var f=e.st.mainClass;return e.isIE7&&(f+=' mfp-ie7'),f&&e._addClassToMFP(f),e.updateItemHTML(),n('BuildControls'),t('html').css(m),e.bgOverlay.add(e.wrap).prependTo(e.st.prependTo||t(document.body)),e._lastFocusedEl=document.activeElement,setTimeout(function(){e.content?(e._addClassToMFP(y),e._setFocus()):e.bgOverlay.addClass(y),r.on('focusin'+o,e._onFocusIn)},16),e.isOpen=!0,e.updateSize(v),n(E),a},close:function(){e.isOpen&&(n(N),e.isOpen=!1,e.st.removalDelay&&!e.isLowIE&&e.supportsTransition?(e._addClassToMFP(Z),setTimeout(function(){e._close()},e.st.removalDelay)):e._close())},_close:function(){n(c);var a=Z+' '+y+' ';if(e.bgOverlay.detach(),e.wrap.detach(),e.container.empty(),e.st.mainClass&&(a+=e.st.mainClass+' '),e._removeClassFromMFP(a),e.fixedContentPos){var i={marginRight:''};e.isIE7?t('body, html').css('overflow',''):i.overflow='',t('html').css(i)};r.off('keyup'+o+' focusin'+o),e.ev.off(o),e.wrap.attr('class','mfp-wrap').removeAttr('style'),e.bgOverlay.attr('class','mfp-bg'),e.container.attr('class','mfp-container'),!e.st.showCloseBtn||e.st.closeBtnInside&&e.currTemplate[e.currItem.type]!==!0||e.currTemplate.closeBtn&&e.currTemplate.closeBtn.detach(),e.st.autoFocusLast&&e._lastFocusedEl&&t(e._lastFocusedEl).focus(),e.currItem=null,e.content=null,e.currTemplate=null,e.prevHeight=0,n(D)},updateSize:function(t){if(e.isIOS){var o=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*o;e.wrap.css('height',i),e.wH=i}
else e.wH=t||d.height();e.fixedContentPos||e.wrap.css('height',e.wH),n('Resize')},updateItemHTML:function(){var o=e.items[e.index];e.contentContainer.detach(),e.content&&e.content.detach(),o.parsed||(o=e.parseEl(e.index));var i=o.type;if(n('BeforeChange',[e.currItem?e.currItem.type:'',i]),e.currItem=o,!e.currTemplate[i]){var r=e.st[i]?e.st[i].markup:!1;n('FirstMarkupParse',r),r?e.currTemplate[i]=t(r):e.currTemplate[i]=!0};h&&h!==o.type&&e.container.removeClass('mfp-'+h+'-holder');var a=e['get'+i.charAt(0).toUpperCase()+i.slice(1)](o,e.currTemplate[i]);e.appendContent(a,i),o.preloaded=!0,n(W,o),h=o.type,e.container.prepend(e.contentContainer),n('AfterChange')},appendContent:function(t,i){e.content=t,t?e.st.showCloseBtn&&e.st.closeBtnInside&&e.currTemplate[i]===!0?e.content.find('.mfp-close').length||e.content.append(B()):e.content=t:e.content='',n(U),e.container.addClass('mfp-'+i+'-holder'),e.contentContainer.append(e.content)},parseEl:function(i){var s,o=e.items[i];if(o.tagName?o={el:t(o)}:(s=o.type,o={data:o,src:o.src}),o.el){for(var a=e.types,r=0;r<a.length;r++)if(o.el.hasClass('mfp-'+a[r])){s=a[r];break};o.src=o.el.attr('data-mfp-src'),o.src||(o.src=o.el.attr('href'))};return o.type=s||e.st.type||'inline',o.index=i,o.parsed=!0,e.items[i]=o,n('ElementParse',o),e.items[i]},addGroup:function(t,n){var o=function(i){i.mfpEl=this,e._openClick(i,t,n)};n||(n={});var i='click.magnificPopup';n.mainEl=t,n.items?(n.isObj=!0,t.off(i).on(i,o)):(n.isObj=!1,n.delegate?t.off(i).on(i,n.delegate,o):(n.items=t,t.off(i).on(i,o)))},_openClick:function(n,i,o){var a=void 0!==o.midClick?o.midClick:t.magnificPopup.defaults.midClick;if(a||!(2===n.which||n.ctrlKey||n.metaKey||n.altKey||n.shiftKey)){var r=void 0!==o.disableOn?o.disableOn:t.magnificPopup.defaults.disableOn;if(r)if(t.isFunction(r)){if(!r.call(e))return!0}
else if(d.width()<r)return!0;n.type&&(n.preventDefault(),e.isOpen&&n.stopPropagation()),o.el=t(n.mfpEl),o.delegate&&(o.items=i.find(o.delegate)),e.open(o)}},updateStatus:function(t,i){if(e.preloader){P!==t&&e.container.removeClass('mfp-s-'+P),i||'loading'!==t||(i=e.st.tLoading);var o={status:t,text:i};n('UpdateStatus',o),t=o.status,i=o.text,e.preloader.html(i),e.preloader.find('a').on('click',function(e){e.stopImmediatePropagation()}),e.container.addClass('mfp-s-'+t),P=t}},_checkIfClose:function(n){if(!t(n).hasClass(O)){var i=e.st.closeOnContentClick,o=e.st.closeOnBgClick;if(i&&o)return!0;if(!e.content||t(n).hasClass('mfp-close')||e.preloader&&n===e.preloader[0])return!0;if(n===e.content[0]||t.contains(e.content[0],n)){if(i)return!0}
else if(o&&t.contains(document,n))return!0;return!1}},_addClassToMFP:function(t){e.bgOverlay.addClass(t),e.wrap.addClass(t)},_removeClassFromMFP:function(t){this.bgOverlay.removeClass(t),e.wrap.removeClass(t)},_hasScrollBar:function(t){return(e.isIE7?r.height():document.body.scrollHeight)>(t||d.height())},_setFocus:function(){(e.st.focus?e.content.find(e.st.focus).eq(0):e.wrap).focus()},_onFocusIn:function(n){return n.target===e.wrap[0]||t.contains(e.wrap[0],n.target)?void 0:(e._setFocus(),!1)},_parseMarkup:function(e,i,r){var a;r.data&&(i=t.extend(r.data,i)),n(S,[e,i,r]),t.each(i,function(n,i){if(void 0===i||i===!1)return!0;if(a=n.split('_'),a.length>1){var r=e.find(o+'-'+a[0]);if(r.length>0){var s=a[1];'replaceWith'===s?r[0]!==i[0]&&r.replaceWith(i):'img'===s?r.is('img')?r.attr('src',i):r.replaceWith(t('<img>').attr('src',i).attr('class',r.attr('class'))):r.attr(a[1],i)}}
else e.find(o+'-'+n).html(i)})},_getScrollbarSize:function(){if(void 0===e.scrollbarSize){var t=document.createElement('div');t.style.cssText='width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;',document.body.appendChild(t),e.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)};return e.scrollbarSize}},t.magnificPopup={instance:null,proto:C.prototype,modules:[],open:function(e,n){return L(),e=e?t.extend(!0,{},e):{},e.isObj=!0,e.index=n||0,this.instance.open(e)},close:function(){return t.magnificPopup.instance&&t.magnificPopup.instance.close()},registerModule:function(e,n){n.options&&(t.magnificPopup.defaults[e]=n.options),t.extend(this.proto,n.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:'',preloader:!0,focus:'',closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:'auto',fixedBgPos:'auto',overflowY:'auto',closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:'Close (Esc)',tLoading:'Loading...',autoFocusLast:!0}},t.fn.magnificPopup=function(n){L();var i=t(this);if('string'==typeof n)if('open'===n){var o,r=M?i.data('magnificPopup'):i[0].magnificPopup,a=parseInt(arguments[1],10)||0;r.items?o=r.items[a]:(o=i,r.delegate&&(o=o.find(r.delegate)),o=o.eq(a)),e._openClick({mfpEl:o},i,r)}
else e.isOpen&&e[n].apply(e,Array.prototype.slice.call(arguments,1));else n=t.extend(!0,{},n),M?i.data('magnificPopup',n):i[0].magnificPopup=n,e.addGroup(i,n);return i};var u,g,v,T='inline',F=function(){v&&(g.after(v.addClass(u)).detach(),v=null)};t.magnificPopup.registerModule(T,{options:{hiddenClass:'hide',markup:'',tNotFound:'Content not found'},proto:{initInline:function(){e.types.push(T),i(c+'.'+T,function(){F()})},getInline:function(n,i){if(F(),n.src){var a=e.st.inline,o=t(n.src);if(o.length){var r=o[0].parentNode;r&&r.tagName&&(g||(u=a.hiddenClass,g=p(u),u='mfp-'+u),v=o.after(g).detach().removeClass(u)),e.updateStatus('ready')}
else e.updateStatus('error',a.tNotFound),o=t('<div>');return n.inlineElement=o,o};return e.updateStatus('ready'),e._parseMarkup(i,{},n),i}}});var f,m='ajax',k=function(){f&&t(document.body).removeClass(f)},A=function(){k(),e.req&&e.req.abort()};t.magnificPopup.registerModule(m,{options:{settings:null,cursor:'mfp-ajax-cur',tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){e.types.push(m),f=e.st.ajax.cursor,i(c+'.'+m,A),i('BeforeChange.'+m,A)},getAjax:function(i){f&&t(document.body).addClass(f),e.updateStatus('loading');var o=t.extend({url:i.src,success:function(o,r,a){var s={data:o,xhr:a};n('ParseAjax',s),e.appendContent(t(s.data),m),i.finished=!0,k(),e._setFocus(),setTimeout(function(){e.wrap.addClass(y)},16),e.updateStatus('ready'),n('AjaxContentAdded')},error:function(){k(),i.finished=i.loadError=!0,e.updateStatus('error',e.st.ajax.tError.replace('%url%',i.src))}},e.st.ajax.settings);return e.req=t.ajax(o),''}}});var a,K=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=e.st.image.titleSrc;if(i){if(t.isFunction(i))return i.call(e,n);if(n.el)return n.el.attr(i)||''};return''};t.magnificPopup.registerModule('image',{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:'mfp-zoom-out-cur',titleSrc:'title',verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=e.st.image,r='.image';e.types.push('image'),i(E+r,function(){'image'===e.currItem.type&&n.cursor&&t(document.body).addClass(n.cursor)}),i(c+r,function(){n.cursor&&t(document.body).removeClass(n.cursor),d.off('resize'+o)}),i('Resize'+r,e.resizeImage),e.isLowIE&&i('AfterChange',e.resizeImage)},resizeImage:function(){var t=e.currItem;if(t&&t.img&&e.st.image.verticalFit){var n=0;e.isLowIE&&(n=parseInt(t.img.css('padding-top'),10)+parseInt(t.img.css('padding-bottom'),10)),t.img.css('max-height',e.wH-n)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,a&&clearInterval(a),t.isCheckingImgSize=!1,n('ImageHasSize',t),t.imgHidden&&(e.content&&e.content.removeClass('mfp-loading'),t.imgHidden=!1))},findImageSize:function(t){var n=0,o=t.img[0],i=function(r){a&&clearInterval(a),a=setInterval(function(){return o.naturalWidth>0?void e._onImageHasSize(t):(n>200&&clearInterval(a),n++,void(3===n?i(10):40===n?i(50):100===n&&i(500)))},r)};i(1)},getImage:function(i,o){var s=0,l=function(){i&&(i.img[0].complete?(i.img.off('.mfploader'),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus('ready')),i.hasSize=!0,i.loaded=!0,n('ImageLoadComplete')):(s++,200>s?setTimeout(l,100):c()))},c=function(){i&&(i.img.off('.mfploader'),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus('error',d.tError.replace('%url%',i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},d=e.st.image,u=o.find('.mfp-img');if(u.length){var r=document.createElement('img');r.className='mfp-img',i.el&&i.el.find('img').length&&(r.alt=i.el.find('img').attr('alt')),i.img=t(r).on('load.mfploader',l).on('error.mfploader',c),r.src=i.src,u.is('img')&&(i.img=i.img.clone()),r=i.img[0],r.naturalWidth>0?i.hasSize=!0:r.width||(i.hasSize=!1)};return e._parseMarkup(o,{title:K(i),img_replaceWith:i.img},i),e.resizeImage(),i.hasSize?(a&&clearInterval(a),i.loadError?(o.addClass('mfp-loading'),e.updateStatus('error',d.tError.replace('%url%',i.src))):(o.removeClass('mfp-loading'),e.updateStatus('ready')),o):(e.updateStatus('loading'),i.loading=!0,i.hasSize||(i.imgHidden=!0,o.addClass('mfp-loading'),e.findImageSize(i)),o)}}});var x,q=function(){return void 0===x&&(x=void 0!==document.createElement('p').style.MozTransform),x};t.magnificPopup.registerModule('zoom',{options:{enabled:!1,easing:'ease-in-out',duration:300,opener:function(e){return e.is('img')?e:e.find('img')}},proto:{initZoom:function(){var o,a=e.st.zoom,l='.zoom';if(a.enabled&&e.supportsTransition){var r,t,d=a.duration,u=function(e){var i=e.clone().removeAttr('style').removeAttr('class').addClass('mfp-animated-image'),o='all '+a.duration/1e3+'s '+a.easing,t={position:'fixed',zIndex:9999,left:0,top:0,'-webkit-backface-visibility':'hidden'},n='transition';return t['-webkit-'+n]=t['-moz-'+n]=t['-o-'+n]=t[n]=o,i.css(t),i},s=function(){e.content.css('visibility','visible')};i('BuildControls'+l,function(){if(e._allowZoom()){if(clearTimeout(r),e.content.css('visibility','hidden'),o=e._getItemToZoom(),!o)return void s();t=u(o),t.css(e._getOffset()),e.wrap.append(t),r=setTimeout(function(){t.css(e._getOffset(!0)),r=setTimeout(function(){s(),setTimeout(function(){t.remove(),o=t=null,n('ZoomAnimationEnded')},16)},d)},16)}}),i(N+l,function(){if(e._allowZoom()){if(clearTimeout(r),e.st.removalDelay=d,!o){if(o=e._getItemToZoom(),!o)return;t=u(o)};t.css(e._getOffset(!0)),e.wrap.append(t),e.content.css('visibility','hidden'),setTimeout(function(){t.css(e._getOffset())},16)}}),i(c+l,function(){e._allowZoom()&&(s(),t&&t.remove(),o=null)})}},_allowZoom:function(){return'image'===e.currItem.type},_getItemToZoom:function(){return e.currItem.hasSize?e.currItem.img:!1},_getOffset:function(n){var i;i=n?e.currItem.img:e.st.zoom.opener(e.currItem.el||e.currItem);var r=i.offset(),a=parseInt(i.css('padding-top'),10),s=parseInt(i.css('padding-bottom'),10);r.top-=t(window).scrollTop()-a;var o={width:i.width(),height:(M?i.innerHeight():i[0].offsetHeight)-s-a};return q()?o['-moz-transform']=o.transform='translate('+r.left+'px,'+r.top+'px)':(o.left=r.left,o.top=r.top),o}}});var s='iframe',R='//about:blank',I=function(t){if(e.currTemplate[s]){var n=e.currTemplate[s].find('iframe');n.length&&(t||(n[0].src=R),e.isIE8&&n.css('display',t?'block':'none'))}};t.magnificPopup.registerModule(s,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:'iframe_src',patterns:{youtube:{index:'youtube.com',id:'v=',src:'//www.youtube.com/embed/%id%?autoplay=1'},vimeo:{index:'vimeo.com/',id:'/',src:'//player.vimeo.com/video/%id%?autoplay=1'},gmaps:{index:'//maps.google.',src:'%id%&output=embed'}}},proto:{initIframe:function(){e.types.push(s),i('BeforeChange',function(e,t,n){t!==n&&(t===s?I():n===s&&I(!0))}),i(c+'.'+s,function(){I()})},getIframe:function(n,i){var o=n.src,r=e.st.iframe;t.each(r.patterns,function(){return o.indexOf(this.index)>-1?(this.id&&(o='string'==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace('%id%',o),!1):void 0});var a={};return r.srcAction&&(a[r.srcAction]=o),e._parseMarkup(i,a,n),e.updateStatus('ready'),i}}});var b=function(t){var n=e.items.length;return t>n-1?t-n:0>t?n+t:t},H=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};t.magnificPopup.registerModule('gallery',{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:'Previous (Left arrow key)',tNext:'Next (Right arrow key)',tCounter:'%curr% of %total%'},proto:{initGallery:function(){var o=e.st.gallery,n='.mfp-gallery';return e.direction=!0,o&&o.enabled?(l+=' mfp-gallery',i(E+n,function(){o.navigateByImgClick&&e.wrap.on('click'+n,'.mfp-img',function(){return e.items.length>1?(e.next(),!1):void 0}),r.on('keydown'+n,function(t){37===t.keyCode?e.prev():39===t.keyCode&&e.next()})}),i('UpdateStatus'+n,function(t,n){n.text&&(n.text=H(n.text,e.currItem.index,e.items.length))}),i(S+n,function(t,n,i,r){var a=e.items.length;i.counter=a>1?H(o.tCounter,r.index,a):''}),i('BuildControls'+n,function(){if(e.items.length>1&&o.arrows&&!e.arrowLeft){var n=o.arrowMarkup,i=e.arrowLeft=t(n.replace(/%title%/gi,o.tPrev).replace(/%dir%/gi,'left')).addClass(O),r=e.arrowRight=t(n.replace(/%title%/gi,o.tNext).replace(/%dir%/gi,'right')).addClass(O);i.click(function(){e.prev()}),r.click(function(){e.next()}),e.container.append(i.add(r))}}),i(W+n,function(){e._preloadTimeout&&clearTimeout(e._preloadTimeout),e._preloadTimeout=setTimeout(function(){e.preloadNearbyImages(),e._preloadTimeout=null},16)}),void i(c+n,function(){r.off(n),e.wrap.off('click'+n),e.arrowRight=e.arrowLeft=null})):!1},next:function(){e.direction=!0,e.index=b(e.index+1),e.updateItemHTML()},prev:function(){e.direction=!1,e.index=b(e.index-1),e.updateItemHTML()},goTo:function(t){e.direction=t>=e.index,e.index=t,e.updateItemHTML()},preloadNearbyImages:function(){var t,n=e.st.gallery.preload,i=Math.min(n[0],e.items.length),o=Math.min(n[1],e.items.length);for(t=1;t<=(e.direction?o:i);t++)e._preloadItem(e.index+t);for(t=1;t<=(e.direction?i:o);t++)e._preloadItem(e.index-t)},_preloadItem:function(i){if(i=b(i),!e.items[i].preloaded){var o=e.items[i];o.parsed||(o=e.parseEl(i)),n('LazyLoad',o),'image'===o.type&&(o.img=t('<img class="mfp-img" />').on('load.mfploader',function(){o.hasSize=!0}).on('error.mfploader',function(){o.hasSize=!0,o.loadError=!0,n('LazyLoadError',o)}).attr('src',o.src)),o.preloaded=!0}}}});var w='retina';t.magnificPopup.registerModule(w,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return'@2x'+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var n=e.st.retina,t=n.ratio;t=isNaN(t)?t():t,t>1&&(i('ImageHasSize.'+w,function(e,n){n.img.css({'max-width':n.img[0].naturalWidth/t,width:'100%'})}),i('ElementParse.'+w,function(e,i){i.src=n.replaceSrc(i,t)}))}}}}),L()});(function(e){'use strict';e.avia_utilities=e.avia_utilities||{};e.avia_utilities.av_popup={type:'image',mainClass:'avia-popup mfp-zoom-in',tLoading:'',tClose:'',removalDelay:300,closeBtnInside:!0,closeOnContentClick:!1,midClick:!0,fixedContentPos:!1,iframe:{patterns:{youtube:{index:'youtube.com/watch',id:function(e){var a=e.match(/[\\?\\&]v=([^\\?\\&]+)/),i,t;if(!a||!a[1])return null;i=a[1];t=e.split('/watch');t=t[1];return i+t},src:'//www.youtube.com/embed/%id%'},vimeo:{index:'vimeo.com/',id:function(e){var a=e.match(/(https?:\/\/)?(www.)?(player.)?vimeo.com\/([a-z]*\/)*([0-9]{6,11})[?]?.*/),i,t;if(!a||!a[5])return null;i=a[5];t=e.split('?');t=t[1];return i+'?'+t},src:'//player.vimeo.com/video/%id%'}}},image:{titleSrc:function(e){var t=e.el.attr('title');if(!t)t=e.el.find('img').attr('title');if(!t)t=e.el.parent().next('.wp-caption-text').html();if(typeof t=='undefined')return'';return t}},gallery:{tPrev:'',tNext:'',tCounter:'%curr% / %total%',enabled:!0,preload:[1,1]},callbacks:{beforeOpen:function(){if(this.st.el&&this.st.el.data('fixed-content')){this.fixedContentPos=!0}},open:function(){e.magnificPopup.instance.next=function(){var t=this;t.wrap.removeClass('mfp-image-loaded');setTimeout(function(){e.magnificPopup.proto.next.call(t)},120)};e.magnificPopup.instance.prev=function(){var t=this;t.wrap.removeClass('mfp-image-loaded');setTimeout(function(){e.magnificPopup.proto.prev.call(t)},120)};if(this.st.el&&this.st.el.data('av-extra-class')){this.wrap.addClass(this.currItem.el.data('av-extra-class'))}},imageLoadComplete:function(){var e=this;setTimeout(function(){e.wrap.addClass('mfp-image-loaded')},16)},change:function(){if(this.currItem.el){var e=this.currItem.el;this.content.find('.av-extra-modal-content, .av-extra-modal-markup').remove();if(e.data('av-extra-content')){var a=e.data('av-extra-content');this.content.append('<div class=\'av-extra-modal-content\'>'+a+'</div>')};if(e.data('av-extra-markup')){var t=e.data('av-extra-markup');this.wrap.append('<div class=\'av-extra-modal-markup\'>'+t+'</div>')}}}}},e.fn.avia_activate_lightbox=function(a){var i={groups:['.avia-slideshow','.avia-gallery','.av-horizontal-gallery','.av-instagram-pics','.portfolio-preview-image','.portfolio-preview-content','.isotope','.post-entry','.sidebar','#main','.main_menu','.woocommerce-product-gallery'],autolinkElements:'a.lightbox, a[rel^="prettyPhoto"], a[rel^="lightbox"], a[href$=jpg], a[href$=png], a[href$=gif], a[href$=jpeg], a[href*=".jpg?"], a[href*=".png?"], a[href*=".gif?"], a[href*=".jpeg?"], a[href$=".mov"] , a[href$=".swf"] , a:regex(href, .vimeo\.com/[0-9]) , a[href*="youtube.com/watch"] , a[href*="screenr.com"], a[href*="iframe=true"]',videoElements:'a[href$=".mov"] , a[href$=".swf"] , a:regex(href, .vimeo\.com/[0-9]) , a[href*="youtube.com/watch"] , a[href*="screenr.com"], a[href*="iframe=true"]',exclude:'.noLightbox, .noLightbox a, .fakeLightbox, .lightbox-added, a[href*="dropbox.com"]'},t=e.extend({},i,a),o=!e('html').is('.av-custom-lightbox');if(!o)return this;return this.each(function(){var i=e(this),r=e(t.videoElements,this).not(t.exclude).addClass('mfp-iframe'),o=!i.is('body')&&!i.is('.ajax_slide');for(var a=0;a<t.groups.length;a++){i.find(t.groups[a]).each(function(){var a=e(t.autolinkElements,this);if(o)a.removeClass('lightbox-added');a.not(t.exclude).addClass('lightbox-added').magnificPopup(e.avia_utilities.av_popup)})}})}})(jQuery);(function(t){'use strict';t(document).ready(function(){t('.avia_auto_toc').each(function(){var c=t(this).attr('id'),i='h1',s=[],n='',e=t(this).find('.avia-toc-container');if(e.length){var r=e.attr('data-level'),o=e.attr('data-exclude');if(typeof r!==undefined){i=r};if(typeof o!==undefined){n=o}};s=i.split(',');t('.entry-content-wrapper').find(i).each(function(){var i=t(this).attr('id'),h=t(this).prop('tagName').toLowerCase(),o=t(this).text(),l=s.indexOf(h),f='';if(i==undefined){var r=a(o);t(this).attr('id',r);i=r};if(!t(this).hasClass('av-no-toc')&&!t(this).hasClass(n)&&!t(this).parent().hasClass(n)){var c='<a href="#'+i+'" class="avia-toc-link avia-toc-level-'+l+'"><span>'+o+'</span></a>'};e.append(c)});t('.avia-toc-smoothscroll .avia-toc-link').on('click',function(a){a.preventDefault();var n=t(this).attr('href'),e=50,i=t('.html_header_top.html_header_sticky #header');if(i.length){e=i.outerHeight()+50};t('html,body').animate({scrollTop:t(n).offset().top-e})})})});function a(t){return t.toLowerCase().replace(/[^a-z0-9]+/g,'-').replace(/^-+|-+$/g,'-').replace(/^-+|-+$/g,'')}})(jQuery);'use strict';(function(a){var i=null,s=function(){if('undefined'==typeof window.av_google_map||'undefined'==typeof avia_framework_globals){return};if(i!=null){return};i=this;this.document=a(document);this.script_loading=!1;this.script_loaded=!1;this.script_source=avia_framework_globals.gmap_avia_api;this.maps={};this.loading_icon_html='<div class="ajax_load"><span class="ajax_load_inner"></span></div>';this.LoadAviaMapsAPIScript()};s.prototype={LoadAviaMapsAPIScript:function(){this.maps=a('body').find('.avia-google-map-container');if(this.maps.length==0){return};var e=!1;this.maps.each(function(i){var s=a(this);if(s.hasClass('av_gmaps_show_unconditionally')||s.hasClass('av_gmaps_show_delayed')){e=!0;return!1}});if(!e){return};var o=a('html').hasClass('av-cookies-needs-opt-in')||a('html').hasClass('av-cookies-can-opt-out'),i=!0,t=a('html').hasClass('av-cookies-user-silent-accept');if(o&&!t){if(!document.cookie.match(/aviaCookieConsent/)||a('html').hasClass('av-cookies-session-refused')){i=!1}
else{if(!document.cookie.match(/aviaPrivacyRefuseCookiesHideBar/)){i=!1}
else if(!document.cookie.match(/aviaPrivacyEssentialCookiesEnabled/)){i=!1}
else if(document.cookie.match(/aviaPrivacyGoogleMapsDisabled/)){i=!1}}};if(!i){a('.av_gmaps_main_wrap').addClass('av-maps-user-disabled');return};if(typeof a.AviaMapsAPI!='undefined'){this.AviaMapsScriptLoaded();return};a('body').on('avia-google-maps-api-script-loaded',a.proxy(this.AviaMapsScriptLoaded,this));this.script_loading=!0;var s=document.createElement('script');s.id='avia-gmaps-api-script';s.type='text/javascript';s.src=this.script_source;document.body.appendChild(s)},AviaMapsScriptLoaded:function(){this.script_loading=!1;this.script_loaded=!0;var i=this;this.maps.each(function(e){var s=a(this);if(s.hasClass('av_gmaps_show_page_only')){return};var o=s.data('mapid');if('undefined'==typeof window.av_google_map[o]){console.log('Map cannot be displayed because no info: '+o);return};if(s.hasClass('av_gmaps_show_unconditionally')){s.aviaMaps()}
else if(s.hasClass('av_gmaps_show_delayed')){var t=s.closest('.av_gmaps_main_wrap'),n=t.find('a.av_text_confirm_link');n.on('click',i.AviaMapsLoadConfirmed)}
else{console.log('Map cannot be displayed because missing display class: '+o)}})},AviaMapsLoadConfirmed:function(i){i.preventDefault();var s=a(this),e=s.closest('.av_gmaps_main_wrap').find('.avia-google-map-container');e.aviaMaps()}};a(function(){new s()})})(jQuery);