var mfnSetup={translate:null};!function(t){"use strict";(function(){if(!window.getComputedStyle)return!1;var t,n=document.createElement("div");return document.body.insertBefore(n,null),void 0!==n.style.transform&&(n.style.transform="translate3d(1px,1px,1px)",t=window.getComputedStyle(n).getPropertyValue("transform")),document.body.removeChild(n),null!=t&&t.length>0&&"none"!==t})()?mfnSetup.translate=function(t,n,e){t.css("transform","translate3d("+n+", "+e+", 0)")}:mfnSetup.translate=function(t,n,e){t.css({left:n,top:e})}}(jQuery),function(t){"use strict";t.fn.mfnParallax=function(){var n,e,r,o=t(this),a=o.parent(),i=function(){var a,i,u,l=t(window).scrollTop();void 0!==e&&l>=e.min&&l<=e.max&&(i=(a=l-e.min)/e.height,u=r+500*i-a-r/e.height*500,mfnSetup.translate(o,n.left+"px",-Math.round(u)+"px"))},u=function(){r=t(window).height();var i;i=function(n){var e,r,o=n.get(0).naturalWidth,a=n.get(0).naturalHeight,i=n.parent().outerWidth(),u=n.parent().outerHeight(),l=t(window).height();l>u&&(u=l);var s=o/i;return a/so&&(e=o,r=a)):(e=i,r=a/s),[e,r,(i-e)/2,(u-r)/2]}(o),o.removeAttr("style").css({width:i[0],height:i[1]}),mfnSetup.translate(o,i[2]+"px",i[3]+"px"),n={width:i[0],height:i[1],left:i[2],top:i[3]};var u,l;u=a.offset().top-t(window).height(),l=a.offset().top+t(a).outerHeight(),e={min:u,max:l,height:l-u},a.css("background-image","unset")};setTimeout((function(){u(),i()}),50),t(window).on("scroll",i)},t(window).on("load resize",(function(){t(".mfn-parallax").length&&t(".mfn-parallax").each((function(){t(this).mfnParallax()}))}))}(jQuery);