links = document.getElementsByTagName('a');
mail_string = "mailto";
for(c = 0; c < links.length; c++)
   if(links[c].className.toString().match(/(^|\s)email($|\s)/)){
      //must create new text node on each email iteration
      var at_sign = document.createTextNode('@');
      children = links[c].childNodes;
      //iterate through children backwards, for fear of messing up index order when removing them
      for(i = children.length-1; i >= 0; i--){
         if(children[i].tagName == 'SPAN')links[c].removeChild(children[i]);
         else if(children[i].tagName == 'STRONG')links[c].replaceChild(at_sign,children[i]);
      }
      links[c].href = mail_string + ':' + links[c].innerHTML;
   }

