var $=jQuery.noConflict();$(document).ready(function(){console.log("initiated"),ParallaxScroll.init()});var ParallaxScroll={showLogs:!1,round:1e3,init:function(){if(this._log("init"),this._inited)return this._log("Already Inited"),void(this._inited=!0);this._requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a,t){window.setTimeout(a,1e3/60)},this._onScroll(!0)},_inited:!1,_properties:["x","y","z","rotateX","rotateY","rotateZ","scaleX","scaleY","scaleZ","scale"],_requestAnimationFrame:null,_log:function(a){this.showLogs&&console.log("Parallax Scroll / "+a)},_onScroll:function(a){var t=$(document).scrollTop(),e=$(window).height();this._log("onScroll "+t),$("[data-parallax]").each($.proxy(function(l,n){var s=$(n),r=[],i=!1,o=s.data("style");null==o&&(o=s.attr("style")||"",s.data("style",o));var c,u=[s.data("parallax")];for(c=2;s.data("parallax"+c);c++)u.push(s.data("parallax"+c));var d=u.length;for(c=0;ch&&("back"==s.data("sens")?(y=1,s.data("sens","go")):y++),A0&&y<=x){var c=t;"back"==s.data("sens")&&(c=e,e=-e,g=w,x=f),o=$.easing[g](null,y,c,e,x)}(o=Math.ceil(o*this.round)/this.round)==l&&n==e&&(o=e),r[a]||(r[a]=0),r[a]+=o,l!=r[a]&&(s.data("_"+a,r[a]),i=!0)}},this))}if(i){if(null!=r.z){var X=m.perspective;null==X&&(X=800);var Y=s.parent();Y.data("style")||Y.data("style",Y.attr("style")||""),Y.attr("style","perspective:"+X+"px; -webkit-perspective:"+X+"px; "+Y.data("style"))}null==r.scaleX&&(r.scaleX=1),null==r.scaleY&&(r.scaleY=1),null==r.scaleZ&&(r.scaleZ=1),null!=r.scale&&(r.scaleX*=r.scale,r.scaleY*=r.scale,r.scaleZ*=r.scale);var Z="translate3d("+(r.x?r.x:0)+"px, "+(r.y?r.y:0)+"px, "+(r.z?r.z:0)+"px)"+" "+("rotateX("+(r.rotateX?r.rotateX:0)+"deg) rotateY("+(r.rotateY?r.rotateY:0)+"deg) rotateZ("+(r.rotateZ?r.rotateZ:0)+"deg)")+" "+("scaleX("+r.scaleX+") scaleY("+r.scaleY+") scaleZ("+r.scaleZ+")")+";";this._log(Z),s.attr("style","transform:"+Z+" -webkit-transform:"+Z+" "+o)}},this)),window.requestAnimationFrame?window.requestAnimationFrame($.proxy(this._onScroll,this,!1)):this._requestAnimationFrame($.proxy(this._onScroll,this,!1))}};