1(function($) 2{"use strict";$(document).ready(function() 3{$.avia_utilities=$.avia_utilities||{};if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&'ontouchstart'in document.documentElement) 4{$.avia_utilities.isMobile=true;} 5else 6{$.avia_utilities.isMobile=false;} 7if($.fn.avia_mobile_fixed) 8$('.avia-bg-style-fixed').avia_mobile_fixed();if($.fn.avia_parallax) 9$('.av-parallax').avia_parallax();if($.fn.avia_browser_height) 10$('.av-minimum-height, .avia-fullscreen-slider, .av-cell-min-height').avia_browser_height();if($.fn.avia_video_section) 11$('.av-section-with-video-bg').avia_video_section();new $.AviaTooltip({'class':"avia-tooltip",data:"avia-tooltip",delay:0,scope:"body"});new $.AviaTooltip({'class':"avia-tooltip avia-icon-tooltip",data:"avia-icon-tooltip",delay:0,scope:"body"});$.avia_utilities.activate_shortcode_scripts();if($.fn.layer_slider_height_helper) 12$('.avia-layerslider').layer_slider_height_helper();if($.fn.avia_portfolio_preview) 13{$('.grid-links-ajax').avia_portfolio_preview();} 14if($.fn.avia_masonry) 15$('.av-masonry').avia_masonry();if($.fn.aviaccordion) 16$('.aviaccordion').aviaccordion();if($.fn.avia_textrotator) 17$('.av-rotator-container').avia_textrotator();if($.fn.avia_sc_tab_section) 18{$('.av-tab-section-container').avia_sc_tab_section();} 19if($.fn.avia_hor_gallery) 20{$('.av-horizontal-gallery').avia_hor_gallery();} 21if($.fn.avia_link_column) 22{$('.avia-link-column').avia_link_column();} 23if($.fn.avia_delayed_animation_in_container) 24{$('.av-animation-delay-container').avia_delayed_animation_in_container();}});$.avia_utilities=$.avia_utilities||{};$.avia_utilities.activate_shortcode_scripts=function(container) 25{if(typeof container=='undefined'){container='body';} 26if($.fn.avia_ajax_form) 27{$('.avia_ajax_form:not( .avia-disable-default-ajax )',container).avia_ajax_form();} 28activate_waypoints(container);if($.fn.aviaVideoApi) 29{$('.avia-slideshow iframe[src*="youtube.com"], .av_youtube_frame, .av_vimeo_frame, .avia-slideshow video').aviaVideoApi({},'li');} 30if($.fn.avia_sc_toggle) 31{$('.togglecontainer',container).avia_sc_toggle();} 32if($.fn.avia_sc_tabs) 33{$('.top_tab',container).avia_sc_tabs();$('.sidebar_tab',container).avia_sc_tabs({sidebar:true});} 34if($.fn.avia_sc_gallery) 35{$('.avia-gallery',container).avia_sc_gallery();} 36if($.fn.avia_sc_animated_number) 37{$('.avia-animated-number',container).avia_sc_animated_number();} 38if($.fn.avia_sc_animation_delayed) 39{$('.av_font_icon',container).avia_sc_animation_delayed({delay:100});$('.avia-image-container',container).avia_sc_animation_delayed({delay:100});$('.av-hotspot-image-container',container).avia_sc_animation_delayed({delay:100});$('.av-animated-generic',container).avia_sc_animation_delayed({delay:100});} 40if($.fn.avia_sc_iconlist) 41{$('.avia-icon-list.av-iconlist-big',container).avia_sc_iconlist();} 42if($.fn.avia_sc_progressbar) 43{$('.avia-progress-bar-container',container).avia_sc_progressbar();} 44if($.fn.avia_sc_testimonial) 45{$('.avia-testimonial-wrapper',container).avia_sc_testimonial();} 46if($.fn.aviaFullscreenSlider) 47{$('.avia-slideshow.av_fullscreen',container).aviaFullscreenSlider();} 48if($.fn.aviaSlider) 49{$('.avia-slideshow:not(.av_fullscreen)',container).aviaSlider();$('.avia-content-slider-active',container).aviaSlider({wrapElement:'.avia-content-slider-inner',slideElement:'.slide-entry-wrap',fullfade:true});$('.avia-slider-testimonials',container).aviaSlider({wrapElement:'.avia-testimonial-row',slideElement:'.avia-testimonial',fullfade:true});} 50if($.fn.aviaMagazine) 51{$('.av-magazine-tabs-active',container).aviaMagazine();} 52if($.fn.aviaHotspots) 53{$('.av-hotspot-image-container',container).aviaHotspots();} 54if($.fn.aviaCountdown) 55{$('.av-countdown-timer',container).aviaCountdown();} 56if($.fn.aviaPlayer) 57{$('.av-player',container).aviaPlayer();}} 58function activate_waypoints(container) 59{if($.fn.avia_waypoints) 60{if(typeof container=='undefined'){container='body';};$('.avia_animate_when_visible',container).avia_waypoints();$('.avia_animate_when_almost_visible',container).avia_waypoints({offset:'80%'});if(container=='body')container='.avia_desktop body';$('.av-animated-generic',container).avia_waypoints({offset:'95%'});}} 61$.AviaParallaxElement=function(options,element) 62{this.$el=$(element).addClass('active-parallax');this.$win=$(window);this.$body=$('body');this.$parent=this.$el.parent();this.property={};this.isMobile=$.avia_utilities.isMobile;this.ratio=this.$el.data('avia-parallax-ratio')||0.5;this.transform=document.documentElement.className.indexOf('avia_transform')!==-1?true:false;this.transform3d=document.documentElement.className.indexOf('avia_transform3d')!==-1?true:false;this.ticking=false;if($.avia_utilities.supported.transition===undefined) 63{$.avia_utilities.supported.transition=$.avia_utilities.supports('transition');} 64this._init(options);} 65$.AviaParallaxElement.prototype={_init:function(options) 66{var _self=this;if(_self.isMobile) 67{return;} 68setTimeout(function() 69{_self._fetch_properties();},30);this.$win.on("debouncedresize av-height-change",$.proxy(_self._fetch_properties,_self));this.$body.on("av_resize_finished",$.proxy(_self._fetch_properties,_self));setTimeout(function() 70{_self.$win.on('scroll',$.proxy(_self._on_scroll,_self));},100);},_fetch_properties:function() 71{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) 72{var _self=this;if(!_self.ticking){_self.ticking=true;window.requestAnimationFrame($.proxy(_self._parallax_scroll,_self));}},_parallax_scroll:function(e) 73{var winTop=this.$win.scrollTop(),winBottom=winTop+this.property.wh,scrollPos="0",prop={};if(this.property.offset<winBottom&&winTop<=this.property.offset+this.property.height) 74{scrollPos=Math.ceil((winBottom-this.property.offset)*this.ratio);if(this.transform3d) 75{prop[$.avia_utilities.supported.transition+"transform"]="translate3d(0px,"+scrollPos+"px, 0px)";} 76else if(this.transform) 77{prop[$.avia_utilities.supported.transition+"transform"]="translate(0px,"+scrollPos+"px)";} 78else 79{prop["background-position"]="0px "+scrollPos+"px";} 80this.$el.css(prop);} 81this.ticking=false;}};$.fn.avia_parallax=function(options) 82{return this.each(function() 83{var self=$.data(this,'aviaParallax');if(!self) 84{self=$.data(this,'aviaParallax',new $.AviaParallaxElement(options,this));}});} 85$.fn.avia_mobile_fixed=function(options) 86{var isMobile=$.avia_utilities.isMobile;if(!isMobile)return;return this.each(function() 87{var current=$(this).addClass('av-parallax-section'),$background=current.attr('style'),$attachment_class=current.data('section-bg-repeat'),template="";if($attachment_class=='stretch'||$attachment_class=='no-repeat') 88{$attachment_class=" avia-full-stretch";} 89else 90{$attachment_class="";} 91template="<div class='av-parallax "+$attachment_class+"' data-avia-parallax-ratio='0.0' style = '"+$background+"' ></div>";
91current.prepend(template);current.attr('style','');});} 92$.fn.avia_sc_animation_delayed=function(options) 93{var global_timer=0,delay=options.delay||50,max_timer=10,new_max=setTimeout(function(){max_timer=20;},500);return this.each(function() 94{var elements=$(this);elements.on('avia_start_animation',function() 95{var element=$(this);if(global_timer<max_timer)global_timer++;setTimeout(function() 96{element.addClass('avia_start_delayed_animation');if(global_timer>0)global_timer--;},(global_timer*delay));});});} 97$.fn.avia_delayed_animation_in_container=function(options) 98{return this.each(function() 99{var elements=$(this);elements.on('avia_start_animation_if_current_slide_is_active',function() 100{var current=$(this),animate=current.find('.avia_start_animation_when_active');animate.addClass('avia_start_animation').trigger('avia_start_animation');});elements.on('avia_remove_animation',function() 101{var current=$(this),animate=current.find('.avia_start_animation_when_active, .avia_start_animation');animate.removeClass('avia_start_animation avia_start_delayed_animation');});});} 102$.fn.avia_browser_height=function() 103{if(!this.length)return;var win=$(window),html_el=$('html'),subtract=$('#wpadminbar, #header.av_header_top:not(.html_header_transparency #header), #main>.title_container'),css_block=$("<style type='text/css' id='av-browser-height'></style>").appendTo('head:first'),sidebar_menu=$('.html_header_sidebar #top #header_main'),full_slider=$('.html_header_sidebar .avia-fullscreen-slider.avia-builder-el-0.avia-builder-el-no-sibling').addClass('av-solo-full'),calc_height=function() 104{var css="",wh100=win.height(),ww100=win.width(),wh100_mod=wh100,whCover=(wh100/9)*16,wwCover=(ww100/16)*9,wh75=Math.round(wh100*0.75),wh50=Math.round(wh100*0.5),wh25=Math.round(wh100*0.25),solo=0;if(sidebar_menu.length)solo=sidebar_menu.height();subtract.each(function(){wh100_mod-=this.offsetHeight-1;});var whCoverMod=(wh100_mod/9)*16;css+=".avia-section.av-minimum-height .container{opacity: 1; }\n";css+=".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:"+wh100+"px;}\n";css+=".av-minimum-height-75 .container, .av-cell-min-height-75 > .flex_cell {height:"+wh75+"px;}\n";css+=".av-minimum-height-50 .container, .av-cell-min-height-50 > .flex_cell {height:"+wh50+"px;}\n";css+=".av-minimum-height-25 .container, .av-cell-min-height-25 > .flex_cell {height:"+wh25+"px;}\n";css+=".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:"+wh100_mod+"px;}\n";css+="#top .av-solo-full .avia-slideshow {min-height:"+solo+"px;}\n";if(ww100/wh100<16/9) 105{css+="#top .av-element-cover iframe, #top .av-element-cover embed, #top .av-element-cover object, #top .av-element-cover video{width:"+whCover+"px; left: -"+(whCover-ww100)/2+"px;}\n";} 106else 107{css+="#top .av-element-cover iframe, #top .av-element-cover embed, #top .av-element-cover object, #top .av-element-cover video{height:"+wwCover+"px; top: -"+(wwCover-wh100)/2+"px;}\n";} 108if(ww100/wh100_mod<16/9) 109{css+="#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:"+whCoverMod+"px; left: -"+(whCoverMod-ww100)/2+"px;}\n";} 110else 111{css+="#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:"+wwCover+"px; top: -"+(wwCover-wh100_mod)/2+"px;}\n";} 112try{css_block.text(css);} 113catch(err){css_block.remove();css_block=$("<style type='text/css' id='av-browser-height'>"+css+"</style>").appendTo('head:first');} 114setTimeout(function(){win.trigger('av-height-change');},100);};win.on('debouncedresize',calc_height);calc_height();} 115$.fn.avia_video_section=function() 116{if(!this.length)return;var elements=this.length,content="",win=$(window),css_block=$("<style type='text/css' id='av-section-height'></style>").appendTo('head:first'),calc_height=function(section,counter) 117{if(counter===0){content="";} 118var css="",the_id='#'+section.attr('id'),wh100=section.height(),ww100=section.width(),aspect=section.data('sectionVideoRatio').split(':'),video_w=aspect[0],video_h=aspect[1],whCover=(wh100/video_h)*video_w,wwCover=(ww100/video_w)*video_h;if(ww100/wh100<video_w/video_h)
119{css+="#top "+the_id+" .av-section-video-bg iframe, #top "+the_id+" .av-section-video-bg embed, #top "+the_id+" .av-section-video-bg object, #top "+the_id+" .av-section-video-bg video{width:"+whCover+"px; left: -"+(whCover-ww100)/2+"px;}\n";} 120else 121{css+="#top "+the_id+" .av-section-video-bg iframe, #top "+the_id+" .av-section-video-bg embed, #top "+the_id+" .av-section-video-bg object, #top "+the_id+" .av-section-video-bg video{height:"+wwCover+"px; top: -"+(wwCover-wh100)/2+"px;}\n";} 122content=content+css;if(elements==counter+1) 123{try{css_block.text(content);} 124catch(err){css_block.remove();css_block=$("<style type='text/css' id='av-section-height'>"+content+"</style>").appendTo('head:first');}}};return this.each(function(i) 125{var self=$(this);win.on('debouncedresize',function(){calc_height(self,i);});calc_height(self,i);});} 126$.fn.avia_link_column=function() 127{return this.each(function() 128{$(this).on('click',function(e){if('undefined'!==typeof e.target&&'undefined'!==typeof e.target.href) 129{return;} 130var column=$(this),url=column.data('link-column-url'),target=column.data('link-column-target');if('undefined'===typeof url||'string'!==typeof url) 131{return;} 132if('undefined'!==typeof target||'_blank'==target) 133{window.open(url,'_blank');} 134else 135{window.location.href=url;} 136e.preventDefault();return;});});};$.fn.avia_waypoints=function(options_passed) 137{if(!$('html').is('.avia_transform'))return;var defaults={offset:'bottom-in-view',triggerOnce:true},options=$.extend({},defaults,options_passed),isMobile=$.avia_utilities.isMobile;return this.each(function() 138{var element=$(this);setTimeout(function() 139{if(isMobile) 140{element.addClass('avia_start_animation').trigger('avia_start_animation');} 141else 142{element.waypoint(function(direction) 143{var current=$(this.element),parent=current.parents('.av-animation-delay-container:eq(0)');if(parent.length) 144{current.addClass('avia_start_animation_when_active').trigger('avia_start_animation_when_active');} 145if(!parent.length||(parent.length&&parent.is('.__av_init_open'))) 146{current.addClass('avia_start_animation').trigger('avia_start_animation');}},options);}},100)});};var $event=$.event,$special,resizeTimeout;$special=$event.special.debouncedresize={setup:function(){$(this).on("resize",$special.handler);},teardown:function(){$(this).off("resize",$special.handler);},handler:function(event,execAsap){var context=this,args=arguments,dispatch=function(){event.type="debouncedresize";$event.dispatch.apply(context,args);};if(resizeTimeout){clearTimeout(resizeTimeout);} 147execAsap?dispatch():resizeTimeout=setTimeout(dispatch,$special.threshold);},threshold:150};$.easing['jswing']=$.easing['swing'];$.extend($.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return $.easing[$.easing.def](x,t,b,c,d);},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b;},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b;},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b;},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b;},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b;},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b;},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b;},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b;},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b;},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b;},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b;},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b;},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b;},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b;},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b;},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b;},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b;},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b;},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b;},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b;},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b;},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;
147if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;} 148else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;} 149else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b;},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4;} 150else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b;},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b;},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b;},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b;},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b;}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b;}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b;}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b;}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b;}});})(jQuery);(function($) 151{"use strict";$.avia_utilities=$.avia_utilities||{};$.avia_utilities.loading=function(attach_to,delay){var loader={active:false,show:function() 152{if(loader.active===false) 153{loader.active=true;loader.loading_item.css({display:'block',opacity:0}
153);} 154loader.loading_item.stop().animate({opacity:1});},hide:function() 155{if(typeof delay==='undefined'){delay=600;} 156loader.loading_item.stop().delay(delay).animate({opacity:0},function() 157{loader.loading_item.css({display:'none'});loader.active=false;});},attach:function() 158{if(typeof attach_to==='undefined'){attach_to='body';} 159loader.loading_item=$('<div class="avia_loading_icon"><div class="av-siteloader"></div></div>').css({display:"none"}).appendTo(attach_to);}} 160loader.attach();return loader;};$.avia_utilities.playpause=function(attach_to,delay){var pp={active:false,to1:"",to2:"",set:function(status) 161{pp.loading_item.removeClass('av-play av-pause');pp.to1=setTimeout(function(){pp.loading_item.addClass('av-'+status);},10);pp.to2=setTimeout(function(){pp.loading_item.removeClass('av-'+status);},1500);},attach:function() 162{if(typeof attach_to==='undefined'){attach_to='body';} 163pp.loading_item=$('<div class="avia_playpause_icon"></div>').css({display:"none"}).appendTo(attach_to);}} 164pp.attach();return pp;};$.avia_utilities.preload=function(options_passed) 165{new $.AviaPreloader(options_passed);} 166$.AviaPreloader=function(options) 167{this.win=$(window);this.defaults={container:'body',maxLoops:10,trigger_single:true,single_callback:function(){},global_callback:function(){}};this.options=$.extend({},this.defaults,options);this.preload_images=0;this.load_images();} 168$.AviaPreloader.prototype={load_images:function() 169{var _self=this;if(typeof _self.options.container==='string'){_self.options.container=$(_self.options.container);} 170_self.options.container.each(function() 171{var container=$(this);container.images=container.find('img');container.allImages=container.images;_self.preload_images+=container.images.length;setTimeout(function(){_self.checkImage(container);},10);});},checkImage:function(container) 172{var _self=this;container.images.each(function() 173{if(this.complete===true) 174{container.images=container.images.not(this);_self.preload_images-=1;}});if(container.images.length&&_self.options.maxLoops>=0) 175{_self.options.maxLoops-=1;setTimeout(function(){_self.checkImage(container);},500);} 176else 177{_self.preload_images=_self.preload_images-container.images.length;_self.trigger_loaded(container);}},trigger_loaded:function(container) 178{var _self=this;if(_self.options.trigger_single!==false) 179{_self.win.trigger('avia_images_loaded_single',[container]);_self.options.single_callback.call(container);} 180if(_self.preload_images===0) 181{_self.win.trigger('avia_images_loaded');_self.options.global_callback.call();}}} 182$.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)'};$.avia_utilities.supported={};$.avia_utilities.supports=(function() 183{var div=document.createElement('div'),vendors=['Khtml','Ms','Moz','Webkit'];return function(prop,vendor_overwrite) 184{if(div.style[prop]!==undefined){return"";} 185if(vendor_overwrite!==undefined){vendors=vendor_overwrite;} 186prop=prop.replace(/^[a-z]/,function(val) 187{return val.toUpperCase();});var len=vendors.length;while(len--) 188{if(div.style[vendors[len]+prop]!==undefined) 189{return"-"+vendors[len].toLowerCase()+"-";}} 190return false;};}());$.fn.avia_animate=function(prop,speed,easing,callback) 191{if(typeof speed==='function'){callback=speed;speed=false;} 192if(typeof easing==='function'){callback=easing;easing=false;} 193if(typeof speed==='string'){easing=speed;speed=false;} 194if(callback===undefined||callback===false){callback=function(){};} 195if(easing===undefined||easing===false){easing='easeInQuad';} 196if(speed===undefined||speed===false){speed=400;} 197if($.avia_utilities.supported.transition===undefined) 198{$.avia_utilities.supported.transition=$.avia_utilities.supports('transition');} 199if($.avia_utilities.supported.transition!==false) 200{var prefix=$.avia_utilities.supported.transition+'transition',cssRule={},cssProp={},thisStyle=document.body.style,end=(thisStyle.WebkitTransition!==un
200defined)?'webkitTransitionEnd':(thisStyle.OTransition!==undefined)?'oTransitionEnd':'transitionend';easing=$.avia_utilities.css_easings[easing];cssRule[prefix]='all '+(speed/1000)+'s '+easing;end=end+".avia_animate";for(var rule in prop) 201{if(prop.hasOwnProperty(rule)){cssProp[rule]=prop[rule];}} 202prop=cssProp;this.each(function() 203{var element=$(this),css_difference=false,rule,current_css;for(rule in prop) 204{if(prop.hasOwnProperty(rule)) 205{current_css=element.css(rule);if(prop[rule]!=current_css&&prop[rule]!=current_css.replace(/px|%/g,"")) 206{css_difference=true;break;}}} 207if(css_difference) 208{if(!($.avia_utilities.supported.transition+"transform"in prop)) 209{prop[$.avia_utilities.supported.transition+"transform"]="translateZ(0)";} 210var endTriggered=false;element.on(end,function(event) 211{if(event.target!=event.currentTarget)return false;if(endTriggered==true)return false;endTriggered=true;cssRule[prefix]="none";element.off(end);element.css(cssRule);setTimeout(function(){callback.call(element);});});setTimeout(function(){if(!endTriggered&&!avia_is_mobile&&$('html').is('.avia-safari')){element.trigger(end);$.avia_utilities.log('Safari Fallback '+end+' trigger');}},speed+100);setTimeout(function(){element.css(cssRule);},10);setTimeout(function(){element.css(prop);},20);} 212else 213{setTimeout(function(){callback.call(element);});}});} 214else 215{this.animate(prop,speed,easing,callback);} 216return this;};})(jQuery);(function($) 217{"use strict";$.fn.avia_keyboard_controls=function(options_passed) 218{var defaults={37:'.prev-slide',39:'.next-slide'},methods={mousebind:function(slider) 219{slider.hover(function(){slider.mouseover=true;},function(){slider.mouseover=false;});},keybind:function(slider) 220{$(document).keydown(function(e) 221{if(slider.mouseover&&typeof slider.options[e.keyCode]!=='undefined') 222{var item;if(typeof slider.options[e.keyCode]==='string') 223{item=slider.find(slider.options[e.keyCode]);} 224else 225{item=slider.options[e.keyCode];} 226if(item.length) 227{item.trigger('click',['keypress']);return false;}}});}};return this.each(function() 228{var slider=$(this);slider.options=$.extend({},defaults,options_passed);slider.mouseover=false;methods.mousebind(slider);methods.keybind(slider);});};$.fn.avia_swipe_trigger=function(passed_options) 229{var win=$(window),isMobile=$.avia_utilities.isMobile,defaults={prev:'.prev-slide',next:'.next-slide',event:{prev:'click',next:'click'}},methods={activate_touch_control:function(slider) 230{var i,differenceX,differenceY;slider.touchPos={};slider.hasMoved=false;slider.on('touchstart',function(event) 231{slider.touchPos.X=event.originalEvent.touches[0].clientX;slider.touchPos.Y=event.originalEvent.touches[0].clientY;});slider.on('touchend',function(event) 232{slider.touchPos={};if(slider.hasMoved){event.preventDefault();} 233slider.hasMoved=false;});slider.on('touchmove',function(event) 234{if(!slider.touchPos.X) 235{slider.touchPos.X=event.originalEvent.touches[0].clientX;slider.touchPos.Y=event.originalEvent.touches[0].clientY;} 236else 237{differenceX=event.originalEvent.touches[0].clientX-slider.touchPos.X;differenceY=event.originalEvent.touches[0].clientY-slider.touchPos.Y;if(Math.abs(differenceX)>Math.abs(differenceY)) 238{event.preventDefault();if(slider.touchPos!==event.originalEvent.touches[0].clientX) 239{if(Math.abs(differenceX)>50) 240{i=differenceX>0?'prev':'next';if(typeof slider.options[i]==='string') 241{slider.find(slider.options[i]).trigger(slider.options.event[i],['swipe']);} 242else 243{slider.options[i].trigger(slider.options.event[i],['swipe']);} 244slider.hasMoved=true;slider.touchPos={};return false;}}}}});}};return this.each(function() 245{if(isMobile) 246{var slider=$(this);slider.options=$.extend({},defaults,passed_options);methods.activate_touch_control(slider);}});};}(jQuery));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.