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*/, "."); 
		if(email.substr(0,1)=='#'){
    		email = email.substr(1)
    		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();
	}
	});
};


