
// Protect email addresses from spam harvesting

function buildEmail (pName) {
	var xDom = "bettisworthnorth";
	var xExt = "com";
	document.write('<a href=\"mailto:' + pName + '@' + xDom + "." + xExt + '\">');
	document.write(pName + '@' + xDom  + "." + xExt);
	document.write('</a>');
}
function buildEmailOut (address, domain) {
	document.write('<a href=\"mailto:' + address + '@' + domain + '\">');
	document.write(address + '@' + domain + '</a>');
}



function MM_preloadImages() { //v3.0
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
			if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}





// Portfolio - show/hide photos

function swap (pID,pCnt) {
	for (i=1;i<=pCnt;i++) {
		document.getElementById('P'+i).style.display='none';
	}
	document.getElementById('P'+pID).style.display='block';
}







// SIFR TYPE
/*
if(typeof sIFR == "function"){

	sIFR.replaceElement(named({sSelector:"#Main h1", sFlashSrc:"../swf/mrseavessmallcaps.swf", sColor:"#000000", sLinkColor:"#226622", sBgColor:"#dbbe34", sHoverColor:"#666666", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0"}));

	sIFR.replaceElement(named({sSelector:"#Main h2", sFlashSrc:"../swf/mrseavessmallcaps.swf", sColor:"#806633", sLinkColor:"#226622", sBgColor:"#dbbe34", sHoverColor:"#666666", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0"}));

	sIFR.replaceElement(named({sSelector:"#ContentHome h4", sFlashSrc:"swf/mrseavessmallcaps.swf", sColor:"#000000", sLinkColor:"#226622", sBgColor:"#dbbe34", sHoverColor:"#666666", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0"}));
	

	sIFR.replaceElement(named({sSelector:"#ContentHome h4", sFlashSrc:"swf/FuturaMedium.swf", sColor:"#000000", sLinkColor:"#226622", sBgColor:"#dbbe34", sHoverColor:"#666666", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0"}));
	
};

*/