var Raphael=(function(F){var D=function(){return D._0.apply(D,arguments)};D.version="0.6.4";D.type=F;var S={cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'16px "Arial"',"font-family":'"Arial"',"font-size":"16",gradient:0,height:0,opacity:1,path:"M0,0",r:0,rotation:0,rx:0,ry:0,scale:"1 1",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,translation:"0 0",width:0,x:0,y:0},I={cx:"number",cy:"number",fill:"colour","fill-opacity":"number","font-size":"number",height:"number",opacity:"number",path:"path",r:"number",rotation:"number",rx:"number",ry:"number",scale:"csv",stroke:"colour","stroke-opacity":"number","stroke-width":"number",translation:"csv",width:"number",x:"number",y:"number"},n={};if(F=="VML"){var L=function(q,p,v){var A=document.createElement("rvml:group"),w=A.style;w.position="absolute";w.left=0;w.top=0;w.width=v.width+"px";w.height=v.height+"px";var B=document.createElement("rvml:shape"),C=B.style;C.width=v.width+"px";C.height=v.height+"px";B.path="";if(q["class"]){B.className=q["class"]}B.coordsize=this.coordsize;B.coordorigin=this.coordorigin;A.appendChild(B);v.canvas.appendChild(A);var u=new r(B,A,v);u.isAbsolute=true;u.type="path";u.path=[];u.last={x:0,y:0,bx:0,by:0,isAbsolute:true};u.Path="";u.absolutely=function(){this.isAbsolute=true;return this};u.relatively=function(){this.isAbsolute=false;return this};u.moveTo=function(a,b){var c=this.isAbsolute?"m":"t";c+=Math.round(parseFloat(a,10))+" "+Math.round(parseFloat(b,10));this.node.path=this.Path+=c;this.last.x=(this.isAbsolute?0:this.last.x)+parseFloat(a,10);this.last.y=(this.isAbsolute?0:this.last.y)+parseFloat(b,10);this.last.isAbsolute=this.isAbsolute;this.attrs.path+=(this.isAbsolute?"M":"m")+[a,b];return this};u.lineTo=function(a,b){var c=this.isAbsolute?"l":"r";c+=Math.round(parseFloat(a,10))+" "+Math.round(parseFloat(b,10));this[0].path=this.Path+=c;this.last.x=(this.isAbsolute?0:this.last.x)+parseFloat(a,10);this.last.y=(this.isAbsolute?0:this.last.y)+parseFloat(b,10);this.last.isAbsolute=this.isAbsolute;this.attrs.path+=(this.isAbsolute?"L":"l")+[a,b];return this};u.arcTo=function(a,b,c,f,e,d){e=(this.isAbsolute?0:this.last.x)+e;d=(this.isAbsolute?0:this.last.y)+d;var h=this.last.x,g=this.last.y,j=(h-e)/2,i=(g-d)/2,k=(c==f?-1:1)*Math.sqrt(Math.abs(a*a*b*b-a*a*i*i-b*b*j*j)/(a*a*i*i+b*b*j*j)),m=k*a*i/b+(h+e)/2,o=k*-b*j/a+(g+d)/2,l=f?(this.isAbsolute?"wa":"wr"):(this.isAbsolute?"at":"ar"),t=Math.round(m-a),s=Math.round(o-b);l+=[t,s,Math.round(t+a*2),Math.round(s+b*2),Math.round(h),Math.round(g),Math.round(parseFloat(e,10)),Math.round(parseFloat(d,10))].join(", ");this.node.path=this.Path+=l;this.last.x=(this.isAbsolute?0:this.last.x)+parseFloat(e,10);this.last.y=(this.isAbsolute?0:this.last.y)+parseFloat(d,10);this.last.isAbsolute=this.isAbsolute;this.attrs.path+=(this.isAbsolute?"A":"a")+[a,b,0,c,f,e,d];return this};u.cplineTo=function(a,b,c){if(!c){return this.lineTo(a,b)}else{var f=Math.round(Math.round(parseFloat(a,10)*100)/100),e=Math.round(Math.round(parseFloat(b,10)*100)/100),d=Math.round(Math.round(parseFloat(c,10)*100)/100),h=this.isAbsolute?"c":"v",g=[Math.round(this.last.x)+d,Math.round(this.last.y),f-d,e,f,e],j=[this.last.x+c,this.last.y,a-c,b,a,b];h+=g.join(" ")+" ";this.last.x=(this.isAbsolute?0:this.last.x)+g[4];this.last.y=(this.isAbsolute?0:this.last.y)+g[5];this.last.bx=g[2];this.last.by=g[3];this.node.path=this.Path+=h;this.attrs.path+=(this.isAbsolute?"C":"c")+j;return this}};u.curveTo=function(){var a=this.isAbsolute?"c":"v";if(arguments.length==6){this.last.bx=(this.isAbsolute?0:this.last.x)+parseFloat(arguments[2],10);this.last.by=(this.isAbsolute?0:this.last.y)+parseFloat(arguments[3],10);this.last.x=(this.isAbsolute?0:this.last.x)+parseFloat(arguments[4],10);this.last.y=(this.isAbsolute?0:this.last.y)+parseFloat(arguments[5],10);a+=[Math.round(parseFloat(arguments[0],10)),Math.round(parseFloat(arguments[1],10)),Math.round(parseFloat(arguments[2],10)),Math.round(parseFloat(arguments[3],10)),Math.round(parseFloat(arguments[4],10)),Math.round(parseFloat(arguments[5],10))].join(" ")+" ";this.last.isAbsolute=this.isAbsolute;this.attrs.path+=(this.isAbsolute?"C":"c")+Array.prototype.splice.call(arguments,0,arguments.length)}if(arguments.length==4){var b=this.last.x*2-this.last.bx;var c=this.last.y*2-this.last.by;this.last.bx=(this.isAbsolute?0:this.last.x)+parseFloat(arguments[0],10);this.last.by=(this.isAbsolute?0:this.last.y)+parseFloat(arguments[1],10);this.last.x=(this.isAbsolute?0:this.last.x)+parseFloat(arguments[2],10);this.last.y=(this.isAbsolute?0:this.last.y)+parseFloat(arguments[3],10);a+=[Math.round(b),Math.round(c),Math.round(parseFloat(arguments[0],10)),Math.round(parseFloat(arguments[1],10)),Math.round(parseFloat(arguments[2],10)),Math.round(parseFloat(arguments[3],10))].join(" ")+" ";this.attrs.path+=(this.isAbsolute?"S":"s")+Array.prototype.splice.call(arguments,0,arguments.length)}this.node.path=this.Path+=a;return this};u.qcurveTo=function(){var a="qb";if(arguments.length==4){this.last.qx=(this.isAbsolute?0:this.last.x)+parseFloat(arguments[0],10);this.last.qy=(this.isAbsolute?0:this.last.y)+parseFloat(arguments[1],10);this.last.x=(this.isAbsolute?0:this.last.x)+parseFloat(arguments[2],10);this.last.y=(this.isAbsolute?0:this.last.y)+parseFloat(arguments[3],10);a+=[Math.round(this.last.qx),Math.round(this.last.qy),Math.round(this.last.x),Math.round(this.last.y)].join(" ")+" ";this.last.isAbsolute=this.isAbsolute;this.attrs.path+=(this.isAbsolute?"Q":"q")+Array.prototype.splice.call(arguments,0,arguments.length)}if(arguments.length==2){this.last.qx=this.last.x*2-this.last.qx;this.last.qy=this.last.y*2-this.last.qy;this.last.x=(this.isAbsolute?0:this.last.x)+parseFloat(arguments[2],10);this.last.y=(this.isAbsolute?0:this.last.y)+parseFloat(arguments[3],10);a+=[Math.round(this.last.qx),Math.round(this.last.qy),Math.round(this.last.x),Math.round(this.last.y)].join(" ")+" ";this.attrs.path+=(this.isAbsolute?"T":"t")+Array.prototype.splice.call(arguments,0,arguments.length)}this.node.path=this.Path+=a;this.path.push({type:"qcurve",arg:[].slice.call(arguments,0),pos:this.isAbsolute});return this};u.addRoundedCorner=function(a,b){var c=.5522*a,f=this.isAbsolute,e=this;if(f){this.relatively();f=function(){e.absolutely()}}else{f=function(){}}var d={l:function(){return{u:function(){e.curveTo(-c,0,-a,-(a-c),-a,-a)},d:function(){e.curveTo(-c,0,-a,a-c,-a,a)}}},r:function(){return{u:function(){e.curveTo(c,0,a,-(a-c),a,-a)},d:function(){e.curveTo(c,0,a,a-c,a,a)}}},u:function(){return{r:function(){e.curveTo(0,-c,-(c-a),-a,a,-a)},l:function(){e.curveTo(0,-c,c-a,-a,-a,-a)}}},d:function(){return{r:function(){e.curveTo(0,c,-(c-a),a,a,a)},l:function(){e.curveTo(0,c,c-a,a,-a,a)}}}};d[b.charAt(0)]()[b.charAt(1)]();f();return e};u.andClose=function(){this.node.path=(this.Path+="x e");this.attrs.path+="z";return this};if(p){u.absolutely();u.attrs.path="";n.pathfinder(u,""+p)}u.setBox();z(u,q);if(q.gradient){H(u,q.gradient)}return u};var z=function(a,b){var c=a[0].style;a.attrs=a.attrs||{};for(var f in b){a.attrs[f]=b[f]}if(b.path&&a.type=="path"){a.Path="";a.path=[];n.pathfinder(a,b.path)}if(b.rotation!=null){a.Group.style.rotation=b.rotation}if(b.translation){var e=b.translation.split(/[, ]+/);a.translate(e[0],e[1])}if(b.scale){var e=b.scale.split(/[, ]+/);a.scale(e[0],e[1])}if(a.type=="image"&&b.opacity){a.node.filterOpacity=" progid:DXImageTransform.Microsoft.Alpha(opacity="+(b.opacity*100)+")";a.node.style.filter=(a.node.filterMatrix||"")+(a.node.filterOpacity||"")}b["font-family"]&&(c.fontFamily=b["font-family"]);b["font-size"]&&(c.fontSize=b["font-size"]);b["font"]&&(c.font=b["font"]);b["font-weight"]&&(c.fontWeight=b["font-weight"]);if(typeof b.opacity!="undefined"||typeof b["stroke-width"]!="undefined"||typeof b.fill!="undefined"||typeof b.stroke!="undefined"){a=a.shape||a.node;var d=(a.getElementsByTagName("fill")&&a.getElementsByTagName("fill")[0])||document.createElement("rvml:fill");if("fill-opacity"in b||"opacity"in b){d.opacity=((b["fill-opacity"]+1||2)-1)*((b.opacity+1||2)-1)}if(b.fill){d.on=true}if(d.on==undefined||b.fill=="none"){d.on=false}if(d.on&&b.fill){var h=b.fill.match(/^url\(([^\)]+)\)$/i);if(h){d.src=h[1];d.type="tile"}else{d.color=b.fill;d.src="";d.type="solid"}}a.appendChild(d);var g=(a.getElementsByTagName("stroke")&&a.getElementsByTagName("stroke")[0])||document.createElement("rvml:stroke");if((b.stroke&&b.stroke!="none")||b["stroke-width"]||b["stroke-opacity"]||b["stroke-dasharray"]){g.on=true}if(b.stroke=="none"||typeof g.on=="undefined"){g.on=false}if(g.on&&b.stroke){g.color=b.stroke}g.opacity=((b["stroke-opacity"]+1||2)-1)*((b.opacity+1||2)-1);b["stroke-linejoin"]&&(g.joinstyle=b["stroke-linejoin"]||"miter");g.miterlimit=b["stroke-miterlimit"]||8;b["stroke-linecap"]&&(g.endcap={butt:"flat",square:"square",round:"round"}[b["stroke-linecap"]]||"miter");b["stroke-width"]&&(g.weight=(parseFloat(b["stroke-width"],10)||1)*12/16);if(b["stroke-dasharray"]){var j={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};g.dashstyle=j[b["stroke-dasharray"]]||""}a.appendChild(g)}};var H=function(a,b){a.attrs=a.attrs||{};a.attrs.gradient=b;a=a.shape||a[0];var c=a.getElementsByTagName("fill");if(c.length){c=c[0]}else{c=document.createElement("rvml:fill")}if(b.dots.length){c.on=true;c.method="none";c.type=(b.type.toLowerCase()=="linear")?"gradient":"gradientTitle";if(typeof b.dots[0].color!="undefined"){c.color=b.dots[0].color||"#000"}if(typeof b.dots[b.dots.length-1].color!="undefined"){c.color2=b.dots[b.dots.length-1].color||"#000"}var f=[];for(var e=0,d=b.dots.length;e<d;e++){if(b.dots[e].offset){f.push(b.dots[e].offset+" "+b.dots[e].color)}};var h=b.dots[0].opacity||1;var g=b.dots[b.dots.length-1].opacity||1;if(f){c.colors.value=f.join(",");g+=h;h=g-h;g-=h}c.setAttribute("opacity",h);c.setAttribute("opacity2",g);if(b.vector){var j=Math.round(Math.atan((parseFloat(b.vector[3],10)-parseFloat(b.vector[1],10))/(parseFloat(b.vector[2],10)-parseFloat(b.vector[0],10)))*57.29)||0;c.angle=270-j}if(b.type.toLowerCase()=="radial"){c.focus="100%";c.focusposition="0.5 0.5"}}};var r=function(a,b,c){var f=0,e=0,d=0,h=1;this[0]=a;this.node=a;this.X=0;this.Y=0;this.attrs={};this.Group=b;this.vml=c;this._={tx:0,ty:0,rt:0,sx:1,sy:1}};r.prototype.rotate=function(a,b){if(a==undefined){return this._.rt}if(b){this._.rt=a}else{this._.rt+=a}this.Group.style.rotation=this._.rt;return this};r.prototype.setBox=function(a){var b=this.Group.style,c=this[0].style;for(var f in a){this.attrs[f]=a[f]}var e=this.attrs,d,h,g,j;switch(this.type){case"circle":d=e.cx-e.r;h=e.cy-e.r;g=j=e.r*2;break;case"ellipse":d=e.cx-e.rx;h=e.cy-e.ry;g=e.rx*2;j=e.ry*2;break;case"rect":case"image":d=e.x;h=e.y;g=e.width||0;j=e.height||0;break;case"text":this.textpath.v=["m",Math.round(e.x),", ",Math.round(e.y-2),"l",Math.round(e.x)+1,", ",Math.round(e.y-2)].join("");return;case"path":if(!this.attrs.path){d=0;h=0;g=this.vml.width;j=this.vml.height}else{var i=Raphael.pathDimensions(this.attrs.path),d=i.x;h=i.y;g=i.width;j=i.height}break;default:d=0;h=0;g=this.vml.width;j=this.vml.height;break}if(this.type=="path"){var k=Math.round(this.vml.width/2-g/2-d),m=Math.round(this.vml.height/2-j/2-h);b.left=-k+"px";b.top=-m+"px";this.X=k;this.Y=m;this.W=g;this.H=j;c.top=m+"px";c.left=k+"px"}else{var k=this.vml.width/2-g/2,m=this.vml.height/2-j/2;b.position="absolute";b.left=d-k+"px";b.top=h-m+"px";this.X=d-k;this.Y=h-m;this.W=g;this.H=j;b.width=this.vml.width+"px";b.height=this.vml.height+"px";c.position="absolute";c.top=m+"px";c.left=k+"px";c.width=g+"px";c.height=j+"px"}};r.prototype.hide=function(){this.Group.style.display="none";return this};r.prototype.show=function(){this.Group.style.display="block";return this};r.prototype.translate=function(a,b){if(a==undefined&&b==undefined){return{x:this._.tx,y:this._.ty}}this._.tx+=+a;this._.ty+=+b;if(this.type=="path"){var c=this.attrs.path;c=Raphael.pathToRelative(c);c[0][1]+=+a;c[0][2]+=+b;this.attr({path:c.join(" ")})}this.setBox({x:this._.tx,y:this._.ty});return this};r.prototype.getBBox=function(){return{x:this.X,y:this.Y,width:this.W,height:this.H}};r.prototype.remove=function(){this[0].parentNode.removeChild(this[0]);this.Group.parentNode.removeChild(this.Group);this.shape&&this.shape.parentNode.removeChild(this.shape)};r.prototype.attr=function(){if(arguments.length==1&&typeof arguments[0]=="string"){if(arguments[0]=="translation"){return this.translate()}return this.attrs[arguments[0]]}if(this.attrs&&arguments.length==1&&arguments[0]instanceof Array){var a={};for(var b=0,c=arguments[0].length;b<c;b++){a[arguments[0][b]]=this.attrs[arguments[0][b]]};return a}if(this[0].tagName.toLowerCase()=="group"){var f=this[0].childNodes;this.attrs=this.attrs||{};if(arguments.length==2){this.attrs[arguments[0]]=arguments[1]}else if(arguments.length==1||typeof arguments[0]=="object"){for(var e in arguments[0]){this.attrs[e]=arguments[0][e]}}for(var b=0,c=f.length;b<c;b++){this.attr.apply(new item(f[b],this[0],this.vml),arguments)}}else{var d;if(arguments.length==2){d={};d[arguments[0]]=arguments[1]}if(arguments.length==1&&typeof arguments[0]=="object"){d=arguments[0]}if(d){z(this,d);this.setBox(d);if(d.gradient){H(this,d.gradient)}if(d.text&&this.type=="text"){this[0].string=d.text}if(d.id){this[0].id=d.id}}}return this};r.prototype.toFront=function(){this.Group.parentNode.appendChild(this.Group);return this};r.prototype.toBack=function(){if(this.Group.parentNode.firstChild!=this.Group){this.Group.parentNode.insertBefore(this.Group,this.Group.parentNode.firstChild)}return this};r.prototype.insertAfter=function(a){if(a.Group.nextSibling){a.Group.parentNode.insertBefore(this.Group,a.Group.nextSibling)}else{a.Group.parentNode.appendChild(this.Group)}return this};r.prototype.insertBefore=function(a){a.Group.parentNode.insertBefore(this.Group,a.Group);return this};var M=function(a,b,c,f){var e=document.createElement("rvml:group");var d=document.createElement("rvml:oval");e.appendChild(d);a.canvas.appendChild(e);var h=new r(d,e,a);z(h,{stroke:"#000",fill:"none"});h.setBox({x:b-f,y:c-f,width:f*2,height:f*2});h.attrs.cx=b;h.attrs.cy=c;h.attrs.r=f;h.type="circle";return h};var N=function(a,b,c,f,e,d){var h=document.createElement("rvml:group");var g=document.createElement(d?"rvml:roundrect":"rvml:rect");if(d){g.arcsize=d/(Math.min(f,e))}h.appendChild(g);a.canvas.appendChild(h);var j=new r(g,h,a);z(j,{stroke:"#000"});j.setBox({x:b,y:c,width:f,height:e});j.attrs.x=b;j.attrs.y=c;j.attrs.w=f;j.attrs.h=e;j.attrs.r=d;j.type="rect";return j};var O=function(a,b,c,f,e){var d=document.createElement("rvml:group");var h=document.createElement("rvml:oval");d.appendChild(h);a.canvas.appendChild(d);var g=new r(h,d,a);z(g,{stroke:"#000"});g.setBox({x:b-f,y:c-e,width:f*2,height:e*2});g.attrs.cx=b;g.attrs.cy=c;g.attrs.rx=f;g.attrs.ry=e;g.type="ellipse";return g};var P=function(a,b,c,f,e,d){var h=document.createElement("rvml:group");var g=document.createElement("rvml:image");g.src=b;h.appendChild(g);a.canvas.appendChild(h);var j=new r(g,h,a);j.type="image";j.setBox({x:c,y:f,width:e,height:d});j.attrs.x=c;j.attrs.y=f;j.attrs.w=e;j.attrs.h=d;return j};var Q=function(a,b,c,f){var e=document.createElement("rvml:group"),d=e.style;var h=document.createElement("rvml:shape"),g=h.style;var j=document.createElement("rvml:path"),i=j.style;j.v=["m",Math.round(b),", ",Math.round(c-2),"l",Math.round(b)+1,", ",Math.round(c-2)].join("");j.textpathok=true;g.width=a.width;g.height=a.height;d.position="absolute";d.left=0;d.top=0;d.width=a.width;d.height=a.height;var k=document.createElement("rvml:textpath");k.string=f;k.on=true;k.coordsize=a.coordsize;k.coordorigin=a.coordorigin;h.appendChild(k);h.appendChild(j);e.appendChild(h);a.canvas.appendChild(e);var m=new r(k,e,a);m.shape=h;m.textpath=j;m.type="text";m.attrs.x=b;m.attrs.y=c;m.attrs.w=1;m.attrs.h=1;z(m,{stroke:"none",fill:"#000"});return m};var R=function(c){var f=document.createElement("rvml:group"),e=f.style;e.position="absolute";e.left=0;e.top=0;e.width=c.width;e.height=c.height;if(c.canvas){c.canvas.appendChild(f)}var d=new r(f,f,c);for(var h in c){if(h.charAt(0)!="_"&&typeof c[h]=="function"){d[h]=(function(b){return function(){var a=c[b].apply(c,arguments);f.appendChild(a[0].parentNode);return a}})(h)}}d.type="group";return d};D._0=function(){var f,e,d;if(typeof arguments[0]=="string"){f=document.getElementById(arguments[0]);e=arguments[1];d=arguments[2]}if(typeof arguments[0]=="object"){f=arguments[0];e=arguments[1];d=arguments[2]}if(typeof arguments[0]=="number"){f=1;x=arguments[0];y=arguments[1];e=arguments[2];d=arguments[3]}if(!f){throw new Error("VML container not found.");}if(!document.namespaces["rvml"]){document.namespaces.add("rvml","urn:schemas-microsoft-com:vml");document.createStyleSheet().addRule("rvml\\:*","behavior:url(#default#VML)")}var h=document.createElement("div"),g=document.createElement("div"),j=n.canvas=document.createElement("rvml:group"),i=h.style,k=j.style;n.width=e;n.height=d;e=e||"320px";d=d||"200px";i.clip="rect(0 "+e+" "+d+" 0)";i.top="-2px";i.left="-2px";i.position="absolute";k.position="absolute";g.style.position="relative";k.width=e;k.height=d;j.coordsize=(e=="100%"?e:parseFloat(e))+" "+(d=="100%"?d:parseFloat(d));j.coordorigin="0 0";var m=document.createElement("rvml:rect"),o=m.style;o.left=o.top=0;o.width=k.width;o.height=k.height;m.filled=m.stroked="f";j.appendChild(m);h.appendChild(j);g.appendChild(h);if(f==1){document.body.appendChild(g);i.position="absolute";i.left=x+"px";i.top=y+"px";i.width=e;i.height=d;f={style:{width:e,height:d}}}else{i.width=f.style.width=e;i.height=f.style.height=d;if(f.firstChild){f.insertBefore(g,f.firstChild)}else{f.appendChild(g)}}for(var l in n){f[l]=n[l]}f.clear=function(){var a=[];for(var b=0,c=j.childNodes.length;b<c;b++){if(j.childNodes[b]!=m){a.push(j.childNodes[b])}}for(b=0,c=a.length;b<c;b++){j.removeChild(a[b])}};return f};n.remove=function(){n.canvas.parentNode.parentNode.parentNode.removeChild(n.canvas.parentNode.parentNode)}}if(F=="SVG"){var L=function(o,l,t){var s=document.createElementNS(t.svgns,"path");s.setAttribute("fill","none");if(t.canvas){t.canvas.appendChild(s)}var q=new r(s,t);q.isAbsolute=true;q.type="path";q.last={x:0,y:0,bx:0,by:0};q.absolutely=function(){this.isAbsolute=true;return this};q.relatively=function(){this.isAbsolute=false;return this};q.moveTo=function(a,b){var c=this.isAbsolute?"M":"m";c+=parseFloat(a,10).toFixed(3)+" "+parseFloat(b,10).toFixed(3)+" ";var f=this[0].getAttribute("d")||"";(f=="M0,0")&&(f="");this[0].setAttribute("d",f+c);this.last.x=(this.isAbsolute?0:this.last.x)+parseFloat(a,10);this.last.y=(this.isAbsolute?0:this.last.y)+parseFloat(b,10);this.attrs.path=f+c;return this};q.lineTo=function(a,b){this.last.x=(this.isAbsolute?0:this.last.x)+parseFloat(a,10);this.last.y=(this.isAbsolute?0:this.last.y)+parseFloat(b,10);var c=this.isAbsolute?"L":"l";c+=parseFloat(a,10).toFixed(3)+" "+parseFloat(b,10).toFixed(3)+" ";var f=this[0].getAttribute("d")||"";this[0].setAttribute("d",f+c);this.attrs.path=f+c;return this};q.arcTo=function(a,b,c,f,e,d){var h=this.isAbsolute?"A":"a";h+=[parseFloat(a,10).toFixed(3),parseFloat(b,10).toFixed(3),0,c,f,parseFloat(e,10).toFixed(3),parseFloat(d,10).toFixed(3)].join(" ");var g=this[0].getAttribute("d")||"";this[0].setAttribute("d",g+h);this.last.x=parseFloat(e,10);this.last.y=parseFloat(d,10);this.attrs.path=g+h;return this};q.cplineTo=function(a,b,c){if(!c){return this.lineTo(a,b)}else{var f={};var e=parseFloat(a,10);var d=parseFloat(b,10);var h=parseFloat(c,10);var g=this.isAbsolute?"C":"c";var j=[+this.last.x+h,+this.last.y,e-h,d,e,d];for(var i=0,k=j.length;i<k;i++){g+=j[i].toFixed(3)+" "}this.last.x=(this.isAbsolute?0:this.last.x)+j[4];this.last.y=(this.isAbsolute?0:this.last.y)+j[5];this.last.bx=j[2];this.last.by=j[3];var m=this[0].getAttribute("d")||"";this[0].setAttribute("d",m+g);this.attrs.path=m+g;return this}};q.curveTo=function(){var a={},b=[0,1,2,3,"s",5,"c"];var c=b[arguments.length];if(this.isAbsolute){c=c.toUpperCase()}for(var f=0,e=arguments.length;f<e;f++){c+=parseFloat(arguments[f],10).toFixed(3)+" "}this.last.x=(this.isAbsolute?0:this.last.x)+parseFloat(arguments[arguments.length-2],10);this.last.y=(this.isAbsolute?0:this.last.y)+parseFloat(arguments[arguments.length-1],10);this.last.bx=parseFloat(arguments[arguments.length-4],10);this.last.by=parseFloat(arguments[arguments.length-3],10);var d=this.node.getAttribute("d")||"";this.node.setAttribute("d",d+c);this.attrs.path=d+c;return this};q.qcurveTo=function(){var a={},b=[0,1,"t",3,"q"];var c=b[arguments.length];if(this.isAbsolute){c=c.toUpperCase()}for(var f=0,e=arguments.length;f<e;f++){c+=parseFloat(arguments[f],10).toFixed(3)+" "}this.last.x=(this.isAbsolute?0:this.last.x)+parseFloat(arguments[arguments.length-2],10);this.last.y=(this.isAbsolute?0:this.last.y)+parseFloat(arguments[arguments.length-1],10);if(arguments.length!=2){this.last.qx=parseFloat(arguments[arguments.length-4],10);this.last.qy=parseFloat(arguments[arguments.length-3],10)}var d=this.node.getAttribute("d")||"";this.node.setAttribute("d",d+c);this.attrs.path=d+c;return this};q.addRoundedCorner=function(a,b){var c=.5522*a,f=this.isAbsolute,e=this;if(f){this.relatively();f=function(){e.absolutely()}}else{f=function(){}}var d={l:function(){return{u:function(){e.curveTo(-c,0,-a,-(a-c),-a,-a)},d:function(){e.curveTo(-c,0,-a,a-c,-a,a)}}},r:function(){return{u:function(){e.curveTo(c,0,a,-(a-c),a,-a)},d:function(){e.curveTo(c,0,a,a-c,a,a)}}},u:function(){return{r:function(){e.curveTo(0,-c,-(c-a),-a,a,-a)},l:function(){e.curveTo(0,-c,c-a,-a,-a,-a)}}},d:function(){return{r:function(){e.curveTo(0,c,-(c-a),a,a,a)},l:function(){e.curveTo(0,c,c-a,a,-a,a)}}}};d[b[0]]()[b[1]]();f();return e};q.andClose=function(){var a=this[0].getAttribute("d")||"";this[0].setAttribute("d",a+"Z ");this.attrs.path=a+"Z ";return this};if(l){q.attrs.path=""+l;q.absolutely();n.pathfinder(q,q.attrs.path)}if(o){z(q,o)}return q};var H=function(a,b,c){var f=document.createElementNS(c.svgns,b.type+"Gradient");f.id="raphael-gradient-"+c.gradients++;if(b.vector&&b.vector.length){f.setAttribute("x1",b.vector[0]);f.setAttribute("y1",b.vector[1]);f.setAttribute("x2",b.vector[2]);f.setAttribute("y2",b.vector[3])}c.defs.appendChild(f);for(var e=0,d=b.dots.length;e<d;e++){var h=document.createElementNS(c.svgns,"stop");h.setAttribute("offset",b.dots[e].offset?b.dots[e].offset:(e==0)?"0%":"100%");h.setAttribute("stop-color",b.dots[e].color||"#fff");if(typeof b.dots[e].opacity!="undefined"){h.setAttribute("stop-opacity",b.dots[e].opacity)}f.appendChild(h)};a.setAttribute("fill","url(#"+f.id+")")};var J=function(a){if(a.pattern){var b=a.node.getBBox();a.pattern.setAttribute("patternTransform","translate("+[b.x,b.y].join(",")+")")}};var z=function(g,j){var i={"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},k=function(a,b){b=i[b.toString().toLowerCase()];if(b){var c=a.attrs["stroke-width"]||"1",f={round:c,square:c,butt:0}[a.attrs["stroke-linecap"]||j["stroke-linecap"]]||0,e=[];for(var d=0,h=b.length;d<h;d++){e.push(b[d]*c+((d%2)?1:-1)*f)}b=e.join(",");a.node.setAttribute("stroke-dasharray",b)}};for(var m in j){var o=j[m];g.attrs[m]=o;switch(m){case"path":if(g.type=="path"){g.node.setAttribute("d","M0,0");n.pathfinder(g,o)}case"rx":case"cx":case"x":g.node.setAttribute(m,o);J(g);break;case"ry":case"cy":case"y":g.node.setAttribute(m,o);J(g);break;case"width":g.node.setAttribute(m,o);break;case"height":g.node.setAttribute(m,o);break;case"gradient":H(g.node,o,g.svg);break;case"stroke-width":g.node.style.strokeWidth=o;g.node.setAttribute(m,o);if(g.attrs["stroke-dasharray"]){k(g,g.attrs["stroke-dasharray"])}break;case"stroke-dasharray":k(g,o);break;case"text":if(g.type=="text"){g.node.childNodes.length&&g.node.removeChild(g.node.firstChild);g.node.appendChild(document.createTextNode(o))}break;case"rotation":g.rotate(o,true);break;case"translation":var l=o.split(/[, ]+/);g.translate(l[0],l[1]);break;case"scale":var l=o.split(/[, ]+/);g.scale(l[0],l[1]);break;case"fill":var t=o.match(/^url\(([^\)]+)\)$/i);if(t){var s=document.createElementNS(g.svg.svgns,"pattern");var q=document.createElementNS(g.svg.svgns,"image");var p=new UUID();s.id="raphael-pattern-"+p.toString();s.setAttribute("x",0);s.setAttribute("y",0);s.setAttribute("patternUnits","userSpaceOnUse");q.setAttribute("x",0);q.setAttribute("y",0);q.setAttributeNS(g.svg.xlink,"href",t[1]);s.appendChild(q);var v=document.createElement("img");v.style.position="absolute";v.style.top="-9999em";v.style.left="-9999em";v.onload=function(){s.setAttribute("width",this.offsetWidth);s.setAttribute("height",this.offsetHeight);q.setAttribute("width",this.offsetWidth);q.setAttribute("height",this.offsetHeight);document.body.removeChild(this);n.safari()};document.body.appendChild(v);v.src=t[1];g.svg.defs.appendChild(s);g.node.style.fill="url(#"+s.id+")";g.node.setAttribute("fill","url(#"+s.id+")");g.pattern=s;J(g);break}default:var A=m.replace(/(\-.)/g,function(a){return a.substring(1).toUpperCase()});g.node.style[A]=o;g.node.setAttribute(m,o);break}}};var r=function(a,b){var c=0,f=0;this[0]=a;this.node=a;this.svg=b;this.attrs=this.attrs||{};this.transformations=[];this._={tx:0,ty:0,rt:{deg:0,x:0,y:0},sx:1,sy:1}};r.prototype.translate=function(a,b){if(a==undefined&&b==undefined){return{x:this._.tx,y:this._.ty}}this._.tx+=+a;this._.ty+=+b;switch(this.type){case"circle":case"ellipse":this.attr({cx:this.attrs.cx+a,cy:this.attrs.cy+b});break;case"rect":case"image":case"text":this.attr({x:this.attrs.x+a,y:this.attrs.y+b});break;case"path":var c=Raphael.pathToRelative(this.attrs.path);c[0][1]+=+a;c[0][2]+=+b;this.attr({path:c.join(" ")});break}return this};r.prototype.rotate=function(a,b){if(a==undefined){return this._.rt.deg}var c=this.getBBox();if(b){this._.rt.deg=a}else{this._.rt.deg+=a}if(this._.rt.deg){this.transformations[0]=("rotate("+this._.rt.deg+" "+(c.x+c.width/2)+" "+(c.y+c.height/2)+")")}else{this.transformations[0]=""}this.node.setAttribute("transform",this.transformations.join(" "));return this};r.prototype.hide=function(){this.node.style.display="none";return this};r.prototype.show=function(){this.node.style.display="block";return this};r.prototype.remove=function(){this.node.parentNode.removeChild(this.node)};r.prototype.getBBox=function(){return this.node.getBBox()};r.prototype.attr=function(){if(arguments.length==1&&typeof arguments[0]=="string"){if(arguments[0]=="translation"){return this.translate()}return this.attrs[arguments[0]]}if(arguments.length==1&&arguments[0]instanceof Array){var a={};for(var b in arguments[0]){a[arguments[0][b]]=this.attrs[arguments[0][b]]}return a}if(arguments.length==2){var c={};c[arguments[0]]=arguments[1];z(this,c)}else if(arguments.length==1&&typeof arguments[0]=="object"){z(this,arguments[0])}return this};r.prototype.toFront=function(){this.node.parentNode.appendChild(this.node);return this};r.prototype.toBack=function(){if(this.node.parentNode.firstChild!=this.node){this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild)}return this};r.prototype.insertAfter=function(a){if(a.node.nextSibling){a.node.parentNode.insertBefore(this.node,a.node.nextSibling)}else{a.node.parentNode.appendChild(this.node)}return this};r.prototype.insertBefore=function(a){a.node.parentNode.insertBefore(this.node,a.node);return this};var M=function(a,b,c,f){var e=document.createElementNS(a.svgns,"circle");e.setAttribute("cx",b);e.setAttribute("cy",c);e.setAttribute("r",f);e.setAttribute("fill","none");e.setAttribute("stroke","#000");if(a.canvas){a.canvas.appendChild(e)}var d=new r(e,a);d.attrs=d.attrs||{};d.attrs.cx=b;d.attrs.cy=c;d.attrs.r=f;d.attrs.stroke="#000";d.type="circle";return d};var N=function(a,b,c,f,e,d){var h=document.createElementNS(a.svgns,"rect");h.setAttribute("x",b);h.setAttribute("y",c);h.setAttribute("width",f);h.setAttribute("height",e);if(d){h.setAttribute("rx",d);h.setAttribute("ry",d)}h.setAttribute("fill","none");h.setAttribute("stroke","#000");if(a.canvas){a.canvas.appendChild(h)}var g=new r(h,a);g.attrs=g.attrs||{};g.attrs.x=b;g.attrs.y=c;g.attrs.width=f;g.attrs.height=e;g.attrs.stroke="#000";if(d){g.attrs.rx=g.attrs.ry=d}g.type="rect";return g};var O=function(a,b,c,f,e){var d=document.createElementNS(a.svgns,"ellipse");d.setAttribute("cx",b);d.setAttribute("cy",c);d.setAttribute("rx",f);d.setAttribute("ry",e);d.setAttribute("fill","none");d.setAttribute("stroke","#000");if(a.canvas){a.canvas.appendChild(d)}var h=new r(d,a);h.attrs=h.attrs||{};h.attrs.cx=b;h.attrs.cy=c;h.attrs.rx=f;h.attrs.ry=e;h.attrs.stroke="#000";h.type="ellipse";return h};var P=function(a,b,c,f,e,d){var h=document.createElementNS(a.svgns,"image");h.setAttribute("x",c);h.setAttribute("y",f);h.setAttribute("width",e);h.setAttribute("height",d);h.setAttribute("preserveAspectRatio","none");h.setAttributeNS(a.xlink,"href",b);if(a.canvas){a.canvas.appendChild(h)}var g=new r(h,a);g.attrs=g.attrs||{};g.attrs.x=c;g.attrs.y=f;g.attrs.width=e;g.attrs.height=d;g.type="image";return g};var Q=function(a,b,c,f){var e=document.createElementNS(a.svgns,"text");e.setAttribute("x",b);e.setAttribute("y",c);e.setAttribute("text-anchor","middle");e.setAttribute("fill","#000");if(f){e.appendChild(document.createTextNode(f))}if(a.canvas){a.canvas.appendChild(e)}var d=new r(e,a);d.attrs=d.attrs||{};d.attrs.x=b;d.attrs.y=c;d.attrs.fill="#000";d.type="text";return d};var R=function(c){var f=document.createElementNS(c.svgns,"g");if(c.canvas){c.canvas.appendChild(f)}var e=new r(f,c);for(var d in c){if(d[0]!="_"&&typeof c[d]=="function"){e[d]=(function(b){return function(){var a=c[b].apply(c,arguments);f.appendChild(a[0]);return a}})(d)}}e.type="group";return e};D._0=function(){if(typeof arguments[0]=="string"){var a=document.getElementById(arguments[0]);var b=arguments[1];var c=arguments[2]}if(typeof arguments[0]=="object"){var a=arguments[0];var b=arguments[1];var c=arguments[2]}if(typeof arguments[0]=="number"){var a=1,x=arguments[0],y=arguments[1],b=arguments[2],c=arguments[3]}if(!a){throw new Error("SVG container not found.");}n.canvas=document.createElementNS(n.svgns,"svg");n.canvas.setAttribute("width",b||320);n.width=b||320;n.canvas.setAttribute("height",c||200);n.height=c||200;if(a==1){document.body.appendChild(n.canvas);n.canvas.style.position="absolute";n.canvas.style.left=x+"px";n.canvas.style.top=y+"px"}else{if(a.firstChild){a.insertBefore(n.canvas,a.firstChild)}else{a.appendChild(n.canvas)}}a={canvas:n.canvas,clear:function(){while(this.canvas.firstChild){this.canvas.removeChild(this.canvas.firstChild)}this.defs=document.createElementNS(n.svgns,"defs");this.gradients=0;this.canvas.appendChild(this.defs)}};for(var f in n){if(f!="create"){a[f]=n[f]}}a.clear();return a};n.remove=function(){n.canvas.parentNode.removeChild(n.canvas)};n.svgns="http://www.w3.org/2000/svg";n.xlink="http://www.w3.org/1999/xlink"}if(F=="VML"||F=="SVG"){n.circle=function(a,b,c){return M(this,a,b,c)};n.rect=function(a,b,c,f,e){return N(this,a,b,c,f,e)};n.ellipse=function(a,b,c,f){return O(this,a,b,c,f)};n.path=function(a,b){return L(a,b,this)};n.image=function(a,b,c,f,e){return P(this,a,b,c,f,e)};n.text=function(a,b,c){return Q(this,a,b,c)};n.group=function(){return R(this)};n.drawGrid=function(a,b,c,f,e,d,h){h=h||"#000";var g=this.path({stroke:h,"stroke-width":1}).moveTo(a,b).lineTo(a+c,b).lineTo(a+c,b+f).lineTo(a,b+f).lineTo(a,b),j=f/d,i=c/e;for(var k=1;k<d;k++){g.moveTo(a,b+k*j).lineTo(a+c,b+k*j)}for(var k=1;k<e;k++){g.moveTo(a+k*i,b).lineTo(a+k*i,b+f)}return g};n.safari=function(){if(navigator.vendor=="Apple Computer, Inc."){var a=n.rect(-n.width,-n.height,n.width*3,n.height*3).attr({stroke:"none"});setTimeout(function(){a.remove()},0)}};r.prototype.stop=function(){clearTimeout(this.animation_in_progress)};r.prototype.scale=function(a,b){if(a==undefined&&b==undefined){return{x:this._.sx,y:this._.sy}}b=b||a;var c,f,e,d;if(a!=0&&!(a==1&&b==1)){var h=Math.round(a/Math.abs(a)),g=Math.round(b/Math.abs(b)),j=this.node.style;c=this.attr("x");f=this.attr("y");e=this.attr("cx");d=this.attr("cy");if(h!=1||g!=1){if(this.transformations){this.transformations[2]="scale("+[h,g]+")";this.node.setAttribute("transform",this.transformations.join(" "));c=(h<0)?-this.attr("x")-this.attrs.width*a*h/this._.sx:this.attr("x");f=(g<0)?-this.attr("y")-this.attrs.height*b*g/this._.sy:this.attr("y");e=this.attr("cx")*h;d=this.attr("cy")*g}else{this.node.filterMatrix=" progid:DXImageTransform.Microsoft.Matrix(M11="+h+", M12=0, M21=0, M22="+g+", Dx=0, Dy=0, sizingmethod='auto expand', filtertype='bilinear')";j.filter=(this.node.filterMatrix||"")+(this.node.filterOpacity||"")}}else{if(this.transformations){this.transformations[2]="";this.node.setAttribute("transform",this.transformations.join(" "))}else{this.node.filterMatrix="";j.filter=(this.node.filterMatrix||"")+(this.node.filterOpacity||"")}}switch(this.type){case"rect":case"image":this.attr({width:this.attrs.width*a*h/this._.sx,height:this.attrs.height*b*g/this._.sy,x:c,y:f});break;case"circle":case"ellipse":this.attr({rx:this.attrs.rx*a*h/this._.sx,ry:this.attrs.ry*b*g/this._.sy,r:this.attrs.r*a*g/this._.sx,cx:e,cy:d});break;case"path":var i=Raphael.pathToRelative(Raphael.parsePathString(this.attr("path"))),k=true,m=Raphael.pathDimensions(this.attrs.path),c=-m.width*(a-1)/2,f=-m.height*(b-1)/2;for(var o=0,l=i.length;o<l;o++){if(i[o][0].toUpperCase()=="M"&&k){continue}else{k=false}if(i[o][0].toUpperCase()=="A"){i[o][i[o].length-2]*=a*h;i[o][i[o].length-1]*=b*g}else{for(var t=1,s=i[o].length;t<s;t++){i[o][t]*=(t%2)?a*h/this._.sx:b*g/this._.sy}}}var q=Raphael.pathDimensions(i),c=m.x+m.width/2-q.x-q.width/2,f=m.y+m.height/2-q.y-q.height/2;i=Raphael.pathToRelative(i);i[0][1]+=c;i[0][2]+=f;this.attr({path:i.join(" ")})}}this._.sx=a;this._.sy=b;return this};r.prototype.animate=function(k,m,o){clearTimeout(this.animation_in_progress);var l={},t={},s={},q={x:0,y:0};for(var p in k){if(p in I){l[p]=this.attr(p);if(typeof l[p]=="undefined"){l[p]=S[p]}t[p]=k[p];switch(I[p]){case"number":s[p]=(t[p]-l[p])/m;break;case"colour":l[p]=Raphael.getRGB(l[p]);var v=Raphael.getRGB(t[p]);s[p]={r:(v.r-l[p].r)/m,g:(v.g-l[p].g)/m,b:(v.b-l[p].b)/m};break;case"path":var A=Raphael.pathEqualiser(l[p],t[p]);l[p]=A[0];t[p]=A[1];s[p]=[];for(var w=0,B=l[p].length;w<B;w++){s[p][w]=[0];for(var C=1,u=l[p][w].length;C<u;C++){s[p][w][C]=(t[p][w][C]-l[p][w][C])/m}}break;case"csv":var G=k[p].split(/[, ]+/);if(p=="translation"){l[p]=[0,0];s[p]=[G[0]/m,G[1]/m]}else{l[p]=l[p].split(/[, ]+/);s[p]=[(G[0]-l[p][0])/m,(G[1]-l[p][0])/m]}t[p]=G}}}var T=new Date(),K=0,E=this;(function(){var a=(new Date()).getTime()-T.getTime(),b={},c;if(a<m){for(var f in l){switch(I[f]){case"number":c=+l[f]+a*s[f];break;case"colour":c="rgb("+[Math.round(l[f].r+a*s[f].r),Math.round(l[f].g+a*s[f].g),Math.round(l[f].b+a*s[f].b)].join(",")+")";break;case"path":c=[];for(var e=0,d=l[f].length;e<d;e++){c[e]=[l[f][e][0]];for(var h=1,g=l[f][e].length;h<g;h++){c[e][h]=l[f][e][h]+a*s[f][e][h]}c[e]=c[e].join(" ")}c=c.join(" ");break;case"csv":if(f=="translation"){var j=s[f][0]*(a-K),i=s[f][1]*(a-K);q.x+=j;q.y+=i;c=[j,i].join(" ")}else{c=[+l[f][0]+a*s[f][0],+l[f][1]+a*s[f][1]].join(" ")}break}if(f=="font-size"){b[f]=c+"px"}else{b[f]=c}}E.attr(b);E.animation_in_progress=setTimeout(arguments.callee,0);n.safari()}else{if(q.x||q.y){E.translate(-q.x,-q.y)}E.attr(k);clearTimeout(E.animation_in_progress);n.safari();(typeof o=="function")&&o.call(E)}K=a})();return this};n.pathfinder=function(g,j){var i={M:function(a,b){this.moveTo(a,b)},C:function(a,b,c,f,e,d){this.curveTo(a,b,c,f,e,d)},Q:function(a,b,c,f){this.qcurveTo(a,b,c,f)},T:function(a,b){this.qcurveTo(a,b)},S:function(a,b,c,f){g.curveTo(a,b,c,f)},L:function(a,b){g.lineTo(a,b)},H:function(a){this.lineTo(a,this.last.y)},V:function(a){this.lineTo(this.last.x,a)},A:function(a,b,c,f,e,d,h){this.arcTo(a,b,f,e,d,h)},Z:function(){this.andClose()}};j=Raphael.pathToAbsolute(j);for(var k=0,m=j.length;k<m;k++){var o=j[k].shift();i[o].apply(g,j[k])}};return D}else{return function(){}}})((!window.SVGAngle)?"VML":"SVG");Raphael.vml=!(Raphael.svg=(Raphael.type=="SVG"));if(Raphael.vml&&window.CanvasRenderingContext2D){Raphael.type="Canvas only";Raphael.vml=Raphael.svg=false}Raphael.toString=function(){return"Your browser "+(this.vml?"doesn't ":"")+"support"+(this.svg?"s":"")+" SVG.\nYou are running "+unescape("Rapha%EBl%20")+this.version};Raphael.hsb2rgb=function(a,b,c){if(typeof a=="object"&&"h"in a&&"s"in a&&"b"in a){c=a.b;b=a.s;a=a.h}var f,e,d;if(c==0){return{r:0,g:0,b:0,hex:"#000"}}else{var h=Math.floor(a*6),g=(a*6)-h,j=c*(1-b),i=c*(1-(b*g)),k=c*(1-(b*(1-g)));[function(){f=c;e=k;d=j},function(){f=i;e=c;d=j},function(){f=j;e=c;d=k},function(){f=j;e=i;d=c},function(){f=k;e=j;d=c},function(){f=c;e=j;d=i},function(){f=c;e=k;d=j}][h]()}var m={r:f,g:e,b:d};f*=255;e*=255;d*=255;var o=Math.round(f).toString(16);if(o.length==1){o="0"+o}var l=Math.round(e).toString(16);if(l.length==1){l="0"+l}var t=Math.round(d).toString(16);if(t.length==1){t="0"+t}m.hex="#"+o+l+t;return m};Raphael.rgb2hsb=function(a,b,c){if(typeof a=="object"&&"r"in a&&"g"in a&&"b"in a){c=a.b;b=a.g;a=a.r}if(typeof a=="string"&&a.charAt(0)=="#"){if(a.length==4){c=parseInt(a.substring(3),16);b=parseInt(a.substring(2,3),16);a=parseInt(a.substring(1,2),16)}else{c=parseInt(a.substring(5),16);b=parseInt(a.substring(3,5),16);a=parseInt(a.substring(1,3),16)}}if(a>1||b>1||c>1){a/=255;b/=255;c/=255}var f=Math.max(a,b,c),e=Math.min(a,b,c),d,h,g=f;if(e==f){return{h:0,s:0,b:f}}else{var j=(f-e);h=j/f;if(a==f){d=(b-c)/j}else if(b==f){d=2+((c-a)/j)}else{d=4+((a-b)/j)}d/=6;if(d<0){d+=1}if(d>1){d-=1}}return{h:d,s:h,b:g}};Raphael.getRGB=function(a){var b,c,f,e=a.match(/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgb\(\s*(\d+,\s*\d+,\s*\d+)\s*\)|rgb\(\s*(\d+%,\s*\d+%,\s*\d+%)\s*\)|hsb\(\s*(\d+,\s*\d+,\s*\d+)\s*\)|hsb\(\s*(\d+%,\s*\d+%,\s*\d+%)\s*\))\s*$/i);if(e){if(e[2]){f=parseInt(e[2].substring(5),16);c=parseInt(e[2].substring(3,5),16);b=parseInt(e[2].substring(1,3),16)}if(e[3]){f=parseInt(e[3].substring(3)+e[3].substring(3),16);c=parseInt(e[3].substring(2,3)+e[3].substring(2,3),16);b=parseInt(e[3].substring(1,2)+e[3].substring(1,2),16)}if(e[4]){e=e[4].split(/\s*,\s*/);b=parseInt(e[0],10);c=parseInt(e[1],10);f=parseInt(e[2],10)}if(e[5]){e=e[5].split(/\s*,\s*/);b=parseInt(e[0],10)*2.55;c=parseInt(e[1],10)*2.55;f=parseInt(e[2],10)*2.55}if(e[6]){e=e[6].split(/\s*,\s*/);b=parseInt(e[0],10);c=parseInt(e[1],10);f=parseInt(e[2],10);return this.hsb2rgb(b,c,f)}if(e[7]){e=e[7].split(/\s*,\s*/);b=parseInt(e[0],10)*2.55;c=parseInt(e[1],10)*2.55;f=parseInt(e[2],10)*2.55;return this.hsb2rgb(b,c,f)}var e={r:b,g:c,b:f};var d=Math.round(b).toString(16);(d.length==1)&&(d="0"+d);var h=Math.round(c).toString(16);(h.length==1)&&(h="0"+h);var g=Math.round(f).toString(16);(g.length==1)&&(g="0"+g);e.hex="#"+d+h+g;return e}};Raphael.getColor=function(a){var b=arguments.callee.start=arguments.callee.start||{h:0,s:1,b:a||.75};var c=this.hsb2rgb(b.h,b.s,b.b);b.h+=.075;if(b.h>1){b.h=0;b.s-=.2;if(b.s<=0){arguments.callee.start={h:0,s:1,b:b.b}}}return c.hex};Raphael.getColor.reset=function(){this.start=undefined};Raphael.parsePathString=function(g){var j={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=[],k=function(){var a="";for(var b=0,c=this.length;b<c;b++){a+=this[b][0]+this[b].join(",").substring(2)}return a};if(g.toString.toString()==k.toString()){return g}g.replace(/([achlmqstvz])[\s,]*((-?\d*\.?\d*\s*,?\s*)+)/ig,function(c,f,e){var d=[],h=f.toLowerCase();e.replace(/(-?\d*\.?\d*)\s*,?\s*/ig,function(a,b){b&&d.push(+b)});while(d.length>=j[h]){i.push([f].concat(d.splice(0,j[h])));if(!j[h]){break}}});i.toString=k;return i};Raphael.pathDimensions=function(a){var b=a;if(typeof a=="string"){b=this.parsePathString(a)}b=this.pathToAbsolute(b);var c=[],f=[],e=0;for(var d=0,h=b.length;d<h;d++){switch(b[d][0]){case"Z":break;case"A":c.push(b[d][b[d].length-2]);f.push(b[d][b[d].length-1]);break;default:for(var g=1,j=b[d].length;g<j;g++){if(g%2){c.push(b[d][g])}else{f.push(b[d][g])}}}}var i=Math.min.apply(Math,c),k=Math.min.apply(Math,f);return{x:i,y:k,width:Math.max.apply(Math,c)-i,height:Math.max.apply(Math,f)-k,X:c,Y:f}};Raphael.pathToRelative=function(a){var b=[];if(typeof a=="string"){a=this.parsePathString(a)}var c=0,f=0,e=0;if(a[0][0]=="M"){c=a[0][1];f=a[0][2];e++;b.push(a[0])}for(var d=e,h=a.length;d<h;d++){b[d]=[];if(a[d][0]!=a[d][0].toLowerCase()){b[d][0]=a[d][0].toLowerCase();switch(b[d][0]){case"a":b[d][1]=a[d][1];b[d][2]=a[d][2];b[d][3]=0;b[d][4]=a[d][4];b[d][5]=a[d][5];b[d][6]=+(a[d][6]-c).toFixed(3);b[d][7]=+(a[d][7]-f).toFixed(3);break;case"v":b[d][1]=+(a[d][1]-f).toFixed(3);break;default:for(var g=1,j=a[d].length;g<j;g++){b[d][g]=+(a[d][g]-((g%2)?c:f)).toFixed(3)}}}else{b[d]=a[d]}switch(b[d][0]){case"z":break;case"h":c+=b[d][b[d].length-1];break;case"v":f+=b[d][b[d].length-1];break;default:c+=b[d][b[d].length-2];f+=b[d][b[d].length-1]}}b.toString=a.toString;return b};Raphael.pathToAbsolute=function(a){var b=[];if(typeof a=="string"){a=this.parsePathString(a)}var c=0,f=0,e=0;if(a[0][0]=="M"){c=+a[0][1];f=+a[0][2];e++;b[0]=a[0]}for(var d=e,h=a.length;d<h;d++){b[d]=[];if(a[d][0]!=a[d][0].toUpperCase()){b[d][0]=a[d][0].toUpperCase();switch(b[d][0]){case"A":b[d][1]=a[d][1];b[d][2]=a[d][2];b[d][3]=0;b[d][4]=a[d][4];b[d][5]=a[d][5];b[d][6]=+(a[d][6]+c).toFixed(3);b[d][7]=+(a[d][7]+f).toFixed(3);break;case"V":b[d][1]=+a[d][1]+f;break;default:for(var g=1,j=a[d].length;g<j;g++){b[d][g]=+a[d][g]+((g%2)?c:f)}}}else{b[d]=a[d]}switch(b[d][0]){case"Z":break;case"H":c=b[d][1];break;case"V":f=b[d][1];break;default:c=b[d][b[d].length-2];f=b[d][b[d].length-1]}}b.toString=a.toString;return b};Raphael.pathEqualiser=function(g,j){var i=[this.pathToAbsolute(this.parsePathString(g)),this.pathToAbsolute(this.parsePathString(j))],k=[{x:0,y:0,bx:0,by:0,X:0,Y:0},{x:0,y:0,bx:0,by:0,X:0,Y:0}],m=function(a,b){if(!a){return["U"]}switch(a[0]){case"M":b.X=a[1];b.Y=a[2];break;case"S":var c=b.x+(b.x-(b.bx||b.x));var f=b.y+(b.y-(b.by||b.y));a=["C",c,f,a[1],a[2],a[3],a[4]];break;case"T":var c=b.x+(b.x-(b.bx||b.x));var f=b.y+(b.y-(b.by||b.y));a=["Q",c,f,a[1],a[2]];break;case"H":a=["L",a[1],b.y];break;case"V":a=["L",b.x,a[1]];break;case"Z":a=["L",b.X,b.Y];break}return a},o=function(a,b,c){if(i[a][c][0]=="M"&&i[b][c][0]!="M"){i[b].splice(c,0,["M",k[b].x,k[b].y]);k[a].bx=i[a][c][i[a][c].length-4]||0;k[a].by=i[a][c][i[a][c].length-3]||0;k[a].x=i[a][c][i[a][c].length-2];k[a].y=i[a][c][i[a][c].length-1];return true}else if(i[a][c][0]=="L"&&i[b][c][0]=="C"){i[a][c]=["C",k[a].x,k[a].y,i[a][c][1],i[a][c][2],i[a][c][1],i[a][c][2]]}else if(i[a][c][0]=="L"&&i[b][c][0]=="Q"){i[a][c]=["Q",i[a][c][1],i[a][c][2],i[a][c][1],i[a][c][2]]}else if(i[a][c][0]=="Q"&&i[b][c][0]=="C"){var f=i[b][c][i[b][c].length-2];var e=i[b][c][i[b][c].length-1];i[b].splice(c+1,0,["Q",f,e,f,e]);i[a].splice(c,0,["C",k[a].x,k[a].y,k[a].x,k[a].y,k[a].x,k[a].y]);c++;k[b].bx=i[b][c][i[b][c].length-4]||0;k[b].by=i[b][c][i[b][c].length-3]||0;k[b].x=i[b][c][i[b][c].length-2];k[b].y=i[b][c][i[b][c].length-1];return true}else if(i[a][c][0]=="A"&&i[b][c][0]=="C"){var f=i[b][c][i[b][c].length-2];var e=i[b][c][i[b][c].length-1];i[b].splice(c+1,0,["A",0,0,i[a][c][3],i[a][c][4],i[a][c][5],f,e]);i[a].splice(c,0,["C",k[a].x,k[a].y,k[a].x,k[a].y,k[a].x,k[a].y]);c++;k[b].bx=i[b][c][i[b][c].length-4]||0;k[b].by=i[b][c][i[b][c].length-3]||0;k[b].x=i[b][c][i[b][c].length-2];k[b].y=i[b][c][i[b][c].length-1];return true}else if(i[a][c][0]=="U"){i[a][c][0]=i[b][c][0];for(var d=1,h=i[b][c].length;d<h;d++){i[a][c][d]=(d%2)?k[a].x:k[a].y}}return false};for(var l=0;l<Math.max(i[0].length,i[1].length);l++){i[0][l]=m(i[0][l],k[0]);i[1][l]=m(i[1][l],k[1]);if(i[0][l][0]!=i[1][l][0]&&(o(0,1,l)||o(1,0,l))){continue}k[0].bx=i[0][l][i[0][l].length-4]||0;k[0].by=i[0][l][i[0][l].length-3]||0;k[0].x=i[0][l][i[0][l].length-2];k[0].y=i[0][l][i[0][l].length-1];k[1].bx=i[1][l][i[1][l].length-4]||0;k[1].by=i[1][l][i[1][l].length-3]||0;k[1].x=i[1][l][i[1][l].length-2];k[1].y=i[1][l][i[1][l].length-1]}return i};function UUID(){this.id=this.createUUID()}UUID.prototype.valueOf=function(){return this.id};UUID.prototype.toString=function(){return this.id};UUID.prototype.createUUID=function(){var a=new Date(1582,10,15,0,0,0,0);var b=new Date();var c=b.getTime()-a.getTime();var f='-';var e=UUID.getIntegerBits(c,0,31);var d=UUID.getIntegerBits(c,32,47);var h=UUID.getIntegerBits(c,48,59)+'1';var g=UUID.getIntegerBits(UUID.rand(4095),0,7);var j=UUID.getIntegerBits(UUID.rand(4095),0,7);var i=UUID.getIntegerBits(UUID.rand(8191),0,7)+UUID.getIntegerBits(UUID.rand(8191),8,15)+UUID.getIntegerBits(UUID.rand(8191),0,7)+UUID.getIntegerBits(UUID.rand(8191),8,15)+UUID.getIntegerBits(UUID.rand(8191),0,15);return e+f+d+f+h+f+g+j+f+i};UUID.getIntegerBits=function(a,b,c){var f=UUID.returnBase(a,16);var e=new Array();var d='';var h=0;for(h=0;h<f.length;h++){e.push(f.substring(h,h+1))}for(h=Math.floor(b/4);h<=Math.floor(c/4);h++){if(!e[h]||e[h]=='')d+='0';else d+=e[h]}return d};UUID.returnBase=function(a,b){return(a).toString(b).toUpperCase()};UUID.rand=function(a){return Math.floor(Math.random()*(a+1))};