(function($){if(!document.defaultView||!document.defaultView.getComputedStyle){var _1=jQuery.curCSS;jQuery.curCSS=function(_2,_3,_4){if(_3==="background-position"){_3="backgroundPosition";}if(_3!=="backgroundPosition"||!_2.currentStyle||_2.currentStyle[_3]){return _1.apply(this,arguments);}var _5=_2.style;if(!_4&&_5&&_5[_3]){return _5[_3];}return _1(_2,"backgroundPositionX",_4)+" "+_1(_2,"backgroundPositionY",_4);};}var _6=$.fn.animate;$.fn.animate=function(_7){if("background-position" in _7){_7.backgroundPosition=_7["background-position"];delete _7["background-position"];}if("backgroundPosition" in _7){_7.backgroundPosition="("+_7.backgroundPosition;}return _6.apply(this,arguments);};function _8(_9){_9=_9.replace(/left|top/g,"0px");_9=_9.replace(/right|bottom/g,"100%");_9=_9.replace(/([0-9\.]+)(\s|\)|$)/g,"$1px$2");var _a=_9.match(/(-?[0-9\.]+)(px|\%|em|pt)\s(-?[0-9\.]+)(px|\%|em|pt)/);return [parseFloat(_a[1],10),_a[2],parseFloat(_a[3],10),_a[4]];};$.fx.step.backgroundPosition=function(fx){if(!fx.bgPosReady){var _b=$.curCSS(fx.elem,"backgroundPosition");if(!_b){_b="0px 0px";}_b=_8(_b);fx.start=[_b[0],_b[2]];var _c=_8(fx.options.curAnim.backgroundPosition);fx.end=[_c[0],_c[2]];fx.unit=[_c[1],_c[3]];fx.bgPosReady=true;}var _d=[];_d[0]=((fx.end[0]-fx.start[0])*fx.pos)+fx.start[0]+fx.unit[0];_d[1]=((fx.end[1]-fx.start[1])*fx.pos)+fx.start[1]+fx.unit[1];fx.elem.style.backgroundPosition=_d[0]+" "+_d[1];};})(jQuery);
