jQuery(function(n){function i(n,t){return n.toFixed(t.decimals)}function t(t){var i=n(this);t=n.extend({},t||{},i.data("countToOptions")||{});i.countTo(t)}n.fn.countTo=function(t){return t=t||{},n(this).each(function(){function l(){r+=c;s++;h(r);typeof i.onUpdate=="function"&&i.onUpdate.call(e,r);s>=o&&(f.removeData("countTo"),clearInterval(u.interval),r=i.to,typeof i.onComplete=="function"&&i.onComplete.call(e,r))}function h(n){var t=i.formatter.call(e,n,i);f.text(t)}var i=n.extend({},n.fn.countTo.defaults,{from:n(this).data("from"),to:n(this).data("to"),speed:n(this).data("speed"),refreshInterval:n(this).data("refresh-interval"),decimals:n(this).data("decimals")},t),o=Math.ceil(i.speed/i.refreshInterval),c=(i.to-i.from)/o,e=this,f=n(this),s=0,r=i.from,u=f.data("countTo")||{};f.data("countTo",u);u.interval&&clearInterval(u.interval);u.interval=setInterval(l,i.refreshInterval);h(r)})};n.fn.countTo.defaults={from:0,to:0,speed:1e3,refreshInterval:100,decimals:0,formatter:i,onUpdate:null,onComplete:null};n("#acounterID").data("countToOptions",{formatter:function(n,t){return n.toFixed(t.decimals).replace(/\B(?=(?:\d{3})+(?!\d))/g,".")}});n("#subacounterID").data("countToOptions",{formatter:function(n,t){return n.toFixed(t.decimals).replace(/\B(?=(?:\d{3})+(?!\d))/g,".")}});n(".counter-numbers").each(t);n(".counter-sub-numbers").each(t)}),function(){$.fn.ACounter=function(n){var n=$.extend({textColor:"#ffffff",iconColor:"#000000",bgColor:"#f36d00"},n);return this.each(function(){function t(n){var t=$("<div />",{html:"<style>"+n+"<\/style>"}).appendTo("body")}n.modulid="#"+$(this).attr("id");t(n.modulid+"  .counter-icon i {color: "+n.textColor);t(n.modulid+"  .counter-numbers {color: "+n.textColor);t(n.modulid+"  .counter-sub-numbers {color: "+n.textColor);t(n.modulid+"  .counter-title {color: "+n.textColor);t(n.modulid+"  .counter-sub-title {color: "+n.textColor);t(n.modulid+"  .acounter {background-color: "+n.bgColor)})}}(jQuery)