/* Copyright Digital:Idiom c 1999 - 2008 */
/* 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);


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


/* BROWSER CHECKS */
var ns4 = (document.layers);
var ie4 = (document.all && !document.getElementById);
var ie5 = (document.all && document.getElementById);
var ie6 = (document.all && document.getElementById && navigator.userAgent.indexOf("6") > 0);
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 ="#F30";
	}
	// Explorer 4
	else if(ie4){
		document.all[id].style.color ="#F30";
	}
	// W3C - Explorer 5+ and Netscape 6+
	else if(ie5 || ns6){
		document.getElementById(id).style.color ="#F30";
	}
}

/* ====================================================== */
/* Dynamically Write Email so spam spiders do not        */
/*  pick up email or address details */
function writeDIEmail(who)
{
	document.write("<a href='mailto:"+who+"&#064;digitalidiom.co.&#117;&#107;'>");
	document.write(who);
	document.write("&#064;");
	document.write("digitalidiom");
	document.write(".co .&#117;&#107;");
	document.write("</a>");
}
