//
// This script will apply the "currentitem" style to an HTML element.
// 
// Purpose:  Use this function to apply the style attributes defined
// -------   in the currentitem style to an HTML element.  The effect
//           is to make the currently selected menu item appear 
//           different from the non-selected items, for example
//           it could be a different color and  use a bold font weight.  
//
//           The function checks to see if the browser is Internet 
//           Explorer version 4 or higher before it attempts to
//           perform the highlight.

function highlightMenuItem ( id ) {
	var NS	= navigator.appName == "Netscape";
	var IE	= navigator.appName == "Microsoft Internet Explorer";
	var V4	= 3 < parseInt( navigator.appVersion );
	if (IE && V4) { eval("document.all." + id + ".className='currentitem'");}
//   else if (NS && V4) { layerWrite(id,null,'<SPAN CLASS="currentitem">' +id+ '</SPAN>');}
}

function layerWrite(id,nestref,text) {
	if (nestref) var lyr = eval('document.'+nestref+'.document.'+id+'.document')
	else var lyr = document.layers[id].document
	lyr.open()
	lyr.write(text)
	lyr.close()
}

