$(document).ready(function() {

	$( 'a[href*="[at]"][href*="[dot]"]' ).each(function() {
		var email = $(this).attr('href').split('[at]').join('@').split('[dot]').join('.').split('mailto:');
		email = email[1].toLowerCase();

		if ($(this).text().length == 0 || 'mailto:'+$(this).text() == $(this).attr('href')) $(this).text(email);
		
		$(this).attr('href', 'mailto:' + email);
	});
	
});
