/*
 @author Alexander Farkas
 v. 1.02
*/
(function(d){d.extend(d.fx.step,{backgroundPosition:function(a){function e(c){c=c.replace(/left|top/g,"0px");c=c.replace(/right|bottom/g,"100%");c=c.replace(/([0-9\.]+)(\s|\)|$)/g,"$1px$2");c=c.match(/(-?[0-9\.]+)(px|\%|em|pt)\s(-?[0-9\.]+)(px|\%|em|pt)/);return[parseFloat(c[1],10),c[2],parseFloat(c[3],10),c[4]]}if(a.state===0&&typeof a.end=="string"){var b=d.curCSS(a.elem,"backgroundPosition");b=e(b);a.start=[b[0],b[2]];b=e(a.end);a.end=[b[0],b[2]];a.unit=[b[1],b[3]]}b=[];b[0]=(a.end[0]-a.start[0])*
a.pos+a.start[0]+a.unit[0];b[1]=(a.end[1]-a.start[1])*a.pos+a.start[1]+a.unit[1];a.elem.style.backgroundPosition=b[0]+" "+b[1]}})})(jQuery);

