window.requestAnimFrame=(function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback,element){window.setTimeout(callback,16.666666666666668);};})();var svgNS="http://www.w3.org/2000/svg",xlinkNS="http://www.w3.org/1999/xlink",bez,lambdaAnimation=0,offsetAnimation=0,svgNS="http://www.w3.org/2000/svg",pathRight,pathLeft;var lookupOutlines=[];var dataOutlines=[[[498.299,179.468,492.25,180.44,484.365,181.088,476.156,181.088],[476.156,181.088,462.224,181.088,453.15,178.496,446.238,173.312],[446.238,173.312,438.677,167.695,433.925,158.73,433.925,145.876],[433.925,145.876,433.925,131.943,439.001,122.33,445.913,116.39],[445.913,116.39,453.583,110.018,465.354,106.994,479.612,106.994],[479.612,106.994,488.145,106.994,494.301,107.534,498.298,108.074],[498.298,108.074,498.298,108.074,498.298,179.468,498.298,179.468]],[[481.881,120.171,480.479,119.847,478.102,119.847,476.156,119.847],[476.156,119.847,461.144,119.739,451.316,127.948,451.316,145.337],[451.316,145.337,451.316,160.459,460.171,168.451,474.427,168.451],[474.427,168.451,477.993,168.451,480.478,168.127,481.88,167.804],[481.88,167.804,481.88,167.804,481.88,120.171,481.88,120.171]],[[423.131,179.576,417.838,180.44,410.063,181.088,401.205,181.088],[401.205,181.088,390.404,181.088,382.844,179.468,377.66,175.363],[377.66,175.363,373.23,171.906,370.855,166.723,370.855,160.026],[370.855,160.026,370.855,150.845,377.443,144.472,383.707,142.205],[383.707,142.205,383.707,142.205,383.707,141.88,383.707,141.88],[383.707,141.88,378.631,139.828,375.824,135.076,373.987,128.38],[373.987,128.38,371.718,120.063,369.558,110.558,368.154,107.75],[368.154,107.75,368.154,107.75,385.004,107.75,385.004,107.75],[385.004,107.75,386.084,109.91,387.92,115.743,389.973,124.708],[389.973,124.708,392.026,133.888,395.157,136.265,401.961,136.373],[401.961,136.373,401.961,136.373,406.822,136.373,406.822,136.373],[406.822,136.373,406.822,136.373,406.822,107.75,406.822,107.75],[406.822,107.75,406.822,107.75,423.131,107.75,423.131,107.75],[423.131,107.75,423.131,107.75,423.131,179.576,423.131,179.576]],[[406.822,148.253,406.822,148.253,400.342,148.253,400.342,148.253],[400.342,148.253,392.133,148.253,387.272,152.357,387.272,158.73],[387.272,158.73,387.272,165.319,391.809,168.775,399.37,168.775],[399.37,168.775,403.366,168.775,405.634,168.559,406.823,168.235],[406.823,168.235,406.823,168.235,406.823,148.253,406.823,148.253]],[[343.211,180.548,343.211,180.548,343.211,138.748,343.211,138.748],[343.211,138.748,343.211,126.111,338.35,119.738,330.033,119.738],[330.033,119.738,321.392,119.738,316.638,125.786,316.638,138.748],[316.638,138.748,316.638,138.748,316.638,180.548,316.638,180.548],[316.638,180.548,316.638,180.548,300.222,180.548,300.222,180.548],[300.222,180.548,300.222,180.548,300.222,139.72,300.222,139.72],[300.222,139.72,300.222,117.254,311.564,106.561,330.572,106.561],[330.572,106.561,348.935,106.561,359.627,116.821,359.627,139.936],[359.627,139.936,359.627,139.936,359.627,180.547,359.627,180.547],[359.627,180.547,359.627,180.547,343.211,180.547,343.211,180.547]],[[285.973,179.576,281.652,180.332,273.01,181.088,264.695,181.088],[264.695,181.088,254.65,181.088,248.494,180.116,243.092,176.984],[243.092,176.984,238.015,174.284,234.451,169.316,234.451,162.619],[234.451,162.619,234.451,156.246,238.231,150.306,246.44,147.174],[246.44,147.174,246.44,147.174,246.44,146.958,246.44,146.958],[246.44,146.958,238.123,144.798,231.966,138.425,231.966,129.137],[231.966,129.137,231.966,122.44,234.99,117.256,239.528,113.583],[239.528,113.583,244.82,109.371,253.676,106.995,268.149,106.995],[268.149,106.995,276.25,106.995,282.299,107.535,285.972,108.075],[285.972,108.075,285.972,108.075,285.972,179.576,285.972,179.576]],[[269.664,119.415,268.044,119.199,266.099,119.199,263.29,119.199],[263.29,119.199,255.839,119.199,249.25,122.115,249.25,129.784],[249.25,129.784,249.25,137.02,255.839,139.937,264.046,139.937],[264.046,139.937,264.046,139.937,269.664,139.937,269.664,139.937],[269.664,139.937,269.664,139.937,269.664,119.415,269.664,119.415],],[[269.664,151.709,269.664,151.709,264.263,151.709,264.263,151.709],[264.263,151.709,255.514,151.709,250.979,155.273,250.979,160.674],[250.979,160.674,250.979,166.183,255.19,169.099,262.643,169.099],[262.643,169.099,266.316,169.099,268.368,168.883,269.664,168.666],[269.664,168.666,269.664,168.666,269.664,151.709,269.664,151.709]],[[204.324,180.548,204.324,180.548,204.324,138.748,204.324,138.748],[204.324,138.748,204.324,126.111,199.464,119.738,191.146,119.738],[191.146,119.738,182.506,119.738,177.753,125.786,177.753,138.748],[177.753,138.748,177.753,138.748,177.753,180.548,177.753,180.548],[177.753,180.548,177.753,180.548,161.336,180.548,161.336,180.548],[161.336,180.548,161.336,180.548,161.336,139.72,161.336,139.72],[161.336,139.72,161.336,117.254,172.677,106.561,191.687,106.561],[191.687,106.561,210.048,106.561,220.742,116.821,220.742,139.936],[220.742,139.936,220.742,139.936,220.742,180.547,220.742,180.547],[220.742,180.547,220.742,180.547,204.324,180.547,204.324,180.547]],[[147.086,179.576,142.765,180.332,134.124,181.088,125.808,181.088],[125.808,181.088,115.764,181.088,109.607,180.116,104.206,176.984],[104.206,176.984,99.129,174.284,95.564,169.316,95.564,162.619],[95.564,162.619,95.564,156.246,99.345,150.306,107.554,147.174],[107.554,147.174,107.554,147.174,107.554,146.958,107.554,146.958],[107.554,146.958,99.237,144.798,93.079,138.425,93.079,129.137],[93.079,129.137,93.079,122.44,96.104,117.256,100.641,113.583],[100.641,113.583,105.934,109.371,114.79,106.995,129.263,106.995],[129.263,106.995,137.364,106.995,143.413,107.535,147.085,108.075],[147.085,108.075,147.085,108.075,147.085,179.576,147.085,179.576]],[[130.777,119.415,129.157,119.199,127.212,119.199,124.404,119.199],[124.404,119.199,116.952,119.199,110.363,122.115,110.363,129.784],[110.363,129.784,110.363,137.02,116.952,139.937,125.16,139.937],[125.16,139.937,125.16,139.937,130.777,139.937,130.777,139.937],[130.777,139.937,130.777,139.937,130.777,119.415,130.777,119.415]],[[130.777,151.709,130.777,151.709,125.377,151.709,125.377,151.709],[125.377,151.709,116.627,151.709,112.092,155.273,112.092,160.674],[112.092,160.674,112.092,166.183,116.304,169.099,123.757,169.099],[123.757,169.099,127.429,169.099,129.482,168.883,130.778,168.666],[130.778,168.666,130.778,168.666,130.778,151.709,130.778,151.709]],[[65.439,180.548,65.439,180.548,65.439,138.748,65.439,138.748],[65.439,138.748,65.439,126.111,60.579,119.738,52.261,119.738],[52.261,119.738,43.621,119.738,38.868,125.786,38.868,138.748],[38.868,138.748,38.868,138.748,38.868,180.548,38.868,180.548],[38.868,180.548,38.868,180.548,22.452,180.548,22.452,180.548],[22.452,180.548,22.452,180.548,22.452,139.72,22.452,139.72],[22.452,139.72,22.452,117.254,33.793,106.561,52.803,106.561],[52.803,106.561,71.164,106.561,81.858,116.821,81.858,139.936],[81.858,139.936,81.858,139.936,81.858,180.547,81.858,180.547],[81.858,180.547,81.858,180.547,65.439,180.547,65.439,180.547]],[[444.941,19.694,447.859,18.291,454.771,16.562,463.521,16.562],[463.521,16.562,488.687,16.562,501.648,32.331,501.648,53.069],[501.648,53.069,501.648,77.911,483.935,91.629,461.9,91.629],[461.9,91.629,453.367,91.629,446.886,90.009,443.97,88.389],[443.97,88.389,443.97,88.389,447.425,75.427,447.425,75.427],[447.425,75.427,450.665,76.831,455.312,78.127,461.251,78.127],[461.251,78.127,474.214,78.127,484.364,70.243,484.364,54.042],[484.364,54.042,484.364,39.46,475.725,30.279,461.143,30.279],[461.143,30.279,456.067,30.279,450.664,31.252,447.319,32.655],[447.319,32.655,447.319,32.655,444.941,19.694,444.941,19.694]],[[370.639,54.906,370.639,30.927,385.004,16.563,406.389,16.563],[406.389,16.563,427.883,16.563,440.629,32.873,440.629,53.718],[440.629,53.718,440.629,75.536,426.588,91.846,405.201,91.846],[405.201,91.846,382.844,91.845,370.639,75.104,370.639,54.906]],[[423.238,54.042,423.238,39.676,416.543,29.632,405.525,29.632],[405.525,29.632,394.4,29.632,388.027,40.217,388.027,54.366],[388.027,54.366,388.027,67.543,394.183,78.776,405.525,78.776],[405.525,78.776,416.758,78.776,423.238,68.191,423.238,54.042]],[[298.279,45.617,298.604,54.366,298.928,64.951,298.928,75.536],[298.928,75.536,298.928,75.536,299.142,75.536,299.142,75.536],[299.142,75.536,301.519,66.247,304.544,55.878,307.351,47.345],[307.351,47.345,307.351,47.345,316.208,18.939,316.208,18.939],[316.208,18.939,316.208,18.939,329.062,18.939,329.062,18.939],[329.062,18.939,329.062,18.939,336.838,47.022,336.838,47.022],[336.838,47.022,339.214,55.663,341.591,66.032,343.427,75.537],[343.427,75.537,343.427,75.537,343.644,75.537,343.644,75.537],[343.644,75.537,343.966,65.708,344.4,54.474,344.832,45.402],[344.832,45.402,344.832,45.402,346.236,17.752,346.236,17.752],[346.236,17.752,346.236,17.752,361.465,17.752,361.465,17.752],[361.465,17.752,361.465,17.752,356.82,90.55,356.82,90.55],[356.82,90.55,356.82,90.55,334.894,90.55,334.894,90.55],[334.894,90.55,334.894,90.55,327.765,66.248,327.765,66.248],[327.765,66.248,325.39,57.823,323.23,48.751,321.609,40.218],[321.609,40.218,321.609,40.218,321.177,40.218,321.177,40.218],[321.177,40.218,319.234,48.642,316.749,58.256,314.265,66.356],[314.265,66.356,314.265,66.356,306.595,90.55,306.595,90.55],[306.595,90.55,306.595,90.55,284.994,90.55,284.994,90.55],[284.994,90.55,284.994,90.55,281.106,17.752,281.106,17.752],[281.106,17.752,281.106,17.752,297.09,17.752,297.09,17.752],[297.09,17.752,297.09,17.752,298.279,45.617,298.279,45.617]],[[209.226,239.096,209.226,239.096,182.44,239.096,182.44,239.096],[182.44,239.096,182.44,239.096,182.44,256.378,182.44,256.378],[182.44,256.378,182.44,256.378,212.359,256.378,212.359,256.378],[212.359,256.378,212.359,256.378,212.359,269.879,212.359,269.879],[212.359,269.879,212.359,269.879,166.022,269.879,166.022,269.879],[166.022,269.879,166.022,269.879,166.022,197.081,166.022,197.081],[166.022,197.081,166.022,197.081,210.846,197.081,210.846,197.081],[210.846,197.081,210.846,197.081,210.846,210.582,210.846,210.582],[210.846,210.582,210.846,210.582,182.44,210.582,182.44,210.582],[182.44,210.582,182.44,210.582,182.44,225.703,182.44,225.703],[182.44,225.703,182.44,225.703,209.226,225.703,209.226,225.703],[209.226,225.703,209.226,225.703,209.226,239.096,209.226,239.096]],[[223.586,269.878,223.586,269.878,223.586,197.08,223.586,197.08],[223.586,197.08,223.586,197.08,242.811,197.08,242.811,197.08],[242.811,197.08,242.811,197.08,257.933,223.758,257.933,223.758],[257.933,223.758,262.253,231.426,266.465,240.5,269.814,248.708],[269.814,248.708,269.814,248.708,270.03,248.708,270.03,248.708],[270.03,248.708,269.058,239.095,268.734,229.267,268.734,218.25],[268.734,218.25,268.734,218.25,268.734,197.08,268.734,197.08],[268.734,197.08,268.734,197.08,283.855,197.08,283.855,197.08],[283.855,197.08,283.855,197.08,283.855,269.878,283.855,269.878],[283.855,269.878,283.855,269.878,266.574,269.878,266.574,269.878],[266.574,269.878,266.574,269.878,251.02,241.796,251.02,241.796],[251.02,241.796,246.7,234.019,241.839,224.623,238.383,216.09],[238.383,216.09,238.383,216.09,237.95,216.09,237.95,216.09],[237.95,216.09,238.491,225.811,238.707,236.071,238.707,247.952],[238.707,247.952,238.707,247.952,238.707,269.878,238.707,269.878],[238.707,269.878,238.707,269.878,223.586,269.878,223.586,269.878]],[[312.361,197.081,312.361,197.081,328.779,197.081,328.779,197.081],[328.779,197.081,328.779,197.081,328.779,243.093,328.779,243.093],[328.779,243.093,328.779,263.831,318.841,271.068,302.965,271.068],[302.965,271.068,299.076,271.068,294.109,270.42,290.869,269.34],[290.869,269.34,290.869,269.34,292.704,256.054,292.704,256.054],[292.704,256.054,294.973,256.81,297.889,257.351,301.129,257.351],[301.129,257.351,308.041,257.351,312.361,254.218,312.361,242.985],[312.361,242.985,312.361,242.985,312.361,197.081,312.361,197.081]],[[409.135,232.724,409.135,256.702,394.768,271.067,373.381,271.067],[373.381,271.067,351.889,271.067,339.145,254.757,339.145,233.912],[339.145,233.912,339.145,212.094,353.184,195.784,374.571,195.784],[374.571,195.784,396.93,195.784,409.135,212.526,409.135,232.724]],[[356.533,233.588,356.533,247.953,363.228,257.998,374.246,257.998],[374.246,257.998,385.371,257.998,391.744,247.414,391.744,233.264],[391.744,233.264,391.744,220.087,385.586,208.854,374.246,208.854],[374.246,208.854,363.014,208.853,356.533,219.438,356.533,233.588]],[[432.783,269.878,432.783,269.878,432.783,240.068,432.783,240.068],[432.783,240.068,432.783,240.068,409.777,197.08,409.777,197.08],[409.777,197.08,409.777,197.08,428.677,197.08,428.677,197.08],[428.677,197.08,428.677,197.08,436.023,214.577,436.023,214.577],[436.023,214.577,438.291,219.87,439.912,223.758,441.638,228.51],[441.638,228.51,441.638,228.51,441.855,228.51,441.855,228.51],[441.855,228.51,443.476,223.974,445.203,219.762,447.363,214.577],[447.363,214.577,447.363,214.577,454.709,197.08,454.709,197.08],[454.709,197.08,454.709,197.08,473.178,197.08,473.178,197.08],[473.178,197.08,473.178,197.08,449.201,239.527,449.201,239.527],[449.201,239.527,449.201,239.527,449.201,269.878,449.201,269.878],[449.201,269.878,449.201,269.878,432.783,269.878,432.783,269.878]],[[488.186,271.067,482.571,271.067,478.68,266.855,478.68,261.238],[478.68,261.238,478.68,255.405,482.676,251.409,488.401,251.409],[488.401,251.409,488.401,251.409,497.907,255.405,498.016,261.238],[498.016,261.238,498.016,266.854,494.235,271.067,488.401,271.067],[488.401,271.067,488.401,271.067,488.186,271.067,488.186,271.067]],[[482.246,246.008,482.246,246.008,479.869,197.08,479.869,197.08],[479.869,197.08,479.869,197.08,496.933,197.08,496.933,197.08],[496.933,197.08,496.933,197.08,494.558,246.008,494.558,246.008],[494.558,246.008,494.558,246.008,482.246,246.008,482.246,246.008]]];function init(evt){var a,N,entries,subEntries,F;if(window.svgDocument==null){svgDocument=evt.target.ownerDocument;}entries=dataOutlines.length;for(a=0;a<entries;a+=1){subEntries=dataOutlines[a].length;if(subEntries!==0){lookupOutlines[a]=new Outline;for(N=0;N<subEntries;N+=1){F=dataOutlines[a][N];lookupOutlines[a].addCurve(new Curve(F[0],F[1],F[2],F[3],F[4],F[5],F[6],F[7]));}}}preprocess();animate();}function Outline(){this.lookupCurves=[];this.totalLength=0;}Outline.prototype={addCurve:function(curve){var index;index=this.lookupCurves.length;this.lookupCurves[index]=curve;this.totalLength+=curve.length;}};function Curve(G,H,I,J,K,L,M,yAnchorEnd){this.B=new D(G,H,I,J,K,L,M,yAnchorEnd);this.length=D.calculateLength(this.B);}D.bezierLeft=undefined;D.bezierRight=undefined;function D(G,H,I,J,K,L,M,yAnchorEnd){this.G=G;this.H=H;this.I=I;this.J=J;this.K=K;this.L=L;this.M=M;this.yAnchorEnd=yAnchorEnd;}D.calculateLength=function(B){var a,C,entries,xPosition,yPostion,xPrevious,yPrevious,length;length=0;entries=10;xPrevious=B.G;yPrevious=B.H;for(a=1;a<entries;a+=1){C=a*(1/(entries-1));xPosition=B.G*Math.pow(1-C,3)+B.I*3*C*Math.pow(1-C,2)+B.K*3*Math.pow(C,2)*(1-C)+B.M*Math.pow(C,3);yPosition=B.H*Math.pow(1-C,3)+B.J*3*C*Math.pow(1-C,2)+B.L*3*Math.pow(C,2)*(1-C)+B.yAnchorEnd*Math.pow(C,3);length+=Math.sqrt(Math.pow(xPrevious-xPosition,2)+Math.pow(yPrevious-yPosition,2));xPrevious=xPosition;yPrevious=yPosition;}return length;};D.interpolateBezier=function(B,C){var x0,y0,x1,y1,x2,y2,x3,y3,x4,y4,x5,y5,m,position;m=1-C;position=[];x0=m*B.G+C*B.I;y0=m*B.H+C*B.J;x1=m*B.I+C*B.K;y1=m*B.J+C*B.L;x2=m*B.K+C*B.M;y2=m*B.L+C*B.yAnchorEnd;x3=m*x0+C*x1;y3=m*y0+C*y1;x4=m*x1+C*x2;y4=m*y1+C*y2;x5=m*x3+C*x4;y5=m*y3+C*y4;D.bezierLeft=new D(B.G,B.H,x0,y0,x3,y3,x5,y5);D.bezierRight=new D(x5,y5,x4,y4,x2,y2,B.M,B.yAnchorEnd);};function preprocess(){pathRight=document.createElementNS(svgNS,"path");pathRight.setAttribute("fill","none");pathRight.setAttribute("stroke","black");pathRight.setAttribute("stroke-width","2");pathRight.setAttribute("stroke-linecap","round");document.getElementById("content").appendChild(pathRight);}function animate(){var self=this;lambdaAnimation+=0.005;if(lambdaAnimation<1){render();requestAnimFrame(function(){self.animate();});}else{lambdaAnimation=0;setTimeout(self.animate,5000);}}function render(){var a,N,index,indexbezier,totalLength,lengthOutline,C,entries,subEntries,path,pathBezier,length,F;entries=lookupOutlines.length;path="";for(a=0;a<entries;a+=1){C=lambdaAnimation+offsetAnimation;length=lookupOutlines[a].totalLength;start=(C>1?C-1:C)*length;end=start+lambdaAnimation*length;subEntries=lookupOutlines[a].lookupCurves.length;indexStart=0;startCurve=0;F=lookupOutlines[a].lookupCurves;while(indexStart<subEntries&&start>startCurve+F[indexStart].length){startCurve+=F[indexStart].length;indexStart+=1;}for(N=0;N<=subEntries;N+=1){index=(indexStart+N)%subEntries;lengthCurve=F[index].length;lambdaStart=(start-startCurve)/lengthCurve;lambdaEnd=(end-startCurve)/lengthCurve;if(lambdaStart>=0&&lambdaStart<=1){D.interpolateBezier(F[index].B,lambdaStart);if(lambdaEnd>1){B=D.bezierRight;pathBezier="M "+B.G+", "+B.H+" "+"C "+B.I+", "+B.J+", "+B.K+", "+B.L+", "+B.M+", "+B.yAnchorEnd;path+=pathBezier;}else{B=D.bezierRight;B=new D(B.G,B.H,B.I,B.J,B.K,B.L,B.M,B.yAnchorEnd);if(1-lambdaStart>0){lambdaEnd=(lambdaEnd-lambdaStart)/(1-lambdaStart);}D.interpolateBezier(B,lambdaEnd);B=D.bezierLeft;pathBezier="M "+B.G+", "+B.H+" "+"C "+B.I+", "+B.J+", "+B.K+", "+B.L+", "+B.M+", "+B.yAnchorEnd;path+=pathBezier;}}else if(lambdaStart<0&&lambdaEnd>0){D.interpolateBezier(F[index].B,lambdaEnd>1?1:lambdaEnd);B=D.bezierLeft;pathBezier="M "+B.G+", "+B.H+" "+"C "+B.I+", "+B.J+", "+B.K+", "+B.L+", "+B.M+", "+B.yAnchorEnd;path+=pathBezier;}startCurve+=lengthCurve;if(startCurve>end){break;}}}pathRight.setAttribute("d",path);}
