/* * parallax.min.js */ (function(t){if(!Date.now){Date.now=function(){return new Date().getTime()}}if(!t.requestAnimationFrame){(function(){var y=["webkit","moz"];for(var w=0;w-1&&p.style[x[w]+y]===undefined){}return w>=0}var n=g("transform");var o=g("perspective");var q=navigator.userAgent;var b=q.toLowerCase().indexOf("android")>-1;var f=/iPad|iPhone|iPod/.test(q)&&!t.MSStream;var c=q.toLowerCase().indexOf("firefox")>-1;var d=q.indexOf("MSIE ")>-1||q.indexOf("Trident/")>-1||q.indexOf("Edge/")>-1;var e=document.all&&!t.atob;var v;var u;function s(){v=t.innerWidth||document.documentElement.clientWidth;u=t.innerHeight||document.documentElement.clientHeight}s();var i=[];var h=(function(){var w=0;function x(B,C){var y=this,z;y.$item=B;y.defaults={type:"scroll",speed:0.5,imgSrc:null,imgWidth:null,imgHeight:null,elementInViewport:null,zIndex:-100,noAndroid:!1,noIos:!0,onScroll:null,onInit:null,onDestroy:null,onCoverImage:null};z=JSON.parse(y.$item.getAttribute("data-jarallax")||"{}");y.options=y.extend({},y.defaults,z,C);if(!n||b&&y.options.noAndroid||f&&y.options.noIos){return}y.options.speed=Math.min(2,Math.max(-1,parseFloat(y.options.speed)));var A=y.options.elementInViewport;if(A&&typeof A==="object"&&typeof A.length!=="undefined"){A=A[0]}if(!A instanceof Element){A=null}y.options.elementInViewport=A;y.instanceID=w++;y.image={src:y.options.imgSrc||null,$container:null,$item:null,width:y.options.imgWidth||null,height:y.options.imgHeight||null,useImgTag:f||b||d,position:!o||c?"absolute":"fixed"};if(y.initImg()){y.init()}}return x}());h.prototype.css=function(w,y){if(typeof y==="string"){if(t.getComputedStyle){return t.getComputedStyle(w).getPropertyValue(y)}return w.style[y]}if(y.transform){if(o){y.transform+=" translateZ(0)"}y.WebkitTransform=y.MozTransform=y.msTransform=y.OTransform=y.transform}for(var x in y){w.style[x]=y[x]}return w};h.prototype.extend=function(y){y=y||{};for(var w=1;w1){E=Math.abs(I-u)}else{if(J<0){E=I/J+Math.abs(I)}else{E+=Math.abs(u-x)*(1-J)}}I/=2}H=E*B/A;if(H=0&&L.right>=0&&L.top<=u&&L.left<=v;if(F?!1:!w.isElementInViewport){return}var B=Math.max(0,E),C=Math.max(0,D+E),y=Math.max(0,-E),z=Math.max(0,E+D-u),A=Math.max(0,D-(E+D-u)),x=Math.max(0,-E+u-D),G=1-2*(u-E)/(u+D);var M=1;if(D