$.fn.pulse = function(time)
{
    if (!time)
      time = 2000;

    // this == jQuery object that contains selections
    this.fadeTo(time,0.30,
                function() {                    
                    $(this).fadeTo(time,1);
                });

    return this;
}