/*
Obfuscated email using rot13. Thanks for ruining THE ENTIRE INTERNET, spam robots.
Code from:	http://techblog.tilllate.com/2008/07/20/ten-methods-to-obfuscate-e-mail-addresses-compared/ 

Entire <span> + <a> tags written via script in case the user has javascript disabled.
*/

var obfuscated= "gvzbgul.ebzreb@tznvy.pbz";

function headerEmailLink()
{
	email = rot13(obfuscated);
	
	html = "<span class=\"headerlink\"><a class=\"nav\" href=\"mailto:" + email + "\" rel=\"nofollow\">Email</a></span>";
		
	document.write(html);
}

function resumeEmailLink()
{
	email = rot13(obfuscated);
	
	html = "<a href=\"mailto:" + email + "\" rel=\"nofollow\">" + email + "</a>";
	
	// Replace placeholder text which displays if the user has JS disabled
	var placeholder = document.getElementById("emailPlaceholder");
		
	placeholder.innerHTML = html;
}

function rot13(str)
{
	str = str.replace(/[a-zA-Z]/g, function(c)
	{
		return String.fromCharCode((c<="Z"?90:122)>=(c=c.charCodeAt(0)+13)?c:c-26);
	});
	
	return str;
}
