function fusionSliderReTrigger(){setTimeout(function(){window.document.dispatchEvent(new Event("fusion-element-render-fusion_fusionslider"))},50)}var headerHeight,fusionReanimateSlider;cssua.ua.mobile||jQuery(".fusion-slider-self-hosted-video-placeholder").each(function(a,b){jQuery(b).after(function(){var a='width="1800" height="700"',c="";return jQuery(b.attributes).each(function(b,d){switch(d.name){case"class":break;case"data-ogg":c+=d.nodeValue?'':"";break;case"data-webm":c+=d.nodeValue?'':"";break;case"data-mp4":c+=d.nodeValue?'':"";break;default:a+=" "+d.name+'="'+d.nodeValue+'"'}}),""})}),headerHeight=jQuery(".fusion-header-wrapper").height(),fusionReanimateSlider=function(a){var b=a.find(".slide-content"),c=a.siblings(".tfs-scroll-down-indicator");jQuery(b).each(function(){jQuery(this).stop(!0,!0),jQuery(this).css("margin-top","50px"),jQuery(this).animate({opacity:"1","margin-top":"0"},1e3)}),jQuery(c).each(function(){var a=jQuery(this);a.stop(!0,!0),a.css("opacity","0"),b.offset().top+b.height()+25a?(a="100%",c=0,d="static"):d="absolute",jQuery(this).width(a),jQuery(this).css({left:c,position:d})})):(d=jQuery(m).data("slider_width"),-1!==d.indexOf("%")?(d=jQuery(n).find(".background-image").data("imgwidth"),d||cssua.ua.mobile||(d=jQuery(n).find("video").width()),d||(d=940),jQuery(m).data("first_slide_width",d),de&&(e=.5),f=jQuery(m).parent().parent().parent().width(),1<=jQuery(m).parents(".post-content").length&&(f=jQuery(m).width()),b=e*f,b>parseInt(jQuery(m).data("slider_height"),10)&&(b=parseInt(jQuery(m).data("slider_height"),10)),200>b&&(b=200)),1==jQuery(m).data("full_screen")&&(jQuery(m).css("max-width","100%"),jQuery(m).find(".slides, .background").css("width","100%")),"left"!==avadaFusionSliderVars.header_position&&"right"!==avadaFusionSliderVars.header_position||jQuery(m).hasClass("fixed-width-slider")||1!=jQuery(m).data("parallax")||(jQuery(m).css("max-width",jQuery("#wrapper").width()),jQuery("body").hasClass("side-header-left")?jQuery(m).css("left",jQuery("#side-header").width()):jQuery("body").hasClass("side-header-right")&&jQuery(m).css("right",jQuery("#side-header").width())),jQuery(m).parents(".fusion-slider-container").css("height",b),jQuery(m).css("height",b),jQuery(m).find(".background, .mobile_video_image").css("height",b),1<=jQuery(".layout-boxed-mode").length&&(g=jQuery(".layout-boxed-mode #wrapper").width(),jQuery(m).css("width",g),jQuery(m).css("margin-left","auto"),jQuery(m).css("margin-right","auto"),1!=jQuery(m).data("parallax")||Modernizr.mq("only screen and (max-width: "+avadaFusionSliderVars.side_header_break_point+"px)")||(jQuery(m).css("left","50%"),"left"===avadaFusionSliderVars.header_position||"right"===avadaFusionSliderVars.header_position?(g=jQuery(".layout-boxed-mode #wrapper").width()-jQuery(".layout-boxed-mode #side-header").width(),"right"===avadaFusionSliderVars.header_position&&(g=jQuery(".layout-boxed-mode #wrapper").width()+jQuery(".layout-boxed-mode #side-header").width()),jQuery(m).css("margin-left","-"+Math.floor(g/2)+"px")):jQuery(m).css("margin-left","-"+g/2+"px")),jQuery(m).find(".slides, .background").css("width","100%")),cssua.ua.mobile&&(jQuery(m).find(".fusion-button").each(function(){jQuery(this).removeClass("button-xlarge button-large button-medium"),jQuery(this).addClass("button-small")}),jQuery(m).find("li").each(function(){jQuery(this).attr("data-autoplay","no"),jQuery(this).data("autoplay","no")})),jQuery(m).find("a.button").each(function(){jQuery(this).data("old",jQuery(this).attr("class"))}),Modernizr.mq("only screen and (max-width: "+avadaFusionSliderVars.content_break_point+"px)")?jQuery(m).find(".fusion-button").each(function(){jQuery(this).data("old",jQuery(this).attr("class")),jQuery(this).removeClass("button-xlarge button-large button-medium"),jQuery(this).addClass("button-small")}):jQuery(m).find("a.button").each(function(){jQuery(this).attr("class",jQuery(this).data("old"))}),1==jQuery(m).data("parallax")&&(!Modernizr.mq("only screen and (min-width: "+avadaFusionSliderVars.side_header_break_point+"px)")||0!==avadaFusionSliderVars.header_transparency&&"0"!==avadaFusionSliderVars.header_transparency&&!1!==avadaFusionSliderVars.header_transparency||"below"!==avadaFusionSliderVars.slider_position.toLowerCase()||(h=jQuery(m).find(".slide-content-container"),jQuery(h).each(function(){jQuery(this).css("padding-top",headerHeight+"px")})),jQuery(window).scroll(function(){jQuery(m).parents("#sliders-container").length&&jQuery(window).scrollTop()>=jQuery("#sliders-container").position().top+jQuery("#sliders-container").height()?(cssua.ua.mobile||Modernizr.mq("only screen and (max-width: "+avadaFusionSliderVars.side_header_break_point+"px)")||jQuery(m).css("position","static"),jQuery(m).css("visibility","hidden")):(cssua.ua.mobile||Modernizr.mq("only screen and (max-width: "+avadaFusionSliderVars.side_header_break_point+"px)")||jQuery(m).css("position","fixed"),jQuery(m).css("visibility","visible"))})),i=jQuery(window).width(),j=jQuery(window).height(),jQuery(window).on("resize fusion-column-resized",function(a,l){var n,o,p,q,r,s=i!==jQuery(window).width()||i!==jQuery(window).width()&&j!==jQuery(window).height();void 0!==l&&"fusion-column-resized"===a.type&&jQuery('div[data-cid="'+l+'"]').find(".tfs-slider").length&&(m=jQuery('div[data-cid="'+l+'"]').find(".tfs-slider"),s=!0),s&&(headerHeight=jQuery(".fusion-header-wrapper").height(),k=0,void 0!==jQuery(m).find(".flex-active-slide").find(".tfs-scroll-down-indicator").offset()&&jQuery(m).find(".flex-active-slide").find(".slide-content").offset().top+jQuery(m).find(".flex-active-slide").find(".slide-content").height()+25a?(a="100%",c=0,d="static"):d="absolute",jQuery(this).width(a),jQuery(this).css({left:c,position:d})})},100)):(d=jQuery(m).data("slider_width"),void 0!==d&&-1!==d.indexOf("%")?(d=jQuery(m).data("first_slide_width"),de&&(e=.5),f=jQuery(m).parent().parent().parent().width(),1<=jQuery(m).parents(".post-content").length&&(f=jQuery(m).width(),jQuery(m).parents(".tab-content").length&&(f=jQuery(m).parents(".tab-content").width()-60)),b=e*f,b>parseInt(jQuery(m).data("slider_height"),10)&&(b=parseInt(jQuery(m).data("slider_height"),10)),200>b&&(b=200),ba&&!0===o&&1!=jQuery(m).data("full_screen")&&(a="100%",c=0),jQuery(this).width(a),jQuery(this).css("left",c)})),Modernizr.mq("only screen and (max-width: "+avadaFusionSliderVars.content_break_point+"px)")?jQuery(m).find(".fusion-button").each(function(){void 0===jQuery(this).data("old")&&jQuery(this).data("old",jQuery(this).attr("class")),jQuery(this).removeClass("button-xlarge button-large button-medium"),jQuery(this).addClass("button-small")}):jQuery(m).find(".fusion-button").each(function(){jQuery(this).attr("class",jQuery(this).data("old"))}),1==jQuery(m).data("full_screen")&&"fade"===jQuery(m).data("animation")&&(jQuery(m).css("max-width","100%"),jQuery(m).find(".slides, .background").css("width","100%")),"left"!==avadaFusionSliderVars.header_position&&"right"!==avadaFusionSliderVars.header_position||jQuery(m).hasClass("fixed-width-slider")||1!=jQuery(m).data("parallax")||(jQuery(m).css("max-width",jQuery("#wrapper").width()),jQuery("body").hasClass("side-header-left")?jQuery(m).css("left",jQuery("#side-header").width()):jQuery("body").hasClass("side-header-right")&&jQuery(m).css("right",jQuery("#side-header").width())),jQuery(m).parents(".fusion-slider-container").css("height",b),jQuery(m).parents(".fusion-slider-container").css("max-height",b),jQuery(m).css("height",b),jQuery(m).find(".background, .mobile_video_image").css("height",b),1<=jQuery(".layout-boxed-mode").length&&0===jQuery(m).parents(".post-content").length&&(g=jQuery(".layout-boxed-mode #wrapper").width(),jQuery(m).css("width",g),jQuery(m).css("margin-left","auto"),jQuery(m).css("margin-right","auto"),1!=jQuery(m).data("parallax")||Modernizr.mq("only screen and (max-width: "+avadaFusionSliderVars.side_header_break_point+"px)")||(jQuery(m).css("left","50%"),"left"===avadaFusionSliderVars.header_position||"right"===avadaFusionSliderVars.header_position?(g=jQuery(".layout-boxed-mode #wrapper").width()-jQuery(".layout-boxed-mode #side-header").width(),"right"===avadaFusionSliderVars.header_position&&(g=jQuery(".layout-boxed-mode #wrapper").width()+jQuery(".layout-boxed-mode #side-header").width()),jQuery(m).css("margin-left","-"+Math.floor(g/2)+"px")):jQuery(m).css("margin-left","-"+g/2+"px")),"slide"!==jQuery(m).data("animation")&&jQuery(m).find(".slides").css("width","100%"),jQuery(m).find(".background").css("width","100%")),1!==jQuery(m).data("parallax")||Modernizr.mq("only screen and (max-width: "+avadaFusionSliderVars.side_header_break_point+"px)")?1==jQuery(m).data("parallax")&&Modernizr.mq("only screen and (max-width: "+avadaFusionSliderVars.side_header_break_point+"px)")&&(jQuery(m).css("position","relative"),jQuery(m).css("left","0"),jQuery(m).css("margin-left","0"),c(),jQuery(".fusion-header-wrapper").css("height","auto"),jQuery(m).parents(".fusion-slider-container").css("margin-top",""),jQuery(m).find(".flex-direction-nav li a").css("margin-top",""),jQuery(m).find(".flex-control-nav").css("bottom",0),0!==avadaFusionSliderVars.header_transparency&&"0"!==avadaFusionSliderVars.header_transparency&&!1!==avadaFusionSliderVars.header_transparency||"below"!==avadaFusionSliderVars.slider_position.toLowerCase()||(h=jQuery(m).find(".slide-content-container"),jQuery(h).each(function(){jQuery(this).css("padding-top","")}))):(jQuery(m).css("position","fixed"),"absolute"!==jQuery(".fusion-header-wrapper").css("position")?(jQuery(".fusion-header-wrapper").css("position","relative"),r=headerHeight/2+"px","below"===avadaFusionSliderVars.slider_position.toLowerCase()&&jQuery(m).parents(".fusion-slider-container").css("margin-top","-"+headerHeight+"px")):r="0",jQuery(m).find(".flex-direction-nav li a").css("margin-top",r),c(),jQuery(".fusion-header-wrapper").css("height",headerHeight),jQuery(m).hasClass("fixed-width-slider")&&("left"===avadaFusionSliderVars.header_position||"right"===avadaFusionSliderVars.header_position?(p=jQuery(m).parents("#sliders-container").length?jQuery("#sliders-container"):jQuery("#main"),p.width()jQuery(m).width()&&(q=-1*jQuery(m).width())):q="-"+jQuery(m).width()/2+"px",jQuery(m).css("left","50%"),jQuery(m).css("margin-left",q)),jQuery(m).find(".flex-control-nav").css("bottom",headerHeight/2),0!==avadaFusionSliderVars.header_transparency&&"0"!==avadaFusionSliderVars.header_transparency&&!1!==avadaFusionSliderVars.header_transparency||"below"!==avadaFusionSliderVars.slider_position.toLowerCase()||(h=jQuery(m).find(".slide-content-container"),jQuery(h).each(function(){jQuery(this).css("padding-top",headerHeight+"px")}))),Modernizr.mq("only screen and (max-width: 640px)")?(jQuery(m).parents(".fusion-slider-container").css("height",b),jQuery(m).css("height",b),jQuery(m).find(".background, .mobile_video_image").css("height",b)):(Modernizr.mq("only screen and (max-width: "+avadaFusionSliderVars.side_header_break_point+"px)"),jQuery(m).parents(".fusion-slider-container").css("height",b),jQuery(m).css("height",b),jQuery(m).find(".background, .mobile_video_image").css("height",b)),h=jQuery(m).find(".slide-content-container"),1<=jQuery(m).parents(".post-content").length&&(jQuery(m).parents(".fusion-slider-container").css("height","auto"),jQuery(m).css("height","auto"),jQuery(m).parents(".fusion-slider-container").css("max-height","none"),jQuery(m).find(".mobile_video_image").each(function(){var a,c,d=jQuery(".mobile_video_image").css("background-image").replace("url(","").replace(")","");d&&(a=new Image,a.name=d,a.src=d,a.onload=function(){var a=this.height/this.width;f=jQuery(m).parent().parent().parent().width(),1<=jQuery(m).parents(".post-content").length&&(f=jQuery(m).width()),(c=a*f)c&&(c="100%",a=0),jQuery(this).width(c),jQuery(this).css("left",a)})):(d=jQuery(m).data("slider_width"),-1!==d.indexOf("%")?(d=jQuery(n).find(".background-image").data("imgwidth"),d||cssua.ua.mobile||(d=jQuery(n).find("video").width()),d||(d=940),jQuery(m).data("first_slide_width",d),de&&(e=.5),f=jQuery(m).parent().parent().parent().width(),1<=jQuery(m).parents(".post-content").length&&(f=jQuery(m).width(),jQuery(m).parents(".tab-content").length&&(f=jQuery(m).parents(".tab-content").width()-60)),b=e*f,b>parseInt(jQuery(m).data("slider_height"),10)&&(b=parseInt(jQuery(m).data("slider_height"),10)),200>b&&(b=200),bc&&!0===i&&1!=jQuery(m).data("full_screen")&&(c="100%",a=0),jQuery(this).width(c),jQuery(this).css("left",a)})),jQuery(m).parents(".fusion-slider-container").css("max-height",b),jQuery(m).parents(".fusion-slider-container").css("height",b),jQuery(m).css("height",b),jQuery(m).find(".background, .mobile_video_image").css("height",b),1!==jQuery(m).data("parallax")||Modernizr.mq("only screen and (max-width: "+avadaFusionSliderVars.side_header_break_point+"px)")?1==jQuery(m).data("parallax")&&Modernizr.mq("only screen and (max-width: "+avadaFusionSliderVars.side_header_break_point+"px)")&&(jQuery(m).css("position","relative"),jQuery(m).css("left","0"),jQuery(m).css("margin-left","0"),c(),jQuery(".fusion-header-wrapper").css("height","auto"),jQuery(m).parents(".fusion-slider-container").css("margin-top",""),jQuery(m).find(".flex-direction-nav li a").css("margin-top",""),jQuery(m).find(".flex-control-nav").css("bottom",0),0!==avadaFusionSliderVars.header_transparency&&"0"!==avadaFusionSliderVars.header_transparency&&!1!==avadaFusionSliderVars.header_transparency||"below"!==avadaFusionSliderVars.slider_position.toLowerCase()||(h=jQuery(m).find(".slide-content-container"),jQuery(h).each(function(){jQuery(this).css("padding-top","")}))):(jQuery(m).css("position","fixed"),"absolute"!==jQuery(".fusion-header-wrapper").css("position")?(jQuery(".fusion-header-wrapper").css("position","relative"),o=headerHeight/2+"px","below"===avadaFusionSliderVars.slider_position.toLowerCase()&&jQuery(m).parents(".fusion-slider-container").css("margin-top","-"+headerHeight+"px")):o="0",jQuery(m).find(".flex-direction-nav li a").css("margin-top",o),jQuery(".fusion-header-wrapper").css("height",headerHeight),c(),1==jQuery(m).data("full_screen")?jQuery(a).find(".flex-control-nav").css("bottom",headerHeight/2):jQuery(a).find(".flex-control-nav").css("bottom",0),jQuery(m).hasClass("fixed-width-slider")&&("left"===avadaFusionSliderVars.header_position||"right"===avadaFusionSliderVars.header_position?(j=jQuery(m).parents("#sliders-container").length?jQuery("#sliders-container"):jQuery("#main"),j.width()jQuery(m).width()&&(l=-1*jQuery(m).width())):l="-"+jQuery(m).width()/2+"px",jQuery(m).css("left","50%"),jQuery(m).css("margin-left",l)),0!==avadaFusionSliderVars.header_transparency&&"0"!==avadaFusionSliderVars.header_transparency&&!1!==avadaFusionSliderVars.header_transparency||"below"!==avadaFusionSliderVars.slider_position.toLowerCase()||(h=jQuery(m).find(".slide-content-container"),jQuery(h).each(function(){jQuery(this).css("padding-top",headerHeight+"px")}))),h=jQuery(m).find(".slide-content-container"),jQuery(a.slides.eq(a.currentSlide)).find("video").each(function(){"yes"===jQuery(this).parents("li").attr("data-autoplay")&&"function"==typeof jQuery(this)[0].play&&jQuery(this)[0].play()}),"left"!==avadaFusionSliderVars.header_position&&"right"!==avadaFusionSliderVars.header_position||1<=jQuery(m).parents("#sliders-container").length&&(h=jQuery(m).parents("#sliders-container").find(".slide-content-container"),jQuery(h).each(function(){Modernizr.mq("only screen and (max-width: "+avadaFusionSliderVars.side_header_break_point+"px)")||(jQuery(this).hasClass("slide-content-right")?jQuery(this).find(".slide-content").css("margin-right","100px"):jQuery(this).hasClass("slide-content-left")&&jQuery(this).find(".slide-content").css("margin-left","100px"))})),fusionReanimateSlider(h),void 0!==a.slides&&0!==a.slides.eq(a.currentSlide).find("iframe").length&&playVideoAndPauseOthers(a),jQuery(m).find(".overlay-link").hide(),jQuery(a.slides.eq(a.currentSlide)).find(".overlay-link").show(),jQuery(m).find("[data-youtube-video-id], [data-vimeo-video-id]").each(function(){var a=jQuery(this);setTimeout(function(){resizeVideo(a)},500)}),jQuery.waypoints("viewportHeight"),jQuery.waypoints("refresh")},before:function(){jQuery(m).find(".slide-content-container").hide(),jQuery(m).find(".tfs-scroll-down-indicator").hide()},after:function(a){jQuery(a.slides.eq(a.currentSlide)).find(".slide-content-container").show(),jQuery(a.slides.eq(a.currentSlide)).find(".tfs-scroll-down-indicator").show(),"function"==typeof jQuery.fn.fusion_responsive_title_shortcode&&jQuery(a.slides.eq(a.currentSlide)).find(".fusion-title").fusion_responsive_title_shortcode(),h=jQuery(m).find(".slide-content-container"),fusionReanimateSlider(h),jQuery(m).find(".overlay-link").hide(),jQuery(a.slides.eq(a.currentSlide)).find(".overlay-link").show(),jQuery(a.slides.eq(a.currentSlide)).find("[data-youtube-video-id], [data-vimeo-video-id]").each(function(){resizeVideo(jQuery(this))}),playVideoAndPauseOthers(a),jQuery('[data-spy="scroll"]').each(function(){jQuery(this).scrollspy("refresh")})}})}))});