!function(a){"use strict";a.fn.fusion_draw_circles=function(){var b=a(this),c=b.children(".counter-circle").attr("data-countdown"),d=b.children(".counter-circle").attr("data-filledcolor"),e=b.children(".counter-circle").attr("data-unfilledcolor"),f=b.children(".counter-circle").attr("data-scale"),g=b.children(".counter-circle").attr("data-size"),h=b.children(".counter-circle").attr("data-speed"),i=b.children(".counter-circle").attr("data-strokesize"),j=b.children(".counter-circle").attr("data-percent-original");f&&(f=a("body").css("color")),c?(b.children(".counter-circle").attr("data-percent",100),b.children(".counter-circle").easyPieChart({barColor:d,trackColor:e,scaleColor:f,scaleLength:5,lineCap:"round",lineWidth:i,size:g,rotate:0,animate:{duration:h,enabled:!0}}),b.children(".counter-circle").data("easyPieChart").enableAnimation(),b.children(".counter-circle").data("easyPieChart").update(j)):b.children(".counter-circle").easyPieChart({barColor:d,trackColor:e,scaleColor:f,scaleLength:5,lineCap:"round",lineWidth:i,size:g,rotate:0,animate:{duration:h,enabled:!0}})},a.fn.fusion_recalc_circles=function(b){var c,d,e=a(this);e.is(":hidden")||(e.attr("data-currentsize",e.width()),e.removeAttr("style"),e.children().removeAttr("style"),e.data("currentsize"),c=e.data("originalsize"),d=e.parent().width(),d<e.data("currentsize")?(e.css({width:d,height:d,"line-height":d+"px"}),e.find(".fusion-counter-circle").each(function(){a(this).css({width:d,height:d,"line-height":d+"px","font-size":50*d/220}),a(this).data("size",d),a(this).data("strokesize",d/220*11),b||a(this).data("animate",!1),a(this).attr("data-size",d),a(this).attr("data-strokesize",d/220*11)})):(e.css({width:c,height:c,"line-height":c+"px"}),e.find(".fusion-counter-circle").each(function(){a(this).css({width:c,height:c,"line-height":c+"px","font-size":50*c/220}),a(this).data("size",c),a(this).data("strokesize",c/220*11),b||a(this).data("animate",!1),a(this).attr("data-size",c),a(this).attr("data-strokesize",c/220*11)})))},a.fn.fusion_redraw_circles=function(){var b=a(this);b.is(":hidden")||(b.fusion_recalc_circles(!1),b.find("canvas").remove(),b.find(".counter-circle").removeData("easyPieChart"),b.fusion_draw_circles())}}(jQuery),jQuery(window).load(function(){jQuery(".counter-circle-wrapper").not(".fusion-accordian .counter-circle-wrapper, .fusion-tabs .counter-circle-wrapper, .fusion-modal .counter-circle-wrapper").each(function(){var a=getWaypointOffset(jQuery(this));jQuery(this).waypoint(function(){jQuery(this).fusion_recalc_circles(!0),jQuery(this).fusion_draw_circles()},{triggerOnce:!0,offset:a})}),jQuery(".counter-circle-wrapper").not(".fusion-modal .counter-circle-wrapper").each(function(){var a,b,c=jQuery(window).width(),d=jQuery(window).height(),e=getWaypointOffset(jQuery(this));"top-out-of-view"===e&&(a=getAdminbarHeight(),b="function"==typeof getStickyHeaderHeight?getStickyHeaderHeight():"0",e=a+b),jQuery(this).waypoint(function(){var a=jQuery(this);jQuery(window).on("resize",function(b,e){void 0!==e&&"modal-open"===e||(jQuery(window).width()!=c||jQuery(window).width()!=c&&jQuery(window).height()!=d)&&a.fusion_redraw_circles()})},{triggerOnce:!0,offset:e})}),jQuery(".fusion-accordian .counter-circle-wrapper, .fusion-tabs .counter-circle-wrapper, .fusion-modal .counter-circle-wrapper").on("appear",function(){jQuery(this).fusion_draw_circles()})});