(function($){Drupal.behaviors.spamspan={attach:function(context,settings){$("span.spamspan",context).each(function(index){var _mail=($("span.u",this).text()+"@"+$("span.d",this).text()).replace(/\s+/g,'').replace(/\[dot\]/g,'.');var _headerText=$("span.h",this).text().replace(/^ ?\((.*)\) ?$/,"$1");var _headers=$.map(_headerText.split(/, /),function(n,i){return(n.replace(/: /,"="));});var _anchorText=$("span.t",this).text().replace(/^ \((.*)\)$/,"$1");var _mailto="mailto:"+encodeURIComponent(_mail);var _headerstring=_headers.join('&');_mailto+=_headerstring?("?"+_headerstring):'';$(this).after($("<a></a>").attr("href",_mailto).html(_anchorText?_anchorText:_mail).addClass("spamspan")).remove();});}};})(jQuery);;