function pausejs(millis)
{
var date = new Date();
var curDate = null;
do { curDate = new Date(); }
while(curDate-date < millis);
}

(function(a){a.fn.digits=function(){return this.each(function(){a(this).text(a(this).text().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"))})};a.fn.liveCounter=function(b){var c={start_date:"June 4, 1985",start_cnt:1000,wait_secs:10,increase_by:1,divided_by:1,};return this.each(function(){settings=a.extend({},c,b);var g=settings.start_date;var l=settings.start_cnt;var k=settings.wait_secs;var i=settings.increase_by;var h=settings.divided_by;var f=this;var d=Math.round(new Date(g).getTime()/1000);var j=Math.round(new Date().getTime()/1000);l+=Math.round((j-d)/k);a(f).text(Math.round(l*h)/h).digits();function e(){l=l+i;a(f).text(Math.round(l*h)/h).digits()}setInterval(e,k*1000)})}})(jQuery);
