!function(e){function o(o,t){var a=t.offset+(o.offset().top-e(window).scrollTop())*(1-t.speed);o.data("pos_y",a),o.css("background-position",t.pos_x+" "+a+"px")}e.fn.parallaxie=function(t){return t=e.extend({speed:.2,repeat:"no-repeat",size:"cover",pos_x:"center",offset:0},t),this.each(function(){var a=e(this),n=a.data("parallaxie");"object"!=typeof n&&(n={}),n=e.extend({},t,n);var s=a.data("image");if(void 0===s){if(!(s=a.css("background-image")))return;var i=n.offset+(a.offset().top-e(window).scrollTop())*(1-n.speed);a.css({"background-image":s,"background-size":n.size,"background-repeat":n.repeat,"background-attachment":"fixed","background-position":n.pos_x+" "+i+"px"}),o(a,n),e(window).scroll(function(){o(a,n)})}}),this}}(jQuery);