		var displayJavaErrors = "false";
		var buttonType = ".gif"	//file type of the rollover images on the web site
		var pageButton = ""	//name of button to always stay on
		var banImgDir = "/" //default path to banner
		var banImgName = "cp.gif" //default banner
		var onExt = "_on"	//default on button extension
		var moExt = "_on"	//default mouseover button extension	
		var offExt = "_off"	//default off button extension
		var imagePath="/Buttons/"	//path for buttons
				
		var names = new Array()						
		var buttonOff = new Array()
		var buttonMo = new Array()
		
		
		function flip(button, arr)
		{
			try
			{
				if(button.src == buttonOff[button.id].src)
					{//if its off
						button.src = buttonMo[button.id].src // turn it on
						document.getElementById(button.id + "_link").style.fontWeight = 'bold'
						
					}					
				else{		
						button.src = buttonOff[button.id].src // else turn it off
						document.getElementById(button.id + "_link").style.fontWeight = 'normal'
					}

				if(arr != null)
				{ 
					flip(document.getElementById(arr))
					
				}
				
			}
			catch(err)
			{
				if (displayJavaErrors == "true")
				{
					alert("Error caught flip:[" + button.id + "][" + err.description + "]");
				}
			}
			
		}
					
		function lightUp(currentWindow){
			try
			{
				/*
					this function has been modified from the original
					reason being that the original function was design to simply flip a single image from on to off
					Friedlander was designed to mix text links with repeated images of arrows and squares to indicate 
					the visitors page.
					
					so the image being flipped can be arr_off for arrows or sqr_off for squares and the font style 
					for the link has top change to bold. I gave the image to be flipped the id of *_arr or *_sqr and 
					the anchor tag the id of *_link
					
					I had getPageLightupButton return the id of the image being flipped (example_arr). I then parse the id
					to find the anchor tags id (in this case example_link. I now can change the font style of the anchor tag to bold.
					
					This seemed to be the quickest way of getting this done without otherwise rewriting this and other functions
				*/
				var menu = getPageLightupButton(currentWindow.location.pathname);
				try
				{
					
					if(menu != ""){
						document.getElementById(menu).src = buttonMo[menu].src; //flip the image
						//parse link id
						if (menu.indexOf('_') != -1)
							menu = menu.substring(0, menu.indexOf('_')) //parse the base string of the id and use it to alter the anchor tag
						document.getElementById(menu + "_link").onmouseover = null;						
						document.getElementById(menu + "_link").onmouseout = null;
						document.getElementById(menu + "_link").style.fontWeight = "bold";						
					}
				}
				catch(err)
				{
					if (displayJavaErrors == "true")
					{
						alert("Error caught autoInitRollovers menu:["+ menu + "][" + err.description + "]");
					}
				}				
			}
			catch(err)
			{
				if (displayJavaErrors == "true")
				{
					alert("Error caught autoInitRollovers path:["+ currentWindow.location.pathname + "][" + err.description + "]");
				}
			}		
		}
		
		function autoInitRollovers(currentWindow)
		{
			var allPageImages = currentWindow.document.images;
			var imgId = "";
			var imgPathName = "";
			var imgPath = "";
			var imgName = "";
			
			for (x = 0; x < allPageImages.length; x++){
				imgId = allPageImages[x].id;
				imgPathName = allPageImages[x].src;
				if ((imgId != "") && (imgPathName.indexOf('_off.gif') != -1))
				{
					var arrayOfImgPath = imgPathName.split("/");
					imgName = arrayOfImgPath[arrayOfImgPath.length - 1].replace("_off.gif", "");
					imgPath = imgPathName.replace(arrayOfImgPath[arrayOfImgPath.length - 1], "");
					//alert("image["+ x + "][" + imgId + "][" + imgPathName + "][" + imgPath + "][" + imgName + "]");
					try
					{
						addButton(imgId, imgName, imgPath);
					}
					catch(err)
					{
						if (displayJavaErrors == "true")
						{
							alert("Error caught autoInitRollovers:" + err.description);
						}
					}
				}
			}
		}
		
		function addButton(buttonId, sourceName, imagePathOverride){
		
			var usingImagePath = imagePath;
			if(imagePathOverride != null)
			{ 
				usingImagePath = imagePathOverride;
			}
			if(sourceName == "" || sourceName == null)
				sourceName = buttonId
				
			names[names.length] = buttonId
			
			buttonOff[buttonId] = new Image()
			buttonOff[buttonId].src = usingImagePath + sourceName + offExt + buttonType
						
			buttonMo[buttonId] = new Image()
			buttonMo[buttonId].src = usingImagePath + sourceName + moExt + buttonType
			//alert("addbutton:[" + buttonId + "][" + buttonOff[buttonId].src + "][" + buttonMo[buttonId].src + "]");
		}
		
		function load_win(lnk){
		//this function was used in the old site to load the pop up windows of the pdf dopcuments
		//this is no longer in use
			url = lnk.href

			win_ref = window.open(url,"pdf_win")

			win_ref.focus()

			return false

		}
		
		function openHelp(x, y, page){
			//loads a popup window with variable content and diemensions
			//suggest making a 'sticky' version that always stays on top via a modal window
			win_ref = window.open(page, 'tcsPopUp', 'height='+y+', width='+x);

			win_ref.focus();
			
			return;

		}

