(function(c){c.fn.relatizeDate=function(){return c(this).each(function(){c(this).text(c.relatizeDate(this))})};c.relatizeDate=function(a){return c.relatizeDate.timeAgoInWords(new Date(c(a).text()))};$r=c.relatizeDate;c.extend(c.relatizeDate,{shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],months:["January","February","March","April",
"May","June","July","August","September","October","November","December"],strftime:function(a,b){var f=a.getDay(),g=a.getMonth(),h=a.getHours(),i=a.getMinutes(),d=function(e){e=e.toString(10);return Array(2-e.length+1).join("0")+e};return b.replace(/\%([aAbBcdHImMpSwyY])/g,function(e){switch(e[1]){case "a":return $r.shortDays[f];case "A":return $r.days[f];case "b":return $r.shortMonths[g];case "B":return $r.months[g];case "c":return a.toString();case "d":return d(a.getDate());case "H":return d(h);
case "I":return d((h+12)%12);case "m":return d(g+1);case "M":return d(i);case "p":return h>12?"PM":"AM";case "S":return d(a.getSeconds());case "w":return f;case "y":return d(a.getFullYear()%100);case "Y":return a.getFullYear().toString()}})},timeAgoInWords:function(a,b){return $r.distanceOfTimeInWords(a,new Date,b)},distanceOfTimeInWords:function(a,b,f){b=parseInt((b.getTime()-a.getTime())/1E3);if(b<86400)return"today";else if(b<172800)return"yesterday";else{b=parseInt(b/86400).toString();if(b>5){b=
"%B %d, %Y";if(f)b+=" %I:%M %p";return $r.strftime(a,b)}else return b+" days ago"}}})})(jQuery);

