/*
	common Javascript utilities
	
	© 2009-2010 john bishop images
	
*/

/* 	decode ceaser cipher (2 step) */

function cc2(x) 
{
	var y=2; var z=0; var xx=""; 
	for (var i=0; i<x.length; i++)
	{ z=x.charCodeAt(i);
	  xx+=String.fromCharCode(z-y);
	}
	return xx;
}

/*
	onClick function to invoke mailto: protocol
	cipher encodes name@domain.com in main HTML
	prevents bots from scanning email addresses
*/

function email(x) 
{
	parent.location="mailto:"+cc2(x);
	return false;
}


