//+ Jonas Raoni Soares Silva
//@ http://jsfromhell.com/string/rot13 [v1.0]

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

// Darcy's Code :D

var encoded = "fhggb@fhggb.arg";

function showEmail() {
  var container = document.getElementById("email-address");
  container.innerHTML = ""; // Clear Text
  var newContent = document.createElement("a");
  newContent.title = "Sutto's Email";
  newContent.href = "mailto:" + encoded.rot13();
  newContent.innerHTML = encoded.rot13();
  container.appendChild(newContent);
}

window.onload = function() {
  showEmail();
}