// JavaScript Document
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
}

function selectImage() {
	var randNum = Math.round(Math.random()*7)+1
	document.write("<img src='/chem/images/homePhoto" + randNum + ".jpg' alt='Department of Chemistry' name='photo' width='266' height='263' />")
	//alert(randNum)
}

function selectInteriorImage() {
	var randNum = Math.round(Math.random()*15)+1
	document.write("<img src='/chem/images/intPhoto" + randNum + ".jpg' alt='Department of Chemistry' name='photo' width='177' height='137' align='top' />")
	//alert(randNum)
}
