text: ;jQuery(document).ready(function(){avia_modify_external_link_target()});function avia_modify_external_link_target(){try{if(top.location!=location){jQuery("a[href^='http']").not("[href*='"+location.host+"']").attr("target","_blank")}}catch(t){}};;jQuery(document).ready(function(t){cart_improvement_functions();cart_dropdown_improvement();track_ajax_add_to_cart();if(jQuery.fn.avia_sc_slider){jQuery('.shop_slider_yes ul').avia_sc_slider({appendControlls:!1,group:!0,slide:'.product',arrowControll:!0,autorotationInterval:'parent'})};jQuery('body.single-product').on('click','.single-product-main-image .avia-wc-30-product-gallery-lightbox',function(e){e.preventDefault();var i=t(this),r=i.parents('.single-product-main-image'),a=r.find('.flex-active-slide a.lightbox-added').eq(0);if(a.length==0){a=r.find('a.lightbox-added').eq(0)};a.trigger('click')});product_add_to_cart_click();function e(){jQuery('.quantity input[type=number]').each(function(){var a=t(this),r=parseFloat(a.attr('max')),i=parseFloat(a.attr('min')),o=parseInt(a.attr('step'),10),e=jQuery(jQuery('<div />').append(a.clone(!0)).html().replace('number','text')).insertAfter(a);a.remove();setTimeout(function(){if(e.next('.plus').length===0){var t=jQuery('<input type="button" value="-" class="minus">').insertBefore(e),a=jQuery('<input type="button" value="+" class="plus">').insertAfter(e);t.on('click',function(){var t=parseInt(e.val(),10)-o;t=t<0?0:t;t=t<i?i:t;e.val(t).trigger('change')});a.on('click',function(){var t=parseInt(e.val(),10)+o;t=t>r?r:t;e.val(t).trigger('change')})}},10)})};e();t(document).on('updated_cart_totals',e);setTimeout(first_load_amount,10);t('body').on('added_to_cart',update_cart_dropdown);t('body').on('wc_fragments_refreshed',avia_cart_dropdown_changed);jQuery('.avia_mobile .sort-param').on('touchstart',function(){})});function avia_cart_dropdown_changed(){var a=jQuery('html'),r=jQuery('body').is('.woocommerce-cart'),e=jQuery('.cart_dropdown .av-cart-counter'),i=jQuery('.cart_dropdown'),t=0;if(!r){return};i.find('.cart_list li .quantity').each(function(){t+=parseInt(jQuery(this).text(),10)});if(t===0){e.removeClass('av-active-counter').text(t);setTimeout(function(){a.removeClass('html_visible_cart')},200)}
  else if((e.length>0)&&(t>0)){setTimeout(function(){e.addClass('av-active-counter').text(t);a.addClass('html_visible_cart')},10)};return};function update_cart_dropdown(t){var d=jQuery('html'),r=jQuery('.cart_dropdown'),i=jQuery('.cart_dropdown .av-cart-counter'),c=r.find('.empty'),u=r.data('success'),n=jQuery.extend({name:'Product',price:'',image:''},avia_clicked_product),o=0;if((c.length>0)&&('undefined'!==typeof t)){d.addClass('html_visible_cart')};if(typeof t!=='undefined'){var a=jQuery('.html_header_sticky #header_main .cart_dropdown_first, .html_header_sidebar #header_main .cart_dropdown_first'),s=jQuery('.added_to_cart_notification').trigger('avia_hide'),e=jQuery('<div class=\'added_to_cart_notification\'><span class=\'avia-arrow\'></span><div class=\'added-product-text\'><strong>"'+n.name+'"</strong> '+u+'</div> '+n.image+'</div>').css('opacity',0);if(!a.length)a='body';e.on('mouseenter avia_hide',function(){e.animate({opacity:0,top:parseInt(e.css('top'),10)+15},function(){e.remove()})}).appendTo(a).animate({opacity:1},500);setTimeout(function(){e.trigger('avia_hide')},2500)};setTimeout(function(){r.find('.cart_list li .quantity').each(function(){o+=parseInt(jQuery(this).text(),10)});if((i.length>0)&&(o>0)){i.removeClass('av-active-counter');setTimeout(function(){i.addClass('av-active-counter').text(o)},10)}},300)};var avia_clicked_product={};function track_ajax_add_to_cart(){jQuery('body').on('click','.add_to_cart_button',function(a){var e=jQuery(this).parents('.product').eq(0),t={};t.name=e.find('.woocommerce-loop-product__title').text();t.image=e.find('.thumbnail_container img');t.price=e.find('.price .amount').last().text();if(t.name==='')t.name=e.find('.inner_product_header h3').text();if(e.length===0){e=jQuery(this);t.name=e.find('.av-cart-update-title').text();t.image=e.find('.av-cart-update-image');t.price=e.find('.av-cart-update-price').text()};if(t.image.length){t.image='<img class=\'added-product-image\' src=\''+t.image.get(0).src+'\' title=\'\' alt=\'\' />'}
  else{t.image=''};avia_clicked_product=t})};function first_load_amount(){var e=0,r=15,i=500,a=function(){var t=jQuery('.cart_dropdown .dropdown_widget_cart:eq(0) .total .amount');if(t.length){update_cart_dropdown()}
  else{e++;if(e<r){setTimeout(a,i)}}};a();if(jQuery('.av-display-cart-on-load').length&&jQuery('.woocommerce-message').length===0){var t=jQuery('.cart_dropdown');setTimeout(function(){t.trigger('mouseenter')},500);setTimeout(function(){t.trigger('mouseleave')},2500)}};function product_add_to_cart_click(){var e=jQuery('body'),a=jQuery('.av-catalogue-item'),t=!1;if(a.length)t=jQuery.avia_utilities.loading();e.on('click','.add_to_cart_button',function(e){var r=jQuery(this);r.parents('.product:eq(0)').addClass('adding-to-cart-loading').removeClass('added-to-cart-check');if(r.is('.av-catalogue-item')){t.show()};var a=jQuery('html');if(!a.hasClass('html_visible_cart')){a.addClass('html_visible_cart')}});e.on('added_to_cart',function(){jQuery('.adding-to-cart-loading').removeClass('adding-to-cart-loading').addClass('added-to-cart-check');if(t!==!1){t.hide()}})};function cart_improvement_functions(){jQuery('.product_type_downloadable, .product_type_virtual').addClass('product_type_simple');jQuery('.woocommerce-tabs .tabs a').addClass('no-scroll');jQuery('.single-product-main-image>.images a').attr('rel','product_images[grouped]')};function cart_dropdown_improvement(){var e=jQuery('.cart_dropdown'),t=e.find('.dropdown_widget').css({display:'none',opacity:0});e.hover(function(){t.css({display:'block'}).stop().animate({opacity:1})},function(){t.stop().animate({opacity:0},function(){t.css({display:'none'})})})};(function(t){'use strict';t(document).ready(function(){var e=a('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};l();r();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();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);s(e);o(e);n(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 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 a(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 o(e){if(t.avia_utilities.isMobile)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 n(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 s(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 r(){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 l(){var p=t('#header'),l=t('#main .av-logo-container'),w=t('#avia-menu'),s=t('.av-burger-menu-main a'),n=t('html').eq(0),i=t('<div class="av-burger-overlay"></div>'),f=t('<div class="av-burger-overlay-scroll"></div>').appendTo(i),u=t('<div class="av-burger-overlay-inner"></div>').appendTo(f),x=t('<div class="av-burger-overlay-bg"></div>').appendTo(i),r=!1,c={},v=t('.av-logo-container .inner-container'),b=v.find('.main_menu'),h=n.is('.html_av-submenu-display-click.html_av-submenu-clone, .html_av-submenu-display-hover.html_av-submenu-clone'),m=!1,g=function(){if(t.avia_utilities.isMobile){f.outerHeight(window.innerHeight)}},d=function(e,a){if(!e)return;var p,r,n,l,c,f,u,i,o;e.each(function(){n=t(this);l=n.find(' > .sub-menu > li');if(l.length==0){l=n.find(' > .children > li')};c=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(l.length>0||c.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(l.length){o=t('<ul class="sub-menu">').appendTo(i);if(h&&(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">');d(l,o)}
  else if(c.length){o=t('<ul class="sub-menu">').appendTo(i);if(h&&(r.get(0).hash!='#'&&r.attr('href')!='#')){i.clone(!0).prependTo(o)};c.each(function(e){var c=t(this),a=c.find('> .sub-menu'),n=c.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 l=i.parents('li').eq(0);if(l.length)i=l;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(h&&(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">');d(r,o)})}});s.trigger('avia_burger_list_created');return p};var 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')}};g()});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);y(i,e)});t('.html_av-submenu-display-click').on('click','.av-width-submenu > a',function(e){var i=t(this);y(i,e)});function y(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(b.length)return;var i=t('#header .main_menu').clone(!0);i.find('.menu-item:not(.menu-item-avia-special)').remove();i.insertAfter(v.find('.logo'));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(!m){m=!0;e.addClass('av-inserted-main-menu');o=t('<ul>').attr({id:'av-burger-menu-ul',class:''});var h=w.find('> li:not(.menu-item-avia-special)'),f=d(h,o);o.find('.noMobile').remove();o.appendTo(u);c=u.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{g();var s=l.length?l.outerHeight()+l.position().top:p.outerHeight()+p.position().top;i.appendTo(t(a.target).parents('.avia-menu'));o.css({padding:(s)+'px 0px'});c.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);c.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))},try_search:function(e){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)}},reset:function(e){var a=t(e.currentTarget).parents('form:eq(0)'),i=a.find('.ajax_search_response'),o=t(a.attr('data-ajaxcontainer')).find('.ajax_search_response');i.hide('slow',function(){i.remove()});o.hide('slow',function(){i.remove()});t('body > .ajax_search_response').hide('slow',function(){t(this).remove()})},do_search:function(e){var g=this,h=t(e.currentTarget).attr('autocomplete','off'),l=t(e.currentTarget).parents('.av_searchform_wrapper:eq(0)'),d=l.offset(),u=l.outerWidth(),v=l.outerHeight(),i=h.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'),c=i.serialize();c+='&action=avia_ajax_search';if(!a.length){a=t('<div class="ajax_search_response"></div>')};if(i.attr('id')=='searchform_element'){a.addClass('searchform_element_results')};if(s.indexOf('?')!=-1){s=s.split('?');c+='&'+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);h.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:c,beforeSend:function(){p.insertAfter(m);i.addClass('ajax_loading_now')},success:function(t){if(t==0)t='';a.html(t)},complete:function(){p.remove();i.removeClass('ajax_loading_now')}})}};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",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");if("undefined"===typeof a||"string"!==typeof a){return};if("undefined"!==typeof n||"_blank"==n){window.open(a,"_blank")}
  else{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(n){'use strict';var i=!1,a=null,t=function(n){var i=n.find('.av-player-player-container .mejs-playpause-button');if(i.length==0){setTimeout(function(){t(n)},200)};if(!i.hasClass('mejs-pause')){i.trigger('click')}};n.fn.aviaPlayer=function(a){if(!this.length)return;return this.each(function(){var a={};a.container=n(this);if(a.container.hasClass('avia-playlist-autoplay')&&!i){if((a.container.css('display')=='none')||(a.container.css('visibility')=='hidden')){return};i=!0;setTimeout(function(){t(a.container)},200)}})}}(jQuery));(function(a){a.fn.avia_ajax_form=function(e){var i={sendPath:'send.php',responseContainer:'.ajaxresponse'};var r=a.extend(i,e);return this.each(function(){var i=a(this),t=!1,e={formElements:i.find('textarea, select, input[type=text], input[type=checkbox], input[type=hidden]'),validationError:!1,button:i.find('input:submit'),dataObj:{}},n=i.next(r.responseContainer+':eq(0)');e.button.on('click',s);if(a.avia_utilities.isMobile){e.formElements.each(function(e){var r=a(this),i=r.hasClass('is_email');if(i)r.attr('type','email')})};function s(r){e.validationError=!1;e.datastring='ajax=true';e.formElements.each(function(l){var o=a(this),r=o.parent(),t=o.val(),v=o.attr('name'),n=o.attr('class'),s=!0;if(o.is(':checkbox')){if(o.is(':checked')){t=!0}
  else{t=''}};e.dataObj[v]=encodeURIComponent(t);if(n&&n.match(/is_empty/)){if(t==''||t==null){r.removeClass('valid error ajax_alert').addClass('error');e.validationError=!0}
  else{r.removeClass('valid error ajax_alert').addClass('valid')};s=!1};if(n&&n.match(/is_email/)){if(!t.match(/^[\w|\.|\-]+@\w[\w|\.|\-]*\.[a-zA-Z]{2,20}$/)){r.removeClass('valid error ajax_alert').addClass('error');e.validationError=!0}
  else{r.removeClass('valid error ajax_alert').addClass('valid')};s=!1};if(n&&n.match(/is_ext_email/)){if(!t.match(/^[\w|\.|\-|ÄÖÜäöü]+@\w[\w|\.|\-|ÄÖÜäöü]*\.[a-zA-Z]{2,20}$/)){r.removeClass('valid error ajax_alert').addClass('error');e.validationError=!0}
  else{r.removeClass('valid error ajax_alert').addClass('valid')};s=!1};if(n&&n.match(/is_phone/)){if(!t.match(/^(\d|\s|\-|\/|\(|\)|\[|\]|e|x|t|ension|\.|\+|\_|\,|\:|\;){3,}$/)){r.removeClass('valid error ajax_alert').addClass('error');e.validationError=!0}
  else{r.removeClass('valid error ajax_alert').addClass('valid')};s=!1};if(n&&n.match(/is_number/)){if(!(a.isNumeric(t))||t==''){r.removeClass('valid error ajax_alert').addClass('error');e.validationError=!0}
  else{r.removeClass('valid error ajax_alert').addClass('valid')};s=!1};if(n&&n.match(/captcha/)){var d=i.find('#'+v+'_verifier').val(),f=d.charAt(d.length-1),c=d.charAt(f);if(t!=c){r.removeClass('valid error ajax_alert').addClass('error');e.validationError=!0}
  else{r.removeClass('valid error ajax_alert').addClass('valid')};s=!1};if(s&&t!=''){r.removeClass('valid error ajax_alert').addClass('valid')}});if(e.validationError==!1){if(i.data('av-custom-send')){l()}
  else{o()}};return!1};function o(){if(t){return!1};t=!0;e.button.addClass('av-sending-button');e.button.val(e.button.data('sending-label'));var s=i.data('avia-redirect')||!1,o=i.attr('action');n.load(o+' '+r.responseContainer,e.dataObj,function(){if(s&&o!=s){i.attr('action',s);location.href=s}
  else{n.removeClass('hidden').css({display:'block'});i.slideUp(400,function(){n.slideDown(400,function(){a('body').trigger('av_resize_finished')});e.formElements.val('')})}})};function l(){if(t){return!1};t=!0;var v=e.button.val();e.button.addClass('av-sending-button');e.button.val(e.button.data('sending-label'));e.dataObj.ajax_mailchimp=!0;var s=i.data('avia-redirect')||!1,l=i.attr('action'),o=i.find('.av-form-error-container'),d=i.data('avia-form-id');a.ajax({url:l,type:'POST',data:e.dataObj,beforeSend:function(){if(o.length){o.slideUp(400,function(){o.remove();a('body').trigger('av_resize_finished')})}},success:function(o){var c=jQuery('<div>').append(jQuery.parseHTML(o)),f=c.find('.av-form-error-container');if(f.length){t=!1;i.prepend(f);f.css({display:'none'}).slideDown(400,function(){a('body').trigger('av_resize_finished')});e.button.removeClass('av-sending-button');e.button.val(v)}
  else{if(s&&l!=s){i.attr('action',s);location.href=s}
  else{var m=c.find(r.responseContainer+'_'+d);n.html(m).removeClass('hidden').css({display:'block'});i.slideUp(400,function(){n.slideDown(400,function(){a('body').trigger('av_resize_finished')});e.formElements.val('')})}}},error:function(){},complete:function(){}})}})}})(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=i('<img src="'+n+'" alt="" title="" />'),l=!1;if('string'==typeof e&&e.trim()!=''){o=i('<a href="'+e.trim()+'" rel="lightbox">'+o+'</a>');l=!0};if(l&&i.fn.avia_activate_lightbox){s.parents('#main').avia_activate_lightbox()};s.find('.avia-slide-wrap').append(o)}})}},_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';var t=['weeks','days','hours','minutes','seconds'],o=1000,a=o*60,n=a*60,i=n*24,r=i*7,d=function(t){var s={},c=new Date(),d=t.end-c;if(d<=0){clearInterval(t.countdown);return};t.time.weeks=Math.floor(d/r);t.time.days=Math.floor((d%r)/i);t.time.hours=Math.floor((d%i)/n);t.time.minutes=Math.floor((d%n)/a);t.time.seconds=Math.floor((d%a)/o);switch(t.data.maximum){case 1:t.time.seconds=Math.floor(d/o);break;case 2:t.time.minutes=Math.floor(d/a);break;case 3:t.time.hours=Math.floor(d/n);break;case 4:t.time.days=Math.floor(d/i);break};for(var u in t.time){if(typeof t.update[u]=='object'){if(t.firstrun||t.oldtime[u]!=t.time[u]){var l=(t.time[u]===1)?'single':'multi';t.update[u].time_container.text(t.time[u]);t.update[u].label_container.text(t.update[u][l])}}};if(t.firstrun)t.container.addClass('av-countdown-active');t.oldtime=e.extend({},t.time);t.firstrun=!1};e.fn.aviaCountdown=function(a){if(!this.length)return;return this.each(function(){var a={};a.update={};a.time={};a.oldtime={};a.firstrun=!0;a.container=e(this);a.data=a.container.data();a.end=new Date(a.data.year,a.data.month,a.data.day,a.data.hour,a.data.minute);for(var n in t){a.update[t[n]]={time_container:a.container.find('.av-countdown-'+t[n]+' .av-countdown-time'),label_container:a.container.find('.av-countdown-'+t[n]+' .av-countdown-time-label')};if(a.update[t[n]].label_container.length){a.update[t[n]].single=a.update[t[n]].label_container.data('label');a.update[t[n]].multi=a.update[t[n]].label_container.data('label-multi')}};d(a);a.countdown=setInterval(function(){d(a)},1000)})}}(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(i){'use strict';i.fn.avia_hor_gallery=function(e){var n={slide_container:'.av-horizontal-gallery-inner',slide_element:'.av-horizontal-gallery-slider',slide_content:'.av-horizontal-gallery-wrap',active:'av-active-gal-item',prev:'.av-horizontal-gallery-prev',next:'.av-horizontal-gallery-next'};var e=i.extend(n,e),t=i(window),r=i.avia_utilities.supports('transition'),l=this.browserPrefix!==!1?!0:!1,a=i.avia_utilities.isMobile,s=document.documentElement.className.indexOf('avia_transform3d')!==-1?!0:!1,o={};return this.each(function(){var n=i(this),s=n.find(e.slide_container),d=n.find(e.slide_element),o=n.find(e.slide_content),h=n.find(e.prev),u=n.find(e.next),v=n.find('img'),l=0,r=!1,f=n.data('av-initial'),g=function(e){var t=(s.width()/100)*s.data('av-height');s.css({'padding':0}).height(t);v.css('display','inline-block');setTimeout(function(){v.css('display','block')},10);l=0;o.each(function(){l+=i(this).outerWidth(!0)});d.css('min-width',l);if(r!==!1){c(r)}},c=function(i){var a=d.find(e.slide_content).eq(i),o=s.width(),c=n.data('av-enlarge')>1&&r==i?n.data('av-enlarge'):1,v=a.outerWidth(!0)*c,f=parseInt(a.css('margin-right'),10)/2,t=o<l?(a.position().left*-1)-(v/2)+(o/2):0;t=t+f;if(t+l<o)t=(l-o-parseInt(a.css('margin-right'),10))*-1;if(t>0)t=0;d.css('left',t);s.find('.'+e.active).removeClass(e.active);a.addClass(e.active);r=i};i.avia_utilities.preload({container:n,global_callback:function(){g('init');t.on('debouncedresize',g);if(f)c(f-1);setTimeout(function(){n.addClass('av-horizontal-gallery-animated')},10)}});d.avia_swipe_trigger({prev:e.prev,next:e.next});o.on('click',function(e){var a=i(this),t=o.index(a);if(r===t){if(n.data('av-enlarge')>1&&!i(e.target).is('a')){};return};c(t)});h.on('click',function(i){if(r===!1)r=1;var e=r-1;if(e<0)e=0;c(e)});u.on('click',function(i){if(r===!1)r=-1;var e=r+1;if(e>o.length-1)e=o.length-1;c(e)});if(!a){n.avia_keyboard_controls({37:e.prev,39:e.next})}
  else{n.avia_swipe_trigger({next:e.next,prev:e.prev})}})}}(jQuery));(function(t){'use strict';t.AviaTextRotator=function(i,e){this.$win=t(window);this.$slider=t(e);this.$inner=this.$slider.find('.av-rotator-text');this.$slides=this.$inner.find('.av-rotator-text-single');this.$current=this.$slides.eq(0);this.open=0;this.count=this.$slides.length;if(t.avia_utilities.supported.transition===undefined){t.avia_utilities.supported.transition=t.avia_utilities.supports('transition')};this.browserPrefix=t.avia_utilities.supported.transition;this.cssActive=this.browserPrefix!==!1?!0:!1;this.property=this.browserPrefix+'transform',this._init(i)};t.AviaTextRotator.prototype={_init:function(i){var e=this;if(this.count<=1)return;e.options=t.extend({},i,this.$slider.data());e.$inner.addClass('av-rotation-active');e._autoplay();if(e.options.animation=='typewriter'){e.$slider.addClass('av-caret av-blinking-caret')}},_autoplay:function(){var t=this;t.autoplay=setTimeout(function(){t.open=t.open===!1?0:t.open+1;if(t.open>=t.count)t.open=0;if(t.options.animation!='typewriter'){t._move({},t.open);t._autoplay()}
  else{t._typewriter()}},t.options.interval*1000)},_typewriter:function(i){var t=this;t.$current.css('background-color',t.$current.css('color'));t.$slider.removeClass('av-caret av-blinking-caret').addClass('av-marked-text');setTimeout(function(){t.$slider.addClass('av-caret av-blinking-caret').removeClass('av-marked-text');t.$current.data('av_typewriter_text',t.$current.html());t.$current.css('background-color','transparent');t.$current.html('')},800);setTimeout(function(){t.$slider.removeClass('av-blinking-caret');t.$next=t.$slides.eq(t.open);var e=t.$next.data('av_typewriter_text')||t.$next.html();t.$current.css({display:'none'});t.$next.css({display:'inline'});t.$next.html('');var i=0,a=50;function n(){if(i<e.length){t.$next[0].innerHTML+=e.charAt(i);i++;setTimeout(n,a+Math.floor(Math.random()*100))}
  else{t.$slider.addClass('av-caret av-blinking-caret');t.$current=t.$slides.eq(t.open);t._autoplay()}};n()},1500)},_move:function(i){var t=this,e=30*t.options.animation,n={opacity:0},a={display:'inline-block',opacity:0},r={opacity:1};this.$next=t.$slides.eq(this.open);if(this.cssActive){n[t.property]='translate(0px,'+e+'px)';a[t.property]='translate(0px,'+(e*-1)+'px)';r[t.property]='translate(0px,0px)'}
  else{n['top']=e;a['top']=(e*-1);r['top']=0};t.$current.avia_animate(n,function(){t.$current.css({display:'none'});t.$next.css(a).avia_animate(r,function(){t.$current=t.$slides.eq(t.open)})})}};t.fn.avia_textrotator=function(i){return this.each(function(){var e=t.data(this,'AviaTextRotator');if(!e){t.data(this,'AviaTextRotator',1);new t.AviaTextRotator(i,this)}})}}(jQuery));(function(i){'use strict';i.fn.avia_sc_iconlist=function(n){return this.each(function(){var n=i(this),t=n.find('>li');n.on('avia_start_animation',function(){t.each(function(n){var t=i(this);setTimeout(function(){t.addClass('avia_start_animation')},(n*350))})})})}}(jQuery));(function(t){'use strict';t.fn.aviaHotspots=function(n){if(!this.length)return;return this.each(function(){var n={};n.container=t(this);n.hotspots=n.container.find('.av-image-hotspot');n.container.on('avia_start_animation',function(){setTimeout(function(){n.hotspots.each(function(n){var i=t(this);setTimeout(function(){i.addClass('av-display-hotspot')},300*n)})},400)})})}}(jQuery));(function(a){'use strict';var t=!1,i={switchMag:function(n,i){var e=a(n);if(e.is('.active_sort')||t)return;var s=e.data('filter'),o=i.container.filter(':visible'),r=i.container.filter('.'+s);t=!0;i.sort_buttons.removeClass('active_sort');e.addClass('active_sort');i.magazine.height(i.magazine.outerHeight());o.avia_animate({opacity:0},200,function(){o.css({display:'none'});r.css({opacity:0,display:'block'}).avia_animate({opacity:1},150,function(){i.magazine.avia_animate({height:(r.outerHeight()+i.sort_bar.outerHeight())},150,function(){i.magazine.height('auto');t=!1})})})}};a.fn.aviaMagazine=function(t){if(!this.length)return;return this.each(function(){var t={};t.magazine=a(this),t.sort_buttons=t.magazine.find('.av-magazine-sort a');t.container=t.magazine.find('.av-magazine-group');t.sort_bar=t.magazine.find('.av-magazine-top-bar');t.sort_buttons.on('click',function(a){a.preventDefault();i.switchMag(this,t)})})}}(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 o(i,o,a){function h(t,e,o){var s,r='$().'+i+'("'+e+'")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void n(i+' not initialized. Cannot call methods, i.e. '+r);var c=u[e];if(!c||'_'==e.charAt(0))return void n(r+' is not a valid method');var d=c.apply(u,o);s=void 0===s?d:s}),void 0!==s?s:t};function u(t,e){t.each(function(t,n){var s=a.data(n,i);s?(s.option(e),s._init()):(s=new o(n,e),a.data(n,i,s))})};a=a||e||t.jQuery,a&&(o.prototype.option||(o.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=o)};var r=Array.prototype.slice,i=t.console,n='undefined'==typeof i?function(){}:function(t){i.error(t)};return s(e||t.jQuery),o}),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||{},n=i[t]=i[t]||[];return n.indexOf(e)==-1&&n.push(e),this}},t.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},t.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return n!=-1&&i.splice(n,1),this}},t.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var s=0,i=n[s];e=e||[];for(var o=this._onceEvents&&this._onceEvents[t];i;){var r=o&&o[i];r&&(this.off(t,i),delete o[i]),i.apply(this,e),s+=r?0:1,i=n[s]};return this}},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<n;e++){var o=t[e];i[o]=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(!o){o=!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 n=document.body||document.documentElement;n.appendChild(t);var a=s(t);r.isBoxSizeOuter=i=200==e(a.width),n.removeChild(t)}};function r(o){if(c(),'string'==typeof o&&(o=document.querySelector(o)),o&&'object'==typeof o&&o.nodeType){var a=s(o);if('none'==a.display)return u();var r={};r.width=o.offsetWidth,r.height=o.offsetHeight;for(var w=r.isBorderBox='border-box'==a.boxSizing,h=0;h<n;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,I=r.marginLeft+r.marginRight,z=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+I,r.outerHeight=r.height+z,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'],n=t.length,o=!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=Element.prototype;if(e.matches)return'matches';if(e.matchesSelector)return'matchesSelector';for(var n=['webkit','moz','ms','o'],t=0;t<n.length;t++){var o=n[t],i=o+'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&&'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!=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,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&&o.push(t);for(var s=t.querySelectorAll(n),i=0;i<s.length;i++)o.push(s[i])}}),o},i.debounceMethod=function(t,e,i){var o=t.prototype[e],n=e+'Timeout';t.prototype[e]=function(){var e=this[n];e&&clearTimeout(e);var s=arguments,t=this;this[n]=setTimeout(function(){o.apply(t,s),delete t[n]},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 n=t.console;return i.htmlInit=function(e,o){i.docReady(function(){var r=i.toDashed(o),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(n&&n.error('Error parsing '+s+' on '+t.className+': '+u))};var h=new e(t,i);a&&a.data(t,o,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 o(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,n='string'==typeof s.transition?'transition':'WebkitTransition',r='string'==typeof s.transform?'transform':'WebkitTransform',a={WebkitTransition:'webkitTransitionEnd',transition:'transitionend'}[n],d={transform:r,transition:n,transitionDuration:n+'Duration',transitionProperty:n+'Property',transitionDelay:n+'Delay'},i=o.prototype=Object.create(t.prototype);i.constructor=o,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 n=this.element.style;for(var e in t){var i=d[e]||e;n[i]=t[e]}},i.getPosition=function(){var s=getComputedStyle(this.element),r=this.layout._getOption('originLeft'),a=this.layout._getOption('originTop'),n=s[r?'left':'right'],o=s[a?'top':'bottom'],t=this.layout.size,e=n.indexOf('%')!=-1?parseFloat(n)/100*t.width:parseInt(n,10),i=o.indexOf('%')!=-1?parseFloat(o)/100*t.height:parseInt(o,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 n=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+n[h];t[u]=this.getXValue(d),t[c]='';var o=i?'paddingTop':'paddingBottom',s=i?'top':'bottom',r=i?'bottom':'top',a=this.position.y+n[o];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 n=t-s,o=e-r,i={};i.transform=this.getTranslate(n,o),this.transition({to:i,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},i.getTranslate=function(t,e){var i=this.layout._getOption('originLeft'),n=this.layout._getOption('originTop');return t=i?t:-t,e=n?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 n=this.element.offsetHeight;n=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 n=e.onEnd[i];n.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 n&&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:''})},o}),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,n,o,s){return e(t,i,n,o,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,o,n,a){'use strict';function s(t,e){var i=n.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=n.extend({},this.constructor.defaults),this.option(e);var o=++f;this.element.outlayerGUID=o,h[o]=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],o=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var n=l[o]||1;return i*n};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;n.extend(i,e.prototype),i.option=function(t){n.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),n.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,n=[],e=0;e<i.length;e++){var o=i[e],s=new r(o,this);n.push(s)};return n},i._filterFindItemElements=function(t){return n.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=o(this.element)},i._getMeasurement=function(t,e){var n,i=this.options[t];i?('string'==typeof i?n=this.element.querySelector(i):i instanceof HTMLElement&&(n=i),this[t]=n?o(n)[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 n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},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,n,o){n?t.goTo(e,i):(t.stagger(o*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 o(){s.dispatchEvent(t+'Complete',null,[e])};function r(){i++,i==n&&o()};var s=this,n=e.length;if(!e||!n)return void o();var i=0;e.forEach(function(e){e.once(t,r)})},i.dispatchEvent=function(t,e,i){var o=e?[e].concat(i):i;if(this.emitEvent(t,o),r)if(this.$element=this.$element||r(this.element),e){var n=r.Event(e);n.type=t,this.$element.trigger(n,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){n.removeFrom(this.stamps,t),this.unignore(t)},this)},i._find=function(t){if(t)return'string'==typeof t&&(t=this.element.querySelectorAll(t)),t=n.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,n=o(t),s={left:e.left-i.left-n.marginLeft,top:e.top-i.top-n.marginTop,right:i.right-e.right-n.marginRight,bottom:i.bottom-e.bottom-n.marginBottom};return s},i.handleEvent=n.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()},n.debounceMethod(s,'onresize',100),i.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},i.needsResizeLayout=function(){var t=o(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=n.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(),n.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=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&h[e]},s.create=function(t,e){var i=d(s);return i.defaults=n.extend({},s.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},s.compatOptions),i.namespace=t,i.data=s.data,i.Item=d(a),n.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/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),o=e._create;e._create=function(){this.id=this.layout.itemGUID++,o.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,n=this.layout._sorters;for(var t in i){var e=n[t];this.sortData[t]=e(this.element,this)}}};var n=e.destroy;return e.destroy=function(){n.apply(this,arguments),this.css({display:''})},i}),function(t,e){'function'==typeof define&&define.amd?define('isotope/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 n(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=n.prototype,o=['_resetLayout','_getItemLayoutPosition','_manageStamp','_getContainerSize','_getElementOffset','needsResizeLayout','_getOption'];return o.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,o='outer'+e;if(this._getMeasurement(i,o),!this[i]){var n=this.getFirstItemSize();this[i]=n&&n[o]||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},n.modes={},n.create=function(t,e){function o(){n.apply(this,arguments)};return o.prototype=Object.create(i),o.prototype.constructor=o,e&&(o.options=e),o.prototype.namespace=t,n.modes[t]=o,o},n}),function(t,e){'function'==typeof define&&define.amd?define('masonry/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 i=t.create('masonry');return i.compatOptions.fitWidth='isFitWidth',i.prototype._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},i.prototype.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,n=this.containerWidth+this.gutter,i=n/t,o=t-n%t,a=o&&o<1?'round':'floor';i=Math[a](i),this.cols=Math.max(i,1)},i.prototype.getContainerWidth=function(){var i=this._getOption('fitWidth'),n=i?this.element.parentNode:this.element,t=e(n);this.containerWidth=t&&t.innerWidth},i.prototype._getItemLayoutPosition=function(t){t.getSize();var r=t.size.outerWidth%this.columnWidth,c=r&&r<1?'round':'ceil',o=Math[c](t.size.outerWidth/this.columnWidth);o=Math.min(o,this.cols);for(var e=this._getColGroup(o),i=Math.min.apply(Math,e),s=e.indexOf(i),a={x:this.columnWidth*s,y:i},h=i+t.size.outerHeight,u=this.cols+1-e.length,n=0;n<u;n++)this.colYs[s+n]=h;return a},i.prototype._getColGroup=function(t){if(t<2)return this.colYs;for(var i=[],o=this.cols+1-t,e=0;e<o;e++){var n=this.colYs.slice(e,e+t);i[e]=Math.max.apply(Math,n)};return i},i.prototype._manageStamp=function(t){var r=e(t),o=this._getElementOffset(t),d=this._getOption('originLeft'),a=d?o.left:o.right,h=a+r.outerWidth,s=Math.floor(a/this.columnWidth);s=Math.max(0,s);var n=Math.floor(h/this.columnWidth);n-=h%this.columnWidth?0:1,n=Math.min(this.cols-1,n);for(var u=this._getOption('originTop'),c=(u?o.top:o.bottom)+r.outerHeight,i=s;i<=n;i++)this.colYs[i]=Math.max(c,this.colYs[i])},i.prototype._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.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}),function(t,e){'function'==typeof define&&define.amd?define('isotope/js/layout-modes/masonry',['../layout-mode','masonry/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 o=t.create('masonry'),i=o.prototype,a={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var n in e.prototype)a[n]||(i[n]=e.prototype[n]);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)},o}),function(t,e){'function'==typeof define&&define.amd?define('isotope/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,n=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>n&&(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/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/js/item','isotope/js/layout-mode','isotope/js/layout-modes/masonry','isotope/js/layout-modes/fit-rows','isotope/js/layout-modes/vertical'],function(i,n,o,s,r,a){return e(t,i,n,o,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/js/item'),require('isotope/js/layout-mode'),require('isotope/js/layout-modes/masonry'),require('isotope/js/layout-modes/fit-rows'),require('isotope/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,n,s,o,h,a){function f(t,e){return function(i,n){for(var a=0;a<t.length;a++){var o=t[a],s=i.sortData[o],r=n.sortData[o];if(s>r||s<r){var h=void 0!==e[o]?e[o]: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 n=t[i];n.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?o.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&&n&&o.dispatchEvent('arrangeComplete',null,[o.filteredItems])};var e,i,n,o=this;this.once('layoutComplete',function(){e=!0,t()}),this.once('hideComplete',function(){i=!0,t()}),this.once('revealComplete',function(){n=!0,t()})},i._filter=function(t){var o=this.options.filter;o=o||'*';for(var s=[],r=[],a=[],h=this._getFilterTest(o),n=0;n<t.length;n++){var e=t[n];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=o.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 n=t[e];n.updateSortData()}};var d=function(){function t(t){if('string'!=typeof t)return t;var i=l(t).split(' '),n=i[0],o=n.match(/^\[(.+)\]$/),h=o&&o[1],s=e(h,n),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(){var t=this.options.sortBy;if(t){var e=[].concat.apply(t,this.sortHistory),i=f(e,this.options.sortAscending);this.filteredItems.sort(i),t!=this.sortHistory[0]&&this.sortHistory.unshift(t)}},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,o,n=i.length;for(e=0;e<n;e++)o=i[e],this.element.appendChild(o.element);var s=this._filter(i).matches;for(e=0;e<n;e++)i[e].isLayoutInstant=!0;for(this.arrange(),e=0;e<n;e++)delete i[e].isLayoutInstant;this.reveal(s)}};var c=i.remove;return i.remove=function(t){t=o.makeArray(t);var i=this.getItems(t);c.call(this,t);for(var n=i&&i.length,e=0;n&&e<n;e++){var s=i[e];o.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 n=this.options.transitionDuration;this.options.transitionDuration=0;var i=t.apply(this,e);return this.options.transitionDuration=n,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,n=t.x+t.width,o=t.y+t.height;return this.x<n&&e>t.x&&this.y<o&&i>t.y},e.getMaximalFreeRects=function(e){if(!this.overlaps(e))return!1;var i,n=[],r=this.x+this.width,a=this.y+this.height,o=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}),n.push(i)),r>o&&(i=new t({x:o,y:this.y,width:r-o,height:this.height}),n.push(i)),a>s&&(i=new t({x:this.x,y:s,width:this.width,height:a-s}),n.push(i)),this.x<e.x&&(i=new t({x:this.x,y:this.y,width:e.x-this.x,height:this.height}),n.push(i)),n},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=n[this.sortDirection]||n.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],n=e.x<=t.x&&e.x+e.width>=t.x+t.width&&e.height>=t.height-.01;if(n){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],n=e.y<=t.y&&e.y+e.height>=t.y+t.height&&e.width>=t.width-.01;if(n){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 n=this.spaces[i],o=n.getMaximalFreeRects(t);o?e.push.apply(e,o):e.push(n)};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 n=0,o=t[e+n];o;){if(o==i)n++;else{if(o.contains(i)){t.splice(e,1),i=t[e];continue;t};i.contains(o)?t.splice(e+n,1):n++};o=t[e+n]};e++,i=t[e]};return t};var n={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,n='string'==typeof r.transform?'transform':'WebkitTransform',o=function(){t.Item.apply(this,arguments)},i=o.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),n=Math.abs(this.position.y-e),o=this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&1>i&&1>n;return o?void this.goTo(t,e):void s.apply(this,arguments)},i.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&n&&(this.element.style[n]='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[n]='translate('+this.rect.x+'px, '+this.rect.y+'px)'},i.hideDropPlaceholder=function(){this.layout.element.removeChild(this.dropPlaceholder)},o}),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,n,o,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,n=e.y-t.y;return Math.sqrt(i*i+n*n)};n.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 o,this.shiftPacker=new o,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),n=s.outerWidth,o=s.outerHeight;(n||o)&&(n=this._applyGridGutter(n,this.columnWidth),o=this._applyGridGutter(o,this.rowHeight)),i.width=Math.min(n,this.packer.width),i.height=Math.min(o,this.packer.height)},i._applyGridGutter=function(t,e){if(!e)return t+this.gutter;e+=this.gutter;var i=t%e,n=i&&1>i?'round':'ceil';return t=Math[n](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,o=this.getItem(t);if(o&&o.isPlacing)e=o.rect;else{var i=this._getElementOffset(t);e=new n({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 n=this.getItem(t);n&&(this.stamp(n.element),n.enablePlacing(),this.updateShiftTargets(n),e=void 0===e?n.rect.x:e,i=void 0===i?n.rect.y:i,this.shift(n,e,i),this._bindFitEvents(n),n.moveTo(n.rect.x,n.rect.y),this.shiftLayout(),this.unstamp(n.element),this.sortItemsByPosition(),n.disablePlacing())},i._bindFitEvents=function(t){function i(){e++,2==e&&n.dispatchEvent('fitComplete',null,[t])};var n=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 o=this._getItemsForLayout(this.items),e=this._getOption('horizontal'),i=e?'y':'x',u=e?'height':'width',s=e?'rowHeight':'columnWidth',c=e?'innerHeight':'innerWidth',n=this[s];if(n=n&&n+this.gutter){this._getMeasurements();var h=this[s]+this.gutter;o.forEach(function(t){var e=Math.round(t.rect[i]/n);t.rect[i]=e*h})}
  else{var r=t(this.element)[c]+this.gutter,a=this.packer[u];o.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 o=this.getItem(t);if(!o||!o.isPlacing){var e=this._getElementOffset(t),i=new n({x:l?e.left:e.right,y:f?e.top:e.bottom});this._setRectSize(t,i),this.shiftPacker.placed(i)}},this);var o=this._getOption('horizontal'),d=o?'rowHeight':'columnWidth',s=o?'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 n=t.rect;this._setRectSize(t.element,n),this.shiftPacker[u](n),this._addShiftTarget(n.x,n.y,i);var a=o?n.x+n.width:n.x,h=o?n.y:n.y+n.height;if(this._addShiftTarget(a,h,i),e)for(var l=Math.round(n[s]/e),r=1;l>r;r++){var c=o?a:n.x+e*r,d=o?n.y+e*r:h;this._addShiftTarget(c,d,i)}},this)},i._addShiftTarget=function(t,e,i){var o=this._getOption('horizontal')?e:t;if(!(0!==o&&o>i)){var n=t+','+e,s=-1!=this.shiftTargetKeys.indexOf(n);s||(this.shiftTargetKeys.push(n),this.shiftTargets.push({x:t,y:e}))}},i.shift=function(t,e,i){var n,o=1/0,s={x:e,y:i};this.shiftTargets.forEach(function(t){var e=d(t,s);o>e&&(n=t,o=e)}),t.rect.x=n.x,t.rect.y=n.y};var a=120;i.itemDragMove=function(t,e,i){function r(){o.shift(n,e,i),n.positionDropPlaceholder(),o.layout()};var n=this.isEnabled&&this.getItem(t);if(n){e-=this.size.paddingLeft,i-=this.size.paddingTop;var o=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 n(){i++,2==i&&(e.element.classList.remove('is-positioning-post-drag'),e.hideDropPlaceholder(),o.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,o=this;e.once('layout',n),this.once('layoutComplete',n),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=n,r.Packer=o,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 o=t.create('packery'),i=o.prototype,u={_getElementOffset:!0,_getMeasurement:!0};for(var n in e.prototype)u[n]||(i[n]=e.prototype[n]);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)},o});(function(i){'use strict';i.fn.avia_masonry=function(a){if(!this.length)return this;var n=i('body'),e=i(window),s=i.avia_utilities.isMobile,o=!1,t={masonry_filter:function(){var a=i(this),l=a.html(),n=a.data('filter'),o=a.parents('.av-masonry:eq(0)'),s=o.find('.av-masonry-container:eq(0)'),c=o.find('.av-masonry-sort a'),r=o.find('.av-current-sort-title');c.removeClass('active_sort');a.addClass('active_sort');s.attr('id','masonry_id_'+n);if(r.length)r.html(l);t.applyMasonry(s,n,function(){s.css({overflow:'visible'})});setTimeout(function(){e.trigger('debouncedresize')},500);return!1},applyMasonry:function(i,t,o){var a=t?{filter:'.'+t}:{};a['layoutMode']='packery';a['packery']={gutter:0};a['percentPosition']=!0;a['itemSelector']='a.isotope-item, div.isotope-item';i.isotope(a,function(){e.trigger('av-height-change')});if(typeof o==='function'){setTimeout(o,0)}},show_bricks:function(a,t){a.each(function(o){var n=i(this),r=i.avia_utilities.supports('transition'),l=s?0:100;setTimeout(function(){if(r===!1){n.css({visibility:'visible',opacity:0}).animate({opacity:1},1500)}
  else{n.addClass('av-masonry-item-loaded')};if(o==a.length-1&&typeof t=='function'){t.call();e.trigger('av-height-change')}},(l*o))})},loadMore:function(a){a.preventDefault();if(o)return!1;o=!0;var l=i(this),s=l.data(),r=l.parents('.av-masonry:eq(0)'),d=r.find('.av-masonry-container'),v=r.find('.av-masonry-entry'),c=i.avia_utilities.loading(),f=function(){o=!1;c.hide();n.trigger('av_resize_finished')};if(!s.offset){s.offset=0};s.offset+=s.items;s.action='avia_ajax_masonry_more';s.loaded=[];v.each(function(){var a=i(this).data('av-masonry-item');if(a)s.loaded.push(a)});i.ajax({url:avia_framework_globals.ajaxurl,type:'POST',data:s,beforeSend:function(){c.show()},success:function(a){if(a.indexOf('{av-masonry-loaded}')!==-1){var a=a.split('{av-masonry-loaded}'),o=i(a.pop()).filter('.isotope-item');if(o.length>s.items){o=o.not(':last')}
  else{l.addClass('av-masonry-no-more-items')};var n=i('<div class="loadcontainer"></div>').append(o);i.avia_utilities.preload({container:n,single_callback:function(){var s=r.find('.av-masonry-sort a'),a=r.find('.av-sort-by-term'),n=a.data('av-allowed-sort');a.hide();c.hide();d.isotope('insert',o);i.avia_utilities.avia_ajax_call(r);setTimeout(function(){t.show_bricks(o,f)},150);setTimeout(function(){e.trigger('av-height-change')},550);if(s){i(s).each(function(a){var t=i(this),e=t.data('filter');if(o){i(o).each(function(a){var s=i(this);if(s.hasClass(e)&&n.indexOf(e)!==-1){var o=t.find('.avia-term-count').text();t.find('.avia-term-count').text(' '+(parseInt(o)+1)+' ');if(t.hasClass('avia_hide_sort')){t.removeClass('avia_hide_sort').addClass('avia_show_sort');r.find('.av-masonry-sort .'+e+'_sep').removeClass('avia_hide_sort').addClass('avia_show_sort');r.find('.av-masonry-sort .av-sort-by-term').removeClass('hidden')}}})}})};a.fadeIn()}})}
  else{f()}},error:f,complete:function(){setTimeout(function(){e.trigger('debouncedresize')},500)}})}};return this.each(function(){var a=i(this),e=a.find('.av-masonry-container'),o=a.find('.isotope-item'),n=a.find('.av-masonry-sort').css({visibility:'visible',opacity:0}).on('click','a',t.masonry_filter),r=a.find('.av-masonry-load-more').css({visibility:'visible',opacity:0});i.avia_utilities.preload({container:e,single_callback:function(){var l=function(){n.animate({opacity:1},400);if(e.outerHeight()+e.offset().top+i('#footer').outerHeight()>i(window).height()){i('html').css({'overflow-y':'scroll'})};t.applyMasonry(e,!1,function(){a.addClass('avia_sortable_active');e.removeClass('av-js-disabled ')});t.show_bricks(o,function(){r.css({opacity:1}).on('click',t.loadMore)})};if(s){l()}
  else{a.waypoint(l,{offset:'80%'})};i(window).on('debouncedresize',function(){t.applyMasonry(e,!1,function(){a.addClass('avia_sortable_active')})})}})})}}(jQuery));(function(i){'use strict';i.avia_utilities=i.avia_utilities||{};i(document).ready(function(){i.avia_utilities=i.avia_utilities||{};if(i.avia_utilities.avia_sticky_submenu)i.avia_utilities.avia_sticky_submenu()});i.avia_utilities.avia_sticky_submenu=function(){var e=i(window),s=i('html:first'),t=i('.html_header_top.html_header_sticky #header'),a=parseInt(i('html:first').css('margin-top'),10),l=i('.html_header_sidebar #main, .boxed #main'),n=i('.av-submenu-container'),h=s.is('.html_minimal_header')?0:1,o=i('.av-frame-top').height(),u=function(){a=parseInt(s.css('margin-top'),10);if(!i('.mobile_menu_toggle:visible').length){i('.av-open-submenu').removeClass('av-open-submenu')};n.filter('.av-sticky-submenu').each(function(){i(this).next('.sticky_placeholder').height(i(this).height())})},v=function(){var i=l.width();a=parseInt(s.css('margin-top'),10);n.width(i)},r=function(s,v){var r=this.offset().top,l=s.offset().top,u=e.scrollTop(),i=a,n=!1;if(t.length){i+=t.outerHeight()+parseInt(t.css('margin-top'),10)};if(o){i+=o};if(u+i>l){if(!n){this.css({top:i-h,position:'fixed'});n=!0}}
  else{this.css({top:'auto',position:'absolute'});n=!1}},m=function(e){e.preventDefault();var t=i(this),s=t.siblings('.av-subnav-menu');if(s.hasClass('av-open-submenu')){s.removeClass('av-open-submenu')}
  else{s.addClass('av-open-submenu')}};e.on('debouncedresize av-height-change',u);u();if(l.length){e.on('debouncedresize av-height-change',v);v()};n.each(function(){var s=i(this),t=s.filter('.av-sticky-submenu'),n=s.next('.sticky_placeholder'),a=s.find('.mobile_menu_toggle');if(t.length)e.on('scroll',function(){window.requestAnimationFrame(i.proxy(r,t,n))});if(a.length){a.on('click',m)}});s.on('click','.av-submenu-hidden .av-open-submenu li a',function(){var s=i(this),e=s.siblings('ul, .avia_mega_div');if(e.length){if(e.hasClass('av-visible-sublist')){e.removeClass('av-visible-sublist')}
  else{e.addClass('av-visible-sublist')};return!1}});i('.avia_mobile').on('click','.av-menu-mobile-disabled li a',function(){var s=i(this),e=s.siblings('ul');if(e.length){if(e.hasClass('av-visible-mobile-sublist')){}
  else{i('.av-visible-mobile-sublist').removeClass('av-visible-mobile-sublist');e.addClass('av-visible-mobile-sublist');return!1}}})}}(jQuery));(function(e){'use strict';e.fn.avia_sc_messagebox=function(s){'use strict';return this.each(function(){var s=e(this),a=s.find('.av_message_close'),t=s.attr('id'),i=function(e,i,t){if(t){var s=new Date();s.setTime(s.getTime()+(t*24*60*60*1000));var a='; expires='+s.toGMTString()}
  else var a='';document.cookie=e+'='+i+a+'; path=/'},n=function(t){var n=t+'=',o=document.cookie.split(';');for(var a=0;a<o.length;a++){var e=o[a];while(e.charAt(0)==' '){e=e.substring(1,e.length)};if(e.indexOf(n)==0){var r=s.attr('data-contents'),i=e.substring(n.length,e.length);if(i==r){return i}}};return null};if(!n(t)){s.removeClass('messagebox-hidden')};a.on('click',function(){var a=s.attr('data-contents');if(s.hasClass('messagebox-session_cookie')){var e=''}
  else if(s.hasClass('messagebox-custom_cookie')){var e=parseInt(s.attr('data-cookielifetime'))};i(t,a,e);s.addClass('messagebox-hidden')})})};e('.avia_message_box').avia_sc_messagebox()}(jQuery));(function(t){t.fn.avia_sc_animated_number=function(a){if(!this.length)return;if(this.is('.avia_sc_animated_number_active'))return;this.addClass('avia_sc_animated_number_active');var r=!1,n=(a&&a.simple_up)?!0:!1,e=(a&&a.start_timer)?a.start_timer:300,i=function(t,e,s,f,o){var a=f+s;if(a>=o){t.text(e)}
  else{var r='',d=e.toString().length-a.toString().length;for(var u=d;u>0;u--){r+='0'};if(n)r=0;t.text(r+a);window.requestAnimationFrame(function(){i(t,e,s,a,o)})}};return this.each(function(){var n=t(this),r=n.find('.__av-single-number'),s=n.data('timer')||3000;r.each(function(a){var i=t(this),n=i.text();if(window.addEventListener)i.text(n.replace(/./g,'0'))});n.addClass('number_prepared').on('avia_start_animation',function(){if(n.is('.avia_animation_done'))return;n.addClass('avia_animation_done');r.each(function(r){var o=t(this),a=o.data('number'),u=a,f=parseInt(o.text(),10),d=/^0+$/.test(a),n=0;if(d&&a!==0)u=a.replace(/0/g,'9');n=Math.round(u*32/s);if(n==0||n%10==0)n+=1;setTimeout(function(){i(o,a,n,f,u)},e)})});if(a&&a.instant_start==!0){n.trigger('avia_start_animation')}})}})(jQuery);(function(i){'use strict';i.avia_utilities=i.avia_utilities||{};i.fn.avia_iso_sort=function(e){return this.each(function(){var s=i('body'),e=i(this),r=e.data('portfolio-id'),t=e.parents('.entry-content-wrapper, .avia-fullwidth-portfolio'),o=t.find('.sort_width_container[data-portfolio-id="'+r+'"]').find('#js_sort_items').css({visibility:'visible',opacity:0}),n=o.find('a'),l=e.find('.grid-image'),c=!1,d=i('.post-entry',e);function a(){e.addClass('isotope_activated').isotope({layoutMode:'fitRows',itemSelector:'.flex_column'});e.isotope('on','layoutComplete',function(){e.css({overflow:'visible'});s.trigger('av_resize_finished')});c=!0;setTimeout(function(){t.addClass('avia_sortable_active')},0)};n.bind('click',function(){var a=i(this),o=a.data('filter'),r=a.html(),s=t.find('.av-current-sort-title');if(s.length)s.html(r);n.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});return!1});i(window).on('debouncedresize',function(){a()});i.avia_utilities.preload({container:e,single_callback:function(){o.animate({opacity:1},400);a();setTimeout(function(){a()});l.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};t[e]=i('#avia-tmpl-portfolio-preview-'+e.replace(/ID_/,'')).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(a){'use strict';a.fn.avia_sc_progressbar=function(t){return this.each(function(){var t=a(this),i=t.find('.avia-progress-bar');t.on('avia_start_animation',function(){i.each(function(t){var i=a(this);setTimeout(function(){i.find('.progress').addClass('avia_start_animation');i.find('.progressbar-percent').avia_sc_animated_number({instant_start:!0,simple_up:!0,start_timer:10})},(t*250))})})})}}(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(i){'use strict';i.AviaccordionSlider=function(t,e){this.$slider=i(e);this.$inner=this.$slider.find('.aviaccordion-inner');this.$slides=this.$inner.find('.aviaccordion-slide');this.$images=this.$inner.find('.aviaccordion-image');this.$last=this.$slides.filter(':last');this.$titles=this.$slider.find('.aviaccordion-preview');this.$titlePos=this.$slider.find('.aviaccordion-preview-title-pos');this.$titleWrap=this.$slider.find('.aviaccordion-preview-title-wrap');this.$win=i(window);if(i.avia_utilities.supported.transition===undefined){i.avia_utilities.supported.transition=i.avia_utilities.supports('transition')};this.browserPrefix=i.avia_utilities.supported.transition;this.cssActive=this.browserPrefix!==!1?!0:!1;this.transform3d=document.documentElement.className.indexOf('avia_transform3d')!==-1?!0:!1;this.isMobile=i.avia_utilities.isMobile;this.property=this.browserPrefix+'transform',this.count=this.$slides.length;this.open=!1;this.autoplay=!1;this.increaseTitle=this.$slider.is('.aviaccordion-title-on-hover');this._init(t)};i.AviaccordionSlider.prototype={_init:function(t){var e=this;e.options=i.extend({},t,this.$slider.data());i.avia_utilities.preload({container:this.$slider,single_callback:function(){e._kickOff()}})},_kickOff:function(){var i=this;i._calcMovement();i._bindEvents();i._showImages();i._autoplay()},_autoplay:function(){var i=this;if(i.options.autoplay){i.autoplay=setInterval(function(){i.open=i.open===!1?0:i.open+1;if(i.open>=i.count)i.open=0;i._move({},i.open)},i.options.interval*1000)}},_showImages:function(){var t=this,a=0,e=300,s=this.count*e;if(this.cssActive){setTimeout(function(){t.$slider.addClass('av-animation-active')},10)};this.$images.each(function(t){var s=i(this),a=e*(t+1);setTimeout(function(){s.avia_animate({opacity:1},400,function(){s.css(i.avia_utilities.supported.transition+'transform','none')})},a)});if(t.increaseTitle)s=0;this.$titlePos.each(function(t){var e=i(this),a=s+100*(t+1);setTimeout(function(){e.avia_animate({opacity:1},200,function(){e.css(i.avia_utilities.supported.transition+'transform','none')})},a)})},_bindEvents:function(){var t=this.isMobile?'click':'mouseenter';this.$slider.on(t,'.aviaccordion-slide',i.proxy(this._move,this));this.$slider.on('mouseleave','.aviaccordion-inner',i.proxy(this._move,this));this.$win.on('debouncedresize',i.proxy(this._calcMovement,this));this.$slider.on('av-prev av-next',i.proxy(this._moveTo,this));if(this.isMobile){this.$slider.avia_swipe_trigger({next:this.$slider,prev:this.$slider,event:{prev:'av-prev',next:'av-next'}})}},_titleHeight:function(){var t=0;this.$titleWrap.css({'height':'auto'}).each(function(){var e=i(this).outerHeight();if(e>t)t=e}).css({'height':t+2})},_calcMovement:function(t,s){var e=this,r=this.$slider.width(),p=this.$last.data('av-left'),c=this.$images.filter(':last').width()||r,a=Math.floor((100/r)*c),l=a*e.count,h=3,d=100-a,n=d>p/h?d:0,o=n/(e.count-1),v=c;if(l<110&&s!==!1){var f=this.$slider.height(),u=(f/l)*110;this.$slider.css({'max-height':u});e._calcMovement(t,!1);return};if(o<2)n=0;this.$slides.each(function(t){var l=i(this),s=0,r=0,c=l.data('av-left');if(n!==0){s=o*t;r=a+s-o}
  else{s=c/Math.abs(h);r=100-((s/t)*(e.count-t))};if(t==1&&e.increaseTitle){v=r+1};if(e.cssActive){s=s-c;r=r-c;c=0};l.data('av-calc-default',c);l.data('av-calc-left',s);l.data('av-calc-right',r)});if(e.increaseTitle){e.$titles.css({width:v+'%'})}},_moveTo:function(i){var e=i.type=='av-next'?1:-1,t=this.open===!1?0:this.open+e;if(t>=0&&t<this.$slides.length)this._move(i,t)},_move:function(t,s){var e=this,n=t.currentTarget,a=typeof s!='undefined'?s:this.$slides.index(n);this.open=a;if(e.autoplay&&typeof n!='undefined'){clearInterval(e.autoplay);e.autoplay=!1};this.$slides.removeClass('aviaccordion-active-slide').each(function(s){var n=i(this),c=n.data(),o=s<=a?c.avCalcLeft:c.avCalcRight,r={},l=t.type=='mouseleave'?1:0,h=a===s?e.$titleWrap.eq(s):!1;if(h)n.addClass('aviaccordion-active-slide');if(l){o=c.avCalcDefault;this.open=!1};if(e.cssActive){r[e.property]=e.transform3d?'translate3d('+o+'%, 0, 0)':'translate('+o+'%,0)';n.css(r)}
  else{r.left=o+'%';n.stop().animate(r,700,'easeOutQuint')}})}};i.fn.aviaccordion=function(t){return this.each(function(){var e=i.data(this,'AviaccordionSlider');if(!e){i.data(this,'AviaccordionSlider',1);new i.AviaccordionSlider(t,this)}})}})(jQuery);(function(i){'use strict';i.AviaFullscreenSlider=function(t,s){this.$slider=i(s);this.$inner=this.$slider.find('.avia-slideshow-inner');this.$innerLi=this.$inner.find('>li');this.$caption=this.$inner.find('.avia-slide-wrap .caption_container');this.$win=i(window);this.isMobile=i.avia_utilities.isMobile;this.property={};this.scrollPos='0';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(t)};i.AviaFullscreenSlider.defaults={height:100,subtract:'#wpadminbar, #header, #main>.title_container'};i.AviaFullscreenSlider.prototype={_init:function(t){var s=this;this.options=i.extend(!0,{},i.AviaFullscreenSlider.defaults,t);if(this.$slider.data('slide_height'))this.options.height=this.$slider.data('slide_height');this.options.parallax_enabled=this.$slider.data('image_attachment')==''?!0:!1;this.$subtract=i(this.options.subtract);this._setSize();this.$win.on('debouncedresize',i.proxy(this._setSize,this));setTimeout(function(){if(!s.isMobile&&s.options.parallax_enabled){s.$win.on('scroll',i.proxy(s._on_scroll,s))}},100);this.$slider.aviaSlider({bg_slider:!0})},_on_scroll:function(t){var s=this;if(!s.ticking){s.ticking=!0;window.requestAnimationFrame(i.proxy(s._parallax_scroll,s))}},_fetch_properties:function(i){this.property.offset=this.$slider.offset().top;this.property.wh=this.$win.height();this.property.height=i||this.$slider.outerHeight();this._parallax_scroll()},_setSize:function(){if(!i.fn.avia_browser_height){var s=this.$win.height(),t=Math.ceil((s/100)*this.options.height);if(this.$subtract.length&&this.options.height==100){this.$subtract.each(function(){t-=this.offsetHeight-0.5})}
  else{t-=1};this.$slider.height(t).removeClass('av-default-height-applied');this.$inner.css('padding',0)};this._fetch_properties(t)},_parallax_scroll:function(t){if(this.isMobile||!this.options.parallax_enabled)return;var e=this.$win.scrollTop(),n=e+this.property.wh,s='0',r={},a={};if(this.property.offset<e&&e<=this.property.offset+this.property.height){s=Math.round((e-this.property.offset)*0.3)};if(this.scrollPos!=s){this.scrollPos=s;if(this.transform3d){r[i.avia_utilities.supported.transition+'transform']='translate3d(0px,'+s+'px,0px)'}
  else{r[i.avia_utilities.supported.transition+'transform']='translate(0px,'+s+'px)'};this.$inner.css(r)};this.ticking=!1}};i.fn.aviaFullscreenSlider=function(t){return this.each(function(){var s=i.data(this,'aviaFullscreenSlider');if(!s){i.data(this,'aviaFullscreenSlider',1);new i.AviaFullscreenSlider(t,this)}})}})(jQuery);(function(t){'use strict';t.fn.layer_slider_height_helper=function(e){return this.each(function(){var e=t(this),i=e.find('>div:first'),n=!1,h=0,r=function(){if(i.height()>0||h>5){e.height('auto')}
  else{n=setTimeout(r,500);h++}};if(!i.length)return;n=setTimeout(r,0)})}}(jQuery));(function(t){'use strict';t.fn.avia_sc_tab_section=function(){var i=t(window),r=t.avia_utilities.supports('transition'),e=this.browserPrefix!==!1?!0:!1,n=t.avia_utilities.isMobile,o=document.documentElement.className.indexOf('avia_transform3d')!==-1?!0:!1,a={};return this.each(function(){var r=t(this),l=r.find('.av-section-tab-title'),b=r.find('.av-tab-section-outer-container'),v=r.find('.av-tab-section-tab-title-container'),g=r.find('.av_tab_navigation'),d=r.find('.av-tab-section-inner-container'),m=r.find('.av-animation-delay-container'),f=r.find('.av-layout-tab-inner'),C=r.is('.av-tab-slide-transition'),p=r.is('.av-tab-content-auto'),s=r.find('.__av_init_open'),c=0,w=function(c,g){c.preventDefault();var n=t(c.currentTarget),p=n.find('.av-tab-arrow-container span'),v=n.data('av-tab-section-title');s=r.find('[data-av-tab-section-content="'+v+'"]');var f=s.data('av-tab-bg-color'),b=s.data('av-tab-color'),w=r.find('.av-active-tab-content').not('[data-av-tab-section-content="'+v+'"]');l.attr('style','').removeClass('av-active-tab-title');n.addClass('av-active-tab-title');s.addClass('av-active-tab-content');if(f!=='')p.css('background-color',f);if(b!=='')n.css('color',b);var i=((parseInt(v,10)-1)*-100);if(t('body').hasClass('rtl')){i=((parseInt(v,10)-1)*100)};if(e){i=i/l.length;a['transform']=o?'translate3d('+i+'%, 0, 0)':'translate('+i+'%,0)';a['left']='0%';d.css(a)}
  else{d.css('left',i+'%')};u();h();if(!g)location.hash=n.attr('href');setTimeout(function(){s.trigger('avia_start_animation_if_current_slide_is_active');m.not(s).trigger('avia_remove_animation')},600)},k=function(){c=0;l.each(function(){c+=t(this).outerWidth()});v.css('min-width',c)},h=function(){if(s.length&&p){var e=f.height();f.height('auto');var t=s.find('.av-layout-tab-inner').height(),a=v.height();b.css('max-height',t+a+100);f.height(e);f.height(t);f.css('overflow','hidden');setTimeout(function(){i.trigger('av-height-change')},600)}},u=function(){var n=r.find('.av-active-tab-title'),a=r.width(),i=(n.position().left*-1)-(n.outerWidth()/2)+(a/2);if(!t('body').hasClass('rtl')){if(a>=c){i=0};if(i+c<a)i=(c-a)*-1;if(i>0)i=0;v.css('left',i)}
  else{var e=0;if(a<c){if(i+c>a){if(i>0)i=0;var e=(i+c-a)*-1;v.css('left','auto');v.css('right',e)}};v.css('left','auto');v.css('right',e)}},y=function(i){if(!n)return;var e=t(i.currentTarget),a=r.find('.av-active-tab-title');if(e.is('.av_prev_tab_section')){a.prev('.av-section-tab-title').trigger('click')}
  else{a.next('.av-section-tab-title').trigger('click')}},x=function(){if(!i&&window.location.hash)var i=window.location.hash;var t=l.filter('[href="'+i+'"]');if(t.length){if(!t.is('.active_tab'))t.trigger('click')}
  else{r.find('.av-active-tab-title').trigger('click',!0)}};t.avia_utilities.preload({container:s,single_callback:function(){l.on('click',w);g.on('click',y);i.on('debouncedresize',u);i.on('debouncedresize av-content-el-height-changed',h);k();h();x()}});d.avia_swipe_trigger({prev:'.av_prev_tab_section',next:'.av_next_tab_section'})})}}(jQuery));(function(t){'use strict';t.fn.avia_sc_tabs=function(e){var n={heading:'.tab',content:'.tab_content',active:'active_tab',sidebar:!1};var i=t(window),e=t.extend(n,e);return this.each(function(){var n=t(this),o=t('<div class="tab_titles"></div>').prependTo(n),a=t(e.heading,n),r=t(e.content,n),c=!1,s=!1;c=a.clone();s=a.addClass('fullsize-tab');a=c;a.prependTo(o).each(function(e){var n=t(this),i=!1;if(c)i=s.filter(':eq('+e+')');n.addClass('tab_counter_'+e).bind('click',function(){f(n,e,i);return!1});if(c){i.bind('click',function(){f(i,e,n);return!1})}});d();l(!1);i.on('debouncedresize',d);t('a').on('click',function(){var e=t(this).attr('href');if(typeof e!='undefined'&&e){e=e.replace(/^.*?#/,'');l('#'+e)}});function d(){if(!e.sidebar)return;r.css({'min-height':o.outerHeight()+1})};function f(a,f,c){if(!a.is('.'+e.active)){t('.'+e.active,n).removeClass(e.active);t('.'+e.active+'_content',n).removeClass(e.active+'_content');a.addClass(e.active);var d=a.data('fake-id');if(typeof d=='string')location.replace(d);if(c)c.addClass(e.active);var s=r.filter(':eq('+f+')').addClass(e.active+'_content');if(typeof click_container!='undefined'&&click_container.length){sidebar_shadow.height(s.outerHeight())};var o=s.offset().top,l=o-50-parseInt(t('html').css('margin-top'),10);if(i.scrollTop()>o){t('html:not(:animated),body:not(:animated)').scrollTop(l)}};i.trigger('av-content-el-height-changed',a)};function l(t){if(!t&&window.location.hash)t=window.location.hash;if(!t)return;var e=a.filter('[data-fake-id="'+t+'"]');if(e.length){if(!e.is('.active_tab'))e.trigger('click');window.scrollTo(0,n.offset().top-70)}}})}}(jQuery));(function(i){'use strict';i.fn.avia_sc_testimonial=function(t){return this.each(function(){var t=i(this),a=t.find('.avia-testimonial');t.on('avia_start_animation',function(){a.each(function(t){var a=i(this);setTimeout(function(){a.addClass('avia_start_animation')},(t*150))})})})}}(jQuery));(function(i){'use strict';i(window).on('load',function(e){if(i.AviaSlider){i('.avia-timeline-container').avia_sc_timeline()}});i.fn.avia_sc_timeline=function(e){return this.each(function(){var n=this,e='#'+i(this).attr('id'),a=i(e),t;t={matchHeights:function(){this.setMinHeight(i(e+' .av-milestone-placement-top .av-milestone-date'),!0);this.setMinHeight(i(e+' .av-milestone-placement-bottom .av-milestone-content-wrap'),!0);this.setMinHeight(i(e+' .av-milestone-placement-bottom.avia-timeline-boxshadow .av-milestone-contentbox'),!1);this.setMinHeight(i(e+' .av-milestone-placement-top.avia-timeline-boxshadow .av-milestone-contentbox'),!1);this.setMinHeight(i(e+' .avia-timeline-horizontal.av-milestone-placement-alternate li >:first-child'),!0)},setMinHeight:function(e,t){if(e.length<2)return;var n=[];e.css('min-height','0').each(function(e){var t=i(this),a=t.outerHeight(!0);n.push(a)});var l=Math.max.apply(null,n);e.css('min-height',l);if(t){var a=e.first(),s=a.closest('.avia-timeline-container'),o=a.height();s.find('.av-timeline-nav').css('top',o)}},createCarousel:function(t){var o=this,l=i(e+'.avia-slideshow-carousel'),n=3,s=1;if(a.attr('avia-data-slides')){n=parseInt(a.attr('avia-data-slides'))};if(n>=2){s=2};var c={carousel:'yes',keep_pading:!0,carouselSlidesToShow:n,carouselSlidesToScroll:3,carouselResponsive:[{breakpoint:989,settings:{carouselSlidesToShow:s,carouselSlidesToScroll:s,}},{breakpoint:767,settings:{carouselSlidesToShow:1,carouselSlidesToScroll:1,}}],};l.aviaSlider(c);l.on('_kickOff',function(){o.matchHeights()});i(window).on('resize',function(){o.matchHeights()})},layoutHelpers:function(t){i(e+' .avia-timeline-vertical li').each(function(e,n){var s=i(this).parents('ul').find('li').length,t=i(this).find('.av-milestone-icon-wrap'),a=t.outerHeight(!0),o=parseInt(a/2);if(e===(s-1)){t.css({'height':o,})}
  else{t.css({'height':a,})}})},fireAnimations:function(t){if(i(e+' > ul').hasClass('avia-timeline-vertical')){var n=a.find('.av-milestone');a.on('avia_start_animation',function(){n.each(function(e){var t=i(this);setTimeout(function(){t.addClass('avia_start_animation')},(e*350))})})}}};t.createCarousel();t.layoutHelpers();t.fireAnimations();t.matchHeights()})}})(jQuery);(function(t){'use strict';t.fn.avia_sc_toggle=function(e){var a={single:'.single_toggle',heading:'.toggler',content:'.toggle_wrap',sortContainer:'.taglist'};var i=t(window),e=t.extend(a,e);return this.each(function(){var a=t(this).addClass('enable_toggles'),l=t(e.single,a),n=t(e.heading,a),c=t(e.content,a),s=t(e.sortContainer+' a',a);n.each(function(o){var s=t(this),l=s.next(e.content,a);function r(){var e=l.offset().top,a=e-50-parseInt(t('html').css('margin-top'),10);if(i.scrollTop()>e){t('html:not(:animated),body:not(:animated)').animate({scrollTop:a},200)}};if(l.css('visibility')!='hidden'){s.addClass('activeTitle')};s.on('click',function(){if(l.css('visibility')!='hidden'){l.slideUp(200,function(){l.removeClass('active_tc').attr({style:''});i.trigger('av-height-change');i.trigger('av-content-el-height-changed',this);location.replace(s.data('fake-id')+'-closed')});s.removeClass('activeTitle')}
  else{if(a.is('.toggle_close_all')){c.not(l).slideUp(200,function(){t(this).removeClass('active_tc').attr({style:''});r()});n.removeClass('activeTitle')};l.addClass('active_tc');setTimeout(function(){l.slideDown(200,function(){if(!a.is('.toggle_close_all')){r()};i.trigger('av-height-change');i.trigger('av-content-el-height-changed',this)})},1);s.addClass('activeTitle');location.replace(s.data('fake-id'))}})});s.click(function(e){e.preventDefault();var i=l.filter('[data-tags~="'+t(this).data('tag')+'"]'),a=l.not('[data-tags~="'+t(this).data('tag')+'"]');s.removeClass('activeFilter');t(this).addClass('activeFilter');n.filter('.activeTitle').trigger('click');i.slideDown();a.slideUp()});function o(t){if(!t&&window.location.hash)t=window.location.hash;if(!t)return;var e=n.filter('[data-fake-id="'+t+'"]');if(e.length){if(!e.is('.activeTitle'))e.trigger('click');window.scrollTo(0,a.offset().top-70)}};o(!1);t('a').on('click',function(){var e=t(this).attr('href');if(typeof e!='undefined'&&e){e=e.replace(/^.*?#/,'');o('#'+e)}})})}}(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));;jQuery(function(t){if('undefined'==typeof wc_add_to_cart_params)return!1;var a=function(){t(document).on('click','.add_to_cart_button',this.onAddToCart).on('added_to_cart',this.updateButton).on('added_to_cart',this.updateCartPage).on('added_to_cart',this.updateFragments)};a.prototype.onAddToCart=function(a){var d=t(this);if(d.is('.ajax_add_to_cart')){if(!d.attr('data-product_id'))return!0;a.preventDefault(),d.removeClass('added'),d.addClass('loading');var o={};t.each(d.data(),function(t,a){o[t]=a}),t(document.body).trigger('adding_to_cart',[d,o]),t.post(wc_add_to_cart_params.wc_ajax_url.toString().replace('%%endpoint%%','add_to_cart'),o,function(a){a&&(a.error&&a.product_url?window.location=a.product_url:'yes'!==wc_add_to_cart_params.cart_redirect_after_add?t(document.body).trigger('added_to_cart',[a.fragments,a.cart_hash,d]):window.location=wc_add_to_cart_params.cart_url)})}},a.prototype.updateButton=function(d,o,r,a){(a=void 0!==a&&a)&&(a.removeClass('loading'),a.addClass('added'),wc_add_to_cart_params.is_cart||0!==a.parent().find('.added_to_cart').length||a.after(' <a href="'+wc_add_to_cart_params.cart_url+'" class="added_to_cart wc-forward" title="'+wc_add_to_cart_params.i18n_view_cart+'">'+wc_add_to_cart_params.i18n_view_cart+'</a>'),t(document.body).trigger('wc_cart_button_updated',[a]))},a.prototype.updateCartPage=function(){var a=window.location.toString().replace('add-to-cart','added-to-cart');t('.shop_table.cart').load(a+' .shop_table.cart:eq(0) > *',function(){t('.shop_table.cart').stop(!0).css('opacity','1').unblock(),t(document.body).trigger('cart_page_refreshed')}),t('.cart_totals').load(a+' .cart_totals:eq(0) > *',function(){t('.cart_totals').stop(!0).css('opacity','1').unblock(),t(document.body).trigger('cart_totals_refreshed')})},a.prototype.updateFragments=function(a,d){d&&(t.each(d,function(a){t(a).addClass('updating').fadeTo('400','0.6').block({message:null,overlayCSS:{opacity:.6}})}),t.each(d,function(a,d){t(a).replaceWith(d),t(a).stop(!0).css('opacity','1').unblock()}),t(document.body).trigger('wc_fragments_loaded'))},new a});;jQuery(function(e){if('undefined'==typeof wc_single_product_params)return!1;e('body').on('init','.wc-tabs-wrapper, .woocommerce-tabs',function(){e('.wc-tab, .woocommerce-tabs .panel:not(.panel .panel)').hide();var t=window.location.hash,o=window.location.href,i=e(this).find('.wc-tabs, ul.tabs').first();t.toLowerCase().indexOf('comment-')>=0||'#reviews'===t||'#tab-reviews'===t?i.find('li.reviews_tab a').click():o.indexOf('comment-page-')>0||o.indexOf('cpage=')>0?i.find('li.reviews_tab a').click():'#tab-additional_information'===t?i.find('li.additional_information_tab a').click():i.find('li:first a').click()}).on('click','.wc-tabs li a, ul.tabs li a',function(t){t.preventDefault();var i=e(this),o=i.closest('.wc-tabs-wrapper, .woocommerce-tabs');o.find('.wc-tabs, ul.tabs').find('li').removeClass('active'),o.find('.wc-tab, .panel:not(.panel .panel)').hide(),i.closest('li').addClass('active'),o.find(i.attr('href')).show()}).on('click','a.woocommerce-review-link',function(){return e('.reviews_tab a').click(),!0}).on('init','#rating',function(){e('#rating').hide().before('<p class="stars"><span><a class="star-1" href="#">1</a><a class="star-2" href="#">2</a><a class="star-3" href="#">3</a><a class="star-4" href="#">4</a><a class="star-5" href="#">5</a></span></p>')}).on('click','#respond p.stars a',function(){var t=e(this),i=e(this).closest('#respond').find('#rating'),o=e(this).closest('.stars');return i.val(t.text()),t.siblings('a').removeClass('active'),t.addClass('active'),o.addClass('selected'),!1}).on('click','#respond #submit',function(){var t=e(this).closest('#respond').find('#rating'),i=t.val();if(t.length>0&&!i&&'yes'===wc_single_product_params.review_rating_required)return window.alert(wc_single_product_params.i18n_required_rating_text),!1}),e('.wc-tabs-wrapper, .woocommerce-tabs, #rating').trigger('init');var t=function(t,i){this.$target=t,this.$images=e('.woocommerce-product-gallery__image',t),0!==this.$images.length?(t.data('product_gallery',this),this.flexslider_enabled=e.isFunction(e.fn.flexslider)&&wc_single_product_params.flexslider_enabled,this.zoom_enabled=e.isFunction(e.fn.zoom)&&wc_single_product_params.zoom_enabled,this.photoswipe_enabled='undefined'!=typeof PhotoSwipe&&wc_single_product_params.photoswipe_enabled,i&&(this.flexslider_enabled=!1!==i.flexslider_enabled&&this.flexslider_enabled,this.zoom_enabled=!1!==i.zoom_enabled&&this.zoom_enabled,this.photoswipe_enabled=!1!==i.photoswipe_enabled&&this.photoswipe_enabled),this.initFlexslider=this.initFlexslider.bind(this),this.initZoom=this.initZoom.bind(this),this.initPhotoswipe=this.initPhotoswipe.bind(this),this.onResetSlidePosition=this.onResetSlidePosition.bind(this),this.getGalleryItems=this.getGalleryItems.bind(this),this.openPhotoswipe=this.openPhotoswipe.bind(this),this.flexslider_enabled?(this.initFlexslider(),t.on('woocommerce_gallery_reset_slide_position',this.onResetSlidePosition)):this.$target.css('opacity',1),this.zoom_enabled&&(this.initZoom(),t.on('woocommerce_gallery_init_zoom',this.initZoom)),this.photoswipe_enabled&&this.initPhotoswipe()):this.$target.css('opacity',1)};t.prototype.initFlexslider=function(){var t=this.$target;t.flexslider({selector:'.woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image',animation:wc_single_product_params.flexslider.animation,smoothHeight:wc_single_product_params.flexslider.smoothHeight,directionNav:wc_single_product_params.flexslider.directionNav,controlNav:wc_single_product_params.flexslider.controlNav,slideshow:wc_single_product_params.flexslider.slideshow,animationSpeed:wc_single_product_params.flexslider.animationSpeed,animationLoop:wc_single_product_params.flexslider.animationLoop,start:function(){t.css('opacity',1)}}),e('.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:eq(0) .wp-post-image').one('load',function(){var t=e(this);t&&setTimeout(function(){var e=t.closest('.woocommerce-product-gallery__image').height(),i=t.closest('.flex-viewport');e&&i&&i.height(e)},100)}).each(function(){this.complete&&e(this).load()})},t.prototype.initZoom=function(){var t=this.$images,a=this.$target.width(),o=!1;if(this.flexslider_enabled||(t=t.first()),e(t).each(function(t,i){if(e(i).find('img').data('large_image_width')>a)return o=!0,!1}),o){var i={touch:!1};'ontouchstart'in window&&(i.on='click'),t.trigger('zoom.destroy'),t.zoom(i)}},t.prototype.initPhotoswipe=function(){this.zoom_enabled&&this.$images.length>0&&(this.$target.prepend('<a href="#" class="woocommerce-product-gallery__trigger">🔍</a>'),this.$target.on('click','.woocommerce-product-gallery__trigger',this.openPhotoswipe)),this.$target.on('click','.woocommerce-product-gallery__image a',this.openPhotoswipe)},t.prototype.onResetSlidePosition=function(){this.$target.flexslider(0)},t.prototype.getGalleryItems=function(){var t=this.$images,i=[];return t.length>0&&t.each(function(t,a){var o=e(a).find('img'),s={src:o.attr('data-large_image'),w:o.attr('data-large_image_width'),h:o.attr('data-large_image_height'),title:o.attr('data-caption')?o.attr('data-caption'):o.attr('title')};i.push(s)}),i},t.prototype.openPhotoswipe=function(t){t.preventDefault();var i,s=e('.pswp')[0],r=this.getGalleryItems(),o=e(t.target);i=o.is('.woocommerce-product-gallery__trigger')?this.$target.find('.flex-active-slide'):o.closest('.woocommerce-product-gallery__image');var a=e.extend({index:e(i).index()},wc_single_product_params.photoswipe_options);new PhotoSwipe(s,PhotoSwipeUI_Default,r,a).init()},e.fn.wc_product_gallery=function(e){return new t(this,e),this},e('.woocommerce-product-gallery').each(function(){e(this).wc_product_gallery()})});!function(){'use strict';function e(e){function a(c,a){var T,M,h=c==window,u=a&&a.message!==undefined?a.message:undefined;if(!(a=e.extend({},e.blockUI.defaults,a||{})).ignoreIfBlocked||!e(c).data('blockUI.isBlocked')){if(a.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,a.overlayCSS||{}),T=e.extend({},e.blockUI.defaults.css,a.css||{}),a.onOverlayClick&&(a.overlayCSS.cursor='pointer'),M=e.extend({},e.blockUI.defaults.themedCSS,a.themedCSS||{}),u=u===undefined?a.message:u,h&&t&&l(window,{fadeOut:0}),u&&'string'!=typeof u&&(u.parentNode||u.jquery)){var I=u.jquery?u[0]:u,g={};e(c).data('blockUI.history',g),g.el=I,g.parent=I.parentNode,g.display=I.style.display,g.position=I.style.position,g.parent&&g.parent.removeChild(I)};e(c).data('blockUI.onUnblock',a.onUnblock);var w,v,k,y,m=a.baseZ;w=e(s||a.forceIframe?'<iframe class="blockUI" style="z-index:'+m+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+a.iframeSrc+'"></iframe>':'<div class="blockUI" style="display:none"></div>'),v=e(a.theme?'<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+m+++';display:none"></div>':'<div class="blockUI blockOverlay" style="z-index:'+m+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),a.theme&&h?(y='<div class="blockUI '+a.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(m+10)+';display:none;position:fixed">',a.title&&(y+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(a.title||'&nbsp;')+'</div>'),y+='<div class="ui-widget-content ui-dialog-content"></div>',y+='</div>'):a.theme?(y='<div class="blockUI '+a.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(m+10)+';display:none;position:absolute">',a.title&&(y+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(a.title||'&nbsp;')+'</div>'),y+='<div class="ui-widget-content ui-dialog-content"></div>',y+='</div>'):y=h?'<div class="blockUI '+a.blockMsgClass+' blockPage" style="z-index:'+(m+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+a.blockMsgClass+' blockElement" style="z-index:'+(m+10)+';display:none;position:absolute"></div>',k=e(y),u&&(a.theme?(k.css(M),k.addClass('ui-widget-content')):k.css(T)),a.theme||v.css(a.overlayCSS),v.css('position',h?'fixed':'absolute'),(s||a.forceIframe)&&w.css('opacity',0);var E=[w,v,k],z=e(h?'body':c);e.each(E,function(){this.appendTo(z)}),a.theme&&a.draggable&&e.fn.draggable&&k.draggable({handle:'.ui-dialog-titlebar',cancel:'li'});var W=p&&(!e.support.boxModel||e('object,embed',h?null:c).length>0);if(d||W){if(h&&a.allowBodyStretch&&e.support.boxModel&&e('html,body').css('height','100%'),(d||!e.support.boxModel)&&!h)var x=n(c,'borderTopWidth'),C=n(c,'borderLeftWidth'),S=x?'(0 - '+x+')':0,O=C?'(0 - '+C+')':0;e.each(E,function(e,o){var t=o[0].style;if(t.position='absolute',e<2)h?t.setExpression('height','Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:'+a.quirksmodeOffsetHack+') + "px"'):t.setExpression('height','this.parentNode.offsetHeight + "px"'),h?t.setExpression('width','jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):t.setExpression('width','this.parentNode.offsetWidth + "px"'),O&&t.setExpression('left',O),S&&t.setExpression('top',S);else if(a.centerY)h&&t.setExpression('top','(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),t.marginTop=0;else if(!a.centerY&&h){var n='((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + '+(a.css&&a.css.top?parseInt(a.css.top,10):0)+') + "px"';t.setExpression('top',n)}})};if(u&&(a.theme?k.find('.ui-widget-content').append(u):k.append(u),(u.jquery||u.nodeType)&&e(u).show()),(s||a.forceIframe)&&a.showOverlay&&w.show(),a.fadeIn){var U=a.onBlock?a.onBlock:i,H=a.showOverlay&&!u?U:i,j=u?U:i;a.showOverlay&&v._fadeIn(a.fadeIn,H),u&&k._fadeIn(a.fadeIn,j)}
  else a.showOverlay&&v.show(),u&&k.show(),a.onBlock&&a.onBlock.bind(k)();if(r(1,c,a),h?(t=k[0],o=e(a.focusableElements,t),a.focusInput&&setTimeout(f,20)):b(k[0],a.centerX,a.centerY),a.timeout){var B=setTimeout(function(){h?e.unblockUI(a):e(c).unblock(a)},a.timeout);e(c).data('blockUI.timeout',B)}}};function l(n,i){var d,a=n==window,l=e(n),u=l.data('blockUI.history'),f=l.data('blockUI.timeout');f&&(clearTimeout(f),l.removeData('blockUI.timeout')),i=e.extend({},e.blockUI.defaults,i||{}),r(0,n,i),null===i.onUnblock&&(i.onUnblock=l.data('blockUI.onUnblock'),l.removeData('blockUI.onUnblock'));var s;s=a?e(document.body).children().filter('.blockUI').add('body > .blockUI'):l.find('>.blockUI'),i.cursorReset&&(s.length>1&&(s[1].style.cursor=i.cursorReset),s.length>2&&(s[2].style.cursor=i.cursorReset)),a&&(t=o=null),i.fadeOut?(d=s.length,s.stop().fadeOut(i.fadeOut,function(){0==--d&&c(s,u,i,n)})):c(s,u,i,n)};function c(o,t,n,l){var s=e(l);if(!s.data('blockUI.isBlocked')){o.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),t&&t.el&&(t.el.style.display=t.display,t.el.style.position=t.position,t.el.style.cursor='default',t.parent&&t.parent.appendChild(t.el),s.removeData('blockUI.history')),s.data('blockUI.static')&&s.css('position','static'),'function'==typeof n.onUnblock&&n.onUnblock(l,n);var i=e(document.body),d=i.width(),a=i[0].style.width;i.width(d-1).width(d),i[0].style.width=a}};function r(o,n,i){var s=n==window,d=e(n);if((o||(!s||t)&&(s||d.data('blockUI.isBlocked')))&&(d.data('blockUI.isBlocked',o),s&&i.bindEvents&&(!o||i.showOverlay))){var l='mousedown mouseup keydown keypress keyup touchstart touchend touchmove';o?e(document).bind(l,i,u):e(document).unbind(l,u)}};function u(n){if('keydown'===n.type&&n.keyCode&&9==n.keyCode&&t&&n.data.constrainTabKey){var l=o,a=!n.shiftKey&&n.target===l[l.length-1],d=n.shiftKey&&n.target===l[0];if(a||d)return setTimeout(function(){f(d)},10),!1};var i=n.data,s=e(n.target);return s.hasClass('blockOverlay')&&i.onOverlayClick&&i.onOverlayClick(n),s.parents('div.'+i.blockMsgClass).length>0||0===s.parents().children().filter('div.blockUI').length};function f(e){if(o){var t=o[!0===e?o.length-1:0];t&&t.focus()}};function b(e,t,o){var i=e.parentNode,s=e.style,l=(i.offsetWidth-e.offsetWidth)/2-n(i,'borderLeftWidth'),d=(i.offsetHeight-e.offsetHeight)/2-n(i,'borderTopWidth');t&&(s.left=l>0?l+'px':'0'),o&&(s.top=d>0?d+'px':'0')};function n(t,o){return parseInt(e.css(t,o),10)||0};e.fn._fadeIn=e.fn.fadeIn;var i=e.noop||function(){},s=/MSIE/.test(navigator.userAgent),d=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),p=(document.documentMode,e.isFunction(document.createElement('div').style.setExpression));e.blockUI=function(e){a(window,e)},e.unblockUI=function(e){l(window,e)},e.growlUI=function(t,o,n,s){var i=e('<div class="growlUI"></div>');t&&i.append('<h1>'+t+'</h1>'),o&&i.append('<h2>'+o+'</h2>'),n===undefined&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:i,fadeIn:'undefined'!=typeof t.fadeIn?t.fadeIn:700,fadeOut:'undefined'!=typeof t.fadeOut?t.fadeOut:1e3,timeout:'undefined'!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:s,css:e.blockUI.defaults.growlCSS})};l();i.css('opacity');i.mouseover(function(){l({fadeIn:0,timeout:3e4});var t=e('.blockMsg');t.stop(),t.fadeTo(300,1)}).mouseout(function(){e('.blockMsg').fadeOut(1e3)})},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var o=e.extend({},e.blockUI.defaults,t||{});return this.each(function(){var t=e(this);o.ignoreIfBlocked&&t.data('blockUI.isBlocked')||t.unblock({fadeOut:0})}),this.each(function(){'static'==e.css(this,'position')&&(this.style.position='relative',e(this).data('blockUI.static',!0)),this.style.zoom=1,a(this,t)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){l(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:'<h1>Please wait...</h1>',title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:'30%',top:'40%',left:'35%',textAlign:'center',color:'#000',border:'3px solid #aaa',backgroundColor:'#fff',cursor:'wait'},themedCSS:{width:'30%',top:'40%',left:'35%'},overlayCSS:{backgroundColor:'#000',opacity:.6,cursor:'wait'},cursorReset:'default',growlCSS:{width:'350px',top:'10px',left:'',right:'10px',border:'none',padding:'5px',opacity:.6,cursor:'default',color:'#fff',backgroundColor:'#000','-webkit-border-radius':'10px','-moz-border-radius':'10px','border-radius':'10px'},iframeSrc:/^https/i.test(window.location.href||'')?'javascript:false':'about:blank',forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:':input:enabled:visible',onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:'blockMsg',ignoreIfBlocked:!1};var t=null,o=[]};'function'==typeof define&&define.amd&&define.amd.jQuery?define(['jquery'],e):e(jQuery)}();!function(e){var n=!1;if('function'==typeof define&&define.amd&&(define(e),n=!0),'object'==typeof exports&&(module.exports=e(),n=!0),!n){var o=window.Cookies,t=window.Cookies=e();t.noConflict=function(){return window.Cookies=o,t}}}(function(){function e(){for(var e=0,o={};e<arguments.length;e++){var t=arguments[e];for(var n in t)o[n]=t[n]};return o};function n(o){function t(n,c,r){var a;if('undefined'!=typeof document){if(arguments.length>1){if('number'==typeof(r=e({path:'/'},t.defaults,r)).expires){var d=new Date;d.setMilliseconds(d.getMilliseconds()+864e5*r.expires),r.expires=d};r.expires=r.expires?r.expires.toUTCString():'';try{a=JSON.stringify(c),/^[\{\[]/.test(a)&&(c=a)}catch(C){};c=o.write?o.write(c,n):encodeURIComponent(String(c)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=(n=(n=encodeURIComponent(String(n))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var p='';for(var f in r)r[f]&&(p+='; '+f,!0!==r[f]&&(p+='='+r[f]));return document.cookie=n+'='+c+p};n||(a={});for(var g=document.cookie?document.cookie.split('; '):[],m=/(%[0-9A-Z]{2})+/g,u=0;u<g.length;u++){var l=g[u].split('='),i=l.slice(1).join('=');'"'===i.charAt(0)&&(i=i.slice(1,-1));try{var s=l[0].replace(m,decodeURIComponent);if(i=o.read?o.read(i,s):o(i,s)||i.replace(m,decodeURIComponent),this.json)try{i=JSON.parse(i)}catch(C){};if(n===s){a=i;break};n||(a[s]=i)}catch(C){}};return a}};return t.set=t,t.get=function(e){return t.call(t,e)},t.getJSON=function(){return t.apply({json:!0},[].slice.call(arguments))},t.defaults={},t.remove=function(n,o){t(n,'',e(o,{expires:-1}))},t.withConverter=n,t};return n(function(){})});;jQuery(function(o){o('.woocommerce-ordering').on('change','select.orderby',function(){o(this).closest('form').submit()}),o('input.qty:not(.product-quantity input.qty)').each(function(){var e=parseFloat(o(this).attr('min'));e>=0&&parseFloat(o(this).val())<e&&o(this).val(e)}),jQuery('.woocommerce-store-notice__dismiss-link').click(function(){Cookies.set('store_notice','hidden',{path:'/'}),jQuery('.woocommerce-store-notice').hide()}),'hidden'===Cookies.get('store_notice')?jQuery('.woocommerce-store-notice').hide():jQuery('.woocommerce-store-notice').show()});;jQuery(function(e){function d(){r&&sessionStorage.setItem('wc_cart_created',(new Date).getTime())};function f(e){r&&(localStorage.setItem(t,e),sessionStorage.setItem(t,e))};function o(){e.ajax(w)};if('undefined'==typeof wc_cart_fragments_params)return!1;var r,t=wc_cart_fragments_params.ajax_url.toString()+'-wc_cart_hash';try{r='sessionStorage'in window&&null!==window.sessionStorage,window.sessionStorage.setItem('wc','test'),window.sessionStorage.removeItem('wc'),window.localStorage.setItem('wc','test'),window.localStorage.removeItem('wc')}catch(u){r=!1};var w={url:wc_cart_fragments_params.wc_ajax_url.toString().replace('%%endpoint%%','get_refreshed_fragments'),type:'POST',success:function(t){t&&t.fragments&&(e.each(t.fragments,function(t,n){e(t).replaceWith(n)}),r&&(sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(t.fragments)),f(t.cart_hash),t.cart_hash&&d()),e(document.body).trigger('wc_fragments_refreshed'))}};if(r){var c=null;e(document.body).on('wc_fragment_refresh updated_wc_div',function(){o()}),e(document.body).on('added_to_cart',function(e,n,o){var r=sessionStorage.getItem(t);null!==r&&r!==undefined&&''!==r||d(),sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(n)),f(o)}),e(document.body).on('wc_fragments_refreshed',function(){clearTimeout(c),c=setTimeout(o,864e5)}),e(window).on('storage onstorage',function(e){t===e.originalEvent.key&&localStorage.getItem(t)!==sessionStorage.getItem(t)&&o()}),e(window).on('pageshow',function(t){t.originalEvent.persisted&&(e('.widget_shopping_cart_content').empty(),e(document.body).trigger('wc_fragment_refresh'))});try{var i=e.parseJSON(sessionStorage.getItem(wc_cart_fragments_params.fragment_name)),n=sessionStorage.getItem(t),a=Cookies.get('woocommerce_cart_hash'),s=sessionStorage.getItem('wc_cart_created');if(null!==n&&n!==undefined&&''!==n||(n=''),null!==a&&a!==undefined&&''!==a||(a=''),n&&(null===s||s===undefined||''===s))throw'No cart_created';if(s){var g=1*s+864e5,m=(new Date).getTime();if(g<m)throw'Fragment expired';c=setTimeout(o,g-m)};if(!i||!i['div.widget_shopping_cart_content']||n!==a)throw'No fragment';e.each(i,function(t,n){e(t).replaceWith(n)}),e(document.body).trigger('wc_fragments_loaded')}catch(u){o()}}
  else o();Cookies.get('woocommerce_items_in_cart')>0?e('.hide_cart_widget_if_empty').closest('.widget_shopping_cart').show():e('.hide_cart_widget_if_empty').closest('.widget_shopping_cart').hide(),e(document.body).on('adding_to_cart',function(){e('.hide_cart_widget_if_empty').closest('.widget_shopping_cart').show()})});!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,image:{titleSrc:function(a){var e=a.el.attr('title');if(!e)e=a.el.find('img').attr('title');if(!e)e=a.el.parent().next('.wp-caption-text').html();if(typeof e=='undefined')return'';return e}},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-instagram-pics','.portfolio-preview-image','.portfolio-preview-content','.isotope','.post-entry','.sidebar','#main','.main_menu'],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(i){'use strict';i(document).ready(function(){if(i.fn.aviaMegamenu)i('.main_menu .menu').aviaMegamenu({modify_position:!0})});i.fn.aviaMegamenu=function(e){var n={modify_position:!0,delay:300};var t=i.extend(n,e),a=i(window);return this.each(function(){var f=i('html:first'),g=i('#main .container:first'),c=f.filter('.html_menu_left, .html_logo_center').length,l=i.avia_utilities.isMobile,n=i(this),a=n.find('>li:not(.ignore_menu)'),e=a.find('>div').parent().css({overflow:'hidden'}),r=n.find('>.current-menu-item>a, >.current_page_item>a'),d=a.find('>ul').parent(),u=n.parent(),h=n.parents('.main_menu').eq(0),p=u.width(),o={},s=[];if(!r.length){n.find('.current-menu-ancestor:eq(0) a:eq(0), .current_page_ancestor:eq(0) a:eq(0)').parent().addClass('active-parent-item')};if(!f.is('.html_header_top')){t.modify_position=!1};a.on('click','a',function(i){if(this.href==window.location.href+'#'||this.href==window.location.href+'/#')i.preventDefault()});a.each(function(){var e=i(this),s=e.position(),a=e.find('div:first').css({opacity:0,display:'none'}),o='';if(!a.length){o=e.find('>ul').css({display:'none'})};if(a.length||o.length){var n=e.addClass('dropdown_ul_available').find('>a');n.append('<span class="dropdown_available"></span>');if(typeof n.attr('href')!='string'||n.attr('href')=='#'){n.css('cursor','default').click(function(i){i.preventDefault()})}};if(t.modify_position&&a.length){e.on('mouseenter',function(){m(e,s,a,p)})}});function m(i,t,e,n){t=i.position();if(!c){if(t.left+e.width()<n){e.css({right:-e.outerWidth()+i.outerWidth()})}
  else if(t.left+e.width()>n){e.css({right:-h.outerWidth()+(t.left+i.outerWidth())})}}
  else{if(e.width()>t.left+i.outerWidth()){e.css({left:(t.left*-1)})}
  else if(t.left+e.width()>n){e.css({left:(e.width()-t.left)*-1})}}};function v(i){if(o[i]==!0){var t=e.filter(':eq('+i+')').css({overflow:'visible'}).find('div:first'),n=e.filter(':eq('+i+')').find('a:first');s['check'+i]=!0;t.stop().css('display','block').animate({opacity:1},300);if(t.length){n.addClass('open-mega-a')}}};function y(t){if(o[t]==!1){e.filter(':eq('+t+')').find('>a').removeClass('open-mega-a');var n=e.filter(':eq('+t+')'),a=n.find('div:first');a.stop().css('display','block').animate({opacity:0},300,function(){i(this).css('display','none');n.css({overflow:'hidden'});s['check'+t]=!1})}};if(l){e.each(function(e){i(this).bind('click',function(){if(s['check'+e]!=!0)return!1})})};e.each(function(e){i(this).hover(function(){o[e]=!0;setTimeout(function(){v(e)},t.delay)},function(){o[e]=!1;setTimeout(function(){y(e)},t.delay)})});d.find('li').addBack().each(function(){var t=i(this),e=t.find('ul:first'),a=!1;if(e.length){e.css({display:'block',opacity:0,visibility:'hidden'});var n=t.find('>a');n.bind('mouseenter',function(){e.stop().css({visibility:'visible'}).animate({opacity:1})});t.bind('mouseleave',function(){e.stop().animate({opacity:0},function(){e.css({visibility:'hidden'})})})}})})}})(jQuery);(function(e){'use strict';e(document).ready(function(){i()});function a(e,i,a){if(e[0].classList){if(i=='add'){e[0].classList.add(a)}
  else{e[0].classList.remove(a)}}
  else{if(i=='add'){e.addClass(a)}
  else{e.removeClass(a)}}};function i(){var l=e(window),i=e('.html_header_top.html_header_sticky #header'),n=e('.av_header_unstick_top');if(!i.length&&!n.length)return;var c=e('#header_main .container .logo img, #header_main .container .logo a'),t=e('#header_main .container:not(#header_main_alternate>.container), #header_main .main_menu ul:first-child > li > a:not(.avia_mega_div a, #header_main_alternate a), #header_main #menu-item-shop .cart_dropdown_link'),r=e(t).filter(':first').height(),f=e.avia_utilities.isMobile,m=e('#scroll-top-link'),o=i.is('.av_header_transparency'),s=i.is('.av_header_shrinking'),h=i.find('#header_meta').outerHeight(),d=function(){var e=l.scrollTop(),d=0,m=e;if(n)e-=h;if(e<0)e=0;if(s&&!f){if(e<r/2){d=r-e;if(e<=0){d=r};a(i,'remove','header-scrolled')}
  else{d=r/2;a(i,'add','header-scrolled')};if(e-30<r){a(i,'remove','header-scrolled-full')}
  else{a(i,'add','header-scrolled-full')};t.css({'height':d+'px','lineHeight':d+'px'});c.css({'maxHeight':d+'px'})};if(n.length){if(e<=0){if(m<=0)m=0;n.css({'margin-top':'-'+m+'px'})}
  else{n.css({'margin-top':'-'+h+'px'})}};if(o){if(e>50){a(i,'remove','av_header_transparency')}
  else{a(i,'add','av_header_transparency')}}};if(e('body').is('.avia_deactivate_menu_resize'))s=!1;if(!o&&!s&&!n.length)return;l.on('debouncedresize',function(){r=e(t).attr('style','').filter(':first').height();d()});l.on('scroll',function(){window.requestAnimationFrame(d)});d()}})(jQuery);'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);;var ak_js=document.getElementById('ak_js');if(!ak_js){ak_js=document.createElement('input');ak_js.setAttribute('id','ak_js');ak_js.setAttribute('name','ak_js');ak_js.setAttribute('type','hidden')}
  else{ak_js.parentNode.removeChild(ak_js)};ak_js.setAttribute('value',(new Date()).getTime());var commentForm=document.getElementById('commentform');if(commentForm){commentForm.appendChild(ak_js)}
  else{var replyRowContainer=document.getElementById('replyrow');if(replyRowContainer){var children=replyRowContainer.getElementsByTagName('td');if(children.length>0){children[0].appendChild(ak_js)}}};