window.Raphael=(function(){var O=/[, ]+/,f=document,H=window,d=function(){return k.apply(d,arguments)},b={},p={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},r={cx:"number",cy:"number",fill:"colour","fill-opacity":"number","font-size":"number",height:"number",opacity:"number",path:"path",r:"number",rotation:"csv",rx:"number",ry:"number",scale:"csv",stroke:"colour","stroke-opacity":"number","stroke-width":"number",translation:"csv",width:"number",x:"number",y:"number"},s=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup"];d.version="0.7.4";d.type=(window.SVGAngle?"SVG":"VML");d.svg=!(d.vml=d.type=="VML");d.idGenerator=0;d.fn={};d.toString=function(){return"Your browser "+(this.vml?"doesn't ":"")+"support"+(this.svg?"s":"")+" SVG.\nYou are running "+unescape("Rapha%EBl%20")+this.version};d.setWindow=function(e){H=e;f=H.document};d.hsb2rgb=function(W,U,aa){if(typeof W=="object"&&"h" in W&&"s" in W&&"b" in W){aa=W.b;U=W.s;W=W.h}var R,S,ab;if(aa==0){return{r:0,g:0,b:0,hex:"#000"}}if(W>1||U>1||aa>1){W/=255;U/=255;aa/=255}var T=Math.floor(W*6),X=(W*6)-T,Q=aa*(1-U),P=aa*(1-(U*X)),ac=aa*(1-(U*(1-X)));R=[aa,P,Q,Q,ac,aa,aa][T];S=[ac,aa,aa,P,Q,Q,ac][T];ab=[Q,Q,ac,aa,aa,P,Q][T];R*=255;S*=255;ab*=255;var Y={r:R,g:S,b:ab};var e=Math.round(R).toString(16);if(e.length==1){e="0"+e}var V=Math.round(S).toString(16);if(V.length==1){V="0"+V}var Z=Math.round(ab).toString(16);if(Z.length==1){Z="0"+Z}Y.hex="#"+e+V+Z;return Y};d.rgb2hsb=function(e,i,U){if(typeof e=="object"&&"r" in e&&"g" in e&&"b" in e){U=e.b;i=e.g;e=e.r}if(typeof e=="string"){var W=G(e);e=W.r;i=W.g;U=W.b}if(e>1||i>1||U>1){e/=255;i/=255;U/=255}var T=Math.max(e,i,U),P=Math.min(e,i,U),R,Q,S=T;if(P==T){return{h:0,s:0,b:T}}else{var V=(T-P);Q=V/T;if(e==T){R=(i-U)/V}else{if(i==T){R=2+((U-e)/V)}else{R=4+((e-i)/V)}}R/=6;if(R<0){R+=1}if(R>1){R-=1}}return{h:R,s:Q,b:S}};var G=function(e){var V={aliceblue:"#f0f8ff",amethyst:"#96c",antiquewhite:"#faebd7",aqua:"#0ff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000",blanchedalmond:"#ffebcd",blue:"#00f",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#f0f",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#789",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#0f0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#f0f",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#f00",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#fff",whitesmoke:"#f5f5f5",yellow:"#ff0",yellowgreen:"#9acd32"};if(e.toString().toLowerCase() in V){e=V[e.toString().toLowerCase()]}if(!e){return{r:0,g:0,b:0,hex:"#000"}}if(e=="none"){return{r:-1,g:-1,b:-1,hex:"none"}}var P,Q,U,S=e.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*\)|hsb\(\s*([\d\.]+\s*,\s*[\d\.]+\s*,\s*[\d\.]+)\s*\)|hsb\(\s*([\d\.]+%\s*,\s*[\d\.]+%\s*,\s*[\d\.]+%)\s*\))\s*$/i);if(S){if(S[2]){U=parseInt(S[2].substring(5),16);Q=parseInt(S[2].substring(3,5),16);P=parseInt(S[2].substring(1,3),16)}if(S[3]){U=parseInt(S[3].substring(3)+S[3].substring(3),16);Q=parseInt(S[3].substring(2,3)+S[3].substring(2,3),16);P=parseInt(S[3].substring(1,2)+S[3].substring(1,2),16)}if(S[4]){S=S[4].split(/\s*,\s*/);P=parseFloat(S[0],10);Q=parseFloat(S[1],10);U=parseFloat(S[2],10)}if(S[5]){S=S[5].split(/\s*,\s*/);P=parseFloat(S[0],10)*2.55;Q=parseFloat(S[1],10)*2.55;U=parseFloat(S[2],10)*2.55}if(S[6]){S=S[6].split(/\s*,\s*/);P=parseFloat(S[0],10);Q=parseFloat(S[1],10);U=parseFloat(S[2],10);return d.hsb2rgb(P,Q,U)}if(S[7]){S=S[7].split(/\s*,\s*/);P=parseFloat(S[0],10)*2.55;Q=parseFloat(S[1],10)*2.55;U=parseFloat(S[2],10)*2.55;return d.hsb2rgb(P,Q,U)}var S={r:P,g:Q,b:U};var i=Math.round(P).toString(16);(i.length==1)&&(i="0"+i);var R=Math.round(Q).toString(16);(R.length==1)&&(R="0"+R);var T=Math.round(U).toString(16);(T.length==1)&&(T="0"+T);S.hex="#"+i+R+T;return S}else{return{r:-1,g:-1,b:-1,hex:"none"}}};d.getColor=function(i){var P=arguments.callee.start=arguments.callee.start||{h:0,s:1,b:i||0.75};var e=this.hsb2rgb(P.h,P.s,P.b);P.h+=0.075;if(P.h>1){P.h=0;P.s-=0.2;if(P.s<=0){arguments.callee.start={h:0,s:1,b:P.b}}}return e.hex};d.getColor.reset=function(){delete this.start};d.parsePathString=function(e){var Q={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=[],P=function(){var S="";for(var R=0,T=this.length;R<T;R++){S+=this[R][0]+this[R].join(",").substring(2)}return S};if(e.toString.toString()==P.toString()){return e}e.replace(/([achlmqstvz])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?\s*,?\s*)+)/ig,function(S,R,V){var U=[],T=R.toLowerCase();V.replace(/(-?\d*\.?\d*(?:e[-+]?\d+)?)\s*,?\s*/ig,function(X,W){W&&U.push(+W)});while(U.length>=Q[T]){i.push([R].concat(U.splice(0,Q[T])));if(!Q[T]){break}}});i.toString=P;return i};var x=function(Y){var e=Y;if(typeof Y=="string"){e=d.parsePathString(Y)}e=u(e);var U=[],T=[],P=0;for(var R=0,X=e.length;R<X;R++){switch(e[R][0]){case"Z":break;case"A":U.push(e[R][e[R].length-2]);T.push(e[R][e[R].length-1]);break;default:for(var Q=1,S=e[R].length;Q<S;Q++){if(Q%2){U.push(e[R][Q])}else{T.push(e[R][Q])}}}}var W=Math.min.apply(Math,U),V=Math.min.apply(Math,T);return{x:W,y:V,width:Math.max.apply(Math,U)-W,height:Math.max.apply(Math,T)-V,X:U,Y:T}};var c=function(P){var T=[];if(typeof P=="string"){P=d.parsePathString(P)}var V=0,U=0,e=0;if(P[0][0]=="M"){V=P[0][1];U=P[0][2];e++;T.push(P[0])}for(var R=e,W=P.length;R<W;R++){T[R]=[];if(P[R][0]!=P[R][0].toLowerCase()){T[R][0]=P[R][0].toLowerCase();switch(T[R][0]){case"a":T[R][1]=P[R][1];T[R][2]=P[R][2];T[R][3]=0;T[R][4]=P[R][4];T[R][5]=P[R][5];T[R][6]=+(P[R][6]-V).toFixed(3);T[R][7]=+(P[R][7]-U).toFixed(3);break;case"v":T[R][1]=+(P[R][1]-U).toFixed(3);break;default:for(var Q=1,S=P[R].length;Q<S;Q++){T[R][Q]=+(P[R][Q]-((Q%2)?V:U)).toFixed(3)}}}else{T[R]=P[R]}switch(T[R][0]){case"z":break;case"h":V+=T[R][T[R].length-1];break;case"v":U+=T[R][T[R].length-1];break;default:V+=T[R][T[R].length-2];U+=T[R][T[R].length-1]}}T.toString=P.toString;return T};var u=function(P){var T=[];if(typeof P=="string"){P=d.parsePathString(P)}var V=0,U=0,e=0;if(P[0][0]=="M"){V=+P[0][1];U=+P[0][2];e++;T[0]=P[0]}for(var R=e,W=P.length;R<W;R++){T[R]=[];if(P[R][0]!=(P[R][0]+"").toUpperCase()){T[R][0]=(P[R][0]+"").toUpperCase();switch(T[R][0]){case"A":T[R][1]=P[R][1];T[R][2]=P[R][2];T[R][3]=0;T[R][4]=P[R][4];T[R][5]=P[R][5];T[R][6]=+(P[R][6]+V).toFixed(3);T[R][7]=+(P[R][7]+U).toFixed(3);break;case"V":T[R][1]=+P[R][1]+U;break;default:for(var Q=1,S=P[R].length;Q<S;Q++){T[R][Q]=+P[R][Q]+((Q%2)?V:U)}}}else{T[R]=P[R]}switch(T[R][0]){case"Z":break;case"H":V=T[R][1];break;case"V":U=T[R][1];break;default:V=T[R][T[R].length-2];U=T[R][T[R].length-1]}}T.toString=P.toString;return T};var A=function(T,S){var R=[u(d.parsePathString(T)),u(d.parsePathString(S))],P=[{x:0,y:0,bx:0,by:0,X:0,Y:0},{x:0,y:0,bx:0,by:0,X:0,Y:0}],e=function(V,W){if(!V){return["U"]}switch(V[0]){case"M":W.X=V[1];W.Y=V[2];break;case"S":var i=W.x+(W.x-(W.bx||W.x));var X=W.y+(W.y-(W.by||W.y));V=["C",i,X,V[1],V[2],V[3],V[4]];break;case"T":var i=W.x+(W.x-(W.bx||W.x));var X=W.y+(W.y-(W.by||W.y));V=["Q",i,X,V[1],V[2]];break;case"H":V=["L",V[1],W.y];break;case"V":V=["L",W.x,V[1]];break;case"Z":V=["L",W.X,W.Y];break}return V},U=function(X,W,Z){if(R[X][Z][0]=="M"&&R[W][Z][0]!="M"){R[W].splice(Z,0,["M",P[W].x,P[W].y]);P[X].bx=R[X][Z][R[X][Z].length-4]||0;P[X].by=R[X][Z][R[X][Z].length-3]||0;P[X].x=R[X][Z][R[X][Z].length-2];P[X].y=R[X][Z][R[X][Z].length-1];return true}else{if(R[X][Z][0]=="L"&&R[W][Z][0]=="C"){R[X][Z]=["C",P[X].x,P[X].y,R[X][Z][1],R[X][Z][2],R[X][Z][1],R[X][Z][2]]}else{if(R[X][Z][0]=="L"&&R[W][Z][0]=="Q"){R[X][Z]=["Q",R[X][Z][1],R[X][Z][2],R[X][Z][1],R[X][Z][2]]}else{if(R[X][Z][0]=="Q"&&R[W][Z][0]=="C"){var V=R[W][Z][R[W][Z].length-2];var ab=R[W][Z][R[W][Z].length-1];R[W].splice(Z+1,0,["Q",V,ab,V,ab]);R[X].splice(Z,0,["C",P[X].x,P[X].y,P[X].x,P[X].y,P[X].x,P[X].y]);Z++;P[W].bx=R[W][Z][R[W][Z].length-4]||0;P[W].by=R[W][Z][R[W][Z].length-3]||0;P[W].x=R[W][Z][R[W][Z].length-2];P[W].y=R[W][Z][R[W][Z].length-1];return true}else{if(R[X][Z][0]=="A"&&R[W][Z][0]=="C"){var V=R[W][Z][R[W][Z].length-2];var ab=R[W][Z][R[W][Z].length-1];R[W].splice(Z+1,0,["A",0,0,R[X][Z][3],R[X][Z][4],R[X][Z][5],V,ab]);R[X].splice(Z,0,["C",P[X].x,P[X].y,P[X].x,P[X].y,P[X].x,P[X].y]);Z++;P[W].bx=R[W][Z][R[W][Z].length-4]||0;P[W].by=R[W][Z][R[W][Z].length-3]||0;P[W].x=R[W][Z][R[W][Z].length-2];P[W].y=R[W][Z][R[W][Z].length-1];return true}else{if(R[X][Z][0]=="U"){R[X][Z][0]=R[W][Z][0];for(var Y=1,aa=R[W][Z].length;Y<aa;Y++){R[X][Z][Y]=(Y%2)?P[X].x:P[X].y}}}}}}}return false};for(var Q=0;Q<Math.max(R[0].length,R[1].length);Q++){R[0][Q]=e(R[0][Q],P[0]);R[1][Q]=e(R[1][Q],P[1]);if(R[0][Q][0]!=R[1][Q][0]&&(U(0,1,Q)||U(1,0,Q))){continue}P[0].bx=R[0][Q][R[0][Q].length-4]||0;P[0].by=R[0][Q][R[0][Q].length-3]||0;P[0].x=R[0][Q][R[0][Q].length-2];P[0].y=R[0][Q][R[0][Q].length-1];P[1].bx=R[1][Q][R[1][Q].length-4]||0;P[1].by=R[1][Q][R[1][Q].length-3]||0;P[1].x=R[1][Q][R[1][Q].length-2];P[1].y=R[1][Q][R[1][Q].length-1]}return R};var m=function(Y){if(typeof Y=="string"){Y=Y.split(/\s*\-\s*/);var Q=Y.shift();if(Q.toLowerCase()=="v"){Q=90}else{if(Q.toLowerCase()=="h"){Q=0}else{Q=parseFloat(Q,10)}}Q=-Q;var W={angle:Q,type:"linear",dots:[],vector:[0,0,Math.cos(Q*Math.PI/180).toFixed(3),Math.sin(Q*Math.PI/180).toFixed(3)]};var X=1/(Math.max(Math.abs(W.vector[2]),Math.abs(W.vector[3]))||1);W.vector[2]*=X;W.vector[3]*=X;if(W.vector[2]<0){W.vector[0]=-W.vector[2];W.vector[2]=0}if(W.vector[3]<0){W.vector[1]=-W.vector[3];W.vector[3]=0}W.vector[0]=W.vector[0].toFixed(3);W.vector[1]=W.vector[1].toFixed(3);W.vector[2]=W.vector[2].toFixed(3);W.vector[3]=W.vector[3].toFixed(3);for(var T=0,Z=Y.length;T<Z;T++){var e={};var V=Y[T].match(/^([^:]*):?([\d\.]*)/);e.color=G(V[1]).hex;V[2]&&(e.offset=V[2]+"%");W.dots.push(e)}for(var T=1,Z=W.dots.length-1;T<Z;T++){if(!W.dots[T].offset){var P=parseFloat(W.dots[T-1].offset||0,10),R=false;for(var S=T+1;S<Z;S++){if(W.dots[S].offset){R=W.dots[S].offset;break}}if(!R){R=100;S=Z}R=parseFloat(R,10);var U=(R-P)/(S-T+1);for(;T<S;T++){P+=U;W.dots[T].offset=P+"%"}}}return W}else{return Y}};var C=function(){var P,i,R,Q,e;if(typeof arguments[0]=="string"||typeof arguments[0]=="object"){if(typeof arguments[0]=="string"){P=f.getElementById(arguments[0])}else{P=arguments[0]}if(P.tagName){if(arguments[1]==null){return{container:P,width:P.style.pixelWidth||P.offsetWidth,height:P.style.pixelHeight||P.offsetHeight}}else{return{container:P,width:arguments[1],height:arguments[2]}}}}else{if(typeof arguments[0]=="number"&&arguments.length>3){return{container:1,x:arguments[0],y:arguments[1],width:arguments[2],height:arguments[3]}}}};var a=function(e,i,P){for(var Q in P){if(!(Q in e)){switch(typeof P[Q]){case"function":e[Q]=e===i?P[Q]:function(){P[Q].apply(i,arguments)};break;case"object":e[Q]={};a(e[Q],e,P[Q]);break;default:e[Q]=P[Q];break}}}};if(d.svg){var N=function(Q,e,R){var i=f.createElementNS(R.svgns,"path");i.setAttribute("fill","none");if(R.canvas){R.canvas.appendChild(i)}var P=new l(i,R);P.isAbsolute=true;P.type="path";P.last={x:0,y:0,bx:0,by:0};P.absolutely=function(){this.isAbsolute=true;return this};P.relatively=function(){this.isAbsolute=false;return this};P.moveTo=function(S,V){var U=this.isAbsolute?"M":"m";U+=parseFloat(S,10).toFixed(3)+" "+parseFloat(V,10).toFixed(3)+" ";var T=this[0].getAttribute("d")||"";(T=="M0,0")&&(T="");this[0].setAttribute("d",T+U);this.last.x=(this.isAbsolute?0:this.last.x)+parseFloat(S,10);this.last.y=(this.isAbsolute?0:this.last.y)+parseFloat(V,10);this.attrs.path=T+U;return this};P.lineTo=function(S,V){this.last.x=(this.isAbsolute?0:this.last.x)+parseFloat(S,10);this.last.y=(this.isAbsolute?0:this.last.y)+parseFloat(V,10);var U=this.isAbsolute?"L":"l";U+=parseFloat(S,10).toFixed(3)+" "+parseFloat(V,10).toFixed(3)+" ";var T=this[0].getAttribute("d")||"";this[0].setAttribute("d",T+U);this.attrs.path=T+U;return this};P.arcTo=function(X,W,T,V,S,Z){var Y=this.isAbsolute?"A":"a";Y+=[parseFloat(X,10).toFixed(3),parseFloat(W,10).toFixed(3),0,T,V,parseFloat(S,10).toFixed(3),parseFloat(Z,10).toFixed(3)].join(" ");var U=this[0].getAttribute("d")||"";this[0].setAttribute("d",U+Y);this.last.x=parseFloat(S,10);this.last.y=parseFloat(Z,10);this.attrs.path=U+Y;return this};P.cplineTo=function(T,aa,V){if(!V){return this.lineTo(T,aa)}else{var S={};var ab=parseFloat(T,10);var Y=parseFloat(aa,10);var ac=parseFloat(V,10);var X=this.isAbsolute?"C":"c";var W=[+this.last.x+ac,+this.last.y,ab-ac,Y,ab,Y];for(var U=0,ad=W.length;U<ad;U++){X+=W[U].toFixed(3)+" "}this.last.x=(this.isAbsolute?0:this.last.x)+W[4];this.last.y=(this.isAbsolute?0:this.last.y)+W[5];this.last.bx=W[2];this.last.by=W[3];var Z=this[0].getAttribute("d")||"";this[0].setAttribute("d",Z+X);this.attrs.path=Z+X;return this}};P.curveTo=function(){var V={},X=[0,1,2,3,"s",5,"c"];var W=X[arguments.length];if(this.isAbsolute){W=W.toUpperCase()}for(var T=0,U=arguments.length;T<U;T++){W+=parseFloat(arguments[T],10).toFixed(3)+" "}this.last.x=(this.isAbsolute?0:this.last.x)+parseFloat(arguments[arguments.length-2],10);this.last.y=(this.isAbsolute?0:this.last.y)+parseFloat(arguments[arguments.length-1],10);this.last.bx=parseFloat(arguments[arguments.length-4],10);this.last.by=parseFloat(arguments[arguments.length-3],10);var S=this.node.getAttribute("d")||"";this.node.setAttribute("d",S+W);this.attrs.path=S+W;return this};P.qcurveTo=function(){var V={},X=[0,1,"t",3,"q"];var W=X[arguments.length];if(this.isAbsolute){W=W.toUpperCase()}for(var T=0,U=arguments.length;T<U;T++){W+=parseFloat(arguments[T],10).toFixed(3)+" "}this.last.x=(this.isAbsolute?0:this.last.x)+parseFloat(arguments[arguments.length-2],10);this.last.y=(this.isAbsolute?0:this.last.y)+parseFloat(arguments[arguments.length-1],10);if(arguments.length!=2){this.last.qx=parseFloat(arguments[arguments.length-4],10);this.last.qy=parseFloat(arguments[arguments.length-3],10)}var S=this.node.getAttribute("d")||"";this.node.setAttribute("d",S+W);this.attrs.path=S+W;return this};P.addRoundedCorner=function(V,T){var U=0.5522*V,S=this.isAbsolute,X=this;if(S){this.relatively();S=function(){X.absolutely()}}else{S=function(){}}var W={l:function(){return{u:function(){X.curveTo(-U,0,-V,-(V-U),-V,-V)},d:function(){X.curveTo(-U,0,-V,V-U,-V,V)}}},r:function(){return{u:function(){X.curveTo(U,0,V,-(V-U),V,-V)},d:function(){X.curveTo(U,0,V,V-U,V,V)}}},u:function(){return{r:function(){X.curveTo(0,-U,-(U-V),-V,V,-V)},l:function(){X.curveTo(0,-U,U-V,-V,-V,-V)}}},d:function(){return{r:function(){X.curveTo(0,U,-(U-V),V,V,V)},l:function(){X.curveTo(0,U,U-V,V,-V,V)}}}};W[T[0]]()[T[1]]();S();return X};P.andClose=function(){var S=this[0].getAttribute("d")||"";this[0].setAttribute("d",S+"Z ");this.attrs.path=S+"Z ";return this};if(e){P.attrs.path=""+e;P.absolutely();b.pathfinder(P,P.attrs.path)}if(Q){B(P,Q)}return P};var w=function(U,S,V){S=m(S);var R=f.createElementNS(V.svgns,(S.type||"linear")+"Gradient");R.id="raphael-gradient-"+d.idGenerator++;if(S.vector&&S.vector.length){R.setAttribute("x1",S.vector[0]);R.setAttribute("y1",S.vector[1]);R.setAttribute("x2",S.vector[2]);R.setAttribute("y2",S.vector[3])}V.defs.appendChild(R);var T=true;for(var P=0,Q=S.dots.length;P<Q;P++){var e=f.createElementNS(V.svgns,"stop");if(S.dots[P].offset){T=false}e.setAttribute("offset",S.dots[P].offset?S.dots[P].offset:(P==0)?"0%":"100%");e.setAttribute("stop-color",G(S.dots[P].color).hex||"#fff");R.appendChild(e)}if(T&&typeof S.dots[Q-1].opacity!="undefined"){e.setAttribute("stop-opacity",S.dots[Q-1].opacity)}U.setAttribute("fill","url(#"+R.id+")");U.style.opacity=1;U.style.fillOpacity=1;U.setAttribute("opacity",1);U.setAttribute("fill-opacity",1)};var q=function(i){if(i.pattern){var e=i.getBBox();i.pattern.setAttribute("patternTransform","translate("+[e.x,e.y].join(",")+")")}};var B=function(Q,S){var X={"-":[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]},e=function(aj,ai){ai=X[ai.toString().toLowerCase()];if(ai){var ag=aj.attrs["stroke-width"]||"1",ad={round:ag,square:ag,butt:0}[aj.attrs["stroke-linecap"]||S["stroke-linecap"]]||0,ah=[];for(var ae=0,af=ai.length;ae<af;ae++){ah.push(ai[ae]*ag+((ae%2)?1:-1)*ad)}ai=ah.join(",");aj.node.setAttribute("stroke-dasharray",ai)}};for(var V in S){if(!(V in p)){continue}var Z=S[V];Q.attrs[V]=Z;switch(V){case"href":case"title":case"target":var R=Q.node.parentNode;if(R.tagName.toLowerCase()!="a"){var i=f.createElementNS(Q.svg.svgns,"a");R.insertBefore(i,Q.node);i.appendChild(Q.node);R=i}R.setAttributeNS(Q.svg.xlink,V,Z);break;case"path":if(Q.type=="path"){Q.node.setAttribute("d","M0,0");b.pathfinder(Q,Z)}case"rx":case"cx":case"x":Q.node.setAttribute(V,Z);q(Q);break;case"ry":case"cy":case"y":Q.node.setAttribute(V,Z);q(Q);break;case"width":Q.node.setAttribute(V,Z);break;case"height":Q.node.setAttribute(V,Z);break;case"src":if(Q.type=="image"){Q.node.setAttributeNS(Q.svg.xlink,"href",Z)}break;case"stroke-width":Q.node.style.strokeWidth=Z;Q.node.setAttribute(V,Z);if(Q.attrs["stroke-dasharray"]){e(Q,Q.attrs["stroke-dasharray"])}break;case"stroke-dasharray":e(Q,Z);break;case"rotation":Q.rotate(Z,true);break;case"translation":var ac=(Z+"").split(O);Q.translate((+ac[0]+1||2)-1,(+ac[1]+1||2)-1);break;case"scale":var ac=(Z+"").split(O);Q.scale(+ac[0]||1,+ac[1]||+ac[0]||1);break;case"fill":var U=Z.match(/^url\(([^\)]+)\)$/i);if(U){var P=f.createElementNS(Q.svg.svgns,"pattern");var ab=f.createElementNS(Q.svg.svgns,"image");P.id="raphael-pattern-"+d.idGenerator++;P.setAttribute("x",0);P.setAttribute("y",0);P.setAttribute("patternUnits","userSpaceOnUse");ab.setAttribute("x",0);ab.setAttribute("y",0);ab.setAttributeNS(Q.svg.xlink,"href",U[1]);P.appendChild(ab);var T=f.createElement("img");T.style.position="absolute";T.style.top="-9999em";T.style.left="-9999em";T.onload=function(){P.setAttribute("width",this.offsetWidth);P.setAttribute("height",this.offsetHeight);ab.setAttribute("width",this.offsetWidth);ab.setAttribute("height",this.offsetHeight);f.body.removeChild(this);b.safari()};f.body.appendChild(T);T.src=U[1];Q.svg.defs.appendChild(P);Q.node.style.fill="url(#"+P.id+")";Q.node.setAttribute("fill","url(#"+P.id+")");Q.pattern=P;q(Q);break}delete S.gradient;delete Q.attrs.gradient;if(typeof Q.attrs.opacity!="undefined"&&typeof S.opacity=="undefined"){Q.node.style.opacity=Q.attrs.opacity;Q.node.setAttribute("opacity",Q.attrs.opacity)}if(typeof Q.attrs["fill-opacity"]!="undefined"&&typeof S["fill-opacity"]=="undefined"){Q.node.style.fillOpacity=Q.attrs["fill-opacity"];Q.node.setAttribute("fill-opacity",Q.attrs["fill-opacity"])}case"stroke":Q.node.style[V]=G(Z).hex;Q.node.setAttribute(V,G(Z).hex);break;case"gradient":w(Q.node,Z,Q.svg);break;case"opacity":case"fill-opacity":if(Q.attrs.gradient){var Y=f.getElementById(Q.node.getAttribute("fill").replace(/^url\(#|\)$/g,""));if(Y){var aa=Y.getElementsByTagName("stop");aa[aa.length-1].setAttribute("stop-opacity",Z)}break}default:var W=V.replace(/(\-.)/g,function(ad){return ad.substring(1).toUpperCase()});Q.node.style[W]=Z;Q.node.setAttribute(V,Z);break}}K(Q,S)};var F=1.2;var K=function(Q,P){if(Q.type!="text"||!("text" in P||"font" in P||"font-size" in P||"x" in P)){return}var W=Q.node.firstChild?parseInt(f.defaultView.getComputedStyle(Q.node.firstChild,"").getPropertyValue("font-size"),10):10;var V=0;if("text" in P){while(Q.node.firstChild){Q.node.removeChild(Q.node.firstChild)}var e=(P.text+"").split("\n");for(var R=0,U=e.length;R<U;R++){var S=f.createElementNS(Q.svg.svgns,"tspan");R&&S.setAttribute("dy",W*F);R&&S.setAttribute("x",Q.attrs.x);S.appendChild(f.createTextNode(e[R]));Q.node.appendChild(S);V+=W*F}}else{var e=Q.node.getElementsByTagName("tspan");for(var R=0,U=e.length;R<U;R++){R&&e[R].setAttribute("dy",W*F);R&&e[R].setAttribute("x",Q.attrs.x);V+=W*F}}V-=W*(F-1);var T=V/2-W;if(T){Q.node.setAttribute("y",Q.attrs.y-T)}};var l=function(i,e){var Q=0,P=0;this[0]=i;this.node=i;this.svg=e;this.attrs=this.attrs||{};this.transformations=[];this._={tx:0,ty:0,rt:{deg:0,x:0,y:0},sx:1,sy:1}};l.prototype.rotate=function(i,e,Q){if(i==null){return this._.rt.deg}var P=this.getBBox();i=i.toString().split(O);if(i.length-1){e=parseFloat(i[1],10);Q=parseFloat(i[2],10)}i=parseFloat(i[0],10);if(e!=null){this._.rt.deg=i}else{this._.rt.deg+=i}if(Q==null){e=null}e=e==null?P.x+P.width/2:e;Q=Q==null?P.y+P.height/2:Q;if(this._.rt.deg){this.transformations[0]=("rotate("+this._.rt.deg+" "+e+" "+Q+")")}else{this.transformations[0]=""}this.node.setAttribute("transform",this.transformations.join(" "));return this};l.prototype.hide=function(){this.node.style.display="none";return this};l.prototype.show=function(){this.node.style.display="block";return this};l.prototype.remove=function(){this.node.parentNode.removeChild(this.node)};l.prototype.getBBox=function(){var P=this.node.getBBox();if(this.type=="text"){var i=this.node.getExtentOfChar(0);if(i.height>P.height){var e=this.node.getExtentOfChar(this.node.getNumberOfChars()-1);return{x:i.x,y:i.y,width:e.x-i.x+e.width,height:i.height}}}return P};l.prototype.attr=function(){if(arguments.length==1&&typeof arguments[0]=="string"){if(arguments[0]=="translation"){return this.translate()}return this.attrs[arguments[0]]}if(arguments.length==1&&arguments[0] instanceof Array){var e={};for(var i in arguments[0]){e[arguments[0][i]]=this.attrs[arguments[0][i]]}return e}if(arguments.length==2){var P={};P[arguments[0]]=arguments[1];B(this,P)}else{if(arguments.length==1&&typeof arguments[0]=="object"){B(this,arguments[0])}}return this};l.prototype.toFront=function(){this.node.parentNode.appendChild(this.node);return this};l.prototype.toBack=function(){if(this.node.parentNode.firstChild!=this.node){this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild)}return this};l.prototype.insertAfter=function(e){if(e.node.nextSibling){e.node.parentNode.insertBefore(this.node,e.node.nextSibling)}else{e.node.parentNode.appendChild(this.node)}return this};l.prototype.insertBefore=function(e){e.node.parentNode.insertBefore(this.node,e.node);return this};var y=function(i,e,S,R){var Q=f.createElementNS(i.svgns,"circle");Q.setAttribute("cx",e);Q.setAttribute("cy",S);Q.setAttribute("r",R);Q.setAttribute("fill","none");Q.setAttribute("stroke","#000");if(i.canvas){i.canvas.appendChild(Q)}var P=new l(Q,i);P.attrs=P.attrs||{};P.attrs.cx=e;P.attrs.cy=S;P.attrs.r=R;P.attrs.stroke="#000";P.type="circle";return P};var E=function(P,e,U,i,S,T){var R=f.createElementNS(P.svgns,"rect");R.setAttribute("x",e);R.setAttribute("y",U);R.setAttribute("width",i);R.setAttribute("height",S);if(T){R.setAttribute("rx",T);R.setAttribute("ry",T)}R.setAttribute("fill","none");R.setAttribute("stroke","#000");if(P.canvas){P.canvas.appendChild(R)}var Q=new l(R,P);Q.attrs=Q.attrs||{};Q.attrs.x=e;Q.attrs.y=U;Q.attrs.width=i;Q.attrs.height=S;Q.attrs.stroke="#000";if(T){Q.attrs.rx=Q.attrs.ry=T}Q.type="rect";return Q};var g=function(i,e,T,S,R){var Q=f.createElementNS(i.svgns,"ellipse");Q.setAttribute("cx",e);Q.setAttribute("cy",T);Q.setAttribute("rx",S);Q.setAttribute("ry",R);Q.setAttribute("fill","none");Q.setAttribute("stroke","#000");if(i.canvas){i.canvas.appendChild(Q)}var P=new l(Q,i);P.attrs=P.attrs||{};P.attrs.cx=e;P.attrs.cy=T;P.attrs.rx=S;P.attrs.ry=R;P.attrs.stroke="#000";P.type="ellipse";return P};var o=function(P,T,e,U,i,S){var R=f.createElementNS(P.svgns,"image");R.setAttribute("x",e);R.setAttribute("y",U);R.setAttribute("width",i);R.setAttribute("height",S);R.setAttribute("preserveAspectRatio","none");R.setAttributeNS(P.xlink,"href",T);if(P.canvas){P.canvas.appendChild(R)}var Q=new l(R,P);Q.attrs=Q.attrs||{};Q.attrs.x=e;Q.attrs.y=U;Q.attrs.width=i;Q.attrs.height=S;Q.type="image";return Q};var D=function(i,e,S,R){var Q=f.createElementNS(i.svgns,"text");Q.setAttribute("x",e);Q.setAttribute("y",S);Q.setAttribute("text-anchor","middle");if(i.canvas){i.canvas.appendChild(Q)}var P=new l(Q,i);P.attrs=P.attrs||{};P.attrs.x=e;P.attrs.y=S;P.type="text";B(P,{font:p.font,stroke:"none",fill:"#000",text:R});return P};var v=function(e){var Q=f.createElementNS(e.svgns,"g");if(e.canvas){e.canvas.appendChild(Q)}var P=new l(Q,e);for(var R in e){if(R[0]!="_"&&typeof e[R]=="function"){P[R]=(function(i){return function(){var S=e[i].apply(e,arguments);Q.appendChild(S[0]);return S}})(R)}}P.type="group";return P};var z=function(i,e){this.width=i||this.width;this.height=e||this.height;this.canvas.setAttribute("width",this.width);this.canvas.setAttribute("height",this.height);return this};var k=function(){var Q=C.apply(null,arguments);var P=Q.container,i=Q.x,T=Q.y,R=Q.width,e=Q.height;if(!P){throw new Error("SVG container not found.")}b.canvas=f.createElementNS(b.svgns,"svg");b.canvas.setAttribute("width",R||320);b.width=R||320;b.canvas.setAttribute("height",e||200);b.height=e||200;if(P==1){f.body.appendChild(b.canvas);b.canvas.style.position="absolute";b.canvas.style.left=i+"px";b.canvas.style.top=T+"px"}else{if(P.firstChild){P.insertBefore(b.canvas,P.firstChild)}else{P.appendChild(b.canvas)}}P={canvas:b.canvas,clear:function(){while(this.canvas.firstChild){this.canvas.removeChild(this.canvas.firstChild)}this.defs=f.createElementNS(b.svgns,"defs");this.canvas.appendChild(this.defs)}};for(var S in b){if(S!="create"){P[S]=b[S]}}a(P,P,d.fn);P.clear();return P};b.remove=function(){this.canvas.parentNode.removeChild(this.canvas)};b.svgns="http://www.w3.org/2000/svg";b.xlink="http://www.w3.org/1999/xlink";b.safari=function(){if(navigator.vendor=="Apple Computer, Inc."){var e=this.rect(-this.width,-this.height,this.width*3,this.height*3).attr({stroke:"none"});setTimeout(function(){e.remove()},0)}}}if(d.vml){N=function(U,e,S){var Q=M("group"),T=Q.style;T.position="absolute";T.left=0;T.top=0;T.width=S.width+"px";T.height=S.height+"px";var P=M("shape"),i=P.style;i.width=S.width+"px";i.height=S.height+"px";P.path="";if(U["class"]){P.className="rvml "+U["class"]}P.coordsize=this.coordsize;P.coordorigin=this.coordorigin;Q.appendChild(P);S.canvas.appendChild(Q);var R=new l(P,Q,S);R.isAbsolute=true;R.type="path";R.path=[];R.last={x:0,y:0,bx:0,by:0,isAbsolute:true};R.Path="";R.absolutely=function(){this.isAbsolute=true;return this};R.relatively=function(){this.isAbsolute=false;return this};R.moveTo=function(V,X){var W=this.isAbsolute?"m":"t";W+=Math.round(parseFloat(V,10))+" "+Math.round(parseFloat(X,10));this.node.path=this.Path+=W;this.last.x=(this.isAbsolute?0:this.last.x)+parseFloat(V,10);this.last.y=(this.isAbsolute?0:this.last.y)+parseFloat(X,10);this.last.isAbsolute=this.isAbsolute;this.attrs.path+=(this.isAbsolute?"M":"m")+[V,X];return this};R.lineTo=function(V,X){var W=this.isAbsolute?"l":"r";W+=Math.round(parseFloat(V,10))+" "+Math.round(parseFloat(X,10));this[0].path=this.Path+=W;this.last.x=(this.isAbsolute?0:this.last.x)+parseFloat(V,10);this.last.y=(this.isAbsolute?0:this.last.y)+parseFloat(X,10);this.last.isAbsolute=this.isAbsolute;this.attrs.path+=(this.isAbsolute?"L":"l")+[V,X];return this};R.arcTo=function(X,V,ae,Y,W,ai){W=(this.isAbsolute?0:this.last.x)+W;ai=(this.isAbsolute?0:this.last.y)+ai;var Z=this.last.x,ak=this.last.y,aj=(Z-W)/2,ah=(ak-ai)/2,ad=(ae==Y?-1:1)*Math.sqrt(Math.abs(X*X*V*V-X*X*ah*ah-V*V*aj*aj)/(X*X*ah*ah+V*V*aj*aj)),ac=ad*X*ah/V+(Z+W)/2,ab=ad*-V*aj/X+(ak+ai)/2,af=Y?(this.isAbsolute?"wa":"wr"):(this.isAbsolute?"at":"ar"),aa=Math.round(ac-X),ag=Math.round(ab-V);af+=[aa,ag,Math.round(aa+X*2),Math.round(ag+V*2),Math.round(Z),Math.round(ak),Math.round(parseFloat(W,10)),Math.round(parseFloat(ai,10))].join(", ");this.node.path=this.Path+=af;this.last.x=(this.isAbsolute?0:this.last.x)+parseFloat(W,10);this.last.y=(this.isAbsolute?0:this.last.y)+parseFloat(ai,10);this.last.isAbsolute=this.isAbsolute;this.attrs.path+=(this.isAbsolute?"A":"a")+[X,V,0,ae,Y,W,ai];return this};R.cplineTo=function(V,ab,X){if(!X){return this.lineTo(V,ab)}else{var ac=Math.round(Math.round(parseFloat(V,10)*100)/100),aa=Math.round(Math.round(parseFloat(ab,10)*100)/100),ad=Math.round(Math.round(parseFloat(X,10)*100)/100),Z=this.isAbsolute?"c":"v",Y=[Math.round(this.last.x)+ad,Math.round(this.last.y),ac-ad,aa,ac,aa],W=[this.last.x+X,this.last.y,V-X,ab,V,ab];Z+=Y.join(" ")+" ";this.last.x=(this.isAbsolute?0:this.last.x)+Y[4];this.last.y=(this.isAbsolute?0:this.last.y)+Y[5];this.last.bx=Y[2];this.last.by=Y[3];this.node.path=this.Path+=Z;this.attrs.path+=(this.isAbsolute?"C":"c")+W;return this}};R.curveTo=function(){var X=this.isAbsolute?"c":"v";if(arguments.length==6){this.last.bx=(this.isAbsolute?0:this.last.x)+parseFloat(arguments[2],10);this.last.by=(this.isAbsolute?0:this.last.y)+parseFloat(arguments[3],10);this.last.x=(this.isAbsolute?0:this.last.x)+parseFloat(arguments[4],10);this.last.y=(this.isAbsolute?0:this.last.y)+parseFloat(arguments[5],10);X+=[Math.round(parseFloat(arguments[0],10)),Math.round(parseFloat(arguments[1],10)),Math.round(parseFloat(arguments[2],10)),Math.round(parseFloat(arguments[3],10)),Math.round(parseFloat(arguments[4],10)),Math.round(parseFloat(arguments[5],10))].join(" ")+" ";this.last.isAbsolute=this.isAbsolute;this.attrs.path+=(this.isAbsolute?"C":"c")+Array.prototype.splice.call(arguments,0,arguments.length)}if(arguments.length==4){var W=this.last.x*2-this.last.bx;var V=this.last.y*2-this.last.by;this.last.bx=(this.isAbsolute?0:this.last.x)+parseFloat(arguments[0],10);this.last.by=(this.isAbsolute?0:this.last.y)+parseFloat(arguments[1],10);this.last.x=(this.isAbsolute?0:this.last.x)+parseFloat(arguments[2],10);this.last.y=(this.isAbsolute?0:this.last.y)+parseFloat(arguments[3],10);X+=[Math.round(W),Math.round(V),Math.round(parseFloat(arguments[0],10)),Math.round(parseFloat(arguments[1],10)),Math.round(parseFloat(arguments[2],10)),Math.round(parseFloat(arguments[3],10))].join(" ")+" ";this.attrs.path+=(this.isAbsolute?"S":"s")+Array.prototype.splice.call(arguments,0,arguments.length)}this.node.path=this.Path+=X;return this};R.qcurveTo=function(){var V="qb";if(arguments.length==4){this.last.qx=(this.isAbsolute?0:this.last.x)+parseFloat(arguments[0],10);this.last.qy=(this.isAbsolute?0:this.last.y)+parseFloat(arguments[1],10);this.last.x=(this.isAbsolute?0:this.last.x)+parseFloat(arguments[2],10);this.last.y=(this.isAbsolute?0:this.last.y)+parseFloat(arguments[3],10);V+=[Math.round(this.last.qx),Math.round(this.last.qy),Math.round(this.last.x),Math.round(this.last.y)].join(" ")+" ";this.last.isAbsolute=this.isAbsolute;this.attrs.path+=(this.isAbsolute?"Q":"q")+Array.prototype.splice.call(arguments,0,arguments.length)}if(arguments.length==2){this.last.qx=this.last.x*2-this.last.qx;this.last.qy=this.last.y*2-this.last.qy;this.last.x=(this.isAbsolute?0:this.last.x)+parseFloat(arguments[2],10);this.last.y=(this.isAbsolute?0:this.last.y)+parseFloat(arguments[3],10);V+=[Math.round(this.last.qx),Math.round(this.last.qy),Math.round(this.last.x),Math.round(this.last.y)].join(" ")+" ";this.attrs.path+=(this.isAbsolute?"T":"t")+Array.prototype.splice.call(arguments,0,arguments.length)}this.node.path=this.Path+=V;this.path.push({type:"qcurve",arg:[].slice.call(arguments,0),pos:this.isAbsolute});return this};R.addRoundedCorner=function(Y,W){var X=0.5522*Y,V=this.isAbsolute,aa=this;if(V){this.relatively();V=function(){aa.absolutely()}}else{V=function(){}}var Z={l:function(){return{u:function(){aa.curveTo(-X,0,-Y,-(Y-X),-Y,-Y)},d:function(){aa.curveTo(-X,0,-Y,Y-X,-Y,Y)}}},r:function(){return{u:function(){aa.curveTo(X,0,Y,-(Y-X),Y,-Y)},d:function(){aa.curveTo(X,0,Y,Y-X,Y,Y)}}},u:function(){return{r:function(){aa.curveTo(0,-X,-(X-Y),-Y,Y,-Y)},l:function(){aa.curveTo(0,-X,X-Y,-Y,-Y,-Y)}}},d:function(){return{r:function(){aa.curveTo(0,X,-(X-Y),Y,Y,Y)},l:function(){aa.curveTo(0,X,X-Y,Y,-Y,Y)}}}};Z[W.charAt(0)]()[W.charAt(1)]();V();return aa};R.andClose=function(){this.node.path=(this.Path+="x e");this.attrs.path+="z";return this};if(e){R.absolutely();R.attrs.path="";b.pathfinder(R,""+e)}B(R,U);if(U.gradient){w(R,U.gradient)}return R};var B=function(e,i){var X=e.node.style,R=e;e.attrs=e.attrs||{};for(var Q in i){e.attrs[Q]=i[Q]}i.href&&(e.node.href=i.href);i.title&&(e.node.title=i.title);i.target&&(e.node.target=i.target);if(i.path&&e.type=="path"){e.Path="";e.path=[];b.pathfinder(e,i.path)}if(i.rotation!=null){e.rotate(i.rotation,true)}if(i.translation){var W=(i.translation+"").split(O);e.translate(W[0],W[1])}if(i.scale){var W=(i.scale+"").split(O);e.scale(W[0],W[1])}if(e.type=="image"&&i.src){e.node.src=i.src}if(e.type=="image"&&i.opacity){e.node.filterOpacity=" progid:DXImageTransform.Microsoft.Alpha(opacity="+(i.opacity*100)+")";e.node.style.filter=(e.node.filterMatrix||"")+(e.node.filterOpacity||"")}i.font&&(X.font=i.font);i["font-family"]&&(X.fontFamily=i["font-family"]);i["font-size"]&&(X.fontSize=i["font-size"]);i["font-weight"]&&(X.fontWeight=i["font-weight"]);i["font-style"]&&(X.fontStyle=i["font-style"]);if(typeof i.opacity!="undefined"||typeof i["stroke-width"]!="undefined"||typeof i.fill!="undefined"||typeof i.stroke!="undefined"||i["stroke-width"]||i["stroke-opacity"]||i["fill-opacity"]||i["stroke-dasharray"]||i["stroke-miterlimit"]||i["stroke-linejoin"]||i["stroke-linecap"]){e=e.shape||e.node;var V=(e.getElementsByTagName("fill")&&e.getElementsByTagName("fill")[0])||M("fill");if("fill-opacity" in i||"opacity" in i){V.opacity=((+i["fill-opacity"]+1||2)-1)*((+i.opacity+1||2)-1)}if(i.fill){V.on=true}if(typeof V.on=="undefined"||i.fill=="none"){V.on=false}if(V.on&&i.fill){var P=i.fill.match(/^url\(([^\)]+)\)$/i);if(P){V.src=P[1];V.type="tile"}else{V.color=G(i.fill).hex;V.src="";V.type="solid"}}e.appendChild(V);var U=(e.getElementsByTagName("stroke")&&e.getElementsByTagName("stroke")[0])||M("stroke");if((i.stroke&&i.stroke!="none")||i["stroke-width"]||typeof i["stroke-opacity"]!="undefined"||i["stroke-dasharray"]||i["stroke-miterlimit"]||i["stroke-linejoin"]||i["stroke-linecap"]){U.on=true}if(i.stroke=="none"||typeof U.on=="undefined"||i.stroke==0){U.on=false}if(U.on&&i.stroke){U.color=G(i.stroke).hex}U.opacity=((+i["stroke-opacity"]+1||2)-1)*((+i.opacity+1||2)-1);i["stroke-linejoin"]&&(U.joinstyle=i["stroke-linejoin"]||"miter");U.miterlimit=i["stroke-miterlimit"]||8;i["stroke-linecap"]&&(U.endcap={butt:"flat",square:"square",round:"round"}[i["stroke-linecap"]]||"miter");i["stroke-width"]&&(U.weight=(parseFloat(i["stroke-width"],10)||1)*12/16);if(i["stroke-dasharray"]){var S={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};U.dashstyle=S[i["stroke-dasharray"]]||""}e.appendChild(U)}if(R.type=="text"){var T=f.createElement("span"),X=T.style;X.padding=0;X.margin=0;X.lineHeight=1;X.display="inline";R.attrs.font&&(X.font=R.attrs.font);R.attrs["font-family"]&&(X.fontFamily=R.attrs["font-family"]);R.attrs["font-size"]&&(X.fontSize=R.attrs["font-size"]);R.attrs["font-weight"]&&(X.fontWeight=R.attrs["font-weight"]);R.attrs["font-style"]&&(X.fontStyle=R.attrs["font-style"]);R.node.parentNode.appendChild(T);T.innerText=R.node.string;R.W=R.attrs.w=T.offsetWidth;R.H=R.attrs.h=T.offsetHeight;R.X=R.attrs.x;R.Y=R.attrs.y+Math.round(R.H/2);R.node.parentNode.removeChild(T);switch(R.attrs["text-anchor"]){case"start":R.node.style["v-text-align"]="left";R.bbx=Math.round(R.W/2);break;case"end":R.node.style["v-text-align"]="right";R.bbx=-Math.round(R.W/2);break;default:R.node.style["v-text-align"]="center";break}}};var n=function(i,e,R,Q){var P=Math.round(Math.atan((parseFloat(R,10)-parseFloat(i,10))/(parseFloat(Q,10)-parseFloat(e,10)))*57.29)||0;if(!P&&parseFloat(i,10)<parseFloat(e,10)){P=180}P-=180;if(P<0){P+=360}return P};var w=function(V,U){U=m(U);V.attrs=V.attrs||{};var Q=V.attrs;V.attrs.gradient=U;V=V.shape||V[0];var T=V.getElementsByTagName("fill");if(T.length){T=T[0]}else{T=M("fill")}if(U.dots.length){T.on=true;T.method="none";T.type=((U.type+"").toLowerCase()=="radial")?"gradientTitle":"gradient";if(typeof U.dots[0].color!="undefined"){T.color=G(U.dots[0].color).hex}if(typeof U.dots[U.dots.length-1].color!="undefined"){T.color2=G(U.dots[U.dots.length-1].color).hex}var e=[];for(var R=0,S=U.dots.length;R<S;R++){if(U.dots[R].offset){e.push(U.dots[R].offset+" "+G(U.dots[R].color).hex)}}var P=typeof U.dots[U.dots.length-1].opacity=="undefined"?(typeof Q.opacity=="undefined"?1:Q.opacity):U.dots[U.dots.length-1].opacity;if(e.length){T.colors.value=e.join(",");P=typeof Q.opacity=="undefined"?1:Q.opacity}else{T.colors.value="0% "+T.color}T.opacity=P;if(typeof U.angle!="undefined"){T.angle=(-U.angle+270)%360}else{if(U.vector){T.angle=n.apply(null,U.vector)}}if((U.type+"").toLowerCase()=="radial"){T.focus="100%";T.focusposition="0.5 0.5"}}};var l=function(R,T,e){var S=0,P=0,i=0,Q=1;this[0]=R;this.node=R;this.X=0;this.Y=0;this.attrs={};this.Group=T;this.vml=e;this._={tx:0,ty:0,rt:{deg:0},sx:1,sy:1}};l.prototype.rotate=function(i,e,P){if(i==null){return this._.rt.deg}i=i.toString().split(O);if(i.length-1){e=parseFloat(i[1],10);P=parseFloat(i[2],10)}i=parseFloat(i[0],10);if(e!=null){this._.rt.deg=i}else{this._.rt.deg+=i}if(P==null){e=null}this._.rt.cx=e;this._.rt.cy=P;this.setBox(null,e,P);this.Group.style.rotation=this._.rt.deg;return this};l.prototype.setBox=function(R,S,Q){var e=this.Group.style,T=(this.shape&&this.shape.style)||this.node.style;for(var U in R){this.attrs[U]=R[U]}S=S||this._.rt.cx;Q=Q||this._.rt.cy;var X=this.attrs,aa,Z,ab,W;switch(this.type){case"circle":aa=X.cx-X.r;Z=X.cy-X.r;ab=W=X.r*2;break;case"ellipse":aa=X.cx-X.rx;Z=X.cy-X.ry;ab=X.rx*2;W=X.ry*2;break;case"rect":case"image":aa=X.x;Z=X.y;ab=X.width||0;W=X.height||0;break;case"text":this.textpath.v=["m",Math.round(X.x),", ",Math.round(X.y-2),"l",Math.round(X.x)+1,", ",Math.round(X.y-2)].join("");aa=X.x-Math.round(this.W/2);Z=X.y-this.H/2;ab=this.W;W=this.H;break;case"path":if(!this.attrs.path){aa=0;Z=0;ab=this.vml.width;W=this.vml.height}else{var V=x(this.attrs.path),aa=V.x;Z=V.y;ab=V.width;W=V.height}break;default:aa=0;Z=0;ab=this.vml.width;W=this.vml.height;break}S=(S==null)?aa+ab/2:S;Q=(Q==null)?Z+W/2:Q;var P=S-this.vml.width/2,Y=Q-this.vml.height/2;if(this.type=="path"||this.type=="text"){e.left=P+"px";e.top=Y+"px";this.X=this.type=="text"?aa:-P;this.Y=this.type=="text"?Z:-Y;this.W=ab;this.H=W;T.left=-P+"px";T.top=-Y+"px"}else{e.left=P+"px";e.top=Y+"px";this.X=aa;this.Y=Z;this.W=ab;this.H=W;e.width=this.vml.width+"px";e.height=this.vml.height+"px";T.left=aa-P+"px";T.top=Z-Y+"px";T.width=ab+"px";T.height=W+"px"}};l.prototype.hide=function(){this.Group.style.display="none";return this};l.prototype.show=function(){this.Group.style.display="block";return this};l.prototype.getBBox=function(){return{x:this.X+(this.bbx||0),y:this.Y,width:this.W,height:this.H}};l.prototype.remove=function(){this[0].parentNode.removeChild(this[0]);this.Group.parentNode.removeChild(this.Group);this.shape&&this.shape.parentNode.removeChild(this.shape)};l.prototype.attr=function(){if(arguments.length==1&&typeof arguments[0]=="string"){if(arguments[0]=="translation"){return this.translate()}return this.attrs[arguments[0]]}if(this.attrs&&arguments.length==1&&arguments[0] instanceof Array){var e={};for(var P=0,Q=arguments[0].length;P<Q;P++){e[arguments[0][P]]=this.attrs[arguments[0][P]]}return e}var R;if(arguments.length==2){R={};R[arguments[0]]=arguments[1]}if(arguments.length==1&&typeof arguments[0]=="object"){R=arguments[0]}if(R){if(R.gradient){w(this,R.gradient)}if(R.text&&this.type=="text"){this.node.string=R.text}if(R.id){this.node.id=R.id}B(this,R);this.setBox(R)}return this};l.prototype.toFront=function(){this.Group.parentNode.appendChild(this.Group);return this};l.prototype.toBack=function(){if(this.Group.parentNode.firstChild!=this.Group){this.Group.parentNode.insertBefore(this.Group,this.Group.parentNode.firstChild)}return this};l.prototype.insertAfter=function(e){if(e.Group.nextSibling){e.Group.parentNode.insertBefore(this.Group,e.Group.nextSibling)}else{e.Group.parentNode.appendChild(this.Group)}return this};l.prototype.insertBefore=function(e){e.Group.parentNode.insertBefore(this.Group,e.Group);return this};var y=function(i,e,T,R){var Q=M("group");var S=M("oval");Q.appendChild(S);i.canvas.appendChild(Q);var P=new l(S,Q,i);P.type="circle";B(P,{stroke:"#000",fill:"none"});P.attrs.cx=e;P.attrs.cy=T;P.attrs.r=R;P.setBox({x:e-R,y:T-R,width:R*2,height:R*2});return P};var E=function(i,U,T,V,Q,e){var R=M("group");var P=M(e?"roundrect":"rect");if(e){P.arcsize=e/(Math.min(V,Q))}R.appendChild(P);i.canvas.appendChild(R);var S=new l(P,R,i);S.type="rect";B(S,{stroke:"#000"});S.attrs.x=U;S.attrs.y=T;S.attrs.w=V;S.attrs.h=Q;S.attrs.r=e;S.setBox({x:U,y:T,width:V,height:Q});return S};var g=function(i,e,U,S,R){var Q=M("group");var T=M("oval");Q.appendChild(T);i.canvas.appendChild(Q);var P=new l(T,Q,i);P.type="ellipse";B(P,{stroke:"#000"});P.attrs.cx=e;P.attrs.cy=U;P.attrs.rx=S;P.attrs.ry=R;P.setBox({x:e-S,y:U-R,width:S*2,height:R*2});return P};var o=function(i,e,U,T,V,Q){var R=M("group");var P=M("image");P.src=e;R.appendChild(P);i.canvas.appendChild(R);var S=new l(P,R,i);S.type="image";S.attrs.x=U;S.attrs.y=T;S.attrs.w=V;S.attrs.h=Q;S.setBox({x:U,y:T,width:V,height:Q});return S};var D=function(i,W,V,X){var S=M("group"),R=S.style;var Q=M("shape"),U=Q.style;var Y=M("path"),e=Y.style;Y.v=["m",Math.round(W),", ",Math.round(V-2),"l",Math.round(W)+1,", ",Math.round(V-2)].join("");Y.textpathok=true;U.width=i.width;U.height=i.height;R.position="absolute";R.left=0;R.top=0;R.width=i.width;R.height=i.height;var P=M("textpath");P.string=X;P.on=true;P.coordsize=i.coordsize;P.coordorigin=i.coordorigin;Q.appendChild(P);Q.appendChild(Y);S.appendChild(Q);i.canvas.appendChild(S);var T=new l(P,S,i);T.shape=Q;T.textpath=Y;T.type="text";T.attrs.x=W;T.attrs.y=V;T.attrs.w=1;T.attrs.h=1;B(T,{font:p.font,stroke:"none",fill:"#000"});T.setBox();return T};var z=function(i,e){this.width=i||this.width;this.height=e||this.height;this.canvas.style.width=this.width+"px";this.canvas.style.height=this.height+"px";this.canvas.parentNode.style.clip="rect(0 "+this.width+" "+this.height+" 0)";this.canvas.coordsize=this.width+" "+this.height;return this};f.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{if(!f.namespaces.rvml){f.namespaces.add("rvml","urn:schemas-microsoft-com:vml")}var M=function(e){return f.createElement("<rvml:"+e+' class="rvml">')}}catch(L){var M=function(e){return f.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}var k=function(){var R=C.apply(null,arguments);var P=R.container,Y=R.x,X=R.y,Q=R.width,aa=R.height;if(!P){throw new Error("VML container not found.")}var V=f.createElement("div"),U=f.createElement("div"),e=b.canvas=M("group"),T=V.style,S=e.style;b.width=Q;b.height=aa;Q=Q||"320px";aa=aa||"200px";T.clip="rect(0 "+Q+"px "+aa+"px 0)";T.top="-2px";T.left="-2px";T.position="absolute";S.position="absolute";U.style.position="relative";S.width=Q;S.height=aa;e.coordsize=(/%$/.test(Q)?Q:parseFloat(Q,10))+" "+(/%$/.test(aa)?aa:parseFloat(aa,10));e.coordorigin="0 0";var W=M("rect"),Z=W.style;Z.left=Z.top=0;Z.width=S.width;Z.height=S.height;W.filled=W.stroked="f";e.appendChild(W);V.appendChild(e);U.appendChild(V);if(P==1){f.body.appendChild(U);T.position="absolute";T.left=Y+"px";T.top=X+"px";T.width=Q;T.height=aa;P={style:{width:Q,height:aa}}}else{T.width=P.style.width=Q;T.height=P.style.height=aa;if(P.firstChild){P.insertBefore(U,P.firstChild)}else{P.appendChild(U)}}for(var i in b){P[i]=b[i]}a(P,P,d.fn);P.clear=function(){var ab=[];for(var ac=0,ad=e.childNodes.length;ac<ad;ac++){if(e.childNodes[ac]!=W){ab.push(e.childNodes[ac])}}for(ac=0,ad=ab.length;ac<ad;ac++){e.removeChild(ab[ac])}};return P};b.remove=function(){this.canvas.parentNode.parentNode.parentNode.removeChild(this.canvas.parentNode.parentNode)};b.safari=function(){}}var h=(function(){if(f.addEventListener){return function(R,P,i,e){var Q=function(S){return i.call(e,S)};R.addEventListener(P,Q,false);return function(){R.removeEventListener(P,Q,false);return true}}}else{if(f.attachEvent){return function(S,Q,P,i){var R=function(T){return P.call(i,T||H.event)};S.attachEvent("on"+Q,R);var e=function(){S.detachEvent("on"+Q,R);return true};if(Q=="mouseover"){S.attachEvent("onmouseenter",R);return function(){S.detachEvent("onmouseenter",R);return e()}}else{if(Q=="mouseout"){S.attachEvent("onmouseleave",R);return function(){S.detachEvent("onmouseleave",R);return e()}}}return e}}}})();for(var I=s.length;I--;){(function(e){l.prototype[e]=function(i){if(typeof i=="function"){this.events=this.events||{};this.events[e]=this.events[e]||{};this.events[e][i]=this.events[e][i]||[];this.events[e][i].push(h(this.shape||this.node,e,i,this))}return this};l.prototype["un"+e]=function(i){this.events&&this.events[e]&&this.events[e][i]&&this.events[e][i].length&&this.events[e][i].shift()()&&!this.events[e][i].length&&delete this.events[e][i]}})(s[I])}b.circle=function(e,P,i){return y(this,e,P,i)};b.rect=function(e,R,i,P,Q){return E(this,e,R,i,P,Q)};b.ellipse=function(e,Q,P,i){return g(this,e,Q,P,i)};b.path=function(i,e){return N(i,e,this)};b.image=function(Q,e,R,i,P){return o(this,Q,e,R,i,P)};b.text=function(e,P,i){return D(this,e,P,i)};b.group=function(){return this};b.drawGrid=function(W,V,X,T,S,U,Q){Q=Q||"#000";var Y=["M",W,V,"L",W+X,V,W+X,V+T,W,V+T,W,V],e=T/U,P=X/S;for(var R=1;R<U;R++){Y=Y.concat(["M",W,V+R*e,"L",W+X,V+R*e])}for(var R=1;R<S;R++){Y=Y.concat(["M",W+R*P,V,"L",W+R*P,V+T])}return this.path({stroke:Q,"stroke-width":1},Y.join(","))};b.pathfinder=function(T,S){var P={M:function(i,U){this.moveTo(i,U)},C:function(W,Y,U,X,i,V){this.curveTo(W,Y,U,X,i,V)},Q:function(U,W,i,V){this.qcurveTo(U,W,i,V)},T:function(i,U){this.qcurveTo(i,U)},S:function(U,W,i,V){T.curveTo(U,W,i,V)},L:function(i,U){T.lineTo(i,U)},H:function(i){this.lineTo(i,this.last.y)},V:function(i){this.lineTo(this.last.x,i)},A:function(X,W,U,V,Y,i,Z){this.arcTo(X,W,V,Y,i,Z)},Z:function(){this.andClose()}};S=u(S);for(var Q=0,R=S.length;Q<R;Q++){var e=S[Q].shift();P[e].apply(T,S[Q])}};b.set=function(e){return new j(e)};b.setSize=z;l.prototype.stop=function(){clearTimeout(this.animation_in_progress)};l.prototype.scale=function(W,V){if(W==null&&V==null){return{x:this._.sx,y:this._.sy}}V=V||W;isNaN(V)&&(V=W);var ae,ab,P,e;if(W!=0){var Z=Math.round(W/Math.abs(W)),X=Math.round(V/Math.abs(V)),ad=this.node.style;ae=this.attr("x");ab=this.attr("y");P=this.attr("cx");e=this.attr("cy");if(Z!=1||X!=1){if(this.transformations){this.transformations[2]="scale("+[Z,X]+")";this.node.setAttribute("transform",this.transformations.join(" "));ae=(Z<0)?-this.attr("x")-this.attrs.width*W*Z/this._.sx:this.attr("x");ab=(X<0)?-this.attr("y")-this.attrs.height*V*X/this._.sy:this.attr("y");P=this.attr("cx")*Z;e=this.attr("cy")*X}else{this.node.filterMatrix=" progid:DXImageTransform.Microsoft.Matrix(M11="+Z+", M12=0, M21=0, M22="+X+", Dx=0, Dy=0, sizingmethod='auto expand', filtertype='bilinear')";ad.filter=(this.node.filterMatrix||"")+(this.node.filterOpacity||"")}}else{if(this.transformations){this.transformations[2]="";this.node.setAttribute("transform",this.transformations.join(" "))}else{this.node.filterMatrix="";ad.filter=(this.node.filterMatrix||"")+(this.node.filterOpacity||"")}}switch(this.type){case"rect":case"image":this.attr({width:this.attrs.width*W*Z/this._.sx,height:this.attrs.height*V*X/this._.sy,x:ae,y:ab});break;case"circle":case"ellipse":this.attr({rx:this.attrs.rx*W*Z/this._.sx,ry:this.attrs.ry*V*X/this._.sy,r:this.attrs.r*W*X/this._.sx,cx:P,cy:e});break;case"path":var ac=c(d.parsePathString(this.attr("path"))),Y=true,S=x(this.attrs.path);for(var R=0,aa=ac.length;R<aa;R++){if(ac[R][0].toUpperCase()=="M"&&Y){continue}else{Y=false}if(this.svg&&ac[R][0].toUpperCase()=="A"){ac[R][ac[R].length-2]*=W*Z;ac[R][ac[R].length-1]*=V*X;ac[R][1]*=W;ac[R][2]*=V}else{for(var Q=1,T=ac[R].length;Q<T;Q++){ac[R][Q]*=(Q%2)?W*Z/this._.sx:V*X/this._.sy}}}var U=x(ac),ae=S.x+S.width/2-U.x-U.width/2,ab=S.y+S.height/2-U.y-U.height/2;ac=c(ac);ac[0][1]+=ae;ac[0][2]+=ab;this.attr({path:ac.join(" ")})}}this._.sx=W;this._.sy=V;return this};l.prototype.animate=function(ag,Z,R){clearTimeout(this.animation_in_progress);var ac={},P={},X={},W={x:0,y:0};for(var aa in ag){if(aa in r){ac[aa]=this.attr(aa);if(typeof ac[aa]=="undefined"){ac[aa]=p[aa]}P[aa]=ag[aa];switch(r[aa]){case"number":X[aa]=(P[aa]-ac[aa])/Z;break;case"colour":ac[aa]=G(ac[aa]);var ab=G(P[aa]);X[aa]={r:(ab.r-ac[aa].r)/Z,g:(ab.g-ac[aa].g)/Z,b:(ab.b-ac[aa].b)/Z};break;case"path":var S=A(ac[aa],P[aa]);ac[aa]=S[0];P[aa]=S[1];X[aa]=[];for(var ae=0,V=ac[aa].length;ae<V;ae++){X[aa][ae]=[0];for(var ad=1,af=ac[aa][ae].length;ad<af;ad++){X[aa][ae][ad]=(P[aa][ae][ad]-ac[aa][ae][ad])/Z}}break;case"csv":var e=ag[aa].toString().split(O),U=ac[aa].toString().split(O);if(aa=="translation"){ac[aa]=[0,0];X[aa]=[e[0]/Z,e[1]/Z]}else{if(aa=="rotation"){ac[aa]=(U[1]==e[1]&&U[2]==e[2])?U:[0,e[1],e[2]];X[aa]=[(e[0]-ac[aa][0])/Z,0,0]}else{ac[aa]=(ac[aa]+"").split(O);X[aa]=[(e[0]-ac[aa][0])/Z,(e[1]-ac[aa][0])/Z]}}P[aa]=e}}}var Q=new Date(),Y=0,T=this;(function(){var ai=(new Date()).getTime()-Q.getTime(),ap={},ah;if(ai<Z){for(var am in ac){switch(r[am]){case"number":ah=+ac[am]+ai*X[am];break;case"colour":ah="rgb("+[Math.round(ac[am].r+ai*X[am].r),Math.round(ac[am].g+ai*X[am].g),Math.round(ac[am].b+ai*X[am].b)].join(",")+")";break;case"path":ah=[];for(var ak=0,aq=ac[am].length;ak<aq;ak++){ah[ak]=[ac[am][ak][0]];for(var aj=1,al=ac[am][ak].length;aj<al;aj++){ah[ak][aj]=ac[am][ak][aj]+ai*X[am][ak][aj]}ah[ak]=ah[ak].join(" ")}ah=ah.join(" ");break;case"csv":if(am=="translation"){var ao=X[am][0]*(ai-Y),an=X[am][1]*(ai-Y);W.x+=ao;W.y+=an;ah=[ao,an].join(" ")}else{if(am=="rotation"){ah=+ac[am][0]+ai*X[am][0];ac[am][1]&&(ah+=","+ac[am][1]+","+ac[am][2])}else{ah=[+ac[am][0]+ai*X[am][0],+ac[am][1]+ai*X[am][1]].join(" ")}}break}if(am=="font-size"){ap[am]=ah+"px"}else{ap[am]=ah}}T.attr(ap);T.animation_in_progress=setTimeout(arguments.callee,0);b.safari()}else{(W.x||W.y)&&T.translate(-W.x,-W.y);T.attr(ag);clearTimeout(T.animation_in_progress);b.safari();(typeof R=="function")&&R.call(T)}Y=ai})();return this};l.prototype.translate=function(e,P){if(e==null){return{x:this._.tx,y:this._.ty}}this._.tx+=+e;this._.ty+=+P;switch(this.type){case"circle":case"ellipse":this.attr({cx:this.attrs.cx+e,cy:this.attrs.cy+P});break;case"rect":case"image":case"text":this.attr({x:this.attrs.x+ +e,y:this.attrs.y+ +P});break;case"path":var i=c(this.attrs.path);i[0][1]+=+e;i[0][2]+=+P;this.attr({path:i.join(" ")});break}return this};var j=function(P){this.items=[];this.length=(P&&P.length)||0;if(P&&P.constructor==Array){for(var e=P.length;e--;){if(P[e].constructor==l){this.items[this.items.length]=P[e]}}}};j.prototype.push=function(i){if(i&&i.constructor==l){var e=this.items.length;this.items[e]=i;this[e]=i;this.length++}return this};j.prototype.pull=function(Q){var i=this.items.splice(Q,1)[0];for(var e=Q,P=this.items.length;e<P;e++){this[e]=this[e+1]}delete this[P+1];this.length--;return i};for(var J in l.prototype){j.prototype[J]=(function(e){return function(){for(var P=this.items.length;P--;){this.items[P][e].apply(this.items[P],arguments)}return this}})(J)}j.prototype.getBBox=function(){var e=[],T=[],P=[],R=[];for(var Q=this.items.length;Q--;){var S=this.items[Q].getBBox();e.push(S.x);T.push(S.y);P.push(S.x+S.width);R.push(S.y+S.height)}e=Math.min.apply(Math,e);T=Math.min.apply(Math,T);return{x:e,y:T,width:Math.max.apply(Math,P)-e,height:Math.max.apply(Math,R)-T}};d.noConflict=function(){var e=window.Raphael;delete window.Raphael;return e};return d})();jQuery.fn.DefaultValue=function(a){return this.each(function(){if(this.type!="text"&&this.type!="password"&&this.type!="textarea"){return}var b=this;if(this.value==""){this.value=a}else{return}$(this).focus(function(){if(this.value==a||this.value==""){this.value=""}});$(this).blur(function(){if(this.value==a||this.value==""){this.value=a}});$(this).parents("form").each(function(){$(this).submit(function(){if(b.value==a){b.value=""}})})})};(function(b){b.fn.ajaxSubmit=function(r){if(!this.length){a("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof r=="function"){r={success:r}}var e=this.attr("action")||window.location.href;e=(e.match(/^([^#]+)/)||[])[1];e=e||"";r=b.extend({url:e,type:this.attr("method")||"GET"},r||{});var u={};this.trigger("form-pre-serialize",[this,r,u]);if(u.veto){a("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(r.beforeSerialize&&r.beforeSerialize(this,r)===false){a("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var l=this.formToArray(r.semantic);if(r.data){r.extraData=r.data;for(var f in r.data){if(r.data[f] instanceof Array){for(var g in r.data[f]){l.push({name:f,value:r.data[f][g]})}}else{l.push({name:f,value:r.data[f]})}}}if(r.beforeSubmit&&r.beforeSubmit(l,this,r)===false){a("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[l,this,r,u]);if(u.veto){a("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var d=b.param(l);if(r.type.toUpperCase()=="GET"){r.url+=(r.url.indexOf("?")>=0?"&":"?")+d;r.data=null}else{r.data=d}var s=this,i=[];if(r.resetForm){i.push(function(){s.resetForm()})}if(r.clearForm){i.push(function(){s.clearForm()})}if(!r.dataType&&r.target){var o=r.success||function(){};i.push(function(j){b(r.target).html(j).each(o,arguments)})}else{if(r.success){i.push(r.success)}}r.success=function(q,k){for(var n=0,j=i.length;n<j;n++){i[n].apply(r,[q,k,s])}};var c=b("input:file",this).fieldValue();var p=false;for(var h=0;h<c.length;h++){if(c[h]){p=true}}if(r.iframe||p){if(r.closeKeepAlive){b.get(r.closeKeepAlive,m)}else{m()}}else{b.ajax(r)}this.trigger("form-submit-notify",[this,r]);return this;function m(){var w=s[0];if(b(":input[name=submit]",w).length){alert('Error: Form elements must not be named "submit".');return}var q=b.extend({},b.ajaxSettings,r);var G=b.extend(true,{},b.extend(true,{},b.ajaxSettings),q);var v="jqFormIO"+(new Date().getTime());var C=b('<iframe id="'+v+'" name="'+v+'" src="about:blank" />');var E=C[0];C.css({position:"absolute",top:"-1000px",left:"-1000px"});var F={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;C.attr("src","about:blank")}};var D=q.global;if(D&&!b.active++){b.event.trigger("ajaxStart")}if(D){b.event.trigger("ajaxSend",[F,q])}if(G.beforeSend&&G.beforeSend(F,G)===false){G.global&&b.active--;return}if(F.aborted){return}var k=0;var y=0;var j=w.clk;if(j){var x=j.name;if(x&&!j.disabled){r.extraData=r.extraData||{};r.extraData[x]=j.value;if(j.type=="image"){r.extraData[name+".x"]=w.clk_x;r.extraData[name+".y"]=w.clk_y}}}setTimeout(function(){var J=s.attr("target"),H=s.attr("action");w.setAttribute("target",v);if(w.getAttribute("method")!="POST"){w.setAttribute("method","POST")}if(w.getAttribute("action")!=q.url){w.setAttribute("action",q.url)}if(!r.skipEncodingOverride){s.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})}if(q.timeout){setTimeout(function(){y=true;z()},q.timeout)}var I=[];try{if(r.extraData){for(var K in r.extraData){I.push(b('<input type="hidden" name="'+K+'" value="'+r.extraData[K]+'" />').appendTo(w)[0])}}C.appendTo("body");E.attachEvent?E.attachEvent("onload",z):E.addEventListener("load",z,false);w.submit()}finally{w.setAttribute("action",H);J?w.setAttribute("target",J):s.removeAttr("target");b(I).remove()}},10);var A=0;function z(){if(k++){return}E.detachEvent?E.detachEvent("onload",z):E.removeEventListener("load",z,false);var H=true;try{if(y){throw"timeout"}var I,K;K=E.contentWindow?E.contentWindow.document:E.contentDocument?E.contentDocument:E.document;if((K.body==null||K.body.innerHTML=="")&&!A){A=1;k--;setTimeout(z,100);return}F.responseText=K.body?K.body.innerHTML:null;F.responseXML=K.XMLDocument?K.XMLDocument:K;F.getResponseHeader=function(M){var L={"content-type":q.dataType};return L[M]};if(q.dataType=="json"||q.dataType=="script"){var n=K.getElementsByTagName("textarea")[0];F.responseText=n?n.value:F.responseText}else{if(q.dataType=="xml"&&!F.responseXML&&F.responseText!=null){F.responseXML=B(F.responseText)}}I=b.httpData(F,q.dataType)}catch(J){H=false;b.handleError(q,F,"error",J)}if(H){q.success(I,"success");if(D){b.event.trigger("ajaxSuccess",[F,q])}}if(D){b.event.trigger("ajaxComplete",[F,q])}if(D&&!--b.active){b.event.trigger("ajaxStop")}if(q.complete){q.complete(F,H?"success":"error")}setTimeout(function(){C.remove();F.responseXML=null},100)}function B(n,H){if(window.ActiveXObject){H=new ActiveXObject("Microsoft.XMLDOM");H.async="false";H.loadXML(n)}else{H=(new DOMParser()).parseFromString(n,"text/xml")}return(H&&H.documentElement&&H.documentElement.tagName!="parsererror")?H:null}}};b.fn.ajaxForm=function(c){return this.ajaxFormUnbind().bind("submit.form-plugin",function(){b(this).ajaxSubmit(c);return false}).each(function(){b(":submit,input:image",this).bind("click.form-plugin",function(f){var d=this.form;d.clk=this;if(this.type=="image"){if(f.offsetX!=undefined){d.clk_x=f.offsetX;d.clk_y=f.offsetY}else{if(typeof b.fn.offset=="function"){var g=b(this).offset();d.clk_x=f.pageX-g.left;d.clk_y=f.pageY-g.top}else{d.clk_x=f.pageX-this.offsetLeft;d.clk_y=f.pageY-this.offsetTop}}}setTimeout(function(){d.clk=d.clk_x=d.clk_y=null},10)})})};b.fn.ajaxFormUnbind=function(){this.unbind("submit.form-plugin");return this.each(function(){b(":submit,input:image",this).unbind("click.form-plugin")})};b.fn.formToArray=function(q){var p=[];if(this.length==0){return p}var d=this[0];var h=q?d.getElementsByTagName("*"):d.elements;if(!h){return p}for(var k=0,m=h.length;k<m;k++){var e=h[k];var f=e.name;if(!f){continue}if(q&&d.clk&&e.type=="image"){if(!e.disabled&&d.clk==e){p.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})}continue}var r=b.fieldValue(e,true);if(r&&r.constructor==Array){for(var g=0,c=r.length;g<c;g++){p.push({name:f,value:r[g]})}}else{if(r!==null&&typeof r!="undefined"){p.push({name:f,value:r})}}}if(!q&&d.clk){var l=d.getElementsByTagName("input");for(var k=0,m=l.length;k<m;k++){var o=l[k];var f=o.name;if(f&&!o.disabled&&o.type=="image"&&d.clk==o){p.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})}}}return p};b.fn.formSerialize=function(c){return b.param(this.formToArray(c))};b.fn.fieldSerialize=function(d){var c=[];this.each(function(){var h=this.name;if(!h){return}var f=b.fieldValue(this,d);if(f&&f.constructor==Array){for(var g=0,e=f.length;g<e;g++){c.push({name:h,value:f[g]})}}else{if(f!==null&&typeof f!="undefined"){c.push({name:this.name,value:f})}}});return b.param(c)};b.fn.fieldValue=function(h){for(var g=[],e=0,c=this.length;e<c;e++){var f=this[e];var d=b.fieldValue(f,h);if(d===null||typeof d=="undefined"||(d.constructor==Array&&!d.length)){continue}d.constructor==Array?b.merge(g,d):g.push(d)}return g};b.fieldValue=function(c,j){var e=c.name,p=c.type,q=c.tagName.toLowerCase();if(typeof j=="undefined"){j=true}if(j&&(!e||c.disabled||p=="reset"||p=="button"||(p=="checkbox"||p=="radio")&&!c.checked||(p=="submit"||p=="image")&&c.form&&c.form.clk!=c||q=="select"&&c.selectedIndex==-1)){return null}if(q=="select"){var k=c.selectedIndex;if(k<0){return null}var m=[],d=c.options;var g=(p=="select-one");var l=(g?k+1:d.length);for(var f=(g?k:0);f<l;f++){var h=d[f];if(h.selected){var o=h.value;if(!o){o=(h.attributes&&h.attributes.value&&!(h.attributes.value.specified))?h.text:h.value}if(g){return o}m.push(o)}}return m}return c.value};b.fn.clearForm=function(){return this.each(function(){b("input,select,textarea",this).clearFields()})};b.fn.clearFields=b.fn.clearInputs=function(){return this.each(function(){var d=this.type,c=this.tagName.toLowerCase();if(d=="text"||d=="password"||c=="textarea"){this.value=""}else{if(d=="checkbox"||d=="radio"){this.checked=false}else{if(c=="select"){this.selectedIndex=-1}}}})};b.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};b.fn.enable=function(c){if(c==undefined){c=true}return this.each(function(){this.disabled=!c})};b.fn.selected=function(c){if(c==undefined){c=true}return this.each(function(){var d=this.type;if(d=="checkbox"||d=="radio"){this.checked=c}else{if(this.tagName.toLowerCase()=="option"){var e=b(this).parent("select");if(c&&e[0]&&e[0].type=="select-one"){e.find("option").selected(false)}this.selected=c}}})};function a(){if(b.fn.ajaxSubmit.debug&&window.console&&window.console.log){window.console.log("[jquery.form] "+Array.prototype.join.call(arguments,""))}}})(jQuery);(function($){$.extend({metadata:{defaults:{type:"class",name:"metadata",cre:/({.*})/,single:"metadata"},setType:function(type,name){this.defaults.type=type;this.defaults.name=name},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length){settings.single="metadata"}var data=$.data(elem,settings.single);if(data){return data}data="{}";if(settings.type=="class"){var m=settings.cre.exec(elem.className);if(m){data=m[1]}}else{if(settings.type=="elem"){if(!elem.getElementsByTagName){return}var e=elem.getElementsByTagName(settings.name);if(e.length){data=$.trim(e[0].innerHTML)}}else{if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr){data=attr}}}}if(data.indexOf("{")<0){data="{"+data+"}"}data=eval("("+data+")");$.data(elem,settings.single,data);return data}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts)}})(jQuery);(function(b){var c=b.browser.msie&&b.browser.version==6;var a=null;b.fn.jOverlay=function(f){var f=b.extend({},b.fn.jOverlay.options,f);if(a!=null){clearTimeout(a)}var g=this.is("*")?this:"#jOverlayContent";var d=c?"absolute":"fixed";var e=f.imgLoading?"<img id='jOverlayLoading' src='"+f.imgLoading+"' style='position:"+d+"; z-index:"+(f.zIndex+9)+";'/>":"";b("body").prepend(e+"<div id='jOverlay' /><div id='jOverlayContent' style='position:"+d+"; z-index:"+(f.zIndex+5)+"; display:none;'/>");b("#jOverlayLoading").load(function(){if(f.center){b.center(this)}});if(c){b("select").hide();b("#jOverlayContent select").show()}b("#jOverlay").css({backgroundColor:f.color,position:d,top:"0px",left:"0px",filter:"alpha(opacity="+(f.opacity*100)+")",opacity:f.opacity,zIndex:f.zIndex,width:!c?"100%":b(window).width()+"px",height:!c?"100%":b(document).height()+"px"}).show();if(this.is("*")){b("#jOverlayContent").html(this.addClass("jOverlayChildren").show()).show();if(f.center){b.center("#jOverlayContent")}if(!f.url&&b.isFunction(f.success)){f.success(this.html())}}if(f.url){if(f.url=="formSubmit"){b("form#searchform").ajaxSubmit({success:function(h){b("#jOverlayLoading").fadeOut(600);b(g).html(h).show();if(f.center){b.center("#jOverlayContent")}if(b.isFunction(f.success)){f.success(h)}}})}else{b.ajax({type:f.method,data:f.data,url:f.url,success:function(h){b("#jOverlayLoading").fadeOut(600);b(g).html(h).show();if(f.center){b.center("#jOverlayContent")}if(b.isFunction(f.success)){f.success(h)}}})}}if(c){b(window).scroll(function(){if(f.center){b.center("#jOverlayContent")}});b(window).resize(function(){b("#jOverlay").css({width:b(window).width()+"px",height:b(document).height()+"px"});if(f.center){b.center("#jOverlayContent")}})}b(document).keydown(function(h){if(h.keyCode==27){b.closeOverlay()}});if(f.bgClickToClose){b("#jOverlay").click(b.closeOverlay)}if(Number(f.timeout)>0){a=setTimeout(b.closeOverlay,Number(f.timeout))}};b.center=function(f){var f=b(f);var d=f.height();var e=f.width();f.css({width:e+"px",marginLeft:"-"+(e/2)+"px",marginTop:"-"+d/2+"px",height:"auto",top:!c?"50%":b(window).scrollTop()+(b(window).height()/2)+"px",left:"50%"})};b.fn.jOverlay.options={method:"GET",data:"",url:"",color:"#000",opacity:"0.87",zIndex:9999,center:true,imgLoading:"/blog/wp-content/themes/GBD/images/ajax-loader.gif",bgClickToClose:true,success:null,timeout:0};b.closeOverlay=function(){if(c){b("select").show()}b("#jOverlayContent .jOverlayChildren").hide().prependTo(b("body"));b("#jOverlayLoading, #jOverlayContent, #jOverlay").remove()}})(jQuery);jQuery.fn.extend({everyTime:function(b,c,d,e,a){return this.each(function(){jQuery.timer.add(this,b,c,d,e,a)})},oneTime:function(a,b,c){return this.each(function(){jQuery.timer.add(this,a,b,c,1)})},stopTime:function(a,b){return this.each(function(){jQuery.timer.remove(this,a,b)})}});jQuery.event.special;jQuery.extend({timer:{global:[],guid:1,dataKey:"jQuery.timer",regex:/^([0-9]+(?:\.[0-9]*)?)\s*(.*s)?$/,powers:{ms:1,cs:10,ds:100,s:1000,das:10000,hs:100000,ks:1000000},timeParse:function(c){if(c==undefined||c==null){return null}var a=this.regex.exec(jQuery.trim(c.toString()));if(a[2]){var b=parseFloat(a[1]);var d=this.powers[a[2]]||1;return b*d}else{return c}},add:function(e,c,h,g,b,f){var a=0;if(jQuery.isFunction(h)){if(!b){b=g}g=h;h=c}c=jQuery.timer.timeParse(c);if(typeof c!="number"||isNaN(c)||c<=0){return}if(b&&b.constructor!=Number){f=!!b;b=0}b=b||0;f=f||false;var d=jQuery.data(e,this.dataKey)||jQuery.data(e,this.dataKey,{});if(!d[h]){d[h]={}}g.timerID=g.timerID||this.guid++;var i=function(){if(f&&this.inProgress){return}this.inProgress=true;if((++a>b&&b!==0)||g.call(e,a)===false){jQuery.timer.remove(e,h,g)}this.inProgress=false};i.timerID=g.timerID;if(!d[h][g.timerID]){d[h][g.timerID]=window.setInterval(i,c)}this.global.push(e)},remove:function(c,b,d){var e=jQuery.data(c,this.dataKey),a;if(e){if(!b){for(b in e){this.remove(c,b,d)}}else{if(e[b]){if(d){if(d.timerID){window.clearInterval(e[b][d.timerID]);delete e[b][d.timerID]}}else{for(var d in e[b]){window.clearInterval(e[b][d]);delete e[b][d]}}for(a in e[b]){break}if(!a){a=null;delete e[b]}}}for(a in e){break}if(!a){jQuery.removeData(c,this.dataKey)}}}}});jQuery(window).bind("unload",function(){jQuery.each(jQuery.timer.global,function(a,b){jQuery.timer.remove(b)})});$(function(){$("form#searchform").ajaxForm();$("#activity-feed").click(function(){$("#categories").slideToggle("fast")});$("#categories a,.post-meta a").click(function(){$().jOverlay({url:this.getAttribute("href")});return false});$(".link-ad").click(function(){$().jOverlay({url:this.getAttribute("href")});return false});$("a.link-signup,a.link-login,a.link-faq").click(function(){$().jOverlay({url:this.getAttribute("href")});return false});$("input#s").bind("keydown",function(a){if(a.keyCode==13){if($(this).attr("value")!=""){$().jOverlay({url:"formSubmit"})}return false}}).blur(function(){$(this).attr("value","search the posts")}).focus(function(){$(this).attr("value","")});$("#left-col div.no-image").each(function(){var a=Raphael($(this).attr("id"),678,340);t=a.text(380,300,$(this).metadata()["image-text"]);t.attr("fill","#fff");t.attr("font","52px");t.attr("font-weight","bold");t.attr("font-size","52px");t.rotate(-25)});$("#right-col .no-image").each(function(){var a=Raphael($(this).attr("id"),197,102);t=a.text(-20,37,$(this).metadata()["image-text"]);t.attr("text-anchor","top");t.attr("fill","#fff");t.attr("font","13px");t.attr("font-weight","normal");t.attr("font-size","23px")});if(location.hash=="#comments"){setTimeout("scrollToComments()",200)}if(location.hash=="#last-comment"){setTimeout("scrollToLastComment()",200)}$("#post .comments-circle").click(function(){scrollToComments()});$("#back-to-the-top, #back-to-the-top-container").click(function(){$("html:not(:animated),body:not(:animated)").animate({scrollTop:"0px"},700);return false});$(".post-text img:not(.wp-smiley),.post-text object").wrap('<div class="object-container"></div>');$("div.small-posts div").mouseenter(function(){$(this).find("div").fadeIn("fast")}).mouseleave(function(){$(this).find("div").fadeOut("fast")});$("#comment").val("");$("a#type-comment-link").click(function(){$("a#audio-comment-link").removeClass("selected");$("a#video-comment-link").removeClass("selected");$(this).blur().addClass("selected");$("#comment-response-container").slideUp("slow",function(){$("#audio-recorder, #video-recorder").hide();$("#commentform").show();$(this).slideDown("slow").blur().addClass("selected")});$("#commentform").stopTime("check-insert");return false});$("a#audio-comment-link").click(function(){$("a#video-comment-link").removeClass("selected");$("a#type-comment-link").removeClass("selected");$(this).blur().addClass("selected");$("#comment-response-container").slideUp("slow",function(){$("#commentform, #video-recorder").hide();$("#audio-recorder").show();$(this).slideDown("slow")});$("#comment").val("");$("#commentform").stopTime("check-insert");$("#commentform").everyTime(1500,"check-insert",function(){if($("#comment").val()!=""){$("#commentform").stopTime("check-insert").submit()}});return false});$("a#video-comment-link").click(function(){$("a#audio-comment-link").removeClass("selected");$("a#type-comment-link").removeClass("selected");$(this).blur().addClass("selected");$("#comment-response-container").slideUp("slow",function(){$("#commentform, #audio-recorder").hide();$("#video-recorder").show();$(this).slideDown("slow")});$("#comment").val("");$("#commentform").stopTime("check-insert");$("#commentform").everyTime(1500,"check-insert",function(){if($("#comment").val()!=""){$("#commentform").stopTime("check-insert").submit()}});return false});$("form#commentform").ajaxForm(function(){$("#comment-response-container").slideUp("slow",function(){$("#comment-response-choice").fadeOut("slow",function(){$(this).html("Your comment will be up shortly...<h2>Thanks for being you!</h2>").fadeIn()})})});$(".audio-comment-player-link").click(function(){var a=$(this).attr("id");$("#"+a+"-preview").fadeOut("slow",function(){$("#"+a+"-container").slideDown("slow",function(){$("#"+a+"-player").fadeIn("slow")})});$(this).blur();return false});
if(location.hash =="#newsletter-story-1"){
	setTimeout("scrollToStory1()",200);
}
if(location.hash =="#newsletter-story-2"){
	setTimeout("scrollToStory2()",200);
}
if(location.hash =="#newsletter-story-3"){
	setTimeout("scrollToStory3()",200);
}
if(location.hash =="#newsletter-story-4"){
	setTimeout("scrollToStory4()",200);
}
});function scrollToComments(){$("html:not(:animated),body:not(:animated)").animate({scrollTop:$("#post-comments").offset().top},700)}function scrollToLastComment(){$("html:not(:animated),body:not(:animated)").animate({scrollTop:$("#back-to-the-top-container").offset().top},700)};
function scrollToStory1(){
	$("html:not(:animated),body:not(:animated)").animate({scrollTop: $("a[href='#newsletter-story-1']").offset().top}, 700);
}
function scrollToStory2(){
	$("html:not(:animated),body:not(:animated)").animate({scrollTop: $("a[href='#newsletter-story-2']").offset().top}, 700);
}
function scrollToStory3(){
	$("html:not(:animated),body:not(:animated)").animate({scrollTop: $("a[href='#newsletter-story-3']").offset().top}, 700);
}
function scrollToStory4(){
	$("html:not(:animated),body:not(:animated)").animate({scrollTop: $("a[href='#newsletter-story-4']").offset().top}, 700);
}