//<script>
(function () {
	function onStart(fn) {
		//Use jQuery's onReady if available
		if (!!window.jQuery)
			return jQuery(fn);
		//Use onload if not
		if (!!window.addEventListener)
			return window.addEventListener('load',fn,false);
		if (!!window.attachEvent)
			return window.attachEvent('onload',fn,false);
		//use chintzy onload if DOM1 isn't there.
		window.onload = fn;
	}
	function rot13(text) {
		var chr, i, ret='';
		for (i=0; i<text.length; i++) {
			chr = text.charCodeAt(i);
			if (chr>=97 && chr<=122) 
				chr=(chr-97+13)%26+97;
			if (chr>=65 && chr <= 90) 
				chr=(chr-65+13)%26+65;
			ret+=String.fromCharCode(chr);
		}
		return ret;
	}
	onStart(function () {
		var i,links = document.getElementsByTagName('a'),
			match=/^(http:\/\/[^\/]*)?\/contact\/_/,
			decrypted;
		for (i=0; i<links.length; i++) {
			var link=links[i], orig = link.getAttribute('href');
			if (orig!==null) orig = orig.replace(/^http:\/\/[^\/]*\//,'/');
			else orig='';
			if (!match.test(orig)) continue;
			decrypted = orig.replace(/^(\/contact\/)?_/,'').split('/');
			for (i=0; i<decrypted.length; i++)
				decrypted[i]=rot13(decrypted[i]);
			if (decrypted.length==1) decrypted.unshift('EasternState');
			if (decrypted.length==2) decrypted.unshift('org');
			decrypted = decrypted.pop()+'@'+decrypted.reverse().join('.');
			link.innerHTML=link.innerHTML.replace(/--EMail--/g,decrypted);
			link.setAttribute('href','mailto:'+decrypted);
			
		}
	});
})();
//</script>
	