// Email obfuscator script 2.1 by Tim Williams, University of Arizona
// Random encryption key feature by Andrew Moulden, Site Engineering Ltd
// This code is freeware provided these four comment lines remain intact
// A wizard to generate this code is at http://www.jottings.com/obfuscator/
// Augmented by Ian Hopkins

function email_employment() {
	return email_extract("1sq86ks1VJ@8NQwfo18wW.Q6s","ZQCgULyXzr0SnFG9moN1RtHf53pMiPBklxYK7Vc2vs6TbjJDaAEqIwhue8W4dO");
}
function email_contact() {
	return email_extract("nzy9ln9@wantospwtd.nzx","aZbYcXdWeVfUgThSiRjQkPlOmNnMoLpKqJrIsHtGuFvEwDxCyBzA1234567890");
}
function email_ian() {
	return email_extract("N.GhLiNFJ@qa7NxGRqNs.7hl", "psBChrc5FZRiQAjdlbXTygw2LJH4G871z09NEuWxqvoPDOnUekKSY3mM6ItfVa");
}
function email_dale() {
	return email_extract("r.vWVynKo@5aOnrvX5nC.OWi", "falEWRepbHncZvw1Tts9yd8Qm05YzxXVUGKO2S4ugMo6JrADiIFhBC3q7LkNjP");
}
function email_adam() {
	return email_extract("S.rQV4DV@9fWuqwD9ub.WQi", "EIYl61qwgvJzRVKm34NGecfXxa9nTpUo5ZsBOCiPA20DWdhbS7kLrHQ8tFjMyu");
}
function email_extract(coded, cipher) {
	shift=coded.length;
	link="";
	for (i=0; i < coded.length; i++) {
		if (cipher.indexOf(coded.charAt(i))==-1) {
			ltr=coded.charAt(i);
			link+=(ltr);
		} else {     
			ltr = (cipher.indexOf(coded.charAt(i))-shift+cipher.length) % cipher.length;
			link+=(cipher.charAt(ltr));
		}				
	}
	return link;
}
function email_link(link) {
	document.write('<a href="mailto:'+link+'">' + link  + '</a>');
}
