!function(t){var n=t(window),a=n.height();n.resize(function(){a=n.height()}),t.fn.parallax=function(o,r,i){var s,c,e=t(this);function l(){var i=n.scrolltop();e.each(function(){var n=t(this),l=n.offset().top;l+s(n)i+a||!e.data("jwpfparallax")||e.css("backgroundposition",o+" "+math.round((c-i)*r)+"px")})}e.data("jwpfparallax",!0),e.css("backgroundattachment","fixed"),e.each(function(){c=e.offset().top}),s=i?function(t){return t.outerheight(!0)}:function(t){return t.height()},(arguments.length<1||null===o)&&(o="50%"),(arguments.length<2||null===r)&&(r=.15),(arguments.length<3||null===i)&&(i=!0),n.bind("scroll",l).resize(l),l()},t.fn.parallaxdestroy=function(n,a){var o=t(this);o.data("jwpfparallax")&&(n?o.css("backgroundposition",n):o.css("backgroundposition","0% 0%"),a?o.css("backgroundattachment",a):o.css("backgroundattachment","inherit"),o.data("jwpfparallax",!1))}}(jquery);