/***
 * Function to make the headers FLIRed up
 ***/

function flirIt()
{
		FLIR.init();
		FLIR.replace( [ 'h1', 'h2', 'h3.byline', 'h4' ]);
		FLIR.replace( [ 'h3#vision', 'p.desc'] , new FLIRStyle({ mode:'wrap' }) );
}

/*** 
 * Function to write email address to screen, obfuscated from spam harvesters
 ***/

function writeEmailAddress(incolophon)
{
 	coded = "ZH0WHYXY@IHYDF4AHYYKHXXHZ.J62";
	cipher = "aZbYcXdWeVfUgThSiRjQkPlOmNnMoLpKqJrIsHtGuFvEwDxCyBzA1234567890";
	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))
		}				
    }
	if (incolophon) { document.write("<a href='mailto:"+link+"'>Contact us</a>"); }
	else 			{ document.write("<a href='mailto:"+link+"'>- Design Less Better</a>"); }
}