(function($){$.each(['x','y','width','height','rx','ry','cx','cy','r','x1','y1','x2','y2','stroke-width','strokeWidth','opacity','fill-opacity','fillOpacity','stroke-opacity','strokeOpacity','stroke-dashoffset','strokeDashOffset','font-size','fontSize','font-weight','fontWeight','letter-spacing','letterSpacing','word-spacing','wordSpacing'],function(i,attrName){var ccName=attrName.charAt(0).toUpperCase()+attrName.substr(1);if($.cssProps){$.cssProps['svg'+ccName]=$.cssProps['svg-'+attrName]=attrName;} $.fx.step['svg'+ccName]=$.fx.step['svg-'+attrName]=function(fx){var realAttrName=$.svg._attrNames[attrName]||attrName;var attr=fx.elem.attributes.getNamedItem(realAttrName);if(!fx.set){fx.start=(attr?parseFloat(attr.nodeValue):0);var offset=($.fn.jquery>='1.6'?'':fx.options.curAnim['svg'+ccName]||fx.options.curAnim['svg-'+attrName]);if(/^[+-]=/.exec(offset)){fx.end=fx.start+parseFloat(offset.replace(/=/,''));} $(fx.elem).css(realAttrName,'');fx.set=true;} var value=(fx.pos*(fx.end-fx.start)+fx.start)+(fx.unit=='%'?'%':'');(attr?attr.nodeValue=value:fx.elem.setAttribute(realAttrName,value));};});$.fx.step['svgStrokeDashArray']=$.fx.step['svg-strokeDashArray']=$.fx.step['svgStroke-dasharray']=$.fx.step['svg-stroke-dasharray']=function(fx){var attr=fx.elem.attributes.getNamedItem('stroke-dasharray');if(!fx.set){fx.start=parseDashArray(attr?attr.nodeValue:'');var offset=($.fn.jquery>='1.6'?fx.end:fx.options.curAnim['svgStrokeDashArray']||fx.options.curAnim['svg-strokeDashArray']||fx.options.curAnim['svgStroke-dasharray']||fx.options.curAnim['svg-stroke-dasharray']);fx.end=parseDashArray(offset);if(/^[+-]=/.exec(offset)){offset=offset.split(/[, ]+/);if(offset.length%2==1){var len=offset.length;for(var i=0;i='1.6'?fx.end:fx.options.curAnim['svgViewBox']||fx.options.curAnim['svg-viewBox']);fx.end=parseViewBox(offset);if(/^[+-]=/.exec(offset)){offset=offset.split(/[, ]+/);while(offset.length<4){offset.push('0');} for(var i=0;i<4;i++){if(/^[+-]=/.exec(offset[i])){fx.end[i]=fx.start[i]+parseFloat(offset[i].replace(/=/,''));}}} fx.set=true;} var value=$.map(fx.start,function(n,i){return(fx.pos*(fx.end[i]-n)+n);}).join(' ');(attr?attr.nodeValue=value:fx.elem.setAttribute('viewBox',value));};function parseViewBox(value){var viewBox=value.split(/[, ]+/);for(var i=0;i