text: /*
  Easy pie chart is a jquery plugin to display simple animated pie charts for only one value
  
  Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
  and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
  
  Built on top of the jQuery library (http://jquery.com)
  
  @source: http://github.com/rendro/easy-pie-chart/
  @autor: Robert Fleischmann
  @version: 1.1.0
  
  Inspired by: http://dribbble.com/shots/631074-Simple-Pie-Charts-II?list=popular&offset=210
  Thanks to Philip Thrasher for the jquery plugin boilerplate for coffee script
  */
  
  (function(e){return e.easyPieChart=function(t,n){var r,i,s,o,u,a,f,l,c=this;return this.el=t,this.$el=e(t),this.$el.data("easyPieChart",this),this.init=function(){var t,r;return c.options=e.extend({},e.easyPieChart.defaultOptions,n),t=parseInt(c.$el.data("percent"),10),c.percentage=0,c.canvas=e("<canvas width='"+c.options.size+"' height='"+c.options.size+"'></canvas>").get(0),c.$el.append(c.canvas),typeof G_vmlCanvasManager!="undefined"&&G_vmlCanvasManager!==null&&G_vmlCanvasManager.initElement(c.canvas),c.ctx=c.canvas.getContext("2d"),window.devicePixelRatio>1&&(r=window.devicePixelRatio,e(c.canvas).css({width:c.options.size,height:c.options.size}),c.canvas.width*=r,c.canvas.height*=r,c.ctx.scale(r,r)),c.ctx.translate(c.options.size/2,c.options.size/2),c.$el.addClass("easyPieChart"),c.$el.css({width:c.options.size,height:c.options.size,lineHeight:""+c.options.size+"px"}),c.update(t),c},this.update=function(e){return e=parseFloat(e)||0,c.options.animate===!1?s(e):i(c.percentage,e),c},f=function(){var e,t,n;c.ctx.fillStyle=c.options.scaleColor,c.ctx.lineWidth=1,n=[];for(e=t=0;t<=24;e=++t)n.push(r(e));return n},r=function(e){var t;t=e%6===0?0:c.options.size*.017,c.ctx.save(),c.ctx.rotate(e*Math.PI/12),c.ctx.fillRect(c.options.size/2-t,0,-c.options.size*.05+t,1),c.ctx.restore()},l=function(){var e;e=c.options.size/2-c.options.lineWidth/2,c.options.scaleColor!==!1&&(e-=c.options.size*.08),c.ctx.beginPath(),c.ctx.arc(0,0,e,0,Math.PI*2,!0),c.ctx.closePath(),c.ctx.strokeStyle=c.options.trackColor,c.ctx.lineWidth=c.options.lineWidth,c.ctx.stroke()},a=function(){c.options.scaleColor!==!1&&f(),c.options.trackColor!==!1&&l()},s=function(t){var n;a(),c.ctx.strokeStyle=e.isFunction(c.options.barColor)?c.options.barColor(t):c.options.barColor,c.ctx.lineCap=c.options.lineCap,c.ctx.lineWidth=c.options.lineWidth,n=c.options.size/2-c.options.lineWidth/2,c.options.scaleColor!==!1&&(n-=c.options.size*.08),c.ctx.save(),c.ctx.rotate(-Math.PI/2),c.ctx.beginPath(),c.ctx.arc(0,0,n,0,Math.PI*2*t/100,!1),c.ctx.stroke(),c.ctx.restore()},u=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)}}(),i=function(e,t){var n,r;c.options.onStart.call(c),c.percentage=t,r=Date.now(),n=function(){var i,f;f=Date.now()-r,f<c.options.animate&&u(n),c.ctx.clearRect(-c.options.size/2,-c.options.size/2,c.options.size,c.options.size),a.call(c),i=[o(f,e,t-e,c.options.animate)],c.options.onStep.call(c,i),s.call(c,i);if(f>=c.options.animate)return c.options.onStop.call(c)},u(n)},o=function(e,t,n,r){var i,s;return i=function(e){return Math.pow(e,2)},s=function(e){return e<1?i(e):2-i(e/2*-2+2)},e/=r/2,n/2*s(e)+t},this.init()},e.easyPieChart.defaultOptions={barColor:"#ef1e25",trackColor:"#f2f2f2",scaleColor:"#dfe0e0",lineCap:"round",size:110,lineWidth:3,animate:!1,onStart:e.noop,onStop:e.noop,onStep:e.noop},e.fn.easyPieChart=function(t){return e.each(this,function(n,r){var i;i=e(r);if(!i.data("easyPieChart"))return i.data("easyPieChart",new e.easyPieChart(r,t))})},void 0})(jQuery);