/* Navigation scripts used for College of Acupuncture& Therapeutics Inc.By:			Marlon A. GriffithModified:	Fri, Mar. 7, 2003 *//* utility function to check browser compliant type */function checkBrowser(){	if( document.body ) {		alert("This is a W3C DOM 1.0 compliant browser");	}	if( document.layers ) {		alert("This is a Netscape 4.x compliant browser");	}	if( document.all ){		alert("This is an IE 3.x compatible browser");	}	return;}/* if cursor hovers over an element, change its style Decided to use css instead */function onLevelOne( el, infoWanted ){	if( document.body ) {		el.style.backgroundColor = "blue";		el.style.color = "red";		el.style.textDecoration = "underline";		displayInfo( infoWanted );	} else if( document.layers ) {		alert("This is a Netscape 4.x compliant browser");	} else if( document.all ){		alert("This is an IE 3.x compatible browser");	}	return;}/* if cursor leaves an element, return its style to before Decided to use css instead */function notOnLevelOne( el, infoWanted ){	if( document.body ) {		el.style.backgroundColor = "#660033";		el.style.color = "white";		el.style.textDecoration = "none";		displayInfo( infoWanted );	} else if( document.layers ) {		alert("This is a Netscape 4.x compliant browser");	} else if( document.all ){		alert("This is an IE 3.x compatible browser");	}	return;}// change info section depending on link cursor is overfunction displayInfo( infoIdName ){	try {		// document.childNodes is not recognized by Opera 5.x for Mac!		if( document.getElementById && document.childNodes ) {			// Hide any info that is displayed			var infoSectNode = document.getElementById( "infoSect" );			var kids = infoSectNode.childNodes;			for( i=0; i<kids.length; i++ ){				// alert( "kids.length is " + kids.length );				if( kids[i].nodeType == 1 ) // a Node.ELEMENT_NODE {					// alert( "kids[i].style.display is " + kids[i].style.display );					if( kids[i].style.display == "" ){						kids[i].style.display = "none";					}			}			// Unhide the info of the link the mouse is over or clicked			var infoIdNode = document.getElementById( infoIdName );			infoIdNode.style.display = "";			return;		} else if( document.layers ) {			// place Netscape 4.x compatible code here			// but for now won't do anything.			return false;		} else if( document.all ){			// place IE 3.x compatible code here			// but for now won't do anything.			return false;		} else {			return false;		}	} catch (err) {	    alert("Error is" + err );		return false;	}}
