(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)});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,e){'function'==typeof define&&define.amd?define('jquery-bridget/jquery-bridget',['jquery'],function(i){return e(t,i)}):'object'==typeof module&&module.exports?module.exports=e(t,require('jquery')):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){'use strict';function n(i,n,a){function h(t,e,n){var s,r='$().'+i+'("'+e+'")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void o(i+' not initialized. Cannot call methods, i.e. '+r);var c=u[e];if(!c||'_'==e.charAt(0))return void o(r+' is not a valid method');var d=c.apply(u,n);s=void 0===s?d:s}),void 0!==s?s:t};function u(t,e){t.each(function(t,o){var s=a.data(o,i);s?(s.option(e),s._init()):(s=new n(o,e),a.data(o,i,s))})};a=a||e||t.jQuery,a&&(n.prototype.option||(n.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if('string'==typeof t){var e=r.call(arguments,1);return h(this,t,e)};return u(this,t),this},s(a))};function s(t){!t||t&&t.bridget||(t.bridget=n)};var r=Array.prototype.slice,i=t.console,o='undefined'==typeof i?function(){}:function(t){i.error(t)};return s(e||t.jQuery),n}),function(t,e){'function'==typeof define&&define.amd?define('ev-emitter/ev-emitter',e):'object'==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}('undefined'!=typeof window?window:this,function(){function e(){};var t=e.prototype;return t.on=function(t,e){if(t&&e){var i=this._events=this._events||{},o=i[t]=i[t]||[];return o.indexOf(e)==-1&&o.push(e),this}},t.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},o=i[t]=i[t]||{};return o[e]=!0,this}},t.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var o=i.indexOf(e);return o!=-1&&i.splice(o,1),this}},t.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],s=0;s<i.length;s++){var o=i[s],r=n&&n[o];r&&(this.off(t,o),delete n[o]),o.apply(this,e)};return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(t,e){'use strict';'function'==typeof define&&define.amd?define('get-size/get-size',[],function(){return e()}):'object'==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){'use strict';function e(t){var e=parseFloat(t),i=t.indexOf('%')==-1&&!isNaN(e);return i&&e};function h(){};function u(){for(var i={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<o;e++){var n=t[e];i[n]=0};return i};function s(t){var e=getComputedStyle(t);return e||a('Style returned '+e+'. Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1'),e};function c(){if(!n){n=!0;var t=document.createElement('div');t.style.width='200px',t.style.padding='1px 2px 3px 4px',t.style.borderStyle='solid',t.style.borderWidth='1px 2px 3px 4px',t.style.boxSizing='border-box';var o=document.body||document.documentElement;o.appendChild(t);var a=s(t);r.isBoxSizeOuter=i=200==e(a.width),o.removeChild(t)}};function r(n){if(c(),'string'==typeof n&&(n=document.querySelector(n)),n&&'object'==typeof n&&n.nodeType){var a=s(n);if('none'==a.display)return u();var r={};r.width=n.offsetWidth,r.height=n.offsetHeight;for(var w=r.isBorderBox='border-box'==a.boxSizing,h=0;h<o;h++){var v=t[h],b=a[v],x=parseFloat(b);r[v]=isNaN(x)?0:x};var l=r.paddingLeft+r.paddingRight,f=r.paddingTop+r.paddingBottom,z=r.marginLeft+r.marginRight,I=r.marginTop+r.marginBottom,p=r.borderLeftWidth+r.borderRightWidth,m=r.borderTopWidth+r.borderBottomWidth,g=w&&i,y=e(a.width);y!==!1&&(r.width=y+(g?0:l+p));var d=e(a.height);return d!==!1&&(r.height=d+(g?0:f+m)),r.innerWidth=r.width-(l+p),r.innerHeight=r.height-(f+m),r.outerWidth=r.width+z,r.outerHeight=r.height+I,r}};var i,a='undefined'==typeof console?h:function(t){console.error(t)},t=['paddingLeft','paddingRight','paddingTop','paddingBottom','marginLeft','marginRight','marginTop','marginBottom','borderLeftWidth','borderRightWidth','borderTopWidth','borderBottomWidth'],o=t.length,n=!1;return r}),function(t,e){'use strict';'function'==typeof define&&define.amd?define('desandro-matches-selector/matches-selector',e):'object'==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){'use strict';var t=function(){var e=window.Element.prototype;if(e.matches)return'matches';if(e.matchesSelector)return'matchesSelector';for(var o=['webkit','moz','ms','o'],t=0;t<o.length;t++){var n=o[t],i=n+'MatchesSelector';if(e[i])return i}}();return function(e,i){return e[t](i)}}),function(t,e){'function'==typeof define&&define.amd?define('fizzy-ui-utils/utils',['desandro-matches-selector/matches-selector'],function(i){return e(t,i)}):'object'==typeof module&&module.exports?module.exports=e(t,require('desandro-matches-selector')):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e},i.makeArray=function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&'object'==typeof t&&'number'==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e},i.removeFrom=function(t,e){var i=t.indexOf(e);i!=-1&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return'string'==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e='on'+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,o){t=i.makeArray(t);var n=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!o)return void n.push(t);e(t,o)&&n.push(t);for(var s=t.querySelectorAll(o),i=0;i<s.length;i++)n.push(s[i])}}),n},i.debounceMethod=function(t,e,i){var n=t.prototype[e],o=e+'Timeout';t.prototype[e]=function(){var e=this[o];e&&clearTimeout(e);var s=arguments,t=this;this[o]=setTimeout(function(){n.apply(t,s),delete t[o]},i||100)}},i.docReady=function(t){var e=document.readyState;'complete'==e||'interactive'==e?setTimeout(t):document.addEventListener('DOMContentLoaded',t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+'-'+i}).toLowerCase()};var o=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var r=i.toDashed(n),s='data-'+r,h=document.querySelectorAll('['+s+']'),u=document.querySelectorAll('.js-'+r),c=i.makeArray(h).concat(i.makeArray(u)),d=s+'-options',a=t.jQuery;c.forEach(function(t){var i,r=t.getAttribute(s)||t.getAttribute(d);try{i=r&&JSON.parse(r)}catch(u){return void(o&&o.error('Error parsing '+s+' on '+t.className+': '+u))};var h=new e(t,i);a&&a.data(t,n,h)})})},i}),function(t,e){'function'==typeof define&&define.amd?define('outlayer/item',['ev-emitter/ev-emitter','get-size/get-size'],e):'object'==typeof module&&module.exports?module.exports=e(require('ev-emitter'),require('get-size')):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){'use strict';function l(t){for(var e in t)return!1;return e=null,!0};function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())};function f(t){return t.replace(/([A-Z])/g,function(t){return'-'+t.toLowerCase()})};var s=document.documentElement.style,o='string'==typeof s.transition?'transition':'WebkitTransition',r='string'==typeof s.transform?'transform':'WebkitTransform',a={WebkitTransition:'webkitTransitionEnd',transition:'transitionend'}[o],d={transform:r,transition:o,transitionDuration:o+'Duration',transitionProperty:o+'Property',transitionDelay:o+'Delay'},i=n.prototype=Object.create(t.prototype);i.constructor=n,i._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:'absolute'})},i.handleEvent=function(t){var e='on'+t.type;this[e]&&this[e](t)},i.getSize=function(){this.size=e(this.element)},i.css=function(t){var o=this.element.style;for(var e in t){var i=d[e]||e;o[i]=t[e]}},i.getPosition=function(){var s=getComputedStyle(this.element),r=this.layout._getOption('originLeft'),a=this.layout._getOption('originTop'),o=s[r?'left':'right'],n=s[a?'top':'bottom'],t=this.layout.size,e=o.indexOf('%')!=-1?parseFloat(o)/100*t.width:parseInt(o,10),i=n.indexOf('%')!=-1?parseFloat(n)/100*t.height:parseInt(n,10);e=isNaN(e)?0:e,i=isNaN(i)?0:i,e-=r?t.paddingLeft:t.paddingRight,i-=a?t.paddingTop:t.paddingBottom,this.position.x=e,this.position.y=i},i.layoutPosition=function(){var o=this.layout.size,t={},e=this.layout._getOption('originLeft'),i=this.layout._getOption('originTop'),h=e?'paddingLeft':'paddingRight',u=e?'left':'right',c=e?'right':'left',d=this.position.x+o[h];t[u]=this.getXValue(d),t[c]='';var n=i?'paddingTop':'paddingBottom',s=i?'top':'bottom',r=i?'bottom':'top',a=this.position.y+o[n];t[s]=this.getYValue(a),t[r]='',this.css(t),this.emitEvent('layout',[this])},i.getXValue=function(t){var e=this.layout._getOption('horizontal');return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+'%':t+'px'},i.getYValue=function(t){var e=this.layout._getOption('horizontal');return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+'%':t+'px'},i._transitionTo=function(t,e){this.getPosition();var s=this.position.x,r=this.position.y,a=parseInt(t,10),h=parseInt(e,10),u=a===this.position.x&&h===this.position.y;if(this.setPosition(t,e),u&&!this.isTransitioning)return void this.layoutPosition();var o=t-s,n=e-r,i={};i.transform=this.getTranslate(o,n),this.transition({to:i,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},i.getTranslate=function(t,e){var i=this.layout._getOption('originLeft'),o=this.layout._getOption('originTop');return t=i?t:-t,e=o?e:-e,'translate3d('+t+'px, '+e+'px, 0)'},i.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},i.moveTo=i._transitionTo,i.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},i._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},i.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var i=this._transn;for(var e in t.onTransitionEnd)i.onEnd[e]=t.onTransitionEnd[e];for(e in t.to)i.ingProperties[e]=!0,t.isCleaning&&(i.clean[e]=!0);if(t.from){this.css(t.from);var o=this.element.offsetHeight;o=null};this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var c='opacity,'+f(r);i.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t='number'==typeof t?t+'ms':t,this.css({transitionProperty:c,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(a,this,!1)}},i.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},i.onotransitionend=function(t){this.ontransitionend(t)};var u={'-webkit-transform':'transform'};i.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,i=u[t.propertyName]||t.propertyName;if(delete e.ingProperties[i],l(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]='',delete e.clean[i]),i in e.onEnd){var o=e.onEnd[i];o.call(this),delete e.onEnd[i]};this.emitEvent('transitionEnd',[this])}},i.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(a,this,!1),this.isTransitioning=!1},i._removeStyles=function(t){var e={};for(var i in t)e[i]='';this.css(e)};var h={transitionProperty:'',transitionDuration:'',transitionDelay:''};return i.removeTransitionStyles=function(){this.css(h)},i.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+'ms'},i.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:''}),this.emitEvent('remove',[this])},i.remove=function(){return o&&parseFloat(this.layout.options.transitionDuration)?(this.once('transitionEnd',function(){this.removeElem()}),void this.hide()):void this.removeElem()},i.reveal=function(){delete this.isHidden,this.css({display:''});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty('visibleStyle');e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},i.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent('reveal')},i.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return'opacity';for(var i in e)return i},i.hide=function(){this.isHidden=!0,this.css({display:''});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty('hiddenStyle');e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},i.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:'none'}),this.emitEvent('hide'))},i.destroy=function(){this.css({position:'',left:'',right:'',top:'',bottom:'',transition:'',transform:''})},n}),function(t,e){'use strict';'function'==typeof define&&define.amd?define('outlayer/outlayer',['ev-emitter/ev-emitter','get-size/get-size','fizzy-ui-utils/utils','./item'],function(i,o,n,s){return e(t,i,o,n,s)}):'object'==typeof module&&module.exports?module.exports=e(t,require('ev-emitter'),require('get-size'),require('fizzy-ui-utils'),require('./item')):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,n,o,a){'use strict';function s(t,e){var i=o.getQueryElement(t);if(!i)return void(u&&u.error('Bad element for '+this.constructor.namespace+': '+(i||t)));this.element=i,r&&(this.$element=r(this.element)),this.options=o.extend({},this.constructor.defaults),this.option(e);var n=++f;this.element.outlayerGUID=n,h[n]=this,this._create();var s=this._getOption('initLayout');s&&this.layout()};function d(t){function e(){t.apply(this,arguments)};return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e};function p(t){if('number'==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var o=l[n]||1;return i*o};var u=t.console,r=t.jQuery,c=function(){},f=0,h={};s.namespace='outlayer',s.Item=a,s.defaults={containerStyle:{position:'relative'},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:'0.4s',hiddenStyle:{opacity:0,transform:'scale(0.001)'},visibleStyle:{opacity:1,transform:'scale(1)'}};var i=s.prototype;o.extend(i,e.prototype),i.option=function(t){o.extend(this.options,t)},i._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},s.compatOptions={initLayout:'isInitLayout',horizontal:'isHorizontal',layoutInstant:'isLayoutInstant',originLeft:'isOriginLeft',originTop:'isOriginTop',resize:'isResizeBound',resizeContainer:'isResizingContainer'},i._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),o.extend(this.element.style,this.options.containerStyle);var t=this._getOption('resize');t&&this.bindResize()},i.reloadItems=function(){this.items=this._itemize(this.element.children)},i._itemize=function(t){for(var i=this._filterFindItemElements(t),r=this.constructor.Item,o=[],e=0;e<i.length;e++){var n=i[e],s=new r(n,this);o.push(s)};return o},i._filterFindItemElements=function(t){return o.filterFindElements(t,this.options.itemSelector)},i.getItemElements=function(){return this.items.map(function(t){return t.element})},i.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption('layoutInstant'),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},i._init=i.layout,i._resetLayout=function(){this.getSize()},i.getSize=function(){this.size=n(this.element)},i._getMeasurement=function(t,e){var o,i=this.options[t];i?('string'==typeof i?o=this.element.querySelector(i):i instanceof HTMLElement&&(o=i),this[t]=o?n(o)[e]:i):this[t]=0},i.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},i._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},i._layoutItems=function(t,e){if(this._emitCompleteOnItems('layout',t),t&&t.length){var i=[];t.forEach(function(t){var o=this._getItemLayoutPosition(t);o.item=t,o.isInstant=e||t.isLayoutInstant,i.push(o)},this),this._processLayoutQueue(i)}},i._getItemLayoutPosition=function(){return{x:0,y:0}},i._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},i.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=p(t),this.stagger)},i._positionItem=function(t,e,i,o,n){o?t.goTo(e,i):(t.stagger(n*this.stagger),t.moveTo(e,i))},i._postLayout=function(){this.resizeContainer()},i.resizeContainer=function(){var e=this._getOption('resizeContainer');if(e){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},i._getContainerSize=c,i._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?'width':'height']=t+'px'}},i._emitCompleteOnItems=function(t,e){function n(){s.dispatchEvent(t+'Complete',null,[e])};function r(){i++,i==o&&n()};var s=this,o=e.length;if(!e||!o)return void n();var i=0;e.forEach(function(e){e.once(t,r)})},i.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),r)if(this.$element=this.$element||r(this.element),e){var o=r.Event(e);o.type=t,this.$element.trigger(o,i)}
else this.$element.trigger(t,i)},i.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},i.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},i.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},i.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){o.removeFrom(this.stamps,t),this.unignore(t)},this)},i._find=function(t){if(t)return'string'==typeof t&&(t=this.element.querySelectorAll(t)),t=o.makeArray(t)},i._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},i._getBoundingRect=function(){var e=this.element.getBoundingClientRect(),t=this.size;this._boundingRect={left:e.left+t.paddingLeft+t.borderLeftWidth,top:e.top+t.paddingTop+t.borderTopWidth,right:e.right-(t.paddingRight+t.borderRightWidth),bottom:e.bottom-(t.paddingBottom+t.borderBottomWidth)}},i._manageStamp=c,i._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,o=n(t),s={left:e.left-i.left-o.marginLeft,top:e.top-i.top-o.marginTop,right:i.right-e.right-o.marginRight,bottom:i.bottom-e.bottom-o.marginBottom};return s},i.handleEvent=o.handleEvent,i.bindResize=function(){t.addEventListener('resize',this),this.isResizeBound=!0},i.unbindResize=function(){t.removeEventListener('resize',this),this.isResizeBound=!1},i.onresize=function(){this.resize()},o.debounceMethod(s,'onresize',100),i.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},i.needsResizeLayout=function(){var t=n(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},i.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},i.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},i.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},i.reveal=function(t){if(this._emitCompleteOnItems('reveal',t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},i.hide=function(t){if(this._emitCompleteOnItems('hide',t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},i.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},i.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},i.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},i.getItems=function(t){t=o.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},i.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems('remove',e),e&&e.length&&e.forEach(function(t){t.remove(),o.removeFrom(this.items,t)},this)},i.destroy=function(){var t=this.element.style;t.height='',t.position='',t.width='',this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete h[e],delete this.element.outlayerGUID,r&&r.removeData(this.element,this.constructor.namespace)},s.data=function(t){t=o.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&h[e]},s.create=function(t,e){var i=d(s);return i.defaults=o.extend({},s.defaults),o.extend(i.defaults,e),i.compatOptions=o.extend({},s.compatOptions),i.namespace=t,i.data=s.data,i.Item=d(a),o.htmlInit(i,t),r&&r.bridget&&r.bridget(t,i),i};var l={ms:1,s:1e3};return s.Item=a,s}),function(t,e){'function'==typeof define&&define.amd?define('isotope-layout/js/item',['outlayer/outlayer'],e):'object'==typeof module&&module.exports?module.exports=e(require('outlayer')):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window,function(t){'use strict';function i(){t.Item.apply(this,arguments)};var e=i.prototype=Object.create(t.Item.prototype),n=e._create;e._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},e.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData['original-order']=this.id,this.sortData.random=Math.random();var i=this.layout.options.getSortData,o=this.layout._sorters;for(var t in i){var e=o[t];this.sortData[t]=e(this.element,this)}}};var o=e.destroy;return e.destroy=function(){o.apply(this,arguments),this.css({display:''})},i}),function(t,e){'function'==typeof define&&define.amd?define('isotope-layout/js/layout-mode',['get-size/get-size','outlayer/outlayer'],e):'object'==typeof module&&module.exports?module.exports=e(require('get-size'),require('outlayer')):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window,function(t,e){'use strict';function o(t){this.isotope=t,t&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)};var i=o.prototype,n=['_resetLayout','_getItemLayoutPosition','_manageStamp','_getContainerSize','_getElementOffset','needsResizeLayout','_getOption'];return n.forEach(function(t){i[t]=function(){return e.prototype[t].apply(this.isotope,arguments)}}),i.needsVerticalResizeLayout=function(){var e=t(this.isotope.element),i=this.isotope.size&&e;return i&&e.innerHeight!=this.isotope.size.innerHeight},i._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},i.getColumnWidth=function(){this.getSegmentSize('column','Width')},i.getRowHeight=function(){this.getSegmentSize('row','Height')},i.getSegmentSize=function(t,e){var i=t+e,n='outer'+e;if(this._getMeasurement(i,n),!this[i]){var o=this.getFirstItemSize();this[i]=o&&o[n]||this.isotope.size['inner'+e]}},i.getFirstItemSize=function(){var e=this.isotope.filteredItems[0];return e&&e.element&&t(e.element)},i.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},i.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},o.modes={},o.create=function(t,e){function n(){o.apply(this,arguments)};return n.prototype=Object.create(i),n.prototype.constructor=n,e&&(n.options=e),n.prototype.namespace=t,o.modes[t]=n,n},o}),function(t,e){'function'==typeof define&&define.amd?define('masonry-layout/masonry',['outlayer/outlayer','get-size/get-size'],e):'object'==typeof module&&module.exports?module.exports=e(require('outlayer'),require('get-size')):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var o=t.create('masonry');o.compatOptions.fitWidth='isFitWidth';var i=o.prototype;return i._resetLayout=function(){this.getSize(),this._getMeasurement('columnWidth','outerWidth'),this._getMeasurement('gutter','outerWidth'),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},i.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var s=this.items[0],r=s&&s.element;this.columnWidth=r&&e(r).outerWidth||this.containerWidth};var t=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,i=o/t,n=t-o%t,a=n&&n<1?'round':'floor';i=Math[a](i),this.cols=Math.max(i,1)},i.getContainerWidth=function(){var i=this._getOption('fitWidth'),o=i?this.element.parentNode:this.element,t=e(o);this.containerWidth=t&&t.innerWidth},i._getItemLayoutPosition=function(t){t.getSize();var n=t.size.outerWidth%this.columnWidth,u=n&&n<1?'round':'ceil',i=Math[u](t.size.outerWidth/this.columnWidth);i=Math.min(i,this.cols);for(var s=this.options.horizontalOrder?'_getHorizontalColPosition':'_getTopColPosition',e=this[s](i,t),r={x:this.columnWidth*e.col,y:e.y},a=e.y+t.size.outerHeight,h=i+e.col,o=e.col;o<h;o++)this.colYs[o]=a;return r},i._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},i._getTopColGroup=function(t){if(t<2)return this.colYs;for(var i=[],o=this.cols+1-t,e=0;e<o;e++)i[e]=this._getColGroupY(e,t);return i},i._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},i._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,n=t>1&&i+t>this.cols;i=n?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},i._manageStamp=function(t){var r=e(t),n=this._getElementOffset(t),d=this._getOption('originLeft'),a=d?n.left:n.right,h=a+r.outerWidth,s=Math.floor(a/this.columnWidth);s=Math.max(0,s);var o=Math.floor(h/this.columnWidth);o-=h%this.columnWidth?0:1,o=Math.min(this.cols-1,o);for(var u=this._getOption('originTop'),c=(u?n.top:n.bottom)+r.outerHeight,i=s;i<=o;i++)this.colYs[i]=Math.max(c,this.colYs[i])},i._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption('fitWidth')&&(t.width=this._getContainerFitWidth()),t},i._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},o}),function(t,e){'function'==typeof define&&define.amd?define('isotope-layout/js/layout-modes/masonry',['../layout-mode','masonry-layout/masonry'],e):'object'==typeof module&&module.exports?module.exports=e(require('../layout-mode'),require('masonry-layout')):e(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,e){'use strict';var n=t.create('masonry'),i=n.prototype,a={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var o in e.prototype)a[o]||(i[o]=e.prototype[o]);var r=i.measureColumns;i.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)};var s=i._getOption;return i._getOption=function(t){return'fitWidth'==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:s.apply(this.isotope,arguments)},n}),function(t,e){'function'==typeof define&&define.amd?define('isotope-layout/js/layout-modes/fit-rows',['../layout-mode'],e):'object'==typeof exports?module.exports=e(require('../layout-mode')):e(t.Isotope.LayoutMode)}(window,function(t){'use strict';var i=t.create('fitRows'),e=i.prototype;return e._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement('gutter','outerWidth')},e._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,o=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>o&&(this.x=0,this.y=this.maxY);var i={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,i},e._getContainerSize=function(){return{height:this.maxY}},i}),function(t,e){'function'==typeof define&&define.amd?define('isotope-layout/js/layout-modes/vertical',['../layout-mode'],e):'object'==typeof module&&module.exports?module.exports=e(require('../layout-mode')):e(t.Isotope.LayoutMode)}(window,function(t){'use strict';var i=t.create('vertical',{horizontalAlignment:0}),e=i.prototype;return e._resetLayout=function(){this.y=0},e._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},e._getContainerSize=function(){return{height:this.y}},i}),function(t,e){'function'==typeof define&&define.amd?define(['outlayer/outlayer','get-size/get-size','desandro-matches-selector/matches-selector','fizzy-ui-utils/utils','isotope-layout/js/item','isotope-layout/js/layout-mode','isotope-layout/js/layout-modes/masonry','isotope-layout/js/layout-modes/fit-rows','isotope-layout/js/layout-modes/vertical'],function(i,o,n,s,r,a){return e(t,i,o,n,s,r,a)}):'object'==typeof module&&module.exports?module.exports=e(t,require('outlayer'),require('get-size'),require('desandro-matches-selector'),require('fizzy-ui-utils'),require('isotope-layout/js/item'),require('isotope-layout/js/layout-mode'),require('isotope-layout/js/layout-modes/masonry'),require('isotope-layout/js/layout-modes/fit-rows'),require('isotope-layout/js/layout-modes/vertical')):t.Isotope=e(t,t.Outlayer,t.getSize,t.matchesSelector,t.fizzyUIUtils,t.Isotope.Item,t.Isotope.LayoutMode)}(window,function(t,e,o,s,n,h,a){function f(t,e){return function(i,o){for(var a=0;a<t.length;a++){var n=t[a],s=i.sortData[n],r=o.sortData[n];if(s>r||s<r){var h=void 0!==e[n]?e[n]:e,u=h?1:-1;return(s>r?1:-1)*u}};return 0}};var u=t.jQuery,l=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,'')},r=e.create('isotope',{layoutMode:'masonry',isJQueryFiltering:!0,sortAscending:!0});r.Item=h,r.LayoutMode=a;var i=r.prototype;i._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),e.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=['original-order'];for(var t in a.modes)this._initLayoutMode(t)},i.reloadItems=function(){this.itemGUID=0,e.prototype.reloadItems.call(this)},i._itemize=function(){for(var t=e.prototype._itemize.apply(this,arguments),i=0;i<t.length;i++){var o=t[i];o.id=this.itemGUID++};return this._updateItemsSortData(t),t},i._initLayoutMode=function(t){var e=a.modes[t],i=this.options[t]||{};this.options[t]=e.options?n.extend(e.options,i):i,this.modes[t]=new e(this)},i.layout=function(){return!this._isLayoutInited&&this._getOption('initLayout')?void this.arrange():void this._layout()},i._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},i.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[e]):this._hideReveal(e),this._sort(),this._layout()},i._init=i.arrange,i._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},i._getIsInstant=function(){var t=this._getOption('layoutInstant'),e=void 0!==t?t:!this._isLayoutInited;return this._isInstant=e,e},i._bindArrangeComplete=function(){function t(){e&&i&&o&&n.dispatchEvent('arrangeComplete',null,[n.filteredItems])};var e,i,o,n=this;this.once('layoutComplete',function(){e=!0,t()}),this.once('hideComplete',function(){i=!0,t()}),this.once('revealComplete',function(){o=!0,t()})},i._filter=function(t){var n=this.options.filter;n=n||'*';for(var s=[],r=[],a=[],h=this._getFilterTest(n),o=0;o<t.length;o++){var e=t[o];if(!e.isIgnored){var i=h(e);i&&s.push(e),i&&e.isHidden?r.push(e):i||e.isHidden||a.push(e)}};return{matches:s,needReveal:r,needHide:a}},i._getFilterTest=function(t){return u&&this.options.isJQueryFiltering?function(e){return u(e.element).is(t)}:'function'==typeof t?function(e){return t(e.element)}:function(e){return s(e.element,t)}},i.updateSortData=function(t){var e;t?(t=n.makeArray(t),e=this.getItems(t)):e=this.items,this._getSorters(),this._updateItemsSortData(e)},i._getSorters=function(){var e=this.options.getSortData;for(var t in e){var i=e[t];this._sorters[t]=d(i)}},i._updateItemsSortData=function(t){for(var i=t&&t.length,e=0;i&&e<i;e++){var o=t[e];o.updateSortData()}};var d=function(){function t(t){if('string'!=typeof t)return t;var i=l(t).split(' '),o=i[0],n=o.match(/^\[(.+)\]$/),h=n&&n[1],s=e(h,o),a=r.sortDataParsers[i[1]];return t=a?function(t){return t&&a(s(t))}:function(t){return t&&s(t)}};function e(t,e){return t?function(e){return e.getAttribute(t)}:function(t){var i=t.querySelector(e);return i&&i.textContent}};return t}();r.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},i._sort=function(){if(this.options.sortBy){var t=n.makeArray(this.options.sortBy);this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory));var e=f(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(e)}},i._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},i._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error('No layout mode: '+t);return e.options=this.options[t],e},i._resetLayout=function(){e.prototype._resetLayout.call(this),this._mode()._resetLayout()},i._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},i._manageStamp=function(t){this._mode()._manageStamp(t)},i._getContainerSize=function(){return this._mode()._getContainerSize()},i.needsResizeLayout=function(){return this._mode().needsResizeLayout()},i.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},i.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},i._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},i.insert=function(t){var i=this.addItems(t);if(i.length){var e,n,o=i.length;for(e=0;e<o;e++)n=i[e],this.element.appendChild(n.element);var s=this._filter(i).matches;for(e=0;e<o;e++)i[e].isLayoutInstant=!0;for(this.arrange(),e=0;e<o;e++)delete i[e].isLayoutInstant;this.reveal(s)}};var c=i.remove;return i.remove=function(t){t=n.makeArray(t);var i=this.getItems(t);c.call(this,t);for(var o=i&&i.length,e=0;o&&e<o;e++){var s=i[e];n.removeFrom(this.filteredItems,s)}},i.shuffle=function(){for(var t=0;t<this.items.length;t++){var e=this.items[t];e.sortData.random=Math.random()};this.options.sortBy='random',this._sort(),this._layout()},i._noTransition=function(t,e){var o=this.options.transitionDuration;this.options.transitionDuration=0;var i=t.apply(this,e);return this.options.transitionDuration=o,i},i.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},r});!function(t,e){'function'==typeof define&&define.amd?define('packery/js/rect',e):'object'==typeof module&&module.exports?module.exports=e():(t.Packery=t.Packery||{},t.Packery.Rect=e())}(window,function(){function t(e){for(var i in t.defaults)this[i]=t.defaults[i];for(i in e)this[i]=e[i]};t.defaults={x:0,y:0,width:0,height:0};var e=t.prototype;return e.contains=function(t){var e=t.width||0,i=t.height||0;return this.x<=t.x&&this.y<=t.y&&this.x+this.width>=t.x+e&&this.y+this.height>=t.y+i},e.overlaps=function(t){var e=this.x+this.width,i=this.y+this.height,o=t.x+t.width,n=t.y+t.height;return this.x<o&&e>t.x&&this.y<n&&i>t.y},e.getMaximalFreeRects=function(e){if(!this.overlaps(e))return!1;var i,o=[],r=this.x+this.width,a=this.y+this.height,n=e.x+e.width,s=e.y+e.height;return this.y<e.y&&(i=new t({x:this.x,y:this.y,width:this.width,height:e.y-this.y}),o.push(i)),r>n&&(i=new t({x:n,y:this.y,width:r-n,height:this.height}),o.push(i)),a>s&&(i=new t({x:this.x,y:s,width:this.width,height:a-s}),o.push(i)),this.x<e.x&&(i=new t({x:this.x,y:this.y,width:e.x-this.x,height:this.height}),o.push(i)),o},e.canFit=function(t){return this.width>=t.width&&this.height>=t.height},t}),function(t,e){if('function'==typeof define&&define.amd)define('packery/js/packer',['./rect'],e);else if('object'==typeof module&&module.exports)module.exports=e(require('./rect'));else{var i=t.Packery=t.Packery||{};i.Packer=e(i.Rect)}}(window,function(t){function i(t,e,i){this.width=t||0,this.height=e||0,this.sortDirection=i||'downwardLeftToRight',this.reset()};var e=i.prototype;e.reset=function(){this.spaces=[];var e=new t({x:0,y:0,width:this.width,height:this.height});this.spaces.push(e),this.sorter=o[this.sortDirection]||o.downwardLeftToRight},e.pack=function(t){for(var e=0;e<this.spaces.length;e++){var i=this.spaces[e];if(i.canFit(t)){this.placeInSpace(t,i);break}}},e.columnPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i],o=e.x<=t.x&&e.x+e.width>=t.x+t.width&&e.height>=t.height-.01;if(o){t.y=e.y,this.placed(t);break}}},e.rowPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i],o=e.y<=t.y&&e.y+e.height>=t.y+t.height&&e.width>=t.width-.01;if(o){t.x=e.x,this.placed(t);break}}},e.placeInSpace=function(t,e){t.x=e.x,t.y=e.y,this.placed(t)},e.placed=function(t){for(var e=[],i=0;i<this.spaces.length;i++){var o=this.spaces[i],n=o.getMaximalFreeRects(t);n?e.push.apply(e,n):e.push(o)};this.spaces=e,this.mergeSortSpaces()},e.mergeSortSpaces=function(){i.mergeRects(this.spaces),this.spaces.sort(this.sorter)},e.addSpace=function(t){this.spaces.push(t),this.mergeSortSpaces()},i.mergeRects=function(t){var e=0,i=t[e];t:for(;i;){for(var o=0,n=t[e+o];n;){if(n==i)o++;else{if(n.contains(i)){t.splice(e,1),i=t[e];continue;t};i.contains(n)?t.splice(e+o,1):o++};n=t[e+o]};e++,i=t[e]};return t};var o={downwardLeftToRight:function(t,e){return t.y-e.y||t.x-e.x},rightwardTopToBottom:function(t,e){return t.x-e.x||t.y-e.y}};return i}),function(t,e){'function'==typeof define&&define.amd?define('packery/js/item',['outlayer/outlayer','./rect'],e):'object'==typeof module&&module.exports?module.exports=e(require('outlayer'),require('./rect')):t.Packery.Item=e(t.Outlayer,t.Packery.Rect)}(window,function(t,e){var r=document.documentElement.style,o='string'==typeof r.transform?'transform':'WebkitTransform',n=function(){t.Item.apply(this,arguments)},i=n.prototype=Object.create(t.Item.prototype),a=i._create;i._create=function(){a.call(this),this.rect=new e};var s=i.moveTo;return i.moveTo=function(t,e){var i=Math.abs(this.position.x-t),o=Math.abs(this.position.y-e),n=this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&1>i&&1>o;return n?void this.goTo(t,e):void s.apply(this,arguments)},i.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&o&&(this.element.style[o]='none'),this.isTransitioning=!1,this.getSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},i.disablePlacing=function(){this.isPlacing=!1},i.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent('remove',[this])},i.showDropPlaceholder=function(){var t=this.dropPlaceholder;t||(t=this.dropPlaceholder=document.createElement('div'),t.className='packery-drop-placeholder',t.style.position='absolute'),t.style.width=this.size.width+'px',t.style.height=this.size.height+'px',this.positionDropPlaceholder(),this.layout.element.appendChild(t)},i.positionDropPlaceholder=function(){this.dropPlaceholder.style[o]='translate('+this.rect.x+'px, '+this.rect.y+'px)'},i.hideDropPlaceholder=function(){this.layout.element.removeChild(this.dropPlaceholder)},n}),function(t,e){'function'==typeof define&&define.amd?define('packery/js/packery',['get-size/get-size','outlayer/outlayer','./rect','./packer','./item'],e):'object'==typeof module&&module.exports?module.exports=e(require('get-size'),require('outlayer'),require('./rect'),require('./packer'),require('./item')):t.Packery=e(t.getSize,t.Outlayer,t.Packery.Rect,t.Packery.Packer,t.Packery.Item)}(window,function(t,e,o,n,s){function u(t,e){return t.position.y-e.position.y||t.position.x-e.position.x};function c(t,e){return t.position.x-e.position.x||t.position.y-e.position.y};function d(t,e){var i=e.x-t.x,o=e.y-t.y;return Math.sqrt(i*i+o*o)};o.prototype.canFit=function(t){return this.width>=t.width-1&&this.height>=t.height-1};var r=e.create('packery');r.Item=s;var i=r.prototype;i._create=function(){e.prototype._create.call(this),this.packer=new n,this.shiftPacker=new n,this.isEnabled=!0,this.dragItemCount=0;var t=this;this.handleDraggabilly={dragStart:function(){t.itemDragStart(this.element)},dragMove:function(){t.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){t.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(e,i){i&&t.itemDragStart(e.currentTarget)},drag:function(e,i){i&&t.itemDragMove(e.currentTarget,i.position.left,i.position.top)},stop:function(e,i){i&&t.itemDragEnd(e.currentTarget)}}},i._resetLayout=function(){this.getSize(),this._getMeasurements();var t,e,i;this._getOption('horizontal')?(t=1/0,e=this.size.innerHeight+this.gutter,i='rightwardTopToBottom'):(t=this.size.innerWidth+this.gutter,e=1/0,i='downwardLeftToRight'),this.packer.width=this.shiftPacker.width=t,this.packer.height=this.shiftPacker.height=e,this.packer.sortDirection=this.shiftPacker.sortDirection=i,this.packer.reset(),this.maxY=0,this.maxX=0},i._getMeasurements=function(){this._getMeasurement('columnWidth','width'),this._getMeasurement('rowHeight','height'),this._getMeasurement('gutter','width')},i._getItemLayoutPosition=function(t){if(this._setRectSize(t.element,t.rect),this.isShifting||this.dragItemCount>0){var e=this._getPackMethod();this.packer[e](t.rect)}
else this.packer.pack(t.rect);return this._setMaxXY(t.rect),t.rect},i.shiftLayout=function(){this.isShifting=!0,this.layout(),delete this.isShifting},i._getPackMethod=function(){return this._getOption('horizontal')?'rowPack':'columnPack'},i._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX),this.maxY=Math.max(t.y+t.height,this.maxY)},i._setRectSize=function(e,i){var s=t(e),o=s.outerWidth,n=s.outerHeight;(o||n)&&(o=this._applyGridGutter(o,this.columnWidth),n=this._applyGridGutter(n,this.rowHeight)),i.width=Math.min(o,this.packer.width),i.height=Math.min(n,this.packer.height)},i._applyGridGutter=function(t,e){if(!e)return t+this.gutter;e+=this.gutter;var i=t%e,o=i&&1>i?'round':'ceil';return t=Math[o](t/e)*e},i._getContainerSize=function(){return this._getOption('horizontal')?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},i._manageStamp=function(t){var e,n=this.getItem(t);if(n&&n.isPlacing)e=n.rect;else{var i=this._getElementOffset(t);e=new o({x:this._getOption('originLeft')?i.left:i.right,y:this._getOption('originTop')?i.top:i.bottom})};this._setRectSize(t,e),this.packer.placed(e),this._setMaxXY(e)},i.sortItemsByPosition=function(){var t=this._getOption('horizontal')?c:u;this.items.sort(t)},i.fit=function(t,e,i){var o=this.getItem(t);o&&(this.stamp(o.element),o.enablePlacing(),this.updateShiftTargets(o),e=void 0===e?o.rect.x:e,i=void 0===i?o.rect.y:i,this.shift(o,e,i),this._bindFitEvents(o),o.moveTo(o.rect.x,o.rect.y),this.shiftLayout(),this.unstamp(o.element),this.sortItemsByPosition(),o.disablePlacing())},i._bindFitEvents=function(t){function i(){e++,2==e&&o.dispatchEvent('fitComplete',null,[t])};var o=this,e=0;t.once('layout',i),this.once('layoutComplete',i)},i.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},i.needsResizeLayout=function(){var i=t(this.element),e=this._getOption('horizontal')?'innerHeight':'innerWidth';return i[e]!=this.size[e]},i.resizeShiftPercentLayout=function(){var n=this._getItemsForLayout(this.items),e=this._getOption('horizontal'),i=e?'y':'x',u=e?'height':'width',s=e?'rowHeight':'columnWidth',c=e?'innerHeight':'innerWidth',o=this[s];if(o=o&&o+this.gutter){this._getMeasurements();var h=this[s]+this.gutter;n.forEach(function(t){var e=Math.round(t.rect[i]/o);t.rect[i]=e*h})}
else{var r=t(this.element)[c]+this.gutter,a=this.packer[u];n.forEach(function(t){t.rect[i]=t.rect[i]/a*r})};this.shiftLayout()},i.itemDragStart=function(t){if(this.isEnabled){this.stamp(t);var e=this.getItem(t);e&&(e.enablePlacing(),e.showDropPlaceholder(),this.dragItemCount++,this.updateShiftTargets(e))}},i.updateShiftTargets=function(t){this.shiftPacker.reset(),this._getBoundingRect();var l=this._getOption('originLeft'),f=this._getOption('originTop');this.stamps.forEach(function(t){var n=this.getItem(t);if(!n||!n.isPlacing){var e=this._getElementOffset(t),i=new o({x:l?e.left:e.right,y:f?e.top:e.bottom});this._setRectSize(t,i),this.shiftPacker.placed(i)}},this);var n=this._getOption('horizontal'),d=n?'rowHeight':'columnWidth',s=n?'height':'width';this.shiftTargetKeys=[],this.shiftTargets=[];var i,e=this[d];if(e=e&&e+this.gutter){var c=Math.ceil(t.rect[s]/e),a=Math.floor((this.shiftPacker[s]+this.gutter)/e);i=(a-c)*e;for(var r=0;a>r;r++)this._addShiftTarget(r*e,0,i)}
else i=this.shiftPacker[s]+this.gutter-t.rect[s],this._addShiftTarget(0,0,i);var h=this._getItemsForLayout(this.items),u=this._getPackMethod();h.forEach(function(t){var o=t.rect;this._setRectSize(t.element,o),this.shiftPacker[u](o),this._addShiftTarget(o.x,o.y,i);var a=n?o.x+o.width:o.x,h=n?o.y:o.y+o.height;if(this._addShiftTarget(a,h,i),e)for(var l=Math.round(o[s]/e),r=1;l>r;r++){var c=n?a:o.x+e*r,d=n?o.y+e*r:h;this._addShiftTarget(c,d,i)}},this)},i._addShiftTarget=function(t,e,i){var n=this._getOption('horizontal')?e:t;if(!(0!==n&&n>i)){var o=t+','+e,s=-1!=this.shiftTargetKeys.indexOf(o);s||(this.shiftTargetKeys.push(o),this.shiftTargets.push({x:t,y:e}))}},i.shift=function(t,e,i){var o,n=1/0,s={x:e,y:i};this.shiftTargets.forEach(function(t){var e=d(t,s);n>e&&(o=t,n=e)}),t.rect.x=o.x,t.rect.y=o.y};var a=120;i.itemDragMove=function(t,e,i){function r(){n.shift(o,e,i),o.positionDropPlaceholder(),n.layout()};var o=this.isEnabled&&this.getItem(t);if(o){e-=this.size.paddingLeft,i-=this.size.paddingTop;var n=this,s=new Date;this._itemDragTime&&s-this._itemDragTime<a?(clearTimeout(this.dragTimeout),this.dragTimeout=setTimeout(r,a)):(r(),this._itemDragTime=s)}},i.itemDragEnd=function(t){function o(){i++,2==i&&(e.element.classList.remove('is-positioning-post-drag'),e.hideDropPlaceholder(),n.dispatchEvent('dragItemPositioned',null,[e]))};var e=this.isEnabled&&this.getItem(t);if(e){clearTimeout(this.dragTimeout),e.element.classList.add('is-positioning-post-drag');var i=0,n=this;e.once('layout',o),this.once('layoutComplete',o),e.moveTo(e.rect.x,e.rect.y),this.layout(),this.dragItemCount=Math.max(0,this.dragItemCount-1),this.sortItemsByPosition(),e.disablePlacing(),this.unstamp(e.element)}},i.bindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,'on')},i.unbindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,'off')},i._bindDraggabillyEvents=function(t,e){var i=this.handleDraggabilly;t[e]('dragStart',i.dragStart),t[e]('dragMove',i.dragMove),t[e]('dragEnd',i.dragEnd)},i.bindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,'on')},i.unbindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,'off')},i._bindUIDraggableEvents=function(t,e){var i=this.handleUIDraggable;t[e]('dragstart',i.start)[e]('drag',i.drag)[e]('dragstop',i.stop)};var h=i.destroy;return i.destroy=function(){h.apply(this,arguments),this.isEnabled=!1},r.Rect=o,r.Packer=n,r}),function(t,e){'function'==typeof define&&define.amd?define(['isotope/js/layout-mode','packery/js/packery'],e):'object'==typeof module&&module.exports?module.exports=e(require('isotope-layout/js/layout-mode'),require('packery')):e(t.Isotope.LayoutMode,t.Packery)}(window,function(t,e){var n=t.create('packery'),i=n.prototype,u={_getElementOffset:!0,_getMeasurement:!0};for(var o in e.prototype)u[o]||(i[o]=e.prototype[o]);var h=i._resetLayout;i._resetLayout=function(){this.packer=this.packer||new e.Packer,this.shiftPacker=this.shiftPacker||new e.Packer,h.apply(this,arguments)};var a=i._getItemLayoutPosition;i._getItemLayoutPosition=function(t){return t.rect=t.rect||new e.Rect,a.call(this,t)};var r=i.needsResizeLayout;i.needsResizeLayout=function(){return this._getOption('horizontal')?this.needsVerticalResizeLayout():r.call(this)};var s=i._getOption;return i._getOption=function(t){return'horizontal'==t?void 0!==this.options.isHorizontal?this.options.isHorizontal:this.options.horizontal:s.apply(this.isotope,arguments)},n});(function(i){'use strict';i.avia_utilities=i.avia_utilities||{};i.fn.avia_iso_sort=function(e){return this.each(function(){var o=i('body'),e=i(this),l=e.data('portfolio-id'),t=e.parents('.entry-content-wrapper, .avia-fullwidth-portfolio'),n=t.find('.sort_width_container[data-portfolio-id="'+l+'"]').find('#js_sort_items').css({visibility:'visible',opacity:0}),s=n.find('a'),c=e.find('.grid-image'),d=!1,f=i('.post-entry',e),r=o.hasClass('rtl')?!1:!0;function a(){e.addClass('isotope_activated').isotope({layoutMode:'fitRows',itemSelector:'.flex_column',originLeft:r});e.isotope('on','layoutComplete',function(){e.css({overflow:'visible'});o.trigger('av_resize_finished')});d=!0;setTimeout(function(){t.addClass('avia_sortable_active')},0)};s.bind('click',function(){var a=i(this),o=a.data('filter'),l=a.html(),n=t.find('.av-current-sort-title');if(n.length)n.html(l);s.removeClass('active_sort');a.addClass('active_sort');e.attr('id','grid_id_'+o);t.find('.open_container .ajax_controlls .avia_close').trigger('click');e.isotope({layoutMode:'fitRows',itemSelector:'.flex_column',filter:'.'+o,originLeft:r});return!1});i(window).on('debouncedresize',function(){a()});i.avia_utilities.preload({container:e,single_callback:function(){n.animate({opacity:1},400);a();setTimeout(function(){a()});c.css({height:'auto'}).each(function(e){var t=i(this);setTimeout(function(){t.animate({opacity:1},1500)},(100*e))})}})})};i.fn.avia_portfolio_preview=function(t){var o=i(window),a=i('body'),s=i.avia_utilities.isMobile,n={open_in:'.portfolio-details-inner',easing:'easeOutQuint',timing:800,transition:'slide'},e=i.extend({},n,t);return this.each(function(){var r=i(this),h=r.data('portfolio-id'),l=i('.portfolio_preview_container[data-portfolio-id="'+h+'"]'),d=l.find(e.open_in),p=r.find('.grid-entry'),t={},s=!1,c=!1,v=!1,f=!1,n,u,m=i.avia_utilities.loading();n={load_item:function(e){e.preventDefault();var o=i(this),t=o.parents('.post-entry:eq(0)'),a='ID_'+t.data('ajax-id'),l=p.index(t);if(a===s||c==!0){return!1};c=!0;r.find('.active_portfolio_item').removeClass('active_portfolio_item');t.addClass('active_portfolio_item');m.show();n.ajax_get_contents(a,l)},scroll_top:function(){setTimeout(function(){var t=l.offset().top-175,a=o.scrollTop();if(a>t||t-a>100){i('html:not(:animated),body:not(:animated)').animate({scrollTop:t},e.timing,e.easing)}},10)},attach_item:function(e){t[e]=i(t[e]).appendTo(d);f=!0},remove_video:function(){var i=l.find('iframe, .avia-video').parents('.ajax_slide:not(.open_slide)');if(i.length>0){i.remove();t['ID_'+i.data('slideId')]=undefined}},show_item:function(o,r){if(o===s){return!1};c=!0;m.hide();if(!1===s){l.addClass('open_container');t[o].addClass('open_slide');n.scroll_top();l.css({display:'none'}).slideDown(e.timing,e.easing,function(){if(f){i.avia_utilities.activate_shortcode_scripts(t[o]);i.avia_utilities.avia_ajax_call(t[o]);a.trigger('av_resize_finished');f=!1};n.remove_video();a.trigger('av_resize_finished')});v=r;s=o;c=!1}
else{n.scroll_top();var p={zIndex:3},u=e.easing;if(v>r){p.left='-110%'};if(e.transition==='fade'){p.left='0%';p.opacity=0;u='easeOutQuad'};d.height(d.height());t[o].css(p).avia_animate({'left':'0%',opacity:1},e.timing,u);t[s].avia_animate({opacity:0},e.timing,u,function(){t[s].attr({'style':''}).removeClass('open_slide');t[o].addClass('open_slide');d.avia_animate({height:t[o].outerHeight()+2},e.timing/2,e.easing,function(){d.attr({'style':''});s=o;v=r;c=!1;n.remove_video();if(f){a.trigger('av_resize_finished');i.avia_utilities.activate_shortcode_scripts(t[o]);i.avia_utilities.avia_ajax_call(t[o]);f=!1}})})}},ajax_get_contents:function(e,a){if(t[e]!==undefined){n.show_item(e,a);return};var o=i('#avia-tmpl-portfolio-preview-'+e.replace(/ID_/,''));if(o.length==0){setTimeout(function(){n.ajax_get_contents(e,a);return},500)};t[e]=o.html();t[e]=t[e].replace('/*<![CDATA[*/','').replace('*]]>','');n.attach_item(e);i.avia_utilities.preload({container:t[e],single_callback:function(){n.show_item(e,a)}})},add_controls:function(){u=l.find('.ajax_controlls');l.avia_keyboard_controls({27:'.avia_close',37:'.ajax_previous',39:'.ajax_next'});p.each(function(){var e=i(this),t;e.addClass('no_combo').bind('click',function(i){t=e.find('.slideshow_overlay');if(t.length){i.stopPropagation();n.load_item.apply(e.find('a:eq(0)'));return!1}})})},control_click:function(){var o,f=r.find('.active_portfolio_item').data('ajax-id'),d=r.find('.post-entry-'+f);switch(this.hash){case'#next':o=d.nextAll('.post-entry:visible:eq(0)').find('a:eq(0)');if(!o.length){o=i('.post-entry:visible:eq(0)',r).find('a:eq(0)')};o.trigger('click');break;case'#prev':o=d.prevAll('.post-entry:visible:eq(0)').find('a:eq(0)');if(!o.length){o=i('.post-entry:visible:last',r).find('a:eq(0)')};o.trigger('click');break;case'#close':c=!0;l.slideUp(e.timing,e.easing,function(){r.find('.active_portfolio_item').removeClass('active_portfolio_item');t[s].attr({'style':''}).removeClass('open_slide');l.removeClass('open_container');c=s=v=!1;n.remove_video();a.trigger('av_resize_finished')});break};return!1},resize_reset:function(){if(s===!1){d.html('');t=[]}}};n.add_controls();r.on('click','a',n.load_item);u.on('click','a',n.control_click);if(jQuery.support.leadingWhitespace){o.bind('debouncedresize',n.resize_reset)}})}}(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).bind('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'){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,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(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(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(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 t=e.match(/[\\?\\&]v=([^\\?\\&]+)/),i,a;if(!t||!t[1])return null;i=t[1];a=e.split('/watch');a=a[1];return i+a},src:'//www.youtube.com/embed/%id%'}}},image:{titleSrc:function(e){var a=e.el.attr('title');if(!a)a=e.el.find('img').attr('title');if(!a)a=e.el.parent().next('.wp-caption-text').html();if(typeof a=='undefined')return'';return a}},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 a=this;a.wrap.removeClass('mfp-image-loaded');setTimeout(function(){e.magnificPopup.proto.next.call(a)},120)};e.magnificPopup.instance.prev=function(){var a=this;a.wrap.removeClass('mfp-image-loaded');setTimeout(function(){e.magnificPopup.proto.prev.call(a)},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 t=e.data('av-extra-content');this.content.append('<div class=\'av-extra-modal-content\'>'+t+'</div>')};if(e.data('av-extra-markup')){var a=e.data('av-extra-markup');this.wrap.append('<div class=\'av-extra-modal-markup\'>'+a+'</div>')}}},}},e.fn.avia_activate_lightbox=function(t){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"]',},a=e.extend({},i,t),o=!e('html').is('.av-custom-lightbox');if(!o)return this;return this.each(function(){var i=e(this),r=e(a.videoElements,this).not(a.exclude).addClass('mfp-iframe'),o=!i.is('body')&&!i.is('.ajax_slide');for(var t=0;t<a.groups.length;t++){i.find(a.groups[t]).each(function(){var t=e(a.autolinkElements,this);if(o)t.removeClass('lightbox-added');t.not(a.exclude).addClass('lightbox-added').magnificPopup(e.avia_utilities.av_popup)})}})}})(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);