$(function() {
	$('span.email-replace')
		.html(function(index, email) {
			return email.replace(' [at] this domain', '@' + window.location.hostname.replace('www.', ''));
		})
		.wrap(function() {
			return $('<a href="mailto:' + $(this).html() + '"></a>');
		})
		.removeClass('email-replace')
	;
});
