/**
 * jQuery Simple Dialog Plugin
 *   http://code.google.com/p/jquery-psantispam/
 *
 * Copyright (c) 2009 Paraschool
 *
 * Released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 * Since  : 0.01 - 07/06/2010
 * Version: 0.11 - 08/08/2010
 */
(function($) {
  var _email = 'username@example.com';

  $.fn.psantispam = function (username, domainName, tld) {
    return this.each(function(i, e) {
      var $this = $(this);
      _email = username + '@' + domainName + (tld ? '.' + tld : '');
      $this.attr('href', 'mailto:' + _email);
      $this.html(_email);
    });
  }

})(jQuery);
