/* Copyright Digital:Idiom c 1999 - 2004 - Contact designer @ digitalidiom.co.uk */
/* www.digitalidiom.co.uk for professional web design to W3C standards */
/* NO copy or use of original material by Digital:Idiom without permission */


/* =======  bug fix for Netscape 4: reloads styles if Nav4 resized===== */
function DC_reloadPage(init) {
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.DC_pgW=innerWidth; document.DC_pgH=innerHeight; onresize=DC_reloadPage; }}
else if (innerWidth!=document.DC_pgW || innerHeight!=document.DC_pgH) location.reload();
}
DC_reloadPage(true);


/* BROWSER CHECKS */
var ns4 = (document.layers);
var ie4 = (document.all && !document.getElementById);
var ie5 = (document.all && document.getElementById);
var ns6 = (!document.all && document.getElementById);


/* ====================================================== */
/* MENU HIGHLIGHTER Changes appearance of selected menu   */
/* item to indicate which page is being viewed */

function chgNavBar(id){
	// Netscape 4
	if(ns4){
		document.layers[id].color ="#666";
	}
	// Explorer 4
	else if(ie4){
		document.all[id].style.color ="#666";
	}
	// W3C - Explorer 5+ and Netscape 6+
	else if(ie5 || ns6){
		document.getElementById(id).style.color ="#666";
	}
}


/* ====================================================== */
/* Dynamically Write Email so spam spiders do not        */
/*  pick up email or address details */


function writeEmail(who)
{
	document.write("<a href='mailto:"+who+"@force4design.com'>");
	document.write(who+"@force4design.com");
	document.write("</a>");
}

/* ====================================================== */
/* COUNTER ROLLOVER (hide or show) */
function showStats(state)
{
	if (ie5) {
		document.all.stats.style.visibility = state;
	}
}

