(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(),d=i.position(),p=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(!p||p=='inline'){o.css({display:'block'})};s.css({left:(d.left-c)+parseInt(i.css('margin-left'),10),top:d.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),p=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'),d=function(){if(p.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;d();o.on('debouncedresize av-height-change',d);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='',p='';if('#next-section'==n){p=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(),d=s.offset().top,r=d-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&&d>a.offset().top){r-=a.outerHeight()-3};if(u+n==v||p){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),T=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'),d=n.is('.html_av-submenu-display-click.html_av-submenu-clone, .html_av-submenu-display-hover.html_av-submenu-clone'),w=!1;var f=t('#avia_alternate_menu');if(f.length>0){v=f};var p=function(){if(t.avia_utilities.isMobile){m.outerHeight(window.innerHeight)}},l=function(e,a){if(!e)return;var p,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'),p=!0;if(e.length){if(e.get(0).hash=='#'||'undefined'==typeof e.attr('href')||e.attr('href')=='#'){if(c.length>0||h.length>0){p=!1}}};r=e.clone(p).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(d&&(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(d&&(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'),p=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(p=='#'){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="'+p+'"><span class="avia-bullet"></span><span class="avia-menu-text">'+n.text()+'</span></a>').insertBefore(o);s=i.find('>a');if(d&&(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 p},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')}};p()});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 i=t('#header .main_menu').clone(!0);i.find('.menu-item:not(.menu-item-avia-special)').remove();i.insertAfter(y.find('.logo').first());var e=t('#header .social_bookmarks').clone(!0);if(!e.length)e=t('.av-logo-container .social_bookmarks').clone(!0);if(e.length){i.find('.avia-menu').addClass('av_menu_icon_beside');i.append(e)};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 d=v.find('> li:not(.menu-item-avia-special)'),f=l(d,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{p();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)'),d=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'),p=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:d.top+v,left:d.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(){p.insertAfter(m);i.addClass('ajax_loading_now')},success:function(t){if(t==0)t='';a.html(t).show()},complete:function(){p.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.prototype={bind_events:function(){var e='.av-permanent-tooltip [data-'+this.options.data+']',i='[data-'+this.options.data+']:not( .av-permanent-tooltip [data-'+this.options.data+'])';this.scope.on('av_permanent_show',e,t.proxy(this.display_tooltip,this));t(e).addClass('av-perma-tooltip').trigger('av_permanent_show');this.scope.on(this.options.event+' mouseleave',i,t.proxy(this.start_countdown,this));if(this.options.event!='click'){this.scope.on('mouseleave',i,t.proxy(this.hide_tooltip,this))}
else{this.body.on('mousedown',t.proxy(this.hide_tooltip,this))}},start_countdown:function(e){clearTimeout(this.timer);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'){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 m=this,g=this.options.event=='click'?e.target:e.currentTarget,i=t(g),d=i.data(this.options.data),a=i.data('avia-created-tooltip'),u=i.data('avia-tooltip-class'),p=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'),v=!1;d=t.trim(d);if(i.is('.av-perma-tooltip')){s={top:0,left:0};p=i;v=!0};if(d=='')return;if(c==''||typeof c=='undefined')c=this.options.position;if(h==''||typeof h=='undefined')h='center';if(typeof a!='undefined'){a=t.AviaTooltip.openTTs[a]}
else{this.inner.html(d);a=this.tooltip.clone();if(this.options.attach=='element'&&v!==!0){a.insertAfter(p)}
else{a.appendTo(p)};if(u!='')a.addClass(u)};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(m.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();t.AviaTooltip.openTTs.push(a);i.data('avia-created-tooltip',t.AviaTooltip.openTTs.length-1)},hide_tooltip:function(e){var a=t(e.currentTarget),i,r,n=a.data('avia-tooltip-position'),s=a.data('avia-tooltip-alignment');if(n==''||typeof n=='undefined')n=this.options.position;if(s==''||typeof s=='undefined')s='center';if(this.options.event=='click'){a=t(e.target);if(!a.is('.'+this.options['class'])&&a.parents('.'+this.options['class']).length==0){if(this.active.length){i=this.active;this.active=!1}}}
else{i=a.data('avia-created-tooltip');i=typeof i!='undefined'?t.AviaTooltip.openTTs[i]:!1};if(i){var o={opacity:0};switch(n){case'top':o['top']=parseInt(i.css('top'),10)-10;break;case'bottom':o['top']=parseInt(i.css('top'),10)+10;break;case'left':o['left']=parseInt(i.css('left'),10)-10;break;case'right':o['left']=parseInt(i.css('left'),10)+10;break};i.animate(o,200,function(){i.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],d=t.newScroll>t.oldScroll,p=d?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(p),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,d,p,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,d=n&&s,p=!n&&!s,!r&&d?(t.queueTrigger(e.backward),a[t.group.id]=t.group):!r&&p?(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),r=i("html"),o=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"),t=i(".html_header_sidebar #top #header_main"),s=i(".html_header_sidebar .avia-fullscreen-slider.avia-builder-el-0.avia-builder-el-no-sibling").addClass("av-solo-full"),n=function(){var n="",r=e.height(),s=e.width(),c=r,f=(r/9)*16,l=(s/16)*9,d=Math.round(r*0.75),h=Math.round(r*0.5),p=Math.round(r*0.25),v=0;if(t.length)v=t.height();o.each(function(){c-=this.offsetHeight-1});var u=(c/9)*16;n+=".avia-section.av-minimum-height .container{opacity: 1; }\n";n+=".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:"+r+"px;}\n";n+=".av-minimum-height-75 .container, .av-cell-min-height-75 > .flex_cell	{height:"+d+"px;}\n";n+=".av-minimum-height-50 .container, .av-cell-min-height-50 > .flex_cell	{height:"+h+"px;}\n";n+=".av-minimum-height-25 .container, .av-cell-min-height-25 > .flex_cell	{height:"+p+"px;}\n";n+=".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:"+c+"px;}\n";n+="#top .av-solo-full .avia-slideshow {min-height:"+v+"px;}\n";if(s/r<16/9){n+="#top .av-element-cover iframe, #top .av-element-cover embed, #top .av-element-cover object, #top .av-element-cover video{width:"+f+"px; left: -"+(f-s)/2+"px;}\n"}
else{n+="#top .av-element-cover iframe, #top .av-element-cover embed, #top .av-element-cover object, #top .av-element-cover video{height:"+l+"px; top: -"+(l-r)/2+"px;}\n"};if(s/c<16/9){n+="#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:"+u+"px; left: -"+(u-s)/2+"px;}\n"}
else{n+="#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:"+l+"px; top: -"+(l-c)/2+"px;}\n"};try{a.text(n)}catch(m){a.remove();a=i("<style type='text/css' id='av-browser-height'>"+n+"</style>").appendTo("head:first")};setTimeout(function(){e.trigger("av-height-change")},100)};e.on("debouncedresize",n);n()};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"),n=t.data("link-column-target"),r=window.location.hostname+window.location.pathname;if("undefined"===typeof a||"string"!==typeof a){return};if("undefined"!==typeof n||"_blank"==n){window.open(a,"_blank")}
else{if(t.hasClass("av-cell-link")||t.hasClass("av-column-link")){var o=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(r)>=0)&&(a.indexOf("#")>0))){o.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){'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){'use strict';t.fn.layer_slider_height_helper=function(e){return this.each(function(){var e=t(this),i=e.find('>div:first'),n=!1,h=0,r=function(){if(i.height()>0||h>5){e.height('auto')}
else{n=setTimeout(r,500);h++}};if(!i.length)return;n=setTimeout(r,0)})}}(jQuery));(function(t){'use strict';t.fn.avia_sc_toggle=function(e){var a={single:'.single_toggle',heading:'.toggler',content:'.toggle_wrap',sortContainer:'.taglist'};var i=t(window),e=t.extend(a,e);return this.each(function(){var a=t(this).addClass('enable_toggles'),l=t(e.single,a),s=t(e.heading,a),n=t(a).attr('data-currentstyle'),r=t(e.content,a),o=t(e.sortContainer+' a',a);s.each(function(c){var l=t(this),o=l.next(e.content,a),d=l.attr('style'),g=l.attr('data-hoverstyle');function f(){var e=o.offset().top,a=e-50-parseInt(t('html').css('margin-top'),10);if(i.scrollTop()>e){t('html:not(:animated),body:not(:animated)').animate({scrollTop:a},200)}};if(o.css('visibility')!='hidden'){l.addClass('activeTitle').attr('style',n)};l.on('click',function(){if(o.css('visibility')!='hidden'){o.slideUp(200,function(){o.removeClass('active_tc').attr({style:''});i.trigger('av-height-change');i.trigger('av-content-el-height-changed',this);location.replace(l.data('fake-id')+'-closed')});l.removeClass('activeTitle').attr('style',d)}
else{if(a.is('.toggle_close_all')){r.not(o).slideUp(200,function(){t(this).removeClass('active_tc').attr({style:''});f()});s.removeClass('activeTitle').attr('style',d)};o.addClass('active_tc');setTimeout(function(){o.slideDown(200,function(){if(!a.is('.toggle_close_all')){f()};i.trigger('av-height-change');i.trigger('av-content-el-height-changed',this)})},1);l.addClass('activeTitle').attr('style',n);location.replace(l.data('fake-id'))}});if(g){l.hover(function(){if(!l.hasClass('activeTitle')){t(this).attr('style',g)}},function(){if(!l.hasClass('activeTitle')){t(this).attr('style',d)}})}});o.click(function(e){e.preventDefault();var i=l.filter('[data-tags~="'+t(this).data('tag')+'"]'),a=l.not('[data-tags~="'+t(this).data('tag')+'"]');o.removeClass('activeFilter');t(this).addClass('activeFilter');s.filter('.activeTitle').trigger('click');i.slideDown();a.slideUp()});function c(t){if(!t&&window.location.hash)t=window.location.hash;if(!t)return;var e=s.filter('[data-fake-id="'+t+'"]');if(e.length){if(!e.is('.activeTitle'))e.trigger('click');window.scrollTo(0,a.offset().top-70)}};c(!1);t('a').on('click',function(){var e=t(this).attr('href');if(typeof e!='undefined'&&e){e=e.replace(/^.*?#/,'');c('#'+e)}})})}}(jQuery));(function(e){'use strict';e.AviaVideoAPI=function(i,t,n){this.videoElement=t;this.$video=e(t);this.$option_container=n?e(n):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 o=e.extend(!0,{},e.AviaVideoAPI.defaults,i),n=this.$option_container.data(),t='';for(t in n){if(n.hasOwnProperty(t)&&(typeof n[t]==='string'||typeof n[t]==='number'||typeof n[t]==='boolean')){o[t]=n[t]}};return o},_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 e=this;if(document.cookie.match(/aviaPrivacyVideoEmbedsDisabled/)){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(){e.load_btn.remove();e._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 n=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'));n.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'),n=document.getElementsByTagName('script')[0];t.src=e.AviaVideoAPI.apiFiles[i].src;n.parentNode.insertBefore(t,n)}},_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 n=this;if(t){n=e(this).parents(t).get(0)};var o=e.data(n,'aviaVideoApi');if(!o){o=e.data(n,'aviaVideoApi',new e.AviaVideoAPI(i,this,n))}})}})(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,n='*';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 n=this,t=n.element,l=t.id!==''?t.id:null,u=!s(i)?i:null,a=s(i)?i:null;if(a){r(e,a,l)};o(e,u,t);return n},addEvent:function(e,i){if(!this.element){return!1};var a=this,n=a.element,s=n.id!==''?n.id:null;r(e,i,s);if(e!='ready'){o('addEventListener',e,n)}
else if(e=='ready'&&t){i.call(null,s)};return a},removeEvent:function(e){if(!this.element){return!1};var t=this,i=t.element,n=i.id!==''?i.id:null,a=u(e,n);if(e!='ready'&&a){o('removeEventListener',e,i)}}};function o(e,i,t){if(!t.contentWindow.postMessage){return!1};var o=JSON.stringify({method:e,value:i});t.contentWindow.postMessage(o,n)};function a(e){var i,s;try{i=JSON.parse(e.data);s=i.event||i.method}catch(p){};if(s=='ready'&&!t){t=!0};if(!(/^https?:\/\/player.vimeo.com/).test(e.origin)){return!1};if(n==='*'){n=e.origin};var u=i.value,d=i.data,a=a===''?null:i.player_id,r=l(s,a),o=[];if(!r){return!1};if(u!==undefined){o.push(u)};if(d){o.push(d)};if(a){o.push(a)};return o.length>0?r.apply(null,o):r.call()};function r(i,t,n){if(n){if(!e[n]){e[n]={}};e[n][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 s(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(a){'use strict';a('body').on('click','.av-lazyload-video-embed .av-click-to-play-overlay',function(i){if(document.cookie.match(/aviaPrivacyVideoEmbedsDisabled/)){if(i.originalEvent===undefined)return;var o=a(this).parents('.avia-video').data('original_url');if(o)window.open(o,'_blank');return};var l=a(this),e=l.parents('.av-lazyload-video-embed'),t=e.find('.av-video-tmpl').html();e.html(t)});a('.av-lazyload-immediate .av-click-to-play-overlay').trigger('click')}(jQuery));(function(i){'use strict';i(document).ready(function(){if(i.fn.aviaMegamenu)i('.main_menu .menu').aviaMegamenu({modify_position:!0})});i.fn.aviaMegamenu=function(e){var n={modify_position:!0,delay:300};var t=i.extend(n,e),a=i(window);return this.each(function(){var f=i('html:first'),g=i('#main .container:first'),c=f.filter('.html_menu_left, .html_logo_center').length,l=i.avia_utilities.isMobile,n=i(this),a=n.find('>li:not(.ignore_menu)'),e=a.find('>div').parent().css({overflow:'hidden'}),r=n.find('>.current-menu-item>a, >.current_page_item>a'),d=a.find('>ul').parent(),u=n.parent(),h=n.parents('.main_menu').eq(0),p=u.width(),o={},s=[];if(!r.length){n.find('.current-menu-ancestor:eq(0) a:eq(0), .current_page_ancestor:eq(0) a:eq(0)').parent().addClass('active-parent-item')};if(!f.is('.html_header_top')){t.modify_position=!1};a.on('click','a',function(i){if(this.href==window.location.href+'#'||this.href==window.location.href+'/#')i.preventDefault()});a.each(function(){var e=i(this),s=e.position(),a=e.find('div:first').css({opacity:0,display:'none'}),o='';if(!a.length){o=e.find('>ul').css({display:'none'})};if(a.length||o.length){var n=e.addClass('dropdown_ul_available').find('>a');n.append('<span class="dropdown_available"></span>');if(typeof n.attr('href')!='string'||n.attr('href')=='#'){n.css('cursor','default').click(function(i){i.preventDefault()})}};if(t.modify_position&&a.length){e.on('mouseenter',function(){m(e,s,a,p)})}});function m(i,t,e,n){t=i.position();if(!c){if(t.left+e.width()<n){e.css({right:-e.outerWidth()+i.outerWidth()})}
else if(t.left+e.width()>n){e.css({right:-h.outerWidth()+(t.left+i.outerWidth())})}}
else{if(e.width()>t.left+i.outerWidth()){e.css({left:(t.left*-1)})}
else if(t.left+e.width()>n){e.css({left:(e.width()-t.left)*-1})}}};function v(i){if(o[i]==!0){var t=e.filter(':eq('+i+')').css({overflow:'visible'}).find('div:first'),n=e.filter(':eq('+i+')').find('a:first');s['check'+i]=!0;t.stop().css('display','block').animate({opacity:1},300);if(t.length){n.addClass('open-mega-a')}}};function y(t){if(o[t]==!1){e.filter(':eq('+t+')').find('>a').removeClass('open-mega-a');var n=e.filter(':eq('+t+')'),a=n.find('div:first');a.stop().css('display','block').animate({opacity:0},300,function(){i(this).css('display','none');n.css({overflow:'hidden'});s['check'+t]=!1})}};if(l){e.each(function(e){i(this).bind('click',function(){if(s['check'+e]!=!0)return!1})})};e.each(function(e){i(this).hover(function(){o[e]=!0;setTimeout(function(){v(e)},t.delay)},function(){o[e]=!1;setTimeout(function(){y(e)},t.delay)})});d.find('li').addBack().each(function(){var t=i(this),e=t.find('ul:first'),a=!1;if(e.length){e.css({display:'block',opacity:0,visibility:'hidden'});var n=t.find('>a');n.bind('mouseenter',function(){e.stop().css({visibility:'visible'}).animate({opacity:1})});t.bind('mouseleave',function(){e.stop().animate({opacity:0},function(){e.css({visibility:'hidden'})})})}})})}})(jQuery);(function(e){'use strict';e(document).ready(function(){i()});function a(e,i,a){if(e[0].classList){if(i=='add'){e[0].classList.add(a)}
else{e[0].classList.remove(a)}}
else{if(i=='add'){e.addClass(a)}
else{e.removeClass(a)}}};function i(){var l=e(window),i=e('.html_header_top.html_header_sticky #header'),n=e('.av_header_unstick_top');if(!i.length&&!n.length)return;var c=e('#header_main .container .logo img, #header_main .container .logo a'),t=e('#header_main .container:not(#header_main_alternate>.container), #header_main .main_menu ul:first-child > li > a:not(.avia_mega_div a, #header_main_alternate a), #header_main #menu-item-shop .cart_dropdown_link'),r=e(t).filter(':first').height(),f=e.avia_utilities.isMobile,m=e('#scroll-top-link'),o=i.is('.av_header_transparency'),s=i.is('.av_header_shrinking'),h=i.find('#header_meta').outerHeight(),d=function(){var e=l.scrollTop(),d=0,m=e;if(n)e-=h;if(e<0)e=0;if(s&&!f){if(e<r/2){d=r-e;if(e<=0){d=r};a(i,'remove','header-scrolled')}
else{d=r/2;a(i,'add','header-scrolled')};if(e-30<r){a(i,'remove','header-scrolled-full')}
else{a(i,'add','header-scrolled-full')};t.css({'height':d+'px','lineHeight':d+'px'});c.css({'maxHeight':d+'px'})};if(n.length){if(e<=0){if(m<=0)m=0;n.css({'margin-top':'-'+m+'px'})}
else{n.css({'margin-top':'-'+h+'px'})}};if(o){if(e>50){a(i,'remove','av_header_transparency')}
else{a(i,'add','av_header_transparency')}}};if(e('body').is('.avia_deactivate_menu_resize'))s=!1;if(!o&&!s&&!n.length)return;l.on('debouncedresize',function(){r=e(t).attr('style','').filter(':first').height();d()});l.on('scroll',function(){window.requestAnimationFrame(d)});d()}})(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 s=!1;this.maps.each(function(i){var o=a(this);if(o.hasClass('av_gmaps_show_unconditionally')||o.hasClass('av_gmaps_show_delayed')){s=!0;return!1}});if(!s){return};if(document.cookie.match(/aviaPrivacyGoogleMapsDisabled/)){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 i=document.createElement('script');i.id='avia-gmaps-api-script';i.type='text/javascript';i.src=this.script_source;document.body.appendChild(i)},AviaMapsScriptLoaded:function(){this.script_loading=!1;this.script_loaded=!0;var i=this;this.maps.each(function(o){var s=a(this);if(s.hasClass('av_gmaps_show_page_only')){return};var e=s.data('mapid');if('undefined'==typeof window.av_google_map[e]){console.log('Map cannot be displayed because no info: '+e);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: '+e)}})},AviaMapsLoadConfirmed:function(i){i.preventDefault();var s=a(this),o=s.closest('.av_gmaps_main_wrap').find('.avia-google-map-container');o.aviaMaps()}};a(function(){new s()})})(jQuery);