// JavaScript Document
function selectImage() {
	var randNum = Math.round(Math.random()*4)+1
	document.write("<img src='images/home/photo" + randNum + ".jpg' alt='Photo of President Paul Zingg' name='photo' width='434' height='189' />")
	//alert(randNum)
}

function obfuscate(domain, name) {
	if(domain == "") { // if you leave the domain blank
		domain = "csuchico.edu"; // the script assumes csuchico.edu
	}
	window.location.href=('mailto:' + name + '@' + domain.replace(/%%%/g,".")); // write out email address
}