jQuery.fn.mailto = function() {
	return this.each(function(){
		var email = $(this).attr('href').replace(/\s*(\(|%28)keyfield(\)|%29)\s*/, "@").replace(/\s*(\[|%5B)delimit(\]|%5D)\s*/, "."); // match `(keyfield)` (8char) `[delimit]` (7char)
		if($(this).is(':has(cufon)')){ 		
		    // edit in place, leave innerHTML alone
    	    $(this).attr({'href':'mailto:'+email,'rel':'nofollow','title':'Email '+email})
    	}else{
    		var text = $(this).html().replace(/\s*(\(|%28)keyfield(\)|%29)\s*/, "@").replace(/\s*(\[|%5B)delimit(\]|%5D)\s*/, ".");
    		$(this).before('<a href="mailto:' + email + '" rel="nofollow" title="Email ' + email + '">' + text + '</a>').remove();
    	}
	});
};


