// JavaScript Document

function checkBackground(tdname){
			var currentBackground="1";
			var newColor = "#022260";
			
			//alert("currentBackground= "+currentBackground);

/*********** Check to see what the current background is. ***********/
			if(HM_NS4)
			{
				//document.layers[menuId].visibility='show';
			}
			else if(HM_DOM)
			{
				currentBackground=eval("document.getElementById('" + tdname + "').style.backgroundImage ");
				
			}
			else
			{
				currentBackground=eval("document.all." + tdname + ".style.backgroundImage");
				
			}
	
	//alert("currentBackground= "+currentBackground);
	
/*********** if background dark, set color to #ffffff otherwise set color to #022260 ***********/
			if(currentBackground=="url(http://www.questarPipeline.com/site_resources/images/ForWhiteRiverHub/DarkBlue.gif)"){
			//alert('true');
			newColor = "#ffffff";
		
			}else{
			//alert('false');
			newColor = "#022260";
			
			}
		
		
	/*********** set div layer style color  ***********/			
			if(HM_NS4)
			{
				//document.layers[menuId].visibility='show';
			}
			else if(HM_DOM)
			{
				eval("document.getElementById('" + tdname + "Link').style.color = newColor");
				
			}
			else
			{
				eval("document.all." + tdname + "Link.style.color = " + newColor);
				
		
			}
	/*********** set div layer style color  ***********/

	}
	
	
	
	
	