/* ================================= * jQuery parallax v2.3.1 / Copyright © 2016 Spab Rice * All rights reserved. ================================= */ function moveParallax(){jQuery(".parallax-content").filter(function(e,a){return jQuery(a).visible(!0)}).each(function(){var e=parseInt(jQuery(this).offset().top,10),a=jQuery(this).parent(".parallax-section").data("speed"),t=jQuery(window).scrollTop()-e,i=a*t;isChrome&&"undefined"!=typeof TweenLite?TweenLite.to(jQuery(this).find(".parallax-image"),.2,{y:i}):jQuery(this).find(".parallax-image").css({transform:"translateY("+i+"px)","moz-transform":"translateY("+i+"px)","webkit-transform":"translateY("+i+"px)"})})}var isChrome=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor);jQuery(window).width()>1024&&jQuery(window).scroll(function(){moveParallax()}),function(e){e.fn.extend({parallax:function(e){return this.each(function(){var a=jQuery(this),t=new Image,i={speed:.4};e=jQuery.extend(i,e,a.data()),a.attr("data-speed",e.speed),t.onload=function(){if(imgH=this.height,imgW=this.width,jQuery(window).width()>1024){var e=jQuery(window).height(),t=-((jQuery(window).height()-a.height())/2);t>0&&(t=-1),jQuery(window).height()