function _fusionRefreshScroll(){window._fusionScrollTop=window.pageYOffset,window._fusionScrollLeft=window.pageXOffset}function _fusionParallaxAll(){var a;for(_fusionRefreshScroll(),a=0;ae?e=0:"up"===this.settings.direction&&0e?e=0:"left"===this.settings.direction&&0m.find(".parallax-inner").length&&m.prepend('
'),m.css({position:"relative",overflow:"hidden",zIndex:1,"background-image":"none"}).attr("style",m.attr("style")).find(".parallax-inner").css({pointerEvents:"none",width:c,height:d,position:"absolute",zIndex:-1,top:0,left:g,opacity:Math.abs(parseFloat(this.settings.opacity)/100),backgroundPosition:a?"0 0 ":this.settings.xpos+" "+this.settings.ypos,backgroundRepeat:a?"repeat":"no-repeat",backgroundSize:a?"auto":"cover"}),""!==this.settings.image&&"none"!==this.settings.image&&m.find(".parallax-inner").css({opacity:Math.abs(parseFloat(this.settings.opacity)/100),backgroundImage:"url("+this.settings.image+")"}),i=0,m.offset().top>b._fusionWindowHeight&&(i=m.offset().top-b._fusionWindowHeight),j=m.offset().top+m.height()+parseInt(m.css("paddingTop"),10)+parseInt(m.css("paddingBottom"),10),this.moveMax=c-f,this.scrollTopMin=i,this.scrollTopMax=j):(h=900,h=jQuery(b).height(),c=m.width()+parseInt(m.css("paddingRight"),10)+parseInt(m.css("paddingLeft"),10),d=m.height()+parseInt(m.css("paddingTop"),10)+parseInt(m.css("paddingBottom"),10),k=d,d+=h*Math.abs(parseFloat(this.settings.velocity)),l=0,"down"===this.settings.direction&&(l-=d-k),1>m.find(".parallax-inner").length&&m.prepend('
'),m.css({position:"relative",overflow:"hidden",zIndex:1,"background-image":"none"}).attr("style",m.attr("style")).find(".parallax-inner").css({pointerEvents:"none",width:c,height:d,position:"absolute",zIndex:-1,top:l,left:0,opacity:Math.abs(parseFloat(this.settings.opacity)/100),backgroundPosition:a?"0 0 ":this.settings.xpos+" "+this.settings.ypos,backgroundRepeat:a?"repeat":"no-repeat",backgroundSize:a?"auto":"cover"}),""!==this.settings.image&&"none"!==this.settings.image&&m.find(".parallax-inner").css({opacity:Math.abs(parseFloat(this.settings.opacity)/100),backgroundImage:"url("+this.settings.image+")"}),i=0,m.offset().top>b._fusionWindowHeight&&(i=m.offset().top-b._fusionWindowHeight),j=m.offset().top+m.height()+parseInt(m.css("paddingTop"),10)+parseInt(m.css("paddingBottom"),10),this.moveMax=d-k,this.scrollTopMin=i,this.scrollTopMax=j))},isMobile:function(){return 800>=jQuery(b).width()||Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait)")||Modernizr.mq("only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape)")||1e3>=b.screen.width&&1=jQuery(window).width()||1281>=window.screen.width&&1=jQuery(window).width()||1281>=window.screen.width&&1 div").remove(),a(".fusion-bg-parallax").next().addClass("bg-parallax-parent"),a(".fusion-bg-parallax").attr("style","").css("display","none"),a(".fusion-bg-parallax").each(function(){a(this).fusionImageParallax({image:a(this).data("bg-image"),direction:a(this).data("direction"),mobileenabled:a(this).data("mobile-enabled"),mobiledevice:b(),opacity:a(this).data("opacity"),width:a(this).data("bg-width"),height:a(this).data("bg-height"),velocity:a(this).data("velocity"),align:a(this).data("bg-align"),repeat:a(this).data("bg-repeat"),target:a(this).next(),complete:function(){}})})});