(function(b){var d="deg";b.fn.rotate=function(a){var c=b(this).css("transform")||"none";if(typeof a=="undefined"){if(c)if((a=c.match(/rotate\(([^)]+)\)/))&&a[1])return a[1];return 0}if(a=a.toString().match(/^(-?\d+(\.\d+)?)(.+)?$/)){if(a[3])d=a[3];b(this).css("transform",c.replace(/none|rotate\([^)]*\)/,"")+"rotate("+a[1]+d+")")}};b.fn.scale=function(a){var c=b(this).css("transform");if(typeof a=="undefined"){if(c)if((a=c.match(/scale\(([^)]+)\)/))&&a[1])return a[1];return 1}b(this).css("transform",
c.replace(/none|scale\([^)]*\)/,"")+"scale("+a+")")};var e=b.fx.prototype.cur;b.fx.prototype.cur=function(){if(this.prop=="rotate")return parseFloat(b(this.elem).rotate());else if(this.prop=="scale")return parseFloat(b(this.elem).scale());return e.apply(this,arguments)};b.fx.step.rotate=function(a){b(a.elem).rotate(a.now+d)};b.fx.step.scale=function(a){b(a.elem).scale(a.now)};var f=b.fn.animate;b.fn.animate=function(a){if(typeof a.rotate!="undefined"){var c=a.rotate.toString().match(/^(([+-]=)?(-?\d+(\.\d+)?))(.+)?$/);
if(c&&c[5])d=c[5];a.rotate=c[1]}return f.apply(this,arguments)}})(jQuery);

