/*
 * timeago: a jQuery plugin, version: 0.6.2 (10/14/2008)
 * @requires jQuery v1.2 or later
 *
 * Timeago is a jQuery plugin that makes it easy to support automatically
 * updating fuzzy timestamps (e.g. "4 minutes ago" or "about 1 day ago").
 *
 * For usage and examples, visit:
 * http://timeago.yarp.com/
 *
 * Licensed under the MIT:
 * http://www.opensource.org/licenses/mit-license.php
 *
 * Copyright (c) 2008, Ryan McGeary (ryanonjavascript -[at]- mcgeary [*dot*] org)
 */
(function($) {
  $.timeago = function(timestamp) {
    if(timestamp.jquery)
      timestamp = timestamp[0];
    return TimeAgo.prototype.inWords(TimeAgo.prototype.normalizeDate(timestamp));
  };

  $.fn.timeago = function() {
    return this.each(function(index, domElement) {
      new TimeAgo(domElement);
    });
  };
})(jQuery);
