//This code takes an integer and returns an email address to hide email from webcrawlers
/* Precondition: thelink is a "me" reference for generic labeling 
		intWho initialized to an int for each employee */

/*
<!-- 
<script  type="text/javascript">
function setEmail(this, int) {}
</script>
<!-- include the file with email addresses , place in headers of all files needing email-->
<script src="email.js" type="text/javascript"></script>
<noscript>Sorry, your browser does not support javascript includes.  Please update to the newest version of your browser!</noscript>
*/
function setEmail(thelink, intWho){
	var email = "";
	var name = "";
	
	//Each user has a number which gives his/her name and email address back to calling file.
	//Calling file is: <a href="#" onclick="setEmail(this, 1);">Sean Adams</A> 
		//1 = Sean Adams
		//2 = Mike Donovan
		//3 = Don Woods

		
	switch(intWho){
		case 1:
			email = "mailto:sean@mooserivermedia.com";
			name = "Sean Adams";
		break;
		case 2:
			email = "mailto:mike@mooserivermedia.com ";
			name = "Mike Donovan";
		break;
		case 3:
			email = "mailto:dwoods@mooserivermedia.com ";
			name = "Don Woods";
		break;

		default:
			email = "error";
			name = "error";
		break;
	}
	
	
	thelink.href = email;
	thelink.text = name;
}