/* Copyright Digital:Idiom c2011 - Contact thewebteam @ 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 */


/* 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].fontWeight ="bold";
		document.layers[id].color ="#C33";
		
	}
	// Explorer 4
	else if(ie4){
		//document.all[id].style.fontWeight ="bold";
		document.all[id].style.color ="#C33";
	}
	// W3C - Explorer 5+ and Netscape 6+
	else if(ie5 || ns6){
		//document.getElementById(id).style.fontWeight ="bold";
		document.getElementById(id).style.color ="#C33";
		document.getElementById(id).style.backgroundPosition ="0 -50px";
	}
}
