!function(r){"use strict";r.fn.rProgressbar=function(e){return e=r.extend({percentage:null,ShowProgressCount:!0,duration:1e3,fillBackgroundColor:"#ed1c24",backgroundColor:"#EEEEEE",borderRadius:"0px",height:"5px",width:"100%"},e),r.options=e,this.each(function(t,o){r(o).html('
');r(this).waypoint(function(){var t=r(o).find(".proggress"),n=r(o).find(".progressbar"),i=r(o).find(".percentCount");t.css({backgroundColor:e.fillBackgroundColor,height:e.height,borderRadius:e.borderRadius}),n.css({width:e.width,backgroundColor:e.backgroundColor,borderRadius:e.borderRadius}),t.animate({width:e.percentage>100?"100%":e.percentage+"%"},{step:function(t){e.ShowProgressCount&&r(o).find(".percentCount").text(Math.round(t)+"%")},duration:e.duration});var a={left:e.percentage>100?"93%":e.percentage+"%"};"rtl"==r("html").attr("dir")&&(a={right:e.percentage>100?"93%":e.percentage+"%"}),i.animate(a,{duration:e.duration})},{offset:"100%",triggerOnce:!0})})}}(jQuery);