var site = {
	
	protectEmailLinks: function(){
		var d = document.links;
		for(i=0;i<d.length;i++){
			if(d[i].protocol == 'mailto:'){
				d[i].href = d[i].href.replace(/^mailto:([^+]+)\+([^+]+)(?:\+|\.)?([^+?]+)?/,'mailto:$1@$2.$3').replace(/\.$/,'')
				if (d[i].childNodes.length==0) // add email address to no-text links
					d[i].appendChild(document.createTextNode(d[i].href.substring(7)));
			}
		};
	}
}

$(site.protectEmailLinks)