/**
/  Date v1.0
/  (c) 2008 Adam Schwartz - http://polymath.mit.edu
/  Licensed under the MIT Licencse
/  http://www.opensource.org/licenses/mit-license.php
/  This is distributed WITHOUT ANY WARRANTY; without even the implied
/  warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/

var Time={y2k:function(n){return(n<1000)?n+1900:n},since:function(a,b,c){var d=new Date();var e=d.getDate();var f=d.getMonth()+1;var g=Time.y2k(d.getYear());var h=g-c,z=0;var i=0,s='edited ';if(f>=b)z=f-b;else{h--;z=f+12-b}if(e>=a)i=e-a;else{if(z>0)z--;else{h--;z+=11}i=e+31-a}if(h<0)return s+'in the future';if((h==0)&&(z==0)&&(i==0))return s+'today';if(h>0){s=h+' year';if(h>1)s+='s';if(z>0&&i>0)s+=', ';else if(z<=0&&i<=0)s+='';else{s+=' and '}}if(z>0){s+=z+' month';if(z>1)s+='s';if(i>0)s+=' and '}if(i>0){s+=i+' day';if(i>1)s+='s'}return s+' ago'}}