//Use to track the anchor that was clicked last
var activeLink	//this object will be use to copy the current anchor object

//Accepts the link object and "on" or "off"
function changeClass(object,mode){
	if (isLayers != 1){	
			if (mode == "on"){	//turn Heading color on
				findDOM(object.id+'_text',0).className ='normalOrange'
			}
			//if the link has been clicked then "activeLink == object"
			else if (activeLink == object) {//leave Heading color on
			}
			else	{findDOM(object.id+'_text',0).className ='normal'} //turn Heading color off
	}			
}

//Shows the divs and sets the color of "Heading texts"
//Had to use the objects name here because I could not get the divs to show in netscape when passing an object to this function
function showData(objectName){

		//turn off the color on the Active "Heading Text"
		if (activeLink){
						var mylink = activeLink
						activeLink = null			//set this to null because the user has clicked on a link and this is no longer the active link
						changeClass(mylink,'off');	//Color OFF
		}
		
		//Show the new div
		show_me(findDOM(objectName+'_div',0).id)
	
		//turn on the Active "Title Text"
		changeClass(findDOM(objectName,0),'on')

		//Track the Active "Title Text"
		activeLink = findDOM(objectName,0)
}


function fixNS4(){
	if (isLayers==1){
	document.write("<br><br><br>")
			}
}				
