function convertAtDot(str) {
	
	return str.replace(/\[at\]/i, '@').replace(/\[dot\]/i, '.');
}
function maskEmail() {
	
	var href = $(this).attr('href');
	if (href && href.substring(0, 6) == 'mailto') {
		$(this).text(convertAtDot($(this).text()));
		$(this).attr('href', convertAtDot(href));
	}
}

$(document).ready(function() {
	$('a').each(maskEmail);
});