
function rot13(input) {
	var coding = "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMabcdefghijklmnopqrstuvwxyzabcdefghijklm";
	for ( var text = '', i = 0; i < input.length; i++) {
		var ch = input.charAt(i), pos = coding.indexOf(ch);
		if (pos > -1)
			ch = coding.charAt(pos + 13);
		text += ch;
	}
	return text;
}

$(document).ready(function() {
	$('a[href^=mailto:].rot13').each(function() {
		this.href = 'mailto:' + rot13(this.href.split(':')[1]);
	});
});
