
function fnNavRoll(sActive, iNavNo, sState)
//*****************************************************************************
// function :	fnNavRoll
// Author   :	Harvey Turner
//
//
// Description:
// This function handles High, Low, and Active states fot the HTML based navigation elements
//
{

	
	iOveride = 0;		
	if (sActive == "")
	{
		sActive = sCurSelect;
		iNavNo = sCurSelectNo;
		iOveride = 1;
	}
	if  (sActive == "hom"){
		//document.images['hom'].src = "../images/BUR_logo_LO.gif";
		}
		else
		{	
	if ((sActive != sCurSelect) || (iOveride == 1))
	{		
		sLeftL = "nav" + (iNavNo - 1);
		sButton = "nav" + iNavNo;
		sRightL = "nav" + (iNavNo + 1);
		if (sState == "HI")
			{
				//set images to high state
				document.images[sLeftL].src = "images/NavDivider_hi.gif";	
				document.images[sButton].src = "images/btn" + sActive + "_hi.gif";
				if (sRightL != "nav18")
				{
					document.images[sRightL].src = "images/NavDivider_hi.gif";	
				}				
				if (iOveride == 1) 
				{				
					sCurLeftL = sLeftL;
					sCurRightL = sRightL;
				}					
			}
		else
			{
				//set images to low state
				if ((sLeftL != sCurLeftL) && (sLeftL != sCurRightL)) 
				{
					document.images[sLeftL].src = "images/NavDivider_lo.gif";
				}
				document.images[sButton].src = "images/btn" + sActive + "_lo.gif";
				if ((sRightL != sCurLeftL) && (sRightL != sCurRightL) && (sRightL != "nav18")) 
				{
					document.images[sRightL].src = "images/NavDivider_lo.gif";	
				}
			}
		}
	}	
//end fnNavRoll function
}
