
function emailDecode(anchor) {
	var href = anchor.getAttribute('href')+'';
	
	if(null === href || -1 === href.indexOf('spamprotect', 0)) {
		return;
	}
	var address = href.replace(/.*spamprotect\/([a-z0-9._%-]+)\+([a-z0-9._%-]+)\+([a-z.]+)/i, '$1' + '@' + '$2' + '.' + '$3');
	var linktext = anchor.innerHTML; // IE Fix
	if (href != address) {
		anchor.setAttribute('href','mailto:' + address); // Add mailto link	
		anchor.innerHTML = linktext; // IE Fix
	}
}

document.observe("dom:loaded", function() {
	$$('a[rel="nofollow"]').each(function(element) {
		emailDecode(element);
	});
});
	