var emailState = "0";
var emailName = "bjohnson";
var emailDomain = "blakeanthonyjohnson.com";

function emailShow() {
	if(emailState == "0") {
		document.getElementById('emailTextArea').value = emailName + "@" + emailDomain;
		document.getElementById('emailButton').value = "Send Email.";
		document.getElementById('emailButton').className = "emailMe";
		//document.getElementById('emailButton').getElementsByTagName('input')[0].setAttribute("className","emailMe");
		emailState = "1";
		return true;
	}
	else if(emailState == "1") {
		document.location = "mailto:" + emailName + "@" + emailDomain;
		return true;
	}
	else {
		alert('Error??? WTF?!');
		return false;
	}
}

function emailObfuscatedWhy() {
	alert('Spam.  One of the most annoying things about the internet.  Well, I took advantage of some idea I had to protect myself from it. I did it in a way where spam bots can\'t harvest my email address, while still being able to reveal my email address to others.  This little layer of protection should protect me against any harvesting that may go on.\n\nThe way I implemented this, only humans will be able to read it, because the page has to be interacted with in order to display the address.');
	return false;
}
