/*
  Credit & thanks to Javascript creators, including:

  Copyright (c) 2007-2009, Scout Labs Inc.
*/

/*
 * Raphael 1.2 - JavaScript Vector Library
 *
 * Copyright (c) 2008 - 2009 Dmitry Baranovskiy (http://raphaeljs.com)
 * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.
 */
window.Raphael=(function(){var _1=/[, ]+/,_2=document,_3=window,_4={was:"Raphael" in _3,is:_3.Raphael},R=function(){if(R.is(arguments[0],"array")){var a=arguments[0],_7=_8[_9](R,a.splice(0,3+R.is(a[0],nu))),_b=_7.set();for(var i=0,ii=a[_e];i<ii;i++){var j=a[i]||{};({circle:1,rect:1,path:1,ellipse:1,text:1,image:1})[has](j.type)&&_b[_11](_7[j.type]().attr(j));}return _b;}return _8[_9](R,arguments);},_12="appendChild",_9="apply",_13="concat",E="",_15=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup"],has="hasOwnProperty",_16=/^\[object\s+|\]$/gi,_17="join",_e="length",_18="prototype",_19=String[_18].toLowerCase,_1a=Math.max,_1b=Math.min,nu="number",_1c="toString",_1d=Object[_18][_1c],_1e={},pow=Math.pow,_11="push",rg=/^(?=[\da-f]$)/,_21=/^url\(['"]?([^\)]+)['"]?\)$/i,_22=Math.round,S=" ",_24="setAttribute",_25="split",_26=parseFloat,_27=parseInt,_28=String[_18].toUpperCase,_29={"clip-rect":"0 0 10e9 10e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:"10px \"Arial\"","font-family":"\"Arial\"","font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/",opacity:1,path:"M0,0",r:0,rotation:0,rx:0,ry:0,scale:"1 1",src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",translation:"0 0",width:0,x:0,y:0},_2a={"clip-rect":"csv",cx:nu,cy:nu,fill:"colour","fill-opacity":nu,"font-size":nu,height:nu,opacity:nu,path:"path",r:nu,rotation:"csv",rx:nu,ry:nu,scale:"csv",stroke:"colour","stroke-opacity":nu,"stroke-width":nu,translation:"csv",width:nu,x:nu,y:nu},rp="replace";R.version="1.2.2";R.type=(_3.SVGAngle||_2.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML");R.svg=!(R.vml=R.type=="VML");R._id=0;R._oid=0;R.fn={};R.is=function(o,_2d){_2d=_19.call(_2d);return ((_2d=="object"||_2d=="undefined")&&typeof o==_2d)||(o==null&&_2d=="null")||_19.call(_1d.call(o)[rp](_16,E))==_2d;};R.setWindow=function(_2e){_3=_2e;_2=_3.document;};var _2f=function(_30){if(R.vml){var _31=/^\s+|\s+$/g;_2f=cacher(function(_32){var bod;_32=(_32+E).replace(_31,E);try{var _34=new ActiveXObject("htmlfile");_34.write("<body>");_34.close();bod=_34.body;}catch(e){bod=createPopup().document.body;}var _35=bod.createTextRange();try{bod.style.color=_32;var _36=_35.queryCommandValue("ForeColor");_36=((_36&255)<<16)|(_36&65280)|((_36&16711680)>>>16);return "#"+("000000"+_36[_1c](16)).slice(-6);}catch(e){return "none";}});}else{var i=_2.createElement("i");i.className="Raphaël Colour Picker";i.style.cssText="display:none";_2.body[_12](i);_2f=cacher(function(_38){i.style.color=_38;return _2.defaultView.getComputedStyle(i,E).getPropertyValue("color");});}return _2f(_30);};R.hsb2rgb=cacher(function(hue,_3a,_3b){if(R.is(hue,"object")&&"h" in hue&&"s" in hue&&"b" in hue){_3b=hue.b;_3a=hue.s;hue=hue.h;}var red,_3d,_3e;if(_3b==0){return {r:0,g:0,b:0,hex:"#000"};}if(hue>1||_3a>1||_3b>1){hue/=255;_3a/=255;_3b/=255;}var i=~~(hue*6),f=(hue*6)-i,p=_3b*(1-_3a),q=_3b*(1-(_3a*f)),t=_3b*(1-(_3a*(1-f)));red=[_3b,q,p,p,t,_3b,_3b][i];_3d=[t,_3b,_3b,q,p,p,t][i];_3e=[p,p,t,_3b,_3b,q,p][i];red*=255;_3d*=255;_3e*=255;var rgb={r:red,g:_3d,b:_3e},r=(~~red)[_1c](16),g=(~~_3d)[_1c](16),b=(~~_3e)[_1c](16);r=r[rp](rg,"0");g=g[rp](rg,"0");b=b[rp](rg,"0");rgb.hex="#"+r+g+b;return rgb;},R);R.rgb2hsb=cacher(function(red,_49,_4a){if(R.is(red,"object")&&"r" in red&&"g" in red&&"b" in red){_4a=red.b;_49=red.g;red=red.r;}if(R.is(red,"string")){var clr=R.getRGB(red);red=clr.r;_49=clr.g;_4a=clr.b;}if(red>1||_49>1||_4a>1){red/=255;_49/=255;_4a/=255;}var max=_1a(red,_49,_4a),min=_1b(red,_49,_4a),hue,_4f,_50=max;if(min==max){return {h:0,s:0,b:max};}else{var _51=(max-min);_4f=_51/max;if(red==max){hue=(_49-_4a)/_51;}else{if(_49==max){hue=2+((_4a-red)/_51);}else{hue=4+((red-_49)/_51);}}hue/=6;hue<0&&hue++;hue>1&&hue--;}return {h:hue,s:_4f,b:_50};},R);var p2s=/,?([achlmqrstvxz]),?/gi;R._path2string=function(){return this.join(",")[rp](p2s,"$1");};function cacher(f,_54,_55){function newf(){var arg=Array[_18].slice.call(arguments,0),_57=arg[_17]("►"),_58=newf.cache=newf.cache||{},_59=newf.count=newf.count||[];if(_58[has](_57)){return _55?_55(_58[_57]):_58[_57];}_59[_e]>=1000&&delete _58[_59.shift()];_59[_11](_57);_58[_57]=f[_9](_54,arg);return _55?_55(_58[_57]):_58[_57];};return newf;};R.getRGB=cacher(function(_5a){if(!_5a||!!((_5a+E).indexOf("-")+1)){return {r:-1,g:-1,b:-1,hex:"none",error:1};}_5a=_5a+E;if(_5a=="none"){return {r:-1,g:-1,b:-1,hex:"none"};}!({hs:1,rg:1})[has](_5a.substring(0,2))&&(_5a=_2f(_5a));var res,red,_5d,_5e,rgb=_5a.match(/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgb\(\s*([\d\.]+\s*,\s*[\d\.]+\s*,\s*[\d\.]+)\s*\)|rgb\(\s*([\d\.]+%\s*,\s*[\d\.]+%\s*,\s*[\d\.]+%)\s*\)|hs[bl]\(\s*([\d\.]+\s*,\s*[\d\.]+\s*,\s*[\d\.]+)\s*\)|hs[bl]\(\s*([\d\.]+%\s*,\s*[\d\.]+%\s*,\s*[\d\.]+%)\s*\))\s*$/i);if(rgb){if(rgb[2]){_5e=_27(rgb[2].substring(5),16);_5d=_27(rgb[2].substring(3,5),16);red=_27(rgb[2].substring(1,3),16);}if(rgb[3]){_5e=_27(rgb[3].substring(3)+rgb[3].substring(3),16);_5d=_27(rgb[3].substring(2,3)+rgb[3].substring(2,3),16);red=_27(rgb[3].substring(1,2)+rgb[3].substring(1,2),16);}if(rgb[4]){rgb=rgb[4][_25](/\s*,\s*/);red=_26(rgb[0]);_5d=_26(rgb[1]);_5e=_26(rgb[2]);}if(rgb[5]){rgb=rgb[5][_25](/\s*,\s*/);red=_26(rgb[0])*2.55;_5d=_26(rgb[1])*2.55;_5e=_26(rgb[2])*2.55;}if(rgb[6]){rgb=rgb[6][_25](/\s*,\s*/);red=_26(rgb[0]);_5d=_26(rgb[1]);_5e=_26(rgb[2]);return R.hsb2rgb(red,_5d,_5e);}if(rgb[7]){rgb=rgb[7][_25](/\s*,\s*/);red=_26(rgb[0])*2.55;_5d=_26(rgb[1])*2.55;_5e=_26(rgb[2])*2.55;return R.hsb2rgb(red,_5d,_5e);}rgb={r:red,g:_5d,b:_5e};var r=(~~red)[_1c](16),g=(~~_5d)[_1c](16),b=(~~_5e)[_1c](16);r=r[rp](rg,"0");g=g[rp](rg,"0");b=b[rp](rg,"0");rgb.hex="#"+r+g+b;return rgb;}return {r:-1,g:-1,b:-1,hex:"none",error:1};},R);R.getColor=function(_63){var _64=this.getColor.start=this.getColor.start||{h:0,s:1,b:_63||0.75},rgb=this.hsb2rgb(_64.h,_64.s,_64.b);_64.h+=0.075;if(_64.h>1){_64.h=0;_64.s-=0.2;_64.s<=0&&(this.getColor.start={h:0,s:1,b:_64.b});}return rgb.hex;};R.getColor.reset=function(){delete this.start;};R.parsePathString=cacher(function(_66){if(!_66){return null;}var _67={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},_68=[];if(R.is(_66,"array")&&R.is(_66[0],"array")){_68=pathClone(_66);}if(!_68[_e]){(_66+E)[rp](/([achlmqstvz])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?\s*,?\s*)+)/ig,function(a,b,c){var _6c=[],_6d=_19.call(b);c[rp](/(-?\d*\.?\d*(?:e[-+]?\d+)?)\s*,?\s*/ig,function(a,b){b&&_6c[_11](+b);});while(_6c[_e]>=_67[_6d]){_68[_11]([b][_13](_6c.splice(0,_67[_6d])));if(!_67[_6d]){break;}}});}_68[_1c]=R._path2string;return _68;});var _70=cacher(function(_71){if(!_71){return {x:0,y:0,width:0,height:0};}_71=_72(_71);var x=0,y=0,X=[],Y=[];for(var i=0,ii=_71[_e];i<ii;i++){if(_71[i][0]=="M"){x=_71[i][1];y=_71[i][2];X[_11](x);Y[_11](y);}else{var dim=_7a(x,y,_71[i][1],_71[i][2],_71[i][3],_71[i][4],_71[i][5],_71[i][6]);X=X[_13](dim.min.x,dim.max.x);Y=Y[_13](dim.min.y,dim.max.y);}}var _7b=_1b[_9](0,X),_7c=_1b[_9](0,Y);return {x:_7b,y:_7c,width:_1a[_9](0,X)-_7b,height:_1a[_9](0,Y)-_7c};}),_7d=function(_7e){var res=[];if(!R.is(_7e,"array")||!R.is(_7e&&_7e[0],"array")){_7e=R.parsePathString(_7e);}for(var i=0,ii=_7e[_e];i<ii;i++){res[i]=[];for(var j=0,jj=_7e[i][_e];j<jj;j++){res[i][j]=_7e[i][j];}}res[_1c]=R._path2string;return res;},_84=cacher(function(_85){if(!R.is(_85,"array")||!R.is(_85&&_85[0],"array")){_85=R.parsePathString(_85);}var res=[],x=0,y=0,mx=0,my=0,_8b=0;if(_85[0][0]=="M"){x=_85[0][1];y=_85[0][2];mx=x;my=y;_8b++;res[_11](["M",x,y]);}for(var i=_8b,ii=_85[_e];i<ii;i++){var r=res[i]=[],pa=_85[i];if(pa[0]!=_19.call(pa[0])){r[0]=_19.call(pa[0]);switch(r[0]){case "a":r[1]=pa[1];r[2]=pa[2];r[3]=pa[3];r[4]=pa[4];r[5]=pa[5];r[6]=+(pa[6]-x).toFixed(3);r[7]=+(pa[7]-y).toFixed(3);break;case "v":r[1]=+(pa[1]-y).toFixed(3);break;case "m":mx=pa[1];my=pa[2];default:for(var j=1,jj=pa[_e];j<jj;j++){r[j]=+(pa[j]-((j%2)?x:y)).toFixed(3);}}}else{r=res[i]=[];if(pa[0]=="m"){mx=pa[1]+x;my=pa[2]+y;}for(var k=0,kk=pa[_e];k<kk;k++){res[i][k]=pa[k];}}var len=res[i][_e];switch(res[i][0]){case "z":x=mx;y=my;break;case "h":x+=+res[i][len-1];break;case "v":y+=+res[i][len-1];break;default:x+=+res[i][len-2];y+=+res[i][len-1];}}res[_1c]=R._path2string;return res;},0,_7d),_95=cacher(function(_96){if(!R.is(_96,"array")||!R.is(_96&&_96[0],"array")){_96=R.parsePathString(_96);}var res=[],x=0,y=0,mx=0,my=0,_9c=0;if(_96[0][0]=="M"){x=+_96[0][1];y=+_96[0][2];mx=x;my=y;_9c++;res[0]=["M",x,y];}for(var i=_9c,ii=_96[_e];i<ii;i++){var r=res[i]=[],pa=_96[i];if(pa[0]!=_28.call(pa[0])){r[0]=_28.call(pa[0]);switch(r[0]){case "A":r[1]=pa[1];r[2]=pa[2];r[3]=pa[3];r[4]=pa[4];r[5]=pa[5];r[6]=+(pa[6]+x);r[7]=+(pa[7]+y);break;case "V":r[1]=+pa[1]+y;break;case "H":r[1]=+pa[1]+x;break;case "M":mx=+pa[1]+x;my=+pa[2]+y;default:for(var j=1,jj=pa[_e];j<jj;j++){r[j]=+pa[j]+((j%2)?x:y);}}}else{for(var k=0,kk=pa[_e];k<kk;k++){res[i][k]=pa[k];}}switch(r[0]){case "Z":x=mx;y=my;break;case "H":x=r[1];break;case "V":y=r[1];break;default:x=res[i][res[i][_e]-2];y=res[i][res[i][_e]-1];}}res[_1c]=R._path2string;return res;},null,_7d),l2c=function(x1,y1,x2,y2){return [x1,y1,x2,y2,x2,y2];},q2c=function(x1,y1,ax,ay,x2,y2){var _13=1/3,_23=2/3;return [_13*x1+_23*ax,_13*y1+_23*ay,_13*x2+_23*ax,_13*y2+_23*ay,x2,y2];},a2c=function(x1,y1,rx,ry,_b8,_b9,_ba,x2,y2,_bd){var PI=Math.PI,_bf=PI*120/180,rad=PI/180*(+_b8||0),res=[],xy,_c3=cacher(function(x,y,rad){var X=x*Math.cos(rad)-y*Math.sin(rad),Y=x*Math.sin(rad)+y*Math.cos(rad);return {x:X,y:Y};});if(!_bd){xy=_c3(x1,y1,-rad);x1=xy.x;y1=xy.y;xy=_c3(x2,y2,-rad);x2=xy.x;y2=xy.y;var cos=Math.cos(PI/180*_b8),sin=Math.sin(PI/180*_b8),x=(x1-x2)/2,y=(y1-y2)/2;rx=_1a(rx,Math.abs(x));ry=_1a(ry,Math.abs(y));var rx2=rx*rx,ry2=ry*ry,k=(_b9==_ba?-1:1)*Math.sqrt(Math.abs((rx2*ry2-rx2*y*y-ry2*x*x)/(rx2*y*y+ry2*x*x))),cx=k*rx*y/ry+(x1+x2)/2,cy=k*-ry*x/rx+(y1+y2)/2,f1=Math.asin((y1-cy)/ry),f2=Math.asin((y2-cy)/ry);f1=x1<cx?PI-f1:f1;f2=x2<cx?PI-f2:f2;f1<0&&(f1=PI*2+f1);f2<0&&(f2=PI*2+f2);if(_ba&&f1>f2){f1=f1-PI*2;}if(!_ba&&f2>f1){f2=f2-PI*2;}}else{f1=_bd[0];f2=_bd[1];cx=_bd[2];cy=_bd[3];}var df=f2-f1;if(Math.abs(df)>_bf){var _d5=f2,_d6=x2,_d7=y2;f2=f1+_bf*(_ba&&f2>f1?1:-1);x2=cx+rx*Math.cos(f2);y2=cy+ry*Math.sin(f2);res=a2c(x2,y2,rx,ry,_b8,0,_ba,_d6,_d7,[f2,_d5,cx,cy]);}df=f2-f1;var c1=Math.cos(f1),s1=Math.sin(f1),c2=Math.cos(f2),s2=Math.sin(f2),t=Math.tan(df/4),hx=4/3*rx*t,hy=4/3*ry*t,m1=[x1,y1],m2=[x1+hx*s1,y1-hy*c1],m3=[x2+hx*s2,y2-hy*c2],m4=[x2,y2];m2[0]=2*m1[0]-m2[0];m2[1]=2*m1[1]-m2[1];if(_bd){return [m2,m3,m4][_13](res);}else{res=[m2,m3,m4][_13](res)[_17](",")[_25](",");var _e3=[];for(var i=0,ii=res[_e];i<ii;i++){_e3[i]=i%2?_c3(res[i-1],res[i],rad).y:_c3(res[i],res[i+1],rad).x;}return _e3;}},_e6=cacher(function(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y,t){var x=pow(1-t,3)*p1x+pow(1-t,2)*3*t*c1x+(1-t)*3*t*t*c2x+pow(t,3)*p2x,y=pow(1-t,3)*p1y+pow(1-t,2)*3*t*c1y+(1-t)*3*t*t*c2y+pow(t,3)*p2y,mx=p1x+2*t*(c1x-p1x)+t*t*(c2x-2*c1x+p1x),my=p1y+2*t*(c1y-p1y)+t*t*(c2y-2*c1y+p1y),nx=c1x+2*t*(c2x-c1x)+t*t*(p2x-2*c2x+c1x),ny=c1y+2*t*(c2y-c1y)+t*t*(p2y-2*c2y+c1y),ax=(1-t)*p1x+t*c1x,ay=(1-t)*p1y+t*c1y,cx=(1-t)*c2x+t*p2x,cy=(1-t)*c2y+t*p2y;return {x:x,y:y,m:{x:mx,y:my},n:{x:nx,y:ny},start:{x:ax,y:ay},end:{x:cx,y:cy}};}),_7a=cacher(function(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y){var a=(c2x-2*c1x+p1x)-(p2x-2*c2x+c1x),b=2*(c1x-p1x)-2*(c2x-c1x),c=p1x-c1x,t1=(-b+Math.sqrt(b*b-4*a*c))/2/a,t2=(-b-Math.sqrt(b*b-4*a*c))/2/a,y=[p1y,p2y],x=[p1x,p2x],dot1=_e6(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y,t1>0&&t1<1?t1:0),dot2=_e6(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y,t2>0&&t2<1?t2:0);x=x[_13](dot1.x,dot2.x);y=y[_13](dot1.y,dot2.y);a=(c2y-2*c1y+p1y)-(p2y-2*c2y+c1y);b=2*(c1y-p1y)-2*(c2y-c1y);c=p1y-c1y;t1=(-b+Math.sqrt(b*b-4*a*c))/2/a;t2=(-b-Math.sqrt(b*b-4*a*c))/2/a;dot1=_e6(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y,t1>0&&t1<1?t1:0);dot2=_e6(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y,t2>0&&t2<1?t2:0);x=x[_13](dot1.x,dot2.x);y=y[_13](dot1.y,dot2.y);return {min:{x:_1b[_9](0,x),y:_1b[_9](0,y)},max:{x:_1a[_9](0,x),y:_1a[_9](0,y)}};}),_72=cacher(function(path,_10c){var p=_95(path),p2=_10c&&_95(_10c),_10f={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},_110={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},_111=function(path,d){var nx,ny;if(!path){return ["C",d.x,d.y,d.x,d.y,d.x,d.y];}!(path[0] in {T:1,Q:1})&&(d.qx=d.qy=null);switch(path[0]){case "M":d.X=path[1];d.Y=path[2];break;case "A":path=["C"][_13](a2c[_9](0,[d.x,d.y][_13](path.slice(1))));break;case "S":nx=d.x+(d.x-(d.bx||d.x));ny=d.y+(d.y-(d.by||d.y));path=["C",nx,ny][_13](path.slice(1));break;case "T":d.qx=d.x+(d.x-(d.qx||d.x));d.qy=d.y+(d.y-(d.qy||d.y));path=["C"][_13](q2c(d.x,d.y,d.qx,d.qy,path[1],path[2]));break;case "Q":d.qx=path[1];d.qy=path[2];path=["C"][_13](q2c(d.x,d.y,path[1],path[2],path[3],path[4]));break;case "L":path=["C"][_13](l2c(d.x,d.y,path[1],path[2]));break;case "H":path=["C"][_13](l2c(d.x,d.y,path[1],d.y));break;case "V":path=["C"][_13](l2c(d.x,d.y,d.x,path[1]));break;case "Z":path=["C"][_13](l2c(d.x,d.y,d.X,d.Y));break;}return path;},_116=function(pp,i){if(pp[i][_e]>7){pp[i].shift();var pi=pp[i];while(pi[_e]){pp.splice(i++,0,["C"][_13](pi.splice(0,6)));}pp.splice(i,1);ii=_1a(p[_e],p2&&p2[_e]||0);}},fixM=function(_11c,_11d,a1,a2,i){if(_11c&&_11d&&_11c[i][0]=="M"&&_11d[i][0]!="M"){_11d.splice(i,0,["M",a2.x,a2.y]);a1.bx=0;a1.by=0;a1.x=_11c[i][1];a1.y=_11c[i][2];ii=_1a(p[_e],p2&&p2[_e]||0);}};for(var i=0,ii=_1a(p[_e],p2&&p2[_e]||0);i<ii;i++){p[i]=_111(p[i],_10f);_116(p,i);p2&&(p2[i]=_111(p2[i],_110));p2&&_116(p2,i);fixM(p,p2,_10f,_110,i);fixM(p2,p,_110,_10f,i);var seg=p[i],seg2=p2&&p2[i],_124=seg[_e],_125=p2&&seg2[_e];_10f.x=seg[_124-2];_10f.y=seg[_124-1];_10f.bx=_26(seg[_124-4])||_10f.x;_10f.by=_26(seg[_124-3])||_10f.y;_110.bx=p2&&(_26(seg2[_125-4])||_110.x);_110.by=p2&&(_26(seg2[_125-3])||_110.y);_110.x=p2&&seg2[_125-2];_110.y=p2&&seg2[_125-1];}return p2?[p,p2]:p;},null,_7d),_126=cacher(function(_127){var dots=[];for(var i=0,ii=_127[_e];i<ii;i++){var dot={},par=_127[i].match(/^([^:]*):?([\d\.]*)/);dot.color=R.getRGB(par[1]);if(dot.color.error){return null;}dot.color=dot.color.hex;par[2]&&(dot.offset=par[2]+"%");dots[_11](dot);}for(var i=1,ii=dots[_e]-1;i<ii;i++){if(!dots[i].offset){var _12d=_26(dots[i-1].offset||0),end=0;for(var j=i+1;j<ii;j++){if(dots[j].offset){end=dots[j].offset;break;}}if(!end){end=100;j=ii;}end=_26(end);var d=(end-_12d)/(j-i+1);for(;i<j;i++){_12d+=d;dots[i].offset=_12d+"%";}}}return dots;}),_131=function(){var _132,x,y,_135,_136;if(R.is(arguments[0],"string")||R.is(arguments[0],"object")){if(R.is(arguments[0],"string")){_132=_2.getElementById(arguments[0]);}else{_132=arguments[0];}if(_132.tagName){if(arguments[1]==null){return {container:_132,width:_132.style.pixelWidth||_132.offsetWidth,height:_132.style.pixelHeight||_132.offsetHeight};}else{return {container:_132,width:arguments[1],height:arguments[2]};}}}else{if(R.is(arguments[0],nu)&&arguments[_e]>3){return {container:1,x:arguments[0],y:arguments[1],width:arguments[2],height:arguments[3]};}}},_137=function(con,add){var that=this;for(var prop in add){if(add[has](prop)&&!(prop in con)){switch(typeof add[prop]){case "function":(function(f){con[prop]=con===that?f:function(){return f[_9](that,arguments);};})(add[prop]);break;case "object":con[prop]=con[prop]||{};_137.call(this,con[prop],add[prop]);break;default:con[prop]=add[prop];break;}}}},tear=function(el,_13f){el==_13f.top&&(_13f.top=el.prev);el==_13f.bottom&&(_13f.bottom=el.next);el.next&&(el.next.prev=el.prev);el.prev&&(el.prev.next=el.next);},_140=function(el,_142){tear(el,_142);el.next=null;el.prev=_142.top;_142.top.next=el;_142.top=el;},_143=function(el,_145){tear(el,_145);el.next=_145.bottom;el.prev=null;_145.bottom.prev=el;_145.bottom=el;},_146=function(el,el2,_149){tear(el,_149);el2==_149.top&&(_149.top=el);el2.next&&(el2.next.prev=el);el.next=el2.next;el.prev=el2;el2.next=el;},_14a=function(el,el2,_14d){tear(el,_14d);el2==_14d.bottom&&(_14d.bottom=el);el2.prev&&(el2.prev.next=el);el.prev=el2.prev;el2.prev=el;el.next=el2;},_14e=function(x,y){if(x==null){return {x:this._.tx,y:this._.ty};}this._.tx+=+x;this._.ty+=+y;switch(this.type){case "circle":case "ellipse":this.attr({cx:+x+this.attrs.cx,cy:+y+this.attrs.cy});break;case "rect":case "image":case "text":this.attr({x:+x+this.attrs.x,y:+y+this.attrs.y});break;case "path":var path=_84(this.attrs.path);path[0][1]+=+x;path[0][2]+=+y;this.attr({path:path});break;}return this;};if(R.svg){_1e.svgns="http://www.w3.org/2000/svg";_1e.xlink="http://www.w3.org/1999/xlink";var _22=function(num){return +num+(~~num===num)*0.5;},_153=function(path){for(var i=0,ii=path[_e];i<ii;i++){if(_19.call(path[i][0])!="a"){for(var j=1,jj=path[i][_e];j<jj;j++){path[i][j]=_22(path[i][j]);}}else{path[i][6]=_22(path[i][6]);path[i][7]=_22(path[i][7]);}}return path;},$=function(el,attr){if(attr){for(var key in attr){if(attr[has](key)){el[_24](key,attr[key]);}}}else{return _2.createElementNS(_1e.svgns,el);}};R[_1c]=function(){return "Your browser supports SVG.\nYou are running Raphaël "+this.version;};var _15d=function(_15e,SVG){var el=$("path");SVG.canvas&&SVG.canvas[_12](el);var p=new _162(el,SVG);p.type="path";_163(p,{fill:"none",stroke:"#000",path:_15e});return p;};var _164=function(o,_166,SVG){var type="linear",fx=0.5,fy=0.5,s=o.style;_166=(_166+E)[rp](/^r(?:\(([^,]+?)\s*,\s*([^\)]+?)\))?/,function(all,_fx,_fy){type="radial";if(_fx&&_fy){fx=_26(_fx);fy=_26(_fy);if(pow(fx-0.5,2)+pow(fy-0.5,2)>0.25){fy=Math.sqrt(0.25-pow(fx-0.5,2))+0.5;}}return E;});_166=_166[_25](/\s*\-\s*/);if(type=="linear"){var _16f=_166.shift();_16f=-_26(_16f);if(isNaN(_16f)){return null;}var _170=[0,0,Math.cos(_16f*Math.PI/180),Math.sin(_16f*Math.PI/180)],max=1/(_1a(Math.abs(_170[2]),Math.abs(_170[3]))||1);_170[2]*=max;_170[3]*=max;if(_170[2]<0){_170[0]=-_170[2];_170[2]=0;}if(_170[3]<0){_170[1]=-_170[3];_170[3]=0;}}var dots=_126(_166);if(!dots){return null;}var el=$(type+"Gradient");el.id="r"+(R._id++)[_1c](36);type=="radial"?$(el,{fx:fx,fy:fy}):$(el,{x1:_170[0],y1:_170[1],x2:_170[2],y2:_170[3]});SVG.defs[_12](el);for(var i=0,ii=dots[_e];i<ii;i++){var stop=$("stop");$(stop,{offset:dots[i].offset?dots[i].offset:!i?"0%":"100%","stop-color":dots[i].color||"#fff"});el[_12](stop);}$(o,{fill:"url(#"+el.id+")",opacity:1,"fill-opacity":1});s.fill=E;s.opacity=1;s.fillOpacity=1;return 1;};var _177=function(o){var bbox=o.getBBox();$(o.pattern,{patternTransform:R.format("translate({0},{1})",bbox.x,bbox.y)});};var _163=function(o,_17b){var _17c={"":[0],"none":[0],"-":[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]},node=o.node,_17e=o.attrs,rot=o.rotate(),_180=function(o,_182){_182=_17c[_19.call(_182)];if(_182){var _183=o.attrs["stroke-width"]||"1",butt={round:_183,square:_183,butt:0}[o.attrs["stroke-linecap"]||_17b["stroke-linecap"]]||0,_185=[];var i=_182[_e];while(i--){_185[i]=_182[i]*_183+((i%2)?1:-1)*butt;}$(node,{"stroke-dasharray":_185[_17](",")});}};_17b[has]("rotation")&&(rot=_17b.rotation);var _187=(rot+E)[_25](_1);if(!(_187.length-1)){_187=null;}else{_187[1]=+_187[1];_187[2]=+_187[2];}_26(rot)&&o.rotate(0,true);for(var att in _17b){if(_17b[has](att)){if(!_29[has](att)){continue;}var _189=_17b[att];_17e[att]=_189;switch(att){case "rotation":o.rotate(_189,true);break;case "href":case "title":case "target":var pn=node.parentNode;if(_19.call(pn.tagName)!="a"){var hl=$("a");pn.insertBefore(hl,node);hl[_12](node);pn=hl;}pn.setAttributeNS(o.paper.xlink,att,_189);break;case "cursor":node.style.cursor=_189;break;case "clip-rect":var rect=(_189+E)[_25](_1);if(rect[_e]==4){o.clip&&o.clip.parentNode.parentNode.removeChild(o.clip.parentNode);var el=$("clipPath"),rc=$("rect");el.id="r"+(R._id++)[_1c](36);$(rc,{x:rect[0],y:rect[1],width:rect[2],height:rect[3]});el[_12](rc);o.paper.defs[_12](el);$(node,{"clip-path":"url(#"+el.id+")"});o.clip=rc;}if(!_189){var clip=_2.getElementById(node.getAttribute("clip-path")[rp](/(^url\(#|\)$)/g,E));clip&&clip.parentNode.removeChild(clip);$(node,{"clip-path":E});delete o.clip;}break;case "path":if(_189&&o.type=="path"){_17e.path=_153(_95(_189));$(node,{d:_17e.path});}break;case "width":node[_24](att,_189);if(_17e.fx){att="x";_189=_17e.x;}else{break;}case "x":if(_17e.fx){_189=-_17e.x-(_17e.width||0);}case "rx":if(att=="rx"&&o.type=="rect"){break;}case "cx":_187&&(att=="x"||att=="cx")&&(_187[1]+=_189-_17e[att]);node[_24](att,_22(_189));o.pattern&&_177(o);break;case "height":node[_24](att,_189);if(_17e.fy){att="y";_189=_17e.y;}else{break;}case "y":if(_17e.fy){_189=-_17e.y-(_17e.height||0);}case "ry":if(att=="ry"&&o.type=="rect"){break;}case "cy":_187&&(att=="y"||att=="cy")&&(_187[2]+=_189-_17e[att]);node[_24](att,_22(_189));o.pattern&&_177(o);break;case "r":if(o.type=="rect"){$(node,{rx:_189,ry:_189});}else{node[_24](att,_189);}break;case "src":if(o.type=="image"){node.setAttributeNS(o.paper.xlink,"href",_189);}break;case "stroke-width":node.style.strokeWidth=_189;node[_24](att,_189);if(_17e["stroke-dasharray"]){_180(o,_17e["stroke-dasharray"]);}break;case "stroke-dasharray":_180(o,_189);break;case "translation":var xy=(_189+E)[_25](_1);if(_187){_187[1]+=+xy[0];_187[2]+=+xy[1];}_14e.call(o,(+xy[0]+1||2)-1,(+xy[1]+1||2)-1);break;case "scale":var xy=(_189+E)[_25](_1);o.scale(+xy[0]||1,+xy[1]||+xy[0]||1,+xy[2]||null,+xy[3]||null);break;case "fill":var _191=(_189+E).match(_21);if(_191){var el=$("pattern"),ig=$("image");el.id="r"+(R._id++)[_1c](36);$(el,{x:0,y:0,patternUnits:"userSpaceOnUse"});$(ig,{x:0,y:0});ig.setAttributeNS(o.paper.xlink,"href",_191[1]);el[_12](ig);var img=_2.createElement("img");img.style.cssText="position:absolute;left:-9999em;top-9999em";img.onload=function(){$(el,{width:this.offsetWidth,height:this.offsetHeight});$(ig,{width:this.offsetWidth,height:this.offsetHeight});_2.body.removeChild(this);_1e.safari();};_2.body[_12](img);img.src=_191[1];o.paper.defs[_12](el);node.style.fill="url(#"+el.id+")";$(node,{fill:"url(#"+el.id+")"});o.pattern=el;o.pattern&&_177(o);break;}if(!R.getRGB(_189).error){delete _17b.gradient;delete _17e.gradient;!R.is(_17e.opacity,"undefined")&&R.is(_17b.opacity,"undefined")&&$(node,{opacity:_17e.opacity});!R.is(_17e["fill-opacity"],"undefined")&&R.is(_17b["fill-opacity"],"undefined")&&$(node,{"fill-opacity":_17e["fill-opacity"]});}else{if((({circle:1,ellipse:1})[has](o.type)||(_189+E).charAt()!="r")&&_164(node,_189,o.paper)){_17e.gradient=_189;_17e.fill="none";break;}}case "stroke":node[_24](att,R.getRGB(_189).hex);break;case "gradient":(({circle:1,ellipse:1})[has](o.type)||(_189+E).charAt()!="r")&&_164(node,_189,o.paper);break;case "opacity":case "fill-opacity":if(_17e.gradient){var _194=_2.getElementById(node.getAttribute("fill")[rp](/^url\(#|\)$/g,E));if(_194){var _195=_194.getElementsByTagName("stop");_195[_195[_e]-1][_24]("stop-opacity",_189);}break;}default:att=="font-size"&&(_189=_27(_189,10)+"px");var _196=att[rp](/(\-.)/g,function(w){return _28.call(w.substring(1));});node.style[_196]=_189;node[_24](att,_189);break;}}}_198(o,_17b);if(_187){o.rotate(_187.join(S));}else{_26(rot)&&o.rotate(rot,true);}};var _199=1.2;var _198=function(el,_19b){if(el.type!="text"||!(_19b[has]("text")||_19b[has]("font")||_19b[has]("font-size")||_19b[has]("x")||_19b[has]("y"))){return;}var a=el.attrs,node=el.node,_19e=node.firstChild?_27(_2.defaultView.getComputedStyle(node.firstChild,E).getPropertyValue("font-size"),10):10;if(_19b[has]("text")){a.text=_19b.text;while(node.firstChild){node.removeChild(node.firstChild);}var _19f=(_19b.text+E)[_25]("\n");for(var i=0,ii=_19f[_e];i<ii;i++){if(_19f[i]){var _1a2=$("tspan");i&&$(_1a2,{dy:_19e*_199,x:a.x});_1a2[_12](_2.createTextNode(_19f[i]));node[_12](_1a2);}}}else{var _19f=node.getElementsByTagName("tspan");for(var i=0,ii=_19f[_e];i<ii;i++){i&&$(_19f[i],{dy:_19e*_199,x:a.x});}}$(node,{y:a.y});var bb=el.getBBox(),dif=a.y-(bb.y+bb.height/2);dif&&isFinite(dif)&&$(node,{y:a.y+dif});};var _162=function(node,svg){var X=0,Y=0;this[0]=node;this.id=R._oid++;this.node=node;node.raphael=this;this.paper=svg;this.attrs=this.attrs||{};this.transformations=[];this._={tx:0,ty:0,rt:{deg:0,cx:0,cy:0},sx:1,sy:1};!svg.bottom&&(svg.bottom=this);this.prev=svg.top;svg.top&&(svg.top.next=this);svg.top=this;this.next=null;};_162[_18].rotate=function(deg,cx,cy){if(this.removed){return this;}if(deg==null){if(this._.rt.cx){return [this._.rt.deg,this._.rt.cx,this._.rt.cy][_17](S);}return this._.rt.deg;}var bbox=this.getBBox();deg=(deg+E)[_25](_1);if(deg[_e]-1){cx=_26(deg[1]);cy=_26(deg[2]);}deg=_26(deg[0]);if(cx!=null){this._.rt.deg=deg;}else{this._.rt.deg+=deg;}(cy==null)&&(cx=null);this._.rt.cx=cx;this._.rt.cy=cy;cx=cx==null?bbox.x+bbox.width/2:cx;cy=cy==null?bbox.y+bbox.height/2:cy;if(this._.rt.deg){this.transformations[0]=R.format("rotate({0} {1} {2})",this._.rt.deg,cx,cy);this.clip&&$(this.clip,{transform:R.format("rotate({0} {1} {2})",-this._.rt.deg,cx,cy)});}else{this.transformations[0]=E;this.clip&&$(this.clip,{transform:E});}$(this.node,{transform:this.transformations[_17](S)});return this;};_162[_18].hide=function(){!this.removed&&(this.node.style.display="none");return this;};_162[_18].show=function(){!this.removed&&(this.node.style.display="");return this;};_162[_18].remove=function(){if(this.removed){return;}tear(this,this.paper);this.node.parentNode.removeChild(this.node);for(var i in this){delete this[i];}this.removed=true;};_162[_18].getBBox=function(){if(this.removed){return this;}if(this.type=="path"){return _70(this.attrs.path);}if(this.node.style.display=="none"){this.show();var hide=true;}var bbox={};try{bbox=this.node.getBBox();}catch(e){}finally{bbox=bbox||{};}if(this.type=="text"){bbox={x:bbox.x,y:Infinity,width:0,height:0};for(var i=0,ii=this.node.getNumberOfChars();i<ii;i++){var bb=this.node.getExtentOfChar(i);(bb.y<bbox.y)&&(bbox.y=bb.y);(bb.y+bb.height-bbox.y>bbox.height)&&(bbox.height=bb.y+bb.height-bbox.y);(bb.x+bb.width-bbox.x>bbox.width)&&(bbox.width=bb.x+bb.width-bbox.x);}}hide&&this.hide();return bbox;};_162[_18].attr=function(){if(this.removed){return this;}if(arguments[_e]==1&&R.is(arguments[0],"string")){if(arguments[0]=="translation"){return _14e.call(this);}if(arguments[0]=="rotation"){return this.rotate();}if(arguments[0]=="scale"){return this.scale();}return this.attrs[arguments[0]];}if(arguments[_e]==1&&R.is(arguments[0],"array")){var _1b3={};for(var j in arguments[0]){if(arguments[0][has](j)){_1b3[arguments[0][j]]=this.attrs[arguments[0][j]];}}return _1b3;}if(arguments[_e]==2){var _1b5={};_1b5[arguments[0]]=arguments[1];_163(this,_1b5);}else{if(arguments[_e]==1&&R.is(arguments[0],"object")){_163(this,arguments[0]);}}return this;};_162[_18].toFront=function(){if(this.removed){return this;}this.node.parentNode[_12](this.node);var svg=this.paper;svg.top!=this&&_140(this,svg);return this;};_162[_18].toBack=function(){if(this.removed){return this;}if(this.node.parentNode.firstChild!=this.node){this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild);_143(this,this.paper);var svg=this.paper;}return this;};_162[_18].insertAfter=function(_1b8){if(this.removed){return this;}var svg=this.paper,node=_1b8.node;if(node.nextSibling){node.parentNode.insertBefore(this.node,node.nextSibling);}else{node.parentNode[_12](this.node);}_146(this,_1b8,this.paper);return this;};_162[_18].insertBefore=function(_1bb){if(this.removed){return this;}var node=_1bb.node;node.parentNode.insertBefore(this.node,node);_14a(this,_1bb,this.paper);return this;};var _1bd=function(svg,x,y,r){x=_22(x);y=_22(y);var el=$("circle");svg.canvas&&svg.canvas[_12](el);var res=new _162(el,svg);res.attrs={cx:x,cy:y,r:r,fill:"none",stroke:"#000"};res.type="circle";$(el,res.attrs);return res;};var _1c4=function(svg,x,y,w,h,r){x=_22(x);y=_22(y);var el=$("rect");svg.canvas&&svg.canvas[_12](el);var res=new _162(el,svg);res.attrs={x:x,y:y,width:w,height:h,r:r||0,rx:r||0,ry:r||0,fill:"none",stroke:"#000"};res.type="rect";$(el,res.attrs);return res;};var _1cd=function(svg,x,y,rx,ry){x=_22(x);y=_22(y);var el=$("ellipse");svg.canvas&&svg.canvas[_12](el);var res=new _162(el,svg);res.attrs={cx:x,cy:y,rx:rx,ry:ry,fill:"none",stroke:"#000"};res.type="ellipse";$(el,res.attrs);return res;};var _1d5=function(svg,src,x,y,w,h){var el=$("image");$(el,{x:x,y:y,width:w,height:h,preserveAspectRatio:"none"});el.setAttributeNS(svg.xlink,"href",src);svg.canvas&&svg.canvas[_12](el);var res=new _162(el,svg);res.attrs={x:x,y:y,width:w,height:h,src:src};res.type="image";return res;};var _1de=function(svg,x,y,text){var el=$("text");$(el,{x:x,y:y,"text-anchor":"middle"});svg.canvas&&svg.canvas[_12](el);var res=new _162(el,svg);res.attrs={x:x,y:y,"text-anchor":"middle",text:text,font:_29.font,stroke:"none",fill:"#000"};res.type="text";_163(res,res.attrs);return res;};var _1e5=function(_1e6,_1e7){this.width=_1e6||this.width;this.height=_1e7||this.height;this.canvas[_24]("width",this.width);this.canvas[_24]("height",this.height);return this;};var _8=function(){var con=_131[_9](null,arguments),_1e9=con&&con.container,x=con.x,y=con.y,_1ec=con.width,_1ed=con.height;if(!_1e9){throw new Error("SVG container not found.");}_1e.canvas=$("svg");var cnvs=_1e.canvas;_1e.width=_1ec||512;_1e.height=_1ed||342;cnvs[_24]("width",_1e.width);cnvs[_24]("height",_1e.height);if(_1e9==1){cnvs.style.cssText="position:absolute;left:"+x+"px;top:"+y+"px";_2.body[_12](cnvs);}else{if(_1e9.firstChild){_1e9.insertBefore(cnvs,_1e9.firstChild);}else{_1e9[_12](cnvs);}}_1e9={canvas:cnvs};for(var prop in _1e){if(_1e[has](prop)){_1e9[prop]=_1e[prop];}}_1e9.bottom=_1e9.top=null;_137.call(_1e9,_1e9,R.fn);_1e9.clear();_1e9.raphael=R;return _1e9;};_1e.clear=function(){var c=this.canvas;while(c.firstChild){c.removeChild(c.firstChild);}this.bottom=this.top=null;(this.desc=$("desc"))[_12](_2.createTextNode("Created with Raphaël"));c[_12](this.desc);c[_12](this.defs=$("defs"));};_1e.remove=function(){this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(var i in this){delete this[i];}};}if(R.vml){var _1f2=function(path){var _1f4=/[ahqtv]/ig,_1f5=_95;(path+E).match(_1f4)&&(_1f5=_72);_1f4=/[clmz]/g;if(_1f5==_95&&!(path+E).match(_1f4)){var map={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},_1f7=/([clmz]),?([^clmz]*)/gi,val=/-?[^,\s-]+/g;var res=(path+E)[rp](_1f7,function(all,_1fb,args){var vals=[];args[rp](val,function(_1fe){vals[_11](_22(_1fe));});return map[_1fb]+vals;});return res;}var pa=_1f5(path),p,res=[],r;for(var i=0,ii=pa[_e];i<ii;i++){p=pa[i];r=_19.call(pa[i][0]);r=="z"&&(r="x");for(var j=1,jj=p[_e];j<jj;j++){r+=_22(p[j])+(j!=jj-1?",":E);}res[_11](r);}return res[_17](S);};R[_1c]=function(){return "Your browser doesn’t support SVG. Falling down to VML.\nYou are running Raphaël "+this.version;};var _15d=function(_206,VML){var g=_209("group");g.style.cssText="position:absolute;left:0;top:0;width:"+VML.width+"px;height:"+VML.height+"px";g.coordsize=VML.coordsize;g.coordorigin=VML.coordorigin;var el=_209("shape"),ol=el.style;ol.width=VML.width+"px";ol.height=VML.height+"px";el.coordsize=this.coordsize;el.coordorigin=this.coordorigin;g[_12](el);var p=new _162(el,g,VML);p.isAbsolute=true;p.type="path";p.path=[];p.Path=E;_206&&_163(p,{fill:"none",stroke:"#000",path:_206});VML.canvas[_12](g);return p;};var _163=function(o,_20e){o.attrs=o.attrs||{};var node=o.node,a=o.attrs,s=node.style,xy,res=o;for(var par in _20e){if(_20e[has](par)){a[par]=_20e[par];}}_20e.href&&(node.href=_20e.href);_20e.title&&(node.title=_20e.title);_20e.target&&(node.target=_20e.target);_20e.cursor&&(s.cursor=_20e.cursor);if(_20e.path&&o.type=="path"){a.path=_20e.path;node.path=_1f2(a.path);}if(_20e.rotation!=null){o.rotate(_20e.rotation,true);}if(_20e.translation){xy=(_20e.translation+E)[_25](_1);_14e.call(o,xy[0],xy[1]);if(o._.rt.cx!=null){o._.rt.cx+=+xy[0];o._.rt.cy+=+xy[1];o.setBox(o.attrs,xy[0],xy[1]);}}if(_20e.scale){xy=(_20e.scale+E)[_25](_1);o.scale(+xy[0]||1,+xy[1]||+xy[0]||1,+xy[2]||null,+xy[3]||null);}if("clip-rect" in _20e){var rect=(_20e["clip-rect"]+E)[_25](_1);if(rect[_e]==4){rect[2]=+rect[2]+(+rect[0]);rect[3]=+rect[3]+(+rect[1]);var div=node.clipRect||_2.createElement("div"),_217=div.style,_218=node.parentNode;_217.clip=R.format("rect({1}px {2}px {3}px {0}px)",rect);if(!node.clipRect){_217.position="absolute";_217.top=0;_217.left=0;_217.width=o.paper.width+"px";_217.height=o.paper.height+"px";_218.parentNode.insertBefore(div,_218);div[_12](_218);node.clipRect=div;}}if(!_20e["clip-rect"]){node.clipRect&&(node.clipRect.style.clip=E);}}if(o.type=="image"&&_20e.src){node.src=_20e.src;}if(o.type=="image"&&_20e.opacity){node.filterOpacity=" progid:DXImageTransform.Microsoft.Alpha(opacity="+(_20e.opacity*100)+")";s.filter=(node.filterMatrix||E)+(node.filterOpacity||E);}_20e.font&&(s.font=_20e.font);_20e["font-family"]&&(s.fontFamily="\""+_20e["font-family"][_25](",")[0][rp](/^['"]+|['"]+$/g,E)+"\"");_20e["font-size"]&&(s.fontSize=_20e["font-size"]);_20e["font-weight"]&&(s.fontWeight=_20e["font-weight"]);_20e["font-style"]&&(s.fontStyle=_20e["font-style"]);if(_20e.opacity!=null||_20e["stroke-width"]!=null||_20e.fill!=null||_20e.stroke!=null||_20e["stroke-width"]!=null||_20e["stroke-opacity"]!=null||_20e["fill-opacity"]!=null||_20e["stroke-dasharray"]!=null||_20e["stroke-miterlimit"]!=null||_20e["stroke-linejoin"]!=null||_20e["stroke-linecap"]!=null){node=o.shape||node;var fill=(node.getElementsByTagName("fill")&&node.getElementsByTagName("fill")[0]),_21a=false;!fill&&(_21a=fill=_209("fill"));if("fill-opacity" in _20e||"opacity" in _20e){var _21b=((+a["fill-opacity"]+1||2)-1)*((+a.opacity+1||2)-1);_21b<0&&(_21b=0);_21b>1&&(_21b=1);fill.opacity=_21b;}_20e.fill&&(fill.on=true);if(fill.on==null||_20e.fill=="none"){fill.on=false;}if(fill.on&&_20e.fill){var _21c=_20e.fill.match(_21);if(_21c){fill.src=_21c[1];fill.type="tile";}else{fill.color=R.getRGB(_20e.fill).hex;fill.src=E;fill.type="solid";if(R.getRGB(_20e.fill).error&&(res.type in {circle:1,ellipse:1}||(_20e.fill+E).charAt()!="r")&&_164(res,_20e.fill)){a.fill="none";a.gradient=_20e.fill;}}}_21a&&node[_12](fill);var _21d=(node.getElementsByTagName("stroke")&&node.getElementsByTagName("stroke")[0]),_21e=false;!_21d&&(_21e=_21d=_209("stroke"));if((_20e.stroke&&_20e.stroke!="none")||_20e["stroke-width"]||_20e["stroke-opacity"]!=null||_20e["stroke-dasharray"]||_20e["stroke-miterlimit"]||_20e["stroke-linejoin"]||_20e["stroke-linecap"]){_21d.on=true;}(_20e.stroke=="none"||_21d.on==null||_20e.stroke==0||_20e["stroke-width"]==0)&&(_21d.on=false);_21d.on&&_20e.stroke&&(_21d.color=R.getRGB(_20e.stroke).hex);var _21b=((+a["stroke-opacity"]+1||2)-1)*((+a.opacity+1||2)-1),_21f=(_26(_20e["stroke-width"])||1)*0.75;_21b<0&&(_21b=0);_21b>1&&(_21b=1);_20e["stroke-width"]==null&&(_21f=a["stroke-width"]);_20e["stroke-width"]&&(_21d.weight=_21f);_21f&&_21f<1&&(_21b*=_21f)&&(_21d.weight=1);_21d.opacity=_21b;_20e["stroke-linejoin"]&&(_21d.joinstyle=_20e["stroke-linejoin"]||"miter");_21d.miterlimit=_20e["stroke-miterlimit"]||8;_20e["stroke-linecap"]&&(_21d.endcap=_20e["stroke-linecap"]=="butt"?"flat":_20e["stroke-linecap"]=="square"?"square":"round");if(_20e["stroke-dasharray"]){var _220={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};_21d.dashstyle=_220[has](_20e["stroke-dasharray"])?_220[_20e["stroke-dasharray"]]:E;}_21e&&node[_12](_21d);}if(res.type=="text"){var s=res.paper.span.style;a.font&&(s.font=a.font);a["font-family"]&&(s.fontFamily=a["font-family"]);a["font-size"]&&(s.fontSize=a["font-size"]);a["font-weight"]&&(s.fontWeight=a["font-weight"]);a["font-style"]&&(s.fontStyle=a["font-style"]);res.node.string&&(res.paper.span.innerHTML=(res.node.string+E)[rp](/</g,"&#60;")[rp](/&/g,"&#38;")[rp](/\n/g,"<br>"));res.W=a.w=res.paper.span.offsetWidth;res.H=a.h=res.paper.span.offsetHeight;res.X=a.x;res.Y=a.y+_22(res.H/2);switch(a["text-anchor"]){case "start":res.node.style["v-text-align"]="left";res.bbx=_22(res.W/2);break;case "end":res.node.style["v-text-align"]="right";res.bbx=-_22(res.W/2);break;default:res.node.style["v-text-align"]="center";break;}}};var _164=function(o,_222){o.attrs=o.attrs||{};var _223=o.attrs,fill=o.node.getElementsByTagName("fill"),type="linear",fxfy=".5 .5";o.attrs.gradient=_222;_222=(_222+E)[rp](/^r(?:\(([^,]+?)\s*,\s*([^\)]+?)\))?/,function(all,fx,fy){type="radial";if(fx&&fy){fx=_26(fx);fy=_26(fy);if(pow(fx-0.5,2)+pow(fy-0.5,2)>0.25){fy=Math.sqrt(0.25-pow(fx-0.5,2))+0.5;}fxfy=fx+S+fy;}return E;});_222=_222[_25](/\s*\-\s*/);if(type=="linear"){var _22a=_222.shift();_22a=-_26(_22a);if(isNaN(_22a)){return null;}}var dots=_126(_222);if(!dots){return null;}o=o.shape||o.node;fill=fill[0]||_209("fill");if(dots[_e]){fill.on=true;fill.method="none";fill.type=(type=="radial")?"gradientradial":"gradient";fill.color=dots[0].color;fill.color2=dots[dots[_e]-1].color;var clrs=[];for(var i=0,ii=dots[_e];i<ii;i++){dots[i].offset&&clrs[_11](dots[i].offset+S+dots[i].color);}fill.colors.value=clrs[_e]?clrs[_17](","):"0% "+fill.color;if(type=="radial"){fill.focus="100%";fill.focussize=fxfy;fill.focusposition=fxfy;}else{fill.angle=(270-_22a)%360;}}return 1;};var _162=function(node,_230,vml){var _232=0,RotX=0,RotY=0,_235=1;this[0]=node;this.id=R._oid++;this.node=node;node.raphael=this;this.X=0;this.Y=0;this.attrs={};this.Group=_230;this.paper=vml;this._={tx:0,ty:0,rt:{deg:0},sx:1,sy:1};!vml.bottom&&(vml.bottom=this);this.prev=vml.top;vml.top&&(vml.top.next=this);vml.top=this;this.next=null;};_162[_18].rotate=function(deg,cx,cy){if(this.removed){return this;}if(deg==null){if(this._.rt.cx){return [this._.rt.deg,this._.rt.cx,this._.rt.cy][_17](S);}return this._.rt.deg;}deg=(deg+E)[_25](_1);if(deg[_e]-1){cx=_26(deg[1]);cy=_26(deg[2]);}deg=_26(deg[0]);if(cx!=null){this._.rt.deg=deg;}else{this._.rt.deg+=deg;}cy==null&&(cx=null);this._.rt.cx=cx;this._.rt.cy=cy;this.setBox(this.attrs,cx,cy);this.Group.style.rotation=this._.rt.deg;return this;};_162[_18].setBox=function(_239,cx,cy){if(this.removed){return this;}var gs=this.Group.style,os=(this.shape&&this.shape.style)||this.node.style;_239=_239||{};for(var i in _239){if(_239[has](i)){this.attrs[i]=_239[i];}}cx=cx||this._.rt.cx;cy=cy||this._.rt.cy;var attr=this.attrs,x,y,w,h;switch(this.type){case "circle":x=attr.cx-attr.r;y=attr.cy-attr.r;w=h=attr.r*2;break;case "ellipse":x=attr.cx-attr.rx;y=attr.cy-attr.ry;w=attr.rx*2;h=attr.ry*2;break;case "rect":case "image":x=+attr.x;y=+attr.y;w=attr.width||0;h=attr.height||0;break;case "text":this.textpath.v=["m",_22(attr.x),", ",_22(attr.y-2),"l",_22(attr.x)+1,", ",_22(attr.y-2)][_17](E);x=attr.x-_22(this.W/2);y=attr.y-this.H/2;w=this.W;h=this.H;break;case "path":if(!this.attrs.path){x=0;y=0;w=this.paper.width;h=this.paper.height;}else{var dim=_70(this.attrs.path);x=dim.x;y=dim.y;w=dim.width;h=dim.height;}break;default:x=0;y=0;w=this.paper.width;h=this.paper.height;break;}cx=(cx==null)?x+w/2:cx;cy=(cy==null)?y+h/2:cy;var left=cx-this.paper.width/2,top=cy-this.paper.height/2;if(this.type=="path"||this.type=="text"){(gs.left!=left+"px")&&(gs.left=left+"px");(gs.top!=top+"px")&&(gs.top=top+"px");this.X=this.type=="text"?x:-left;this.Y=this.type=="text"?y:-top;this.W=w;this.H=h;(os.left!=-left+"px")&&(os.left=-left+"px");(os.top!=-top+"px")&&(os.top=-top+"px");}else{(gs.left!=left+"px")&&(gs.left=left+"px");(gs.top!=top+"px")&&(gs.top=top+"px");this.X=x;this.Y=y;this.W=w;this.H=h;(gs.width!=this.paper.width+"px")&&(gs.width=this.paper.width+"px");(gs.height!=this.paper.height+"px")&&(gs.height=this.paper.height+"px");(os.left!=x-left+"px")&&(os.left=x-left+"px");(os.top!=y-top+"px")&&(os.top=y-top+"px");(os.width!=w+"px")&&(os.width=w+"px");(os.height!=h+"px")&&(os.height=h+"px");var _247=(+_239.r||0)/(_1b(w,h));if(this.type=="rect"&&this.arcsize!=_247&&(_247||this.arcsize)){var o=_209(_247?"roundrect":"rect");o.arcsize=_247;this.Group[_12](o);this.node.parentNode.removeChild(this.node);this.node=o;this.arcsize=_247;this.attr(this.attrs);}}};_162[_18].hide=function(){!this.removed&&(this.Group.style.display="none");return this;};_162[_18].show=function(){!this.removed&&(this.Group.style.display="block");return this;};_162[_18].getBBox=function(){if(this.removed){return this;}if(this.type=="path"){return _70(this.attrs.path);}return {x:this.X+(this.bbx||0),y:this.Y,width:this.W,height:this.H};};_162[_18].remove=function(){if(this.removed){return;}tear(this,this.paper);this.node.parentNode.removeChild(this[0]);this.Group.parentNode.removeChild(this.Group);this.shape&&this.shape.parentNode.removeChild(this.shape);for(var i in this){delete this[i];}this.removed=true;};_162[_18].attr=function(){if(this.removed){return this;}if(arguments[_e]==1&&R.is(arguments[0],"string")){if(arguments[0]=="translation"){return _14e.call(this);}if(arguments[0]=="rotation"){return this.rotate();}if(arguments[0]=="scale"){return this.scale();}return this.attrs[arguments[0]];}if(this.attrs&&arguments[_e]==1&&R.is(arguments[0],"array")){var _24a={};for(var i=0,ii=arguments[0][_e];i<ii;i++){_24a[arguments[0][i]]=this.attrs[arguments[0][i]];}return _24a;}var _24d;if(arguments[_e]==2){_24d={};_24d[arguments[0]]=arguments[1];}arguments[_e]==1&&R.is(arguments[0],"object")&&(_24d=arguments[0]);if(_24d){if(_24d.text&&this.type=="text"){this.node.string=_24d.text;}_163(this,_24d);if(_24d.gradient&&(({circle:1,ellipse:1})[has](this.type)||(_24d.gradient+E).charAt()!="r")){_164(this,_24d.gradient);}(this.type!="path"||this._.rt.deg)&&this.setBox(this.attrs);}return this;};_162[_18].toFront=function(){!this.removed&&this.Group.parentNode[_12](this.Group);this.paper.top!=this&&_140(this,this.paper);return this;};_162[_18].toBack=function(){if(this.removed){return this;}if(this.Group.parentNode.firstChild!=this.Group){this.Group.parentNode.insertBefore(this.Group,this.Group.parentNode.firstChild);_143(this,this.paper);}return this;};_162[_18].insertAfter=function(_24e){if(this.removed){return this;}if(_24e.Group.nextSibling){_24e.Group.parentNode.insertBefore(this.Group,_24e.Group.nextSibling);}else{_24e.Group.parentNode[_12](this.Group);}_146(this,_24e,this.paper);return this;};_162[_18].insertBefore=function(_24f){if(this.removed){return this;}_24f.Group.parentNode.insertBefore(this.Group,_24f.Group);_14a(this,_24f,this.paper);return this;};var _1bd=function(vml,x,y,r){var g=_209("group"),o=_209("oval"),ol=o.style;g.style.cssText="position:absolute;left:0;top:0;width:"+vml.width+"px;height:"+vml.height+"px";g.coordsize=vml.coordsize;g.coordorigin=vml.coordorigin;g[_12](o);var res=new _162(o,g,vml);res.type="circle";_163(res,{stroke:"#000",fill:"none"});res.attrs.cx=x;res.attrs.cy=y;res.attrs.r=r;res.setBox({x:x-r,y:y-r,width:r*2,height:r*2});vml.canvas[_12](g);return res;};var _1c4=function(vml,x,y,w,h,r){var g=_209("group"),o=_209(r?"roundrect":"rect"),_260=(+r||0)/(_1b(w,h));o.arcsize=_260;g.style.cssText="position:absolute;left:0;top:0;width:"+vml.width+"px;height:"+vml.height+"px";g.coordsize=vml.coordsize;g.coordorigin=vml.coordorigin;g[_12](o);var res=new _162(o,g,vml);res.type="rect";_163(res,{stroke:"#000"});res.arcsize=_260;res.setBox({x:x,y:y,width:w,height:h,r:+r});vml.canvas[_12](g);return res;};var _1cd=function(vml,x,y,rx,ry){var g=_209("group"),o=_209("oval"),ol=o.style;g.style.cssText="position:absolute;left:0;top:0;width:"+vml.width+"px;height:"+vml.height+"px";g.coordsize=vml.coordsize;g.coordorigin=vml.coordorigin;g[_12](o);var res=new _162(o,g,vml);res.type="ellipse";_163(res,{stroke:"#000"});res.attrs.cx=x;res.attrs.cy=y;res.attrs.rx=rx;res.attrs.ry=ry;res.setBox({x:x-rx,y:y-ry,width:rx*2,height:ry*2});vml.canvas[_12](g);return res;};var _1d5=function(vml,src,x,y,w,h){var g=_209("group"),o=_209("image"),ol=o.style;g.style.cssText="position:absolute;left:0;top:0;width:"+vml.width+"px;height:"+vml.height+"px";g.coordsize=vml.coordsize;g.coordorigin=vml.coordorigin;o.src=src;g[_12](o);var res=new _162(o,g,vml);res.type="image";res.attrs.src=src;res.attrs.x=x;res.attrs.y=y;res.attrs.w=w;res.attrs.h=h;res.setBox({x:x,y:y,width:w,height:h});vml.canvas[_12](g);return res;};var _1de=function(vml,x,y,text){var g=_209("group"),el=_209("shape"),ol=el.style,path=_209("path"),ps=path.style,o=_209("textpath");g.style.cssText="position:absolute;left:0;top:0;width:"+vml.width+"px;height:"+vml.height+"px";g.coordsize=vml.coordsize;g.coordorigin=vml.coordorigin;path.v=R.format("m{0},{1}l{2},{1}",_22(x),_22(y),_22(x)+1);path.textpathok=true;ol.width=vml.width;ol.height=vml.height;o.string=text+E;o.on=true;el[_12](o);el[_12](path);g[_12](el);var res=new _162(o,g,vml);res.shape=el;res.textpath=path;res.type="text";res.attrs.text=text;res.attrs.x=x;res.attrs.y=y;res.attrs.w=1;res.attrs.h=1;_163(res,{font:_29.font,stroke:"none",fill:"#000"});res.setBox();vml.canvas[_12](g);return res;};var _1e5=function(_280,_281){var cs=this.canvas.style;this.width=_26(_280||this.width);this.height=_26(_281||this.height);cs.width=this.width+"px";cs.height=this.height+"px";cs.clip="rect(0 "+this.width+"px "+this.height+"px 0)";this.coordsize=this.width+S+this.height;var bot=this.bottom;while(bot){bot.Group.coordsize=this.coordsize;bot.attr(bot.attrs);bot=bot.next;}return this;};_2.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!_2.namespaces.rvml&&_2.namespaces.add("rvml","urn:schemas-microsoft-com:vml");var _209=function(_284){return _2.createElement("<rvml:"+_284+" class=\"rvml\">");};}catch(e){var _209=function(_285){return _2.createElement("<"+_285+" xmlns=\"urn:schemas-microsoft.com:vml\" class=\"rvml\">");};}var _8=function(){var con=_131[_9](null,arguments),_287=con.container,_288=con.height,s,_28a=con.width,x=con.x,y=con.y;if(!_287){throw new Error("VML container not found.");}var res={},c=res.canvas=_2.createElement("div"),cs=c.style;_28a=_26(_28a)||512;_288=_26(_288)||342;res.width=_28a;res.height=_288;res.coordsize=_28a+S+_288;res.coordorigin="0 0";res.span=_2.createElement("span");res.span.style.cssText="position:absolute;left:-9999px;top:-9999px;padding:0;margin:0;line-height:1;display:inline;";c[_12](res.span);cs.cssText=R.format("width:{0}px;height:{1}px;position:absolute;clip:rect(0 {0}px {1}px 0)",_28a,_288);if(_287==1){_2.body[_12](c);cs.left=x+"px";cs.top=y+"px";_287={style:{width:_28a,height:_288}};}else{_287.style.width=_28a;_287.style.height=_288;if(_287.firstChild){_287.insertBefore(c,_287.firstChild);}else{_287[_12](c);}}for(var prop in _1e){if(_1e[has](prop)){res[prop]=_1e[prop];}}_137.call(res,res,R.fn);res.top=res.bottom=null;res.raphael=R;return res;};_1e.clear=function(){this.canvas.innerHTML=E;this.bottom=this.top=null;};_1e.remove=function(){this.canvas.parentNode.removeChild(this.canvas);for(var i in this){delete this[i];}};}if({"Apple Computer, Inc.":1,"Google Inc.":1}[navigator.vendor]){_1e.safari_fix_element=null;_1e.safari_fix_count=0;_1e.safari=function(){this.safari_fix_count++;if(!this.safari_fix_element){this.safari_fix_element=this.rect(-99,-99,this.width+99,this.height+99);}setTimeout(function(){this.safari_fix_count--;if(this.safari_fix_count==0){this.safari_fix_element.remove();this.safari_fix_element=null;}});};}else{_1e.safari=function(){};}var _292=(function(){if(_2.addEventListener){return function(obj,type,fn,_296){var f=function(e){return fn.call(_296,e);};obj.addEventListener(type,f,false);return function(){obj.removeEventListener(type,f,false);return true;};};}else{if(_2.attachEvent){return function(obj,type,fn,_29c){var f=function(e){return fn.call(_29c,e||_3.event);};obj.attachEvent("on"+type,f);var _29f=function(){obj.detachEvent("on"+type,f);return true;};if(type=="mouseover"){obj.attachEvent("onmouseenter",f);return function(){obj.detachEvent("onmouseenter",f);return _29f();};}else{if(type=="mouseout"){obj.attachEvent("onmouseleave",f);return function(){obj.detachEvent("onmouseleave",f);return _29f();};}}return _29f;};}}})();for(var i=_15[_e];i--;){(function(_2a1){_162[_18][_2a1]=function(fn){if(R.is(fn,"function")){this.events=this.events||{};this.events[_2a1]=this.events[_2a1]||{};this.events[_2a1][fn]=this.events[_2a1][fn]||[];this.events[_2a1][fn][_11](_292(this.shape||this.node,_2a1,fn,this));}return this;};_162[_18]["un"+_2a1]=function(fn){var e=this.events;e&&e[_2a1]&&e[_2a1][fn]&&e[_2a1][fn][_e]&&e[_2a1][fn].shift()()&&!e[_2a1][fn][_e]&&delete e[_2a1][fn];return this;};})(_15[i]);}_162[_18].hover=function(f_in,_2a6){return this.mouseover(f_in).mouseout(_2a6);};_1e.circle=function(x,y,r){return _1bd(this,x||0,y||0,r||0);};_1e.rect=function(x,y,w,h,r){return _1c4(this,x||0,y||0,w||0,h||0,r||0);};_1e.ellipse=function(x,y,rx,ry){return _1cd(this,x||0,y||0,rx||0,ry||0);};_1e.path=function(_2b3){_2b3&&!R.is(_2b3,"string")&&!R.is(_2b3[0],"array")&&(_2b3+=E);return _15d(R.format[_9](R,arguments),this);};_1e.image=function(src,x,y,w,h){return _1d5(this,src||"about:blank",x||0,y||0,w||0,h||0);};_1e.text=function(x,y,text){return _1de(this,x||0,y||0,text||E);};_1e.set=function(_2bc){arguments[_e]>1&&(_2bc=Array[_18].splice.call(arguments,0,arguments[_e]));return new Set(_2bc);};_1e.setSize=_1e5;_162[_18].scale=function(x,y,cx,cy){if(x==null&&y==null){return {x:this._.sx,y:this._.sy,toString:function(){return this.x+S+this.y;}};}y=y||x;!+y&&(y=x);var dx,dy,dcx,dcy,a=this.attrs;if(x!=0){var bb=this.getBBox(),rcx=bb.x+bb.width/2,rcy=bb.y+bb.height/2,kx=x/this._.sx,ky=y/this._.sy;cx=(+cx||cx==0)?cx:rcx;cy=(+cy||cy==0)?cy:rcy;var dirx=~~(x/Math.abs(x)),diry=~~(y/Math.abs(y)),s=this.node.style,ncx=cx+(rcx-cx)*dirx*kx,ncy=cy+(rcy-cy)*diry*ky;switch(this.type){case "rect":case "image":var neww=a.width*dirx*kx,newh=a.height*diry*ky,newr=a.r*_1b(kx,ky),newx=ncx-neww/2,newy=ncy-newh/2;this.attr({width:neww,height:newh,x:newx,y:newy,r:newr});break;case "circle":case "ellipse":this.attr({rx:a.rx*kx,ry:a.ry*ky,r:a.r*_1b(kx,ky),cx:ncx,cy:ncy});break;case "path":var path=_84(a.path),skip=true;for(var i=0,ii=path[_e];i<ii;i++){var p=path[i],P0=_28.call(p[0]);if(P0=="M"&&skip){continue;}else{skip=false;}if(R.svg&&P0=="A"){p[path[i][_e]-2]*=kx;p[path[i][_e]-1]*=ky;p[1]*=kx;p[2]*=ky;p[5]=+(dirx+diry?!!+p[5]:!+p[5]);}else{for(var j=1,jj=p[_e];j<jj;j++){p[j]*=(j%2&&P0!="V")?kx:ky;}}}var dim2=_70(path),dx=ncx-dim2.x-dim2.width/2,dy=ncy-dim2.y-dim2.height/2;path[0][1]+=dx;path[0][2]+=dy;this.attr({path:path});break;}if(this.type in {text:1,image:1}&&(dirx!=1||diry!=1)){if(this.transformations){this.transformations[2]="scale("[_13](dirx,",",diry,")");this.node[_24]("transform",this.transformations[_17](S));dx=(dirx==-1)?-a.x-(neww||0):a.x;dy=(diry==-1)?-a.y-(newh||0):a.y;this.attr({x:dx,y:dy});a.fx=dirx-1;a.fy=diry-1;}else{this.node.filterMatrix=" progid:DXImageTransform.Microsoft.Matrix(M11="[_13](dirx,", M12=0, M21=0, M22=",diry,", Dx=0, Dy=0, sizingmethod='auto expand', filtertype='bilinear')");s.filter=(this.node.filterMatrix||E)+(this.node.filterOpacity||E);}}else{if(this.transformations){this.transformations[2]=E;this.node[_24]("transform",this.transformations[_17](S));a.fx=0;a.fy=0;}else{this.node.filterMatrix=E;s.filter=(this.node.filterMatrix||E)+(this.node.filterOpacity||E);}}a.scale=[x,y,cx,cy][_17](S);this._.sx=x;this._.sy=y;}return this;};R.easing_formulas={linear:function(n){return n;},"<":function(n){return pow(n,3);},">":function(n){return pow(n-1,3)+1;},"<>":function(n){n=n*2;if(n<1){return pow(n,3)/2;}n-=2;return (pow(n,3)+2)/2;},backIn:function(n){var s=1.70158;return n*n*((s+1)*n-s);},backOut:function(n){n=n-1;var s=1.70158;return n*n*((s+1)*n+s)+1;},elastic:function(n){if(n==0||n==1){return n;}var p=0.3,s=p/4;return pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p)+1;},bounce:function(n){var s=7.5625,p=2.75,l;if(n<(1/p)){l=s*n*n;}else{if(n<(2/p)){n-=(1.5/p);l=s*n*n+0.75;}else{if(n<(2.5/p)){n-=(2.25/p);l=s*n*n+0.9375;}else{n-=(2.625/p);l=s*n*n+0.984375;}}}return l;}};var _2ee={length:0},_2ef=function(){var Now=+new Date;for(var l in _2ee){if(l!="length"&&_2ee[has](l)){var e=_2ee[l];if(e.stop){delete _2ee[l];_2ee[_e]--;continue;}var time=Now-e.start,ms=e.ms,_2f5=e.easing,from=e.from,diff=e.diff,to=e.to,t=e.t,prev=e.prev||0,that=e.el,_2fc=e.callback,set={},now;if(time<ms){var pos=R.easing_formulas[_2f5]?R.easing_formulas[_2f5](time/ms):time/ms;for(var attr in from){if(from[has](attr)){switch(_2a[attr]){case "number":now=+from[attr]+pos*ms*diff[attr];break;case "colour":now="rgb("+[_301(_22(from[attr].r+pos*ms*diff[attr].r)),_301(_22(from[attr].g+pos*ms*diff[attr].g)),_301(_22(from[attr].b+pos*ms*diff[attr].b))][_17](",")+")";break;case "path":now=[];for(var i=0,ii=from[attr][_e];i<ii;i++){now[i]=[from[attr][i][0]];for(var j=1,jj=from[attr][i][_e];j<jj;j++){now[i][j]=+from[attr][i][j]+pos*ms*diff[attr][i][j];}now[i]=now[i][_17](S);}now=now[_17](S);break;case "csv":switch(attr){case "translation":var x=diff[attr][0]*(time-prev),y=diff[attr][1]*(time-prev);t.x+=x;t.y+=y;now=x+S+y;break;case "rotation":now=+from[attr][0]+pos*ms*diff[attr][0];from[attr][1]&&(now+=","+from[attr][1]+","+from[attr][2]);break;case "scale":now=[+from[attr][0]+pos*ms*diff[attr][0],+from[attr][1]+pos*ms*diff[attr][1],(2 in to[attr]?to[attr][2]:E),(3 in to[attr]?to[attr][3]:E)][_17](S);break;case "clip-rect":now=[];var i=4;while(i--){now[i]=+from[attr][i]+pos*ms*diff[attr][i];}break;}break;}set[attr]=now;}}that.attr(set);that._run&&that._run.call(that);}else{(t.x||t.y)&&that.translate(-t.x,-t.y);to.scale&&(to.scale=to.scale+E);that.attr(to);delete _2ee[l];_2ee[_e]--;that.in_animation=null;R.is(_2fc,"function")&&_2fc.call(that);}e.prev=time;}}R.svg&&_1e.safari();_2ee[_e]&&setTimeout(_2ef);},_301=function(_308){return _308>255?255:(_308<0?0:_308);};_162[_18].animateWith=function(_309,_30a,ms,_30c,_30d){_2ee[_309.id]&&(_30a.start=_2ee[_309.id].start);return this.animate(_30a,ms,_30c,_30d);};_162[_18].onAnimation=function(f){this._run=f||null;return this;};_162[_18].animate=function(_30f,ms,_311,_312){if(R.is(_311,"function")||!_311){_312=_311||null;}var from={},to={},diff={};for(var attr in _30f){if(_30f[has](attr)){if(_2a[has](attr)){from[attr]=this.attr(attr);(from[attr]==null)&&(from[attr]=_29[attr]);to[attr]=_30f[attr];switch(_2a[attr]){case "number":diff[attr]=(to[attr]-from[attr])/ms;break;case "colour":from[attr]=R.getRGB(from[attr]);var _317=R.getRGB(to[attr]);diff[attr]={r:(_317.r-from[attr].r)/ms,g:(_317.g-from[attr].g)/ms,b:(_317.b-from[attr].b)/ms};break;case "path":var _318=_72(from[attr],to[attr]);from[attr]=_318[0];to[attr]=_318[1];diff[attr]=[];for(var i=0,ii=from[attr][_e];i<ii;i++){diff[attr][i]=[0];for(var j=1,jj=from[attr][i][_e];j<jj;j++){diff[attr][i][j]=(to[attr][i][j]-from[attr][i][j])/ms;}}break;case "csv":var _31d=(_30f[attr]+E)[_25](_1),_31e=(from[attr]+E)[_25](_1);switch(attr){case "translation":from[attr]=[0,0];diff[attr]=[_31d[0]/ms,_31d[1]/ms];break;case "rotation":from[attr]=(_31e[1]==_31d[1]&&_31e[2]==_31d[2])?_31e:[0,_31d[1],_31d[2]];diff[attr]=[(_31d[0]-from[attr][0])/ms,0,0];break;case "scale":_30f[attr]=_31d;from[attr]=(from[attr]+E)[_25](_1);diff[attr]=[(_31d[0]-from[attr][0])/ms,(_31d[1]-from[attr][1])/ms,0,0];break;case "clip-rect":from[attr]=(from[attr]+E)[_25](_1);diff[attr]=[];var i=4;while(i--){diff[attr][i]=(_31d[i]-from[attr][i])/ms;}break;}to[attr]=_31d;}}}}if(this.in_animation){this.stop();}this.in_animation=1;_2ee[this.id]={start:_30f.start||+new Date,ms:ms,easing:_311,from:from,diff:diff,to:to,el:this,callback:_312,t:{x:0,y:0}};++_2ee[_e]==1&&_2ef();return this;};_162[_18].stop=function(){_2ee[this.id]&&_2ee[_e]--;delete _2ee[this.id];return this;};_162[_18].translate=function(x,y){return this.attr({translation:x+" "+y});};_162[_18][_1c]=function(){return "Raphaël’s object";};R.ae=_2ee;var Set=function(_321){this.items=[];this[_e]=0;if(_321){for(var i=0,ii=_321[_e];i<ii;i++){if(_321[i]&&(_321[i].constructor==_162||_321[i].constructor==Set)){this[this.items[_e]]=this.items[this.items[_e]]=_321[i];this[_e]++;}}}};Set[_18][_11]=function(){var item,len;for(var i=0,ii=arguments[_e];i<ii;i++){item=arguments[i];if(item&&(item.constructor==_162||item.constructor==Set)){len=this.items[_e];this[len]=this.items[len]=item;this[_e]++;}}return this;};Set[_18].pop=function(){delete this[this[_e]--];return this.items.pop();};for(var _328 in _162[_18]){if(_162[_18][has](_328)){Set[_18][_328]=(function(_329){return function(){for(var i=0,ii=this.items[_e];i<ii;i++){this.items[i][_329][_9](this.items[i],arguments);}return this;};})(_328);}}Set[_18].attr=function(name,_32d){if(name&&R.is(name,"array")&&R.is(name[0],"object")){for(var j=0,jj=name[_e];j<jj;j++){this.items[j].attr(name[j]);}}else{for(var i=0,ii=this.items[_e];i<ii;i++){this.items[i].attr[_9](this.items[i],arguments);}}return this;};Set[_18].animate=function(_332,ms,_334,_335){(R.is(_334,"function")||!_334)&&(_335=_334||null);var len=this.items[_e],i=len,set=this,_338;_335&&(_338=function(){!--len&&_335.call(set);});this.items[--i].animate(_332,ms,_334||_338,_338);while(i--){this.items[i].animateWith(this.items[len-1],_332,ms,_334||_338,_338);}return this;};Set[_18].insertAfter=function(el){var i=this.items[_e];while(i--){this.items[i].insertAfter(el);}};Set[_18].getBBox=function(){var x=[],y=[],w=[],h=[];for(var i=this.items[_e];i--;){var box=this.items[i].getBBox();x[_11](box.x);y[_11](box.y);w[_11](box.x+box.width);h[_11](box.y+box.height);}x=_1b[_9](0,x);y=_1b[_9](0,y);return {x:x,y:y,width:_1a[_9](0,w)-x,height:_1a[_9](0,h)-y};};R.registerFont=function(font){if(!font.face){return font;}this.fonts=this.fonts||{};var _342={w:font.w,face:{},glyphs:{}},_343=font.face["font-family"];for(var prop in font.face){if(font.face[has](prop)){_342.face[prop]=font.face[prop];}}if(this.fonts[_343]){this.fonts[_343][_11](_342);}else{this.fonts[_343]=[_342];}if(!font.svg){_342.face["units-per-em"]=_27(font.face["units-per-em"],10);for(var _345 in font.glyphs){if(font.glyphs[has](_345)){var path=font.glyphs[_345];_342.glyphs[_345]={w:path.w,k:{},d:path.d&&"M"+path.d[rp](/[mlcxtrv]/g,function(_347){return {l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[_347]||"M";})+"z"};if(path.k){for(var k in path.k){if(path[has](k)){_342.glyphs[_345].k[k]=path.k[k];}}}}}}return font;};_1e.getFont=function(_349,_34a,_34b,_34c){_34c=_34c||"normal";_34b=_34b||"normal";_34a=+_34a||{normal:400,bold:700,lighter:300,bolder:800}[_34a]||400;var font=R.fonts[_349];if(!font){var name=new RegExp("(^|\\s)"+_349[rp](/[^\w\d\s+!~.:_-]/g,E)+"(\\s|$)","i");for(var _34f in R.fonts){if(R.fonts[has](_34f)){if(name.test(_34f)){font=R.fonts[_34f];break;}}}}var _350;if(font){for(var i=0,ii=font[_e];i<ii;i++){_350=font[i];if(_350.face["font-weight"]==_34a&&(_350.face["font-style"]==_34b||!_350.face["font-style"])&&_350.face["font-stretch"]==_34c){break;}}}return _350;};_1e.print=function(x,y,_355,font,size){var out=this.set(),_359=(_355+E)[_25](E),_35a=0,path=E,_35c;R.is(font,"string")&&(font=this.getFont(font));if(font){_35c=(size||16)/font.face["units-per-em"];for(var i=0,ii=_359[_e];i<ii;i++){var prev=i&&font.glyphs[_359[i-1]]||{},curr=font.glyphs[_359[i]];_35a+=i?(prev.w||font.w)+(prev.k&&prev.k[_359[i]]||0):0;curr&&curr.d&&out[_11](this.path(curr.d).attr({fill:"#000",stroke:"none",translation:[_35a,0]}));}out.scale(_35c,_35c,0,y).translate(x,(size||16)/2);}return out;};R.format=function(_361){var args=R.is(arguments[1],"array")?[0][_13](arguments[1]):arguments,rg=/\{(\d+)\}/g;_361&&R.is(_361,"string")&&args[_e]-1&&(_361=_361[rp](rg,function(str,i){return args[++i]==null?E:args[i];}));return _361||E;};R.ninja=function(){var r=_3.Raphael,u;if(_4.was){_3.Raphael=_4.is;}else{try{delete _3.Raphael;}catch(e){_3.Raphael=u;}}return r;};R.el=_162[_18];return R;})();Raphael.fn.translate_set=function(set,_368,_369,_36a,_36b){if(_368==null){_368=0;}if(_369==null){_369=0;}if(_36a==null){_36a=0;}if(_36b==null){_36b=0;}for(var i=0,_36d=set.length;i<_36d;i++){set[i].translate(_368+(i*_36a),_369+(i*_36b));}return set;};Raphael.el.isAbsolute=true;Raphael.el.absolutely=function(){this.isAbsolute=1;return this;};Raphael.el.relatively=function(){this.isAbsolute=0;return this;};Raphael.el.moveTo=function(x,y){this._last={x:x,y:y};return this.attr({path:this.attrs.path+["m","M"][+this.isAbsolute]+parseFloat(x)+" "+parseFloat(y)});};Raphael.el.lineTo=function(x,y){this._last={x:x,y:y};return this.attr({path:this.attrs.path+["l","L"][+this.isAbsolute]+parseFloat(x)+" "+parseFloat(y)});};Raphael.el.arcTo=function(rx,ry,_374,_375,x,y,_378){this._last={x:x,y:y};return this.attr({path:this.attrs.path+["a","A"][+this.isAbsolute]+[parseFloat(rx),parseFloat(ry),+_378,_374,_375,parseFloat(x),parseFloat(y)].join(" ")});};Raphael.el.curveTo=function(){var args=Array.prototype.splice.call(arguments,0,arguments.length),d=[0,0,0,0,"s",0,"c"][args.length]||"";this.isAbsolute&&(d=d.toUpperCase());this._last={x:args[args.length-2],y:args[args.length-1]};return this.attr({path:this.attrs.path+d+args});};Raphael.el.cplineTo=function(x,y,w){this.attr({path:this.attrs.path+["C",this._last.x+w,this._last.y,x-w,y,x,y]});this._last={x:x,y:y};return this;};Raphael.el.qcurveTo=function(){var d=[0,1,"t",3,"q"][arguments.length],args=Array.prototype.splice.call(arguments,0,arguments.length);if(this.isAbsolute){d=d.toUpperCase();}this._last={x:args[args.length-2],y:args[args.length-1]};return this.attr({path:this.attrs.path+d+args});};Raphael.el.addRoundedCorner=function(r,dir){var _382=this.isAbsolute;_382&&this.relatively();this._last={x:r*(!!(dir.indexOf("r")+1)*2-1),y:r*(!!(dir.indexOf("d")+1)*2-1)};this.arcTo(r,r,0,{"lu":1,"rd":1,"ur":1,"dl":1}[dir]||0,this._last.x,this._last.y);_382&&this.absolutely();return this;};Raphael.el.andClose=function(){return this.attr({path:this.attrs.path+"z"});};Raphael.fn.star=function(cx,cy,rout,rin,n){rin=rin||rout*0.5;n=+n<3||!n?5:n;var _388=["M",cx,cy+rin,"L"],R;for(var i=1;i<n*2;i++){R=i%2?rout:rin;_388=_388.concat([+(cx+R*Math.sin(i*Math.PI/n)).toFixed(3),+(cy+R*Math.cos(i*Math.PI/n)).toFixed(3)]);}_388.push("z");return this.path(_388);};Raphael.fn.flower=function(cx,cy,rout,rin,n){rin=rin||rout*0.5;n=+n<3||!n?5:n;var _390=["M",cx,cy+rin,"Q"],R;for(var i=1;i<n*2+1;i++){R=i%2?rout:rin;_390=_390.concat([+(cx+R*Math.sin(i*Math.PI/n)).toFixed(3),+(cy+R*Math.cos(i*Math.PI/n)).toFixed(3)]);}_390.push("z");return this.path(_390);};Raphael.fn.spike=function(cx,cy,rout,rin,n){rin=rin||rout*0.5;n=+n<3||!n?5:n;var _398=["M",cx,cy-rout,"Q"],R;for(var i=1;i<n*2+1;i++){R=i%2?rin:rout;_398=_398.concat([cx+R*Math.sin(i*Math.PI/n-Math.PI),cy+R*Math.cos(i*Math.PI/n-Math.PI)]);}_398.push("z");return this.path(_398);};Raphael.fn.polygon=function(cx,cy,r,n){n=+n<3||!n?5:n;var _39f=["M",cx,cy-r,"L"],R;for(var i=1;i<n;i++){_39f=_39f.concat([cx+r*Math.sin(i*Math.PI*2/n-Math.PI),cy+r*Math.cos(i*Math.PI*2/n-Math.PI)]);}_39f.push("z");return this.path(_39f);};Raphael.fn.line=function(x1,y1,x2,y2){return this.path(["M",x1,y1,"L",x2,y2]);};Raphael.fn.drawGrid=function(x,y,w,h,wv,hv,_3ac){_3ac=_3ac||"#000";var path=["M",x,y,"L",x+w,y,x+w,y+h,x,y+h,x,y],_3ae=h/hv,_3af=w/wv;for(var i=1;i<hv;i++){path=path.concat(["M",x,y+i*_3ae,"L",x+w,y+i*_3ae]);}for(var i=1;i<wv;i++){path=path.concat(["M",x+i*_3af,y,"L",x+i*_3af,y+h]);}return this.path(path.join(",")).attr({stroke:_3ac});};Raphael.fn.square=function(cx,cy,r){r=r*0.7;return this.rect(cx-r,cy-r,2*r,2*r);};Raphael.fn.triangle=function(cx,cy,r){r*=1.75;return this.path("M".concat(cx,",",cy,"m0-",r*0.58,"l",r*0.5,",",r*0.87,"-",r,",0z"));};Raphael.fn.diamond=function(cx,cy,r){return this.path(["M",cx,cy-r,"l",r,r,-r,r,-r,-r,r,-r,"z"]);};Raphael.fn.cross=function(cx,cy,r){r=r/2.5;return this.path("M".concat(cx-r,",",cy,"l",[-r,-r,r,-r,r,r,r,-r,r,r,-r,r,r,r,-r,r,-r,-r,-r,r,-r,-r,"z"]));};Raphael.fn.plus=function(cx,cy,r){r=r/2;return this.path("M".concat(cx-r/2,",",cy-r/2,"l",[0,-r,r,0,0,r,r,0,0,r,-r,0,0,r,-r,0,0,-r,-r,0,0,-r,"z"]));};Raphael.fn.arrow=function(cx,cy,r,_3c3){return this.path("M".concat(cx-r*0.7,",",cy-r*0.4,"l",[r*0.6,0,0,-r*0.4,r,r*0.8,-r,r*0.8,0,-r*0.4,-r*0.6,0],"z")).rotate(_3c3||0);};Raphael.fn.i=function(cx,cy,r){return this.path("M13.052,15.376c0,0.198-0.466,0.66-1.397,1.388c-0.932,0.728-1.773,1.092-2.526,1.092c-0.518,0-0.895-0.133-1.129-0.398s-0.352-0.564-0.352-0.897c0-0.209,0.031-0.404,0.092-0.583c0.062-0.179,0.13-0.361,0.204-0.546l1.758-3.646c0.099-0.209,0.169-0.379,0.213-0.509c0.043-0.129,0.064-0.244,0.064-0.342s-0.019-0.169-0.055-0.213c-0.037-0.043-0.087-0.064-0.148-0.064c-0.16,0-0.472,0.244-0.935,0.731c-0.462,0.487-0.737,0.731-0.823,0.731c-0.099,0-0.198-0.068-0.296-0.204s-0.148-0.222-0.148-0.259c0-0.123,0.117-0.324,0.352-0.602c0.234-0.277,0.531-0.57,0.888-0.879C9.135,9.892,9.521,9.627,9.971,9.38c0.45-0.247,0.848-0.37,1.194-0.37c0.555,0,0.972,0.158,1.249,0.472c0.278,0.314,0.417,0.694,0.417,1.138c0,0.185-0.019,0.382-0.056,0.592c-0.037,0.209-0.117,0.425-0.24,0.647l-1.407,3.09c-0.111,0.259-0.191,0.469-0.241,0.629c-0.049,0.161-0.074,0.271-0.074,0.333c0,0.074,0.019,0.121,0.055,0.139c0.037,0.018,0.074,0.027,0.111,0.027c0.271,0,0.589-0.194,0.953-0.583c0.364-0.389,0.595-0.583,0.694-0.583c0.086,0,0.179,0.064,0.278,0.194C13.002,15.237,13.052,15.327,13.052,15.376z M14.477,5.827c0,0.457-0.164,0.852-0.49,1.185c-0.327,0.333-0.725,0.5-1.194,0.5c-0.457,0-0.851-0.167-1.185-0.5c-0.333-0.333-0.5-0.728-0.5-1.185c0-0.456,0.167-0.851,0.5-1.184c0.333-0.333,0.728-0.5,1.185-0.5c0.469,0,0.867,0.167,1.194,0.5C14.313,4.976,14.477,5.371,14.477,5.827z").translate(cx-11,cy-11).scale((r||20)/20);};(function(){Raphael.fn.g=Raphael.fn.g||{};Raphael.fn.g.markers={disc:"disc",o:"disc",flower:"flower",f:"flower",diamond:"diamond",d:"diamond",square:"square",s:"square",triangle:"triangle",t:"triangle",star:"star","*":"star",cross:"cross",x:"cross",plus:"plus","+":"plus",arrow:"arrow","->":"arrow"};Raphael.fn.g.shim={stroke:"none",fill:"#000","fill-opacity":0};Raphael.fn.g.txtattr={font:"12px Arial, sans-serif"};Raphael.fn.g.colors=[];var hues=[0.6,0.2,0.05,0.1333,0.75,0];for(var i=0;i<10;i++){if(i<hues.length){Raphael.fn.g.colors.push("hsb("+hues[i]+", .75, .75)");}else{Raphael.fn.g.colors.push("hsb("+hues[i-hues.length]+", 1, .5)");}}Raphael.fn.g.text=function(x,y,text){return this.text(x,y,text).attr(this.g.txtattr);};Raphael.fn.g.labelise=function(_3cc,val,_3ce){if(_3cc){return (_3cc+"").replace(/(##+(?:\.#+)?)|(%%+(?:\.%+)?)/g,function(all,_3d0,_3d1){if(_3d0){return (+val).toFixed(_3d0.replace(/^#+\.?/g,"").length);}if(_3d1){return (val*100/_3ce).toFixed(_3d1.replace(/^%+\.?/g,"").length)+"%";}});}else{return (+val).toFixed(0);}};Raphael.fn.g.finger=function(x,y,_3d4,_3d5,dir,_3d7,_3d8){if((dir&&!_3d5)||(!dir&&!_3d4)){return _3d8?"":this.path();}_3d7={square:"square",sharp:"sharp",soft:"soft"}[_3d7]||"round";var path;_3d5=Math.round(_3d5);_3d4=Math.round(_3d4);x=Math.round(x);y=Math.round(y);switch(_3d7){case "round":if(!dir){var r=Math.floor(_3d5/2);if(_3d4<r){r=_3d4;path=["M",x+0.5,y+0.5-Math.floor(_3d5/2),"l",0,0,"a",r,Math.floor(_3d5/2),0,0,1,0,_3d5,"l",0,0,"z"];}else{path=["M",x+0.5,y+0.5-r,"l",_3d4-r,0,"a",r,r,0,1,1,0,_3d5,"l",r-_3d4,0,"z"];}}else{var r=Math.floor(_3d4/2);if(_3d5<r){r=_3d5;path=["M",x-Math.floor(_3d4/2),y,"l",0,0,"a",Math.floor(_3d4/2),r,0,0,1,_3d4,0,"l",0,0,"z"];}else{path=["M",x-r,y,"l",0,r-_3d5,"a",r,r,0,1,1,_3d4,0,"l",0,_3d5-r,"z"];}}break;case "sharp":if(!dir){var half=Math.floor(_3d5/2);path=["M",x,y+half,"l",0,-_3d5,Math.max(_3d4-half,0),0,Math.min(half,_3d4),half,-Math.min(half,_3d4),half+(half*2<_3d5),"z"];}else{var half=Math.floor(_3d4/2);path=["M",x+half,y,"l",-_3d4,0,0,-Math.max(_3d5-half,0),half,-Math.min(half,_3d5),half,Math.min(half,_3d5),half,"z"];}break;case "square":if(!dir){path=["M",x,y+Math.floor(_3d5/2),"l",0,-_3d5,_3d4,0,0,_3d5,"z"];}else{path=["M",x+Math.floor(_3d4/2),y,"l",1-_3d4,0,0,-_3d5,_3d4-1,0,"z"];}break;case "soft":var r;if(!dir){r=Math.min(_3d4,Math.round(_3d5/5));path=["M",x+0.5,y+0.5-Math.floor(_3d5/2),"l",_3d4-r,0,"a",r,r,0,0,1,r,r,"l",0,_3d5-r*2,"a",r,r,0,0,1,-r,r,"l",r-_3d4,0,"z"];}else{r=Math.min(Math.round(_3d4/5),_3d5);path=["M",x-Math.floor(_3d4/2),y,"l",0,r-_3d5,"a",r,r,0,0,1,r,-r,"l",_3d4-2*r,0,"a",r,r,0,0,1,r,r,"l",0,_3d5-r,"z"];}}if(_3d8){return path.join(",");}else{return this.path(path);}};Raphael.fn.g.disc=function(cx,cy,r){return this.circle(cx,cy,r);};Raphael.fn.g.line=function(cx,cy,r){return this.rect(cx-r,cy-r/5,2*r,2*r/5);};Raphael.fn.g.square=function(cx,cy,r){r=r*0.7;return this.rect(cx-r,cy-r,2*r,2*r);};Raphael.fn.g.triangle=function(cx,cy,r){r*=1.75;return this.path("M".concat(cx,",",cy,"m0-",r*0.58,"l",r*0.5,",",r*0.87,"-",r,",0z"));};Raphael.fn.g.diamond=function(cx,cy,r){return this.path(["M",cx,cy-r,"l",r,r,-r,r,-r,-r,r,-r,"z"]);};Raphael.fn.g.flower=function(cx,cy,r,n){r=r*1.25;var rout=r,rin=rout*0.5;n=+n<3||!n?5:n;var _3f1=["M",cx,cy+rin,"Q"],R;for(var i=1;i<n*2+1;i++){R=i%2?rout:rin;_3f1=_3f1.concat([+(cx+R*Math.sin(i*Math.PI/n)).toFixed(3),+(cy+R*Math.cos(i*Math.PI/n)).toFixed(3)]);}_3f1.push("z");return this.path(_3f1.join(","));};Raphael.fn.g.star=function(cx,cy,r,r2){r2=r2||r*0.5;var _3f8=["M",cx,cy+r2,"L"],R;for(var i=1;i<10;i++){R=i%2?r:r2;_3f8=_3f8.concat([(cx+R*Math.sin(i*Math.PI*0.2)).toFixed(3),(cy+R*Math.cos(i*Math.PI*0.2)).toFixed(3)]);}_3f8.push("z");return this.path(_3f8.join(","));};Raphael.fn.g.cross=function(cx,cy,r){r=r/2.5;return this.path("M".concat(cx-r,",",cy,"l",[-r,-r,r,-r,r,r,r,-r,r,r,-r,r,r,r,-r,r,-r,-r,-r,r,-r,-r,"z"]));};Raphael.fn.g.plus=function(cx,cy,r){r=r/2;return this.path("M".concat(cx-r/2,",",cy-r/2,"l",[0,-r,r,0,0,r,r,0,0,r,-r,0,0,r,-r,0,0,-r,-r,0,0,-r,"z"]));};Raphael.fn.g.arrow=function(cx,cy,r){return this.path("M".concat(cx-r*0.7,",",cy-r*0.4,"l",[r*0.6,0,0,-r*0.4,r,r*0.8,-r,r*0.8,0,-r*0.4,-r*0.6,0],"z"));};Raphael.fn.g.tag=function(x,y,text,_407,r){_407=_407||0;r=r==null?5:r;text=text==null?"$9.99":text;var R=0.5522*r,res=this.set(),d=3;res.push(this.path().attr({fill:"#000",stroke:"none"}));res.push(this.text(x,y,text).attr(this.g.txtattr).attr({fill:"#fff"}));res.update=function(){this.rotate(0,x,y);var bb=this[1].getBBox();if(bb.height>=r*2){this[0].attr({path:["M",x,y+r,"a",r,r,0,1,1,0,-r*2,r,r,0,1,1,0,r*2,"m",0,-r*2-d,"a",r+d,r+d,0,1,0,0,(r+d)*2,"L",x+r+d,y+bb.height/2+d,"l",bb.width+2*d,0,0,-bb.height-2*d,-bb.width-2*d,0,"L",x,y-r-d].join(",")});}else{var dx=Math.sqrt(Math.pow(r+d,2)-Math.pow(bb.height/2+d,2));this[0].attr({path:["M",x,y+r,"c",-R,0,-r,R-r,-r,-r,0,-R,r-R,-r,r,-r,R,0,r,r-R,r,r,0,R,R-r,r,-r,r,"M",x+dx,y-bb.height/2-d,"a",r+d,r+d,0,1,0,0,bb.height+2*d,"l",r+d-dx+bb.width+2*d,0,0,-bb.height-2*d,"L",x+dx,y-bb.height/2-d].join(",")});}this[1].attr({x:x+r+d+bb.width/2,y:y});_407=(360-_407)%360;this.rotate(_407,x,y);_407>90&&_407<270&&this[1].attr({x:x-r-d-bb.width/2,y:y,rotation:[180+_407,x,y]});return this;};res.update();return res;};Raphael.fn.g.popupit=function(x,y,set,dir,size){dir=dir==null?2:dir;size=size||5;x=Math.round(x)+0.5;y=Math.round(y)+0.5;var bb=set.getBBox(),w=Math.round(bb.width/2),h=Math.round(bb.height/2),dx=[0,w+size*2,0,-w-size*2],dy=[-h*2-size*3,-h-size,0,-h-size],p=["M",x-dx[dir],y-dy[dir],"l",-size,(dir==2)*-size,-Math.max(w-size,0),0,"a",size,size,0,0,1,-size,-size,"l",0,-Math.max(h-size,0),(dir==3)*-size,-size,(dir==3)*size,-size,0,-Math.max(h-size,0),"a",size,size,0,0,1,size,-size,"l",Math.max(w-size,0),0,size,!dir*-size,size,!dir*size,Math.max(w-size,0),0,"a",size,size,0,0,1,size,size,"l",0,Math.max(h-size,0),(dir==1)*size,size,(dir==1)*-size,size,0,Math.max(h-size,0),"a",size,size,0,0,1,-size,size,"l",-Math.max(w-size,0),0,"z"].join(","),xy=[{x:x,y:y+size*2+h},{x:x-size*2-w,y:y},{x:x,y:y-size*2-h},{x:x+size*2+w,y:y}][dir];set.translate(xy.x-w-bb.x,xy.y-h-bb.y);return this.path(p).attr({fill:"#000",stroke:"none"}).insertBefore(set.node?set:set[0]);};Raphael.fn.g.popup=function(x,y,text,dir,size){dir=dir==null?2:dir;size=size||5;text=text||"$9.99";var res=this.set(),d=3;res.push(this.path().attr({fill:"#000",stroke:"none"}));res.push(this.text(x,y,text).attr(this.g.txtattr).attr({fill:"#fff"}));res.update=function(X,Y,_423){X=X||x;Y=Y||y;var bb=this[1].getBBox(),w=bb.width/2,h=bb.height/2,dx=[0,w+size*2,0,-w-size*2],dy=[-h*2-size*3,-h-size,0,-h-size],p=["M",X-dx[dir],Y-dy[dir],"l",-size,(dir==2)*-size,-Math.max(w-size,0),0,"a",size,size,0,0,1,-size,-size,"l",0,-Math.max(h-size,0),(dir==3)*-size,-size,(dir==3)*size,-size,0,-Math.max(h-size,0),"a",size,size,0,0,1,size,-size,"l",Math.max(w-size,0),0,size,!dir*-size,size,!dir*size,Math.max(w-size,0),0,"a",size,size,0,0,1,size,size,"l",0,Math.max(h-size,0),(dir==1)*size,size,(dir==1)*-size,size,0,Math.max(h-size,0),"a",size,size,0,0,1,-size,size,"l",-Math.max(w-size,0),0,"z"].join(","),xy=[{x:X,y:Y+size*2+h},{x:X-size*2-w,y:Y},{x:X,y:Y-size*2-h},{x:X+size*2+w,y:Y}][dir];if(_423){this[0].animate({path:p},500,">");this[1].animate(xy,500,">");}else{this[0].attr({path:p});this[1].attr(xy);}return this;};return res.update(x,y);};Raphael.fn.g.flag=function(x,y,text,_42e){_42e=_42e||0;text=text||"$9.99";var res=this.set(),d=3;res.push(this.path().attr({fill:"#000",stroke:"none"}));res.push(this.text(x,y,text).attr(this.g.txtattr).attr({fill:"#fff"}));res.update=function(x,y){this.rotate(0,x,y);var bb=this[1].getBBox(),h=bb.height/2;this[0].attr({path:["M",x,y,"l",h+d,-h-d,bb.width+2*d,0,0,bb.height+2*d,-bb.width-2*d,0,"z"].join(",")});this[1].attr({x:x+h+d+bb.width/2,y:y});_42e=360-_42e;this.rotate(_42e,x,y);_42e>90&&_42e<270&&this[1].attr({x:x-r-d-bb.width/2,y:y,rotation:[180+_42e,x,y]});return this;};return res.update(x,y);};Raphael.fn.g.label=function(x,y,text){var res=this.set();res.push(this.rect(x,y,10,10).attr({stroke:"none",fill:"#000"}));res.push(this.text(x,y,text).attr(this.g.txtattr).attr({fill:"#fff"}));res.update=function(){var bb=this[1].getBBox(),r=Math.min(bb.width+10,bb.height+10)/2;this[0].attr({x:bb.x-r/2,y:bb.y-r/2,width:bb.width+r,height:bb.height+r,r:r});};res.update();return res;};Raphael.fn.g.labelit=function(set){var bb=set.getBBox(),r=Math.min(20,bb.width+10,bb.height+10)/2;return this.rect(bb.x-r/2,bb.y-r/2,bb.width+r,bb.height+r,r).attr({stroke:"none",fill:"#000"}).insertBefore(set[0]);};Raphael.fn.g.drop=function(x,y,text,size,_442){size=size||30;_442=_442||0;var res=this.set();res.push(this.path(["M",x,y,"l",size,0,"A",size*0.4,size*0.4,0,1,0,x+size*0.7,y-size*0.7,"z"]).attr({fill:"#000",stroke:"none",rotation:[22.5-_442,x,y]}));_442=(_442+90)*Math.PI/180;res.push(this.text(x+size*Math.sin(_442),y+size*Math.cos(_442),text).attr(this.g.txtattr).attr({"font-size":size*12/30,fill:"#fff"}));res.drop=res[0];res.text=res[1];return res;};Raphael.fn.g.blob=function(x,y,text,_447,size){_447=(+_447+1?_447:45)+90;size=size||12;var rad=Math.PI/180,_44a=size*12/12;var res=this.set();res.push(this.path().attr({fill:"#000",stroke:"none"}));res.push(this.text(x+size*Math.sin((_447)*rad),y+size*Math.cos((_447)*rad)-_44a/2,text).attr(this.g.txtattr).attr({"font-size":_44a,fill:"#fff"}));res.update=function(X,Y,_44e){X=X||x;Y=Y||y;var bb=this[1].getBBox(),w=Math.max(bb.width+_44a,size*25/12),h=Math.max(bb.height+_44a,size*25/12),x2=X+size*Math.sin((_447-22.5)*rad),y2=Y+size*Math.cos((_447-22.5)*rad),x1=X+size*Math.sin((_447+22.5)*rad),y1=Y+size*Math.cos((_447+22.5)*rad),dx=(x1-x2)/2,dy=(y1-y2)/2,rx=w/2,ry=h/2,k=-Math.sqrt(Math.abs(rx*rx*ry*ry-rx*rx*dy*dy-ry*ry*dx*dx)/(rx*rx*dy*dy+ry*ry*dx*dx)),cx=k*rx*dy/ry+(x1+x2)/2,cy=k*-ry*dx/rx+(y1+y2)/2;if(_44e){this.animate({x:cx,y:cy,path:["M",x,y,"L",x1,y1,"A",rx,ry,0,1,1,x2,y2,"z"].join(",")},500,">");}else{this.attr({x:cx,y:cy,path:["M",x,y,"L",x1,y1,"A",rx,ry,0,1,1,x2,y2,"z"].join(",")});}return this;};res.update(x,y);return res;};Raphael.fn.g.colorValue=function(_45d,_45e,s,b){return "hsb("+[Math.min((1-_45d/_45e)*0.4,1),s||0.75,b||0.75]+")";};Raphael.fn.g.snapEnds=function(from,to,_463){var f=from,t=to;if(f==t){return {from:f,to:t,power:0};}function round(a){return Math.abs(a-0.5)<0.25?Math.floor(a)+0.5:Math.round(a);};var d=(t-f)/_463,r=Math.floor(d),R=r,i=0;if(r){while(R){i--;R=Math.floor(d*Math.pow(10,i))/Math.pow(10,i);}i++;}else{while(!r){i=i||1;r=Math.floor(d*Math.pow(10,i))/Math.pow(10,i);i++;}i&&i--;}var t=round(to*Math.pow(10,i))/Math.pow(10,i);if(t<to){t=round((to+0.5)*Math.pow(10,i))/Math.pow(10,i);}var f=round((from-(i>0?0:0.5))*Math.pow(10,i))/Math.pow(10,i);return {from:f,to:t,power:i};};Raphael.fn.g.axis=function(x,y,_46c,from,to,_46f,_470,_471,type,_473){_473=_473==null?2:_473;type=type||"t";_46f=_46f||10;var path=type=="|"||type==" "?["M",x+0.5,y,"l",0,0.001]:_470==1||_470==3?["M",x+0.5,y,"l",0,-_46c]:["M",x,y+0.5,"l",_46c,0],ends=this.g.snapEnds(from,to,_46f),f=ends.from,t=ends.to,i=ends.power,j=0,text=this.set();d=(t-f)/_46f;var _47a=f,rnd=i>0?i:0;dx=_46c/_46f;if(+_470==1||+_470==3){var Y=y,_47e=(_470-1?1:-1)*(_473+3+!!(_470-1));while(Y>=y-_46c){type!="-"&&type!=" "&&(path=path.concat(["M",x-(type=="+"||type=="|"?_473:!(_470-1)*_473*2),Y+0.5,"l",_473*2+1,0]));text.push(this.text(x+_47e,Y,(_471&&_471[j++])||(Math.round(_47a)==_47a?_47a:+_47a.toFixed(rnd))).attr(this.g.txtattr).attr({"text-anchor":_470-1?"start":"end"}));_47a+=d;Y-=dx;}if(Math.round(Y+dx-(y-_46c))){type!="-"&&type!=" "&&(path=path.concat(["M",x-(type=="+"||type=="|"?_473:!(_470-1)*_473*2),y-_46c+0.5,"l",_473*2+1,0]));text.push(this.text(x+_47e,y-_46c,(_471&&_471[j])||(Math.round(_47a)==_47a?_47a:+_47a.toFixed(rnd))).attr(this.g.txtattr).attr({"text-anchor":_470-1?"start":"end"}));}}else{var X=x,_47a=f,rnd=i>0?i:0,_47e=(_470?-1:1)*(_473+9+!_470),dx=_46c/_46f,txt=0,prev=0;while(X<=x+_46c){type!="-"&&type!=" "&&(path=path.concat(["M",X+0.5,y-(type=="+"?_473:!!_470*_473*2),"l",0,_473*2+1]));text.push(txt=this.text(X,y+_47e,(_471&&_471[j++])||(Math.round(_47a)==_47a?_47a:+_47a.toFixed(rnd))).attr(this.g.txtattr));var bb=txt.getBBox();if(prev>=bb.x-5){text.pop(text.length-1).remove();}else{prev=bb.x+bb.width;}_47a+=d;X+=dx;}if(Math.round(X-dx-x-_46c)){type!="-"&&type!=" "&&(path=path.concat(["M",x+_46c+0.5,y-(type=="+"?_473:!!_470*_473*2),"l",0,_473*2+1]));text.push(this.text(x+_46c,y+_47e,(_471&&_471[j])||(Math.round(_47a)==_47a?_47a:+_47a.toFixed(rnd))).attr(this.g.txtattr));}}var res=this.path(path);res.text=text;res.all=this.set([res,text]);res.remove=function(){this.text.remove();this.constructor.prototype.remove.call(this);};return res;};Raphael.el.lighter=function(_484){_484=_484||2;var fs=[this.attrs.fill,this.attrs.stroke];this.fs=this.fs||[fs[0],fs[1]];fs[0]=Raphael.rgb2hsb(Raphael.getRGB(fs[0]).hex);fs[1]=Raphael.rgb2hsb(Raphael.getRGB(fs[1]).hex);fs[0].b=Math.min(fs[0].b*_484,1);fs[0].s=fs[0].s/_484;fs[1].b=Math.min(fs[1].b*_484,1);fs[1].s=fs[1].s/_484;this.attr({fill:"hsb("+[fs[0].h,fs[0].s,fs[0].b]+")",stroke:"hsb("+[fs[1].h,fs[1].s,fs[1].b]+")"});};Raphael.el.darker=function(_486){_486=_486||2;var fs=[this.attrs.fill,this.attrs.stroke];this.fs=this.fs||[fs[0],fs[1]];fs[0]=Raphael.rgb2hsb(Raphael.getRGB(fs[0]).hex);fs[1]=Raphael.rgb2hsb(Raphael.getRGB(fs[1]).hex);fs[0].s=Math.min(fs[0].s*_486,1);fs[0].b=fs[0].b/_486;fs[1].s=Math.min(fs[1].s*_486,1);fs[1].b=fs[1].b/_486;this.attr({fill:"hsb("+[fs[0].h,fs[0].s,fs[0].b]+")",stroke:"hsb("+[fs[1].h,fs[1].s,fs[1].b]+")"});};Raphael.el.original=function(){if(this.fs){this.attr({fill:this.fs[0],stroke:this.fs[1]});delete this.fs;}};})();Raphael.fn.g.piechart_with_maintaining_order=function(cx,cy,r,_48b,opts){opts=opts||{};var _48d=this,_48e=[],_48f=this.set(),_490=this.set(),_491=this.set(),_492=[],len=_48b.length,_494=0,_495=0,_496=0,cut=9,_498=true;_490.covers=_48f;var _499=0,_49a,_49b;for(var i=0;i<len;i++){if(_48b[i].constructor==Number&&_48b[i]>0){_499++;_49a=_48b[i];_49b=i;}}if(_499==1){var p=this.circle(cx,cy,r).attr({fill:this.g.colors[_49b],stroke:opts.stroke||"#fff","stroke-width":opts.strokewidth==null?1:opts.strokewidth,href:opts.href&&opts.href[_49b]?opts.href[_49b]:null});p.middle={x:cx,y:cy};p.mangle=180;_491[_49b]=p;_48e[_49b]=p;_48f[_49b]=p;_495=_49a;for(var i=0;i<len;i++){_48b[i]={value:_48b[i],order:i,valueOf:function(){return this.value;}};}}else{function sector(cx,cy,r,_4a1,_4a2,fill){var rad=Math.PI/180,x1=cx+r*Math.cos(-_4a1*rad),x2=cx+r*Math.cos(-_4a2*rad),xm=cx+r/2*Math.cos(-(_4a1+(_4a2-_4a1)/2)*rad),y1=cy+r*Math.sin(-_4a1*rad),y2=cy+r*Math.sin(-_4a2*rad),ym=cy+r/2*Math.sin(-(_4a1+(_4a2-_4a1)/2)*rad),res=["M",cx,cy,"L",x1,y1,"A",r,r,0,+(Math.abs(_4a2-_4a1)>180),1,x2,y2,"z"];res.middle={x:xm,y:ym};return res;};for(var i=0;i<len;i++){_495+=_48b[i];_48b[i]={value:_48b[i],order:i,valueOf:function(){return this.value;}};}len=Math.min(cut+1,_48b.length);_496&&_48b.splice(len)&&(_48b[cut].others=true);for(var i=0;i<len;i++){var _4ac=_494-360*_48b[i]/_495/2;if(!i){_494=90-_4ac;_4ac=_494-360*_48b[i]/_495/2;}if(opts.init){var _4ad=sector(cx,cy,1,_494,_494-360*_48b[i]/_495).join(",");}var path=sector(cx,cy,r,_494,_494-=360*_48b[i]/_495);var p=this.path(opts.init?_4ad:path).attr({fill:opts.colors&&opts.colors[i]||this.g.colors[i]||"#666",stroke:opts.stroke||"#fff","stroke-width":(opts.strokewidth==null?1:opts.strokewidth),"stroke-linejoin":"round"});if(_48b[i]==0){p.attr({stroke:"none",opacity:0});}p.value=_48b[i];p.middle=path.middle;p.mangle=_4ac;_48e.push(p);_491.push(p);opts.init&&p.animate({path:path.join(",")},(+opts.init-1)||1000,">");}for(var i=0;i<len;i++){var p=_48d.path(_48e[i].attr("path")).attr(this.g.shim);opts.href&&opts.href[i]&&p.attr({href:opts.href[i]});p.attr=function(){};_48f.push(p);_491.push(p);}}_490.hover=function(fin,fout){fout=fout||function(){};var that=this;for(var i=0;i<len;i++){if(_491[i]&&_48f[i]){(function(_4b3,_4b4,j){var o={sector:_4b3,cover:_4b4,cx:cx,cy:cy,mx:_4b3.middle.x,my:_4b3.middle.y,mangle:_4b3.mangle,r:r,value:_48b[j],total:_495,label:that.labels&&that.labels[j]};_4b4.mouseover(function(){fin.call(o);}).mouseout(function(){fout.call(o);});})(_491[i],_48f[i],i);}}return this;};_490.each=function(f){var that=this;for(var i=0;i<len;i++){(function(_4ba,_4bb,j){var o={sector:_4ba,cover:_4bb,cx:cx,cy:cy,x:_4ba.middle.x,y:_4ba.middle.y,mangle:_4ba.mangle,r:r,value:_48b[j],total:_495,label:that.labels&&that.labels[j]};f.call(o);})(_491[i],_48f[i],i);}return this;};_490.click=function(f){var that=this;for(var i=0;i<len;i++){(function(_4c1,_4c2,j){var o={sector:_4c1,cover:_4c2,cx:cx,cy:cy,mx:_4c1.middle.x,my:_4c1.middle.y,mangle:_4c1.mangle,r:r,value:_48b[j],total:_495,label:that.labels&&that.labels[j]};_4c2.click(function(){f.call(o);});})(_491[i],_48f[i],i);}return this;};_490.inject=function(_4c5){_4c5.insertBefore(_48f[0]);};var _4c6=function(_4c7,_4c8,mark,dir){var x=cx+r+r/5,y=cy,h=y+10;_4c7=_4c7||[];dir=(dir&&dir.toLowerCase&&dir.toLowerCase())||"east";mark=_48d.g.markers[mark&&mark.toLowerCase()]||"disc";_490.labels=_48d.set();for(var i=0;i<len;i++){var clr=_491[i]&&Math.round(_48b[i].value*1000)>1?_491[i].attr("fill"):"#fff",j=_48b[i].order,txt;_48b[i].others&&(_4c7[j]=_4c8||"Others");_4c7[j]=_48d.g.labelise(_4c7[j],_48b[i],_495);_490.labels.push(_48d.set());_490.labels[i].push(_48d.g[mark](x+5,h,5).attr({fill:clr,stroke:"none"}));_490.labels[i].push(txt=_48d.text(x+20,h,_4c7[j]||_48b[j]).attr(_48d.g.txtattr).attr({fill:opts.legendcolor||"#000","text-anchor":"start"}));if(_48f[i]){_48f[i].label=_490.labels[i];}h+=txt.getBBox().height*1.2;}var bb=_490.labels.getBBox(),tr={east:[0,-bb.height/2],west:[-bb.width-2*r-20,-bb.height/2],north:[-r-bb.width/2,-r-bb.height-10],south:[-r-bb.width/2,r+10]}[dir];_490.labels.translate.apply(_490.labels,tr);_490.push(_490.labels);};if(opts.legend){_4c6(opts.legend,opts.legendothers,opts.legendmark,opts.legendpos);}_490.push(_491,_48f);_490.series=_491;_490.covers=_48f;return _490;};if(!dojo._hasResource["scout.visualize"]){dojo._hasResource["scout.visualize"]=true;dojo.provide("scout.visualize");dojo.declare("scout.visualize",null,{width:400,height:180,left_gutter:null,right_gutter:10,bottom_gutter:20,top_gutter:20,color:"hsb( .58, 1, .71 )",positive_color:"hsb( .33, 1, .80 )",negative_color:"hsb( 1, 1, .80 )",color_set:["hsb( .58, .9, .85 )","#f90","#90c","#3cc","#f39"],stroke_width:2,dot_radius:3,expanded_dot_radius:6,shade_primary_data:true,grid_color:"#eee",grid_bg_color:"#fff",inverse_bg_color:"#333",inverse_text_color:"#fff",font_family:"\"helvetica neue\", helvetica, arial, sans-serif",text_color:"#000",meta_text_color:"#999",text_size:"13px",detail_text_size:"10px",label_char_limit:30,line_spacing:2,padding:10,node:null,data:null,names:null,labels:null,hrefs:null,x_axis_title:"Date",y_axis_title:"# of Mentions",data_unit:"mention",data_unit_plural:"mentions",R:null,X:null,Y:null,constructor:function(opts){this.node=opts.node;this.data=opts.data;this.names=opts.names;this.labels=opts.labels;this.hrefs=opts.hrefs;if(opts.x_axis_title){this.x_axis_title=opts.x_axis_title;}if(opts.y_axis_title){this.y_axis_title=opts.y_axis_title;}if(opts.data_unit){this.data_unit=opts.data_unit;}if(opts.data_unit_plural){this.data_unit_plural=opts.data_unit_plural;}var _4d5=opts.width==null?dojo.style(this.node,"width"):opts.width;if(_4d5>0){this.width=_4d5;}var _4d6=opts.height==null?dojo.style(this.node,"height"):opts.height;if(_4d6>0){this.height=_4d6;}if(opts.padding){this.padding=opts.padding;}if(opts.bottom_gutter){this.bottom_gutter=opts.bottom_gutter;}if(opts.top_gutter){this.top_gutter=opts.top_gutter;}if(opts.color){this.color=opts.color;}if(opts.color_set){this.color_set=opts.color_set;}if(opts.positive_color){this.positive_color=opts.positive_color;}if(opts.negative_color){this.negative_color=opts.negative_color;}if(opts.dot_radius){this.dot_radius=opts.dot_radius;}if(opts.expanded_dot_radius){this.expanded_dot_radius=opts.expanded_dot_radius;}if(opts.shade_primary_data!=undefined){this.shade_primary_data=opts.shade_primary_data;}this._calculate_y_max();this._calculate_y_min();Raphael.fn.g.txtattr=this._attr_text();this.R=Raphael(this.node,this.width,this.height);this._calculate_max_text_widths();this.left_gutter=this.max_y_width+(this.padding*2);this._calculate_segment_sizes();this._calculate_x_axis_label_y();return this;},volume:function(){this._label_axes();var grid=this._draw_grid();var _4d8=this.R.set(),_4d9=(this.padding*2)+(this.expanded_dot_radius*2),_4da=this.max_label_width+_4d9+(this.padding*2),_4db=[],_4dc=[],_4dd=false,_4de,_4df=0;for(var _4e0=0,_4e1=this.data.length;_4e0<_4e1;_4e0++){_4df=_4df+parseInt(this.text_size)+this.line_spacing;var _4e2=this.R.circle(_4d9/2,_4df-2,this.expanded_dot_radius).attr({fill:this.color_set[_4e0],stroke:"#fff","stroke-width":this.stroke_width}).hide();_4dc.push(_4e2);_4d8.push(_4e2);var _4e3=this.R.text(_4d9,_4df,this.names[_4e0]).attr(this._attr_label_text()).hide();_4db.push(_4e3);_4d8.push(_4e3);_4df=_4df+this.line_spacing;}_4df=_4df+parseInt(this.detail_text_size)+(this.line_spacing*2);var _4e3=this.R.text(_4d9,_4df,"23 Oct 2009").attr(this._attr_label_detail()).hide();_4db.push(_4e3);_4d8.push(_4e3);_4df=_4df+this.line_spacing;var _4e4=_4df+this.padding,_4e5=0,_4e6=this.R.rect(0,0,_4da,_4e4,5).attr({fill:this.inverse_bg_color,stroke:"none",opacity:0.96}).hide();_4d8.push(_4e6);dojo.connect(_4e6.node,"mouseover",dojo.hitch(this,function(e){if(_4e5==0){_4e5=this.height-this.bottom_gutter-this.padding-_4e4;}else{_4e5=0;}}));var _4e8=this.R.set(),dots=this.R.set(),_4ea=this.R.set(),_4eb,_4ec,_4ed;for(var _4ee=0,_4ef=this.labels.length;_4ee<_4ef;_4ee++){var y=0,x=Math.round(this.left_gutter+(this.X*_4ee));_4e8.push(this.R.rect(x-(this.X/2),y,this.X,this.height-this.bottom_gutter).attr({stroke:"none",fill:this.grid_bg_color,opacity:0}));var rect=_4e8[_4e8.length-1];rect.x_index=_4ee;dojo.connect(rect.node,"mouseover",dojo.hitch(this,function(e){var x=e.target.raphael.attrs.x,y=e.target.raphael.attrs.y,_4f5=e.target.raphael.x_index;clearTimeout(_4de);var _4f6={x:+x+(this.X*0.8),y:_4e5};if(_4f6.x+_4da>this.width){_4f6.x-=_4da+(this.X*1.5);}if(_4f6.x<1){_4f6.x=this.width-_4da;}for(var _4f7=0,_4e1=this.data.length;_4f7<_4e1;_4f7++){_4db[_4f7].attr({text:this._label_text(this.data[_4f7][_4f5],this.names[_4f7])});}_4db[_4db.length-1].attr({text:this.labels[_4f5]}).show();var _4f8=+_4f6.x-_4e6.attrs.x,_4f9=+_4f6.y-_4e6.attrs.y;if(_4dd){_4d8.show().animateWith(_4e6,{translation:_4f8+","+_4f9},200);}else{this.R.translate_set(_4d8,_4f8,_4f9).show();}_4dd=true;this.R.safari();}));dojo.connect(rect.node,"mouseout",dojo.hitch(this,function(e){_4de=setTimeout(dojo.hitch(this,function(){_4d8.hide();_4dd=false;this.R.safari();}),10);}));}_4e8.toFront();for(var _4e0=0,_4e1=this.data.length;_4e0<_4e1;_4e0++){_4ea.push(this.R.path().attr({stroke:this.color_set[_4e0],"stroke-width":this.stroke_width,"stroke-linejoin":"round"}));if(this.shade_primary_data&&_4e0==0){_4eb=this.R.path().attr({stroke:"none",opacity:0.15,fill:this.color_set[_4e0]}).moveTo(this.left_gutter,this.height-this.bottom_gutter);}var path=_4ea[_4ea.length-1];if(_4e0==0){_4ec=path;}for(var _4ee=0,_4ef=this.labels.length;_4ee<_4ef;_4ee++){var y=Math.round(this.height-this.bottom_gutter-this.Y*this.data[_4e0][_4ee]),x=Math.round(this.left_gutter+this.X*_4ee);if(this.shade_primary_data&&_4e0==0){_4eb[_4ee==0?"lineTo":"cplineTo"](x,y,this._control_point_offset());}path[_4ee==0?"moveTo":"cplineTo"](x,y,this._control_point_offset());dots.push(this.R.circle(x,y,this.dot_radius).attr({fill:this.color_set[_4e0],stroke:"none",href:this.hrefs[_4e0][_4ee]}));var dot=dots[dots.length-1];if(_4e0==0){_4ed=dot;}dojo.connect(dot.node,"mouseover",dojo.hitch(this,function(e){var dot=e.target.raphael;dot.stop();dot.attr({r:this.expanded_dot_radius});}));dojo.connect(dot.node,"mouseout",dojo.hitch(this,function(e){var dot=e.target.raphael;dot.animate({r:this.dot_radius},500,"bounce");}));}}if(this.shade_primary_data){_4eb.lineTo(x,this.height-this.bottom_gutter).andClose().toBack();}_4ec.toBack();_4ea.toBack();grid.toBack();dots.toFront();_4ed.toFront();_4e6.toFront();for(var _4e0=0,_4e1=this.data.length;_4e0<_4e1;_4e0++){_4dc[_4e0].toFront();}for(var _4e0=0,_4e1=this.data.length+1;_4e0<_4e1;_4e0++){_4db[_4e0].toFront();}},share:function(){var _501=this.width<this.height?this.width/2-this.padding*2:this.height/2-this.padding*2;var _502=this.width*0.33;var pie=this.R.g.piechart_with_maintaining_order(_502,this.height/2,_501,this.data,{legend:dojo.map(this.names,function(e){return "%%% "+e;}),legendpos:"east",href:this.hrefs,colors:this.color_set});pie.hover(function(){this.sector.stop();this.sector.scale(1.1,1.1,this.cx,this.cy);if(this.label){this.label[0].stop();this.label[0].scale(1.5);this.label[1].attr({"font-weight":"bold"});}},function(){this.sector.animate({scale:[1,1,this.cx,this.cy]},500,"bounce");if(this.label){this.label[0].animate({scale:1},500,"bounce");this.label[1].attr({"font-weight":"normal"});}});},y_max:null,_calculate_y_max:function(){if(this.data instanceof Array&&this.data[0] instanceof Array){var _505=0;dojo.forEach(this.data,function(_506){var _507=Math.max.apply(null,_506);if(_507>_505){_505=_507;}});this.y_max=_505;}else{this.y_max=Math.max.apply(null,this.data);}return this.y_max;},y_min:null,y_non_zero_min:null,_calculate_y_min:function(opts){if(this.data instanceof Array&&this.data[0] instanceof Array){var _509,_50a;dojo.forEach(this.data,function(_50b){var _50c=Math.min.apply(null,_50b);if(!_509||_50c<_509){_509=_50c;}var _50d=[];dojo.forEach(_50b,function(e){if(e!=0){_50d.push(e);}});var _50c=Math.min.apply(null,_50d);if(!_50a||_50c<_50a){_50a=_50c;}});this.y_min=_509;this.y_non_zero_min=_50a;}else{this.y_min=Math.min.apply(null,this.data);var _50f=[];dojo.forEach(this.data,function(e){if(e!=0){_50f.push(e);}});this.y_non_zero_min=Math.min.apply(null,_50f);}return this.y_min;},max_label_width:null,max_y_width:null,_calculate_max_text_widths:function(){if(this.names instanceof Array){var _511=[];dojo.forEach(this.names,function(name){dojo.forEach([this.y_max,this.y_non_zero_min==undefined?this.y_min:this.y_non_zero_min],function(num){_511.push(this._label_text(num,name));},this);},this);this.max_label_width=this.max_text_width(_511,this._attr_label_text());}var _514=this.max_text_width(this.labels,this._attr_label_detail());if(this.max_label_width!=undefined&&_514>this.max_label_width){this.max_label_width=_514;}this.max_y_width=this.max_text_width([this._round_for_display(this.y_max),this._round_for_display(this.y_min)],this._attr_label_detail());},max_text_width:function(_515,_516){var _517=[];dojo.forEach(_515,function(s){_517.push(this.text_width_of(s,_516));},this);return Math.max.apply(null,_517);},text_width_of:function(_519,_51a){e=this.R.text(0,0,_519).attr(_51a).hide();w=e.getBBox().width;e.remove();return w;},_grid_y_segments:function(){return (this.y_max/Math.pow(10,Math.floor(Math.log(this.y_max)/Math.log(10)))).toPrecision(5);},_grid_x_segments:function(){var _51b=this.data[0] instanceof Array?this.data[0]:this.data;return _51b.length-1;},_draw_grid:function(){var _51c=this.data[0] instanceof Array?this.data[0]:this.data;return this.R.drawGrid(this.left_gutter,this.top_gutter,this.width-this.left_gutter-this.right_gutter,this.height-this.top_gutter-this.bottom_gutter,this._grid_x_segments(),this._grid_y_segments(),this.grid_color).rotate(180);},_attr_text:function(){return {"font-family":this.font_family,"font-size":this.text_size,"font-weight":"normal","text-anchor":"start",fill:this.text_color};},_attr_label_text:function(){return {"font-family":this.font_family,"font-size":this.text_size,"font-weight":"bold","text-anchor":"start",fill:this.inverse_text_color};},_attr_label_detail:function(){return {"font-family":this.font_family,"font-size":this.detail_text_size,"text-anchor":"start",fill:this.inverse_text_color};},_attr_axis_text:function(){return {"font-family":this.font_family,"font-size":this.detail_text_size,fill:this.text_color};},_label_axes:function(){var _51d=this.R.set(),_51e=0,_51f=this.width-this.left_gutter-this.right_gutter;line_height=parseInt(this.detail_text_size)+this.line_spacing;_51d.push(this.R.text(this.width-this.right_gutter,this._x_axis_label_y,this.labels[this.labels.length-1]).attr(this._attr_axis_text()).attr({"text-anchor":"end"}));_51d.push(this.R.text(this.left_gutter,this._x_axis_label_y,this.labels[0]).attr(this._attr_axis_text()).attr({"text-anchor":"start"}));_51d.push(this.R.text((this.width+this.left_gutter)/2,this._x_axis_label_y,this.x_axis_title).attr(this._attr_axis_text()).attr({fill:this.meta_text_color}));dojo.forEach(_51d,function(l){_51e+=l.getBBox().width+this.padding;},this);if(_51e>_51f){this.R.translate_set(_51d,0,0,0,-1*line_height);this.bottom_gutter=(_51d.length*line_height)+this.padding;this._calculate_segment_sizes();}this.R.text(this.left_gutter-this.padding,this.top_gutter,this.y_max==0?1:this._round_for_display(this.y_max)).attr(this._attr_axis_text()).attr({"text-anchor":"end"});this.R.text(this.left_gutter-this.padding,this.height-this.bottom_gutter,"0").attr(this._attr_axis_text()).attr({"text-anchor":"end"});this.R.text(this.left_gutter-8-this.padding,this.height/2,this.y_axis_title).attr(this._attr_axis_text()).attr({fill:this.meta_text_color}).rotate(270);},_x_axis_label_y:null,_calculate_x_axis_label_y:function(){this._x_axis_label_y=this.height-this.bottom_gutter+parseInt(this.detail_text_size);return this._x_axis_label_y;},_calculate_segment_sizes:function(){this.X=(this.width-this.left_gutter-this.right_gutter)/(this.labels.length-1);this.Y=(this.height-this.bottom_gutter-this.top_gutter)/(this.y_max==0?1:this.y_max);},_control_point_offset:function(){return Math.round(this.X/2);},_round_for_display:function(num){if(num==null){num=0;}if(num==0){return 0;}else{if(num>=1){return Math.round(num);}else{return num.toPrecision(2);}}},_label_text:function(num,name){if(name&&name.length>this.label_char_limit){name=name.slice(0,this.label_char_limit-1)+"…";}return this._round_for_display(num)+" "+name;},_pluralize_data_unit:function(num,_525,_526){if(!_525){_525=this.data_unit;}if(!_526){_526=this.data_unit_plural;}return num+" "+((num==1)?_525:_526);}});}
