$(document).ready(function(e){var u=e(window),p=e(window).width(),b=e(window).height(),a=function(t,r,n){d=r,c=n;var o=t.data("speed"),e=(u.scrollLeft()+r-p/2)/o,a=(u.scrollTop()+n-b/2)/o,g=t.attr("orgbgpx")-Math.round(e),s=t.attr("orgbgpy")-Math.round(a),i=""+g+t.attr("orgbgpxu")+s+t.attr("orgbgpyu");t.css({backgroundPosition:i})},d=0,c=0;e('[data-type="background"]').each(function(){var r=e(this),t=r.css("backgroundPosition").split(" "),n=t[0],o=t[1];/%$/.test(n)?(n=n.substr(0,n.length-1),r.attr("orgbgpxu","% ")):/em$/.test(n)?(n=n.substr(0,n.length-2),r.attr("orgbgpxu","em ")):(/px$/.test(n)&&(n=n.substr(0,n.length-2)),r.attr("orgbgpxu","px ")),/%$/.test(o)?(o=o.substr(0,o.length-1),r.attr("orgbgpyu","% ")):/em$/.test(o)?(o=o.substr(0,o.length-2),r.attr("orgbgpyu","em ")):(/px$/.test(o)&&(o=o.substr(0,o.length-2)),r.attr("orgbgpyu","px ")),r.attr("orgbgpx",parseInt(n)),r.attr("orgbgpy",parseInt(o)),e(window).scroll(function(){a(r,d,c)}),window.DeviceOrientationEvent&&(320