var Selected;
function LeftNav(element, mode)
{
	if ((document.getElementById) || (document.all)) 
	{
		//defaults
  		var bgColor = '#18929D';
  		var txtColor = '#ffffff';

		if (mode == 'over') 
		{
			bgColor = '#006a69';
   			txtColor = '#FFFFFF';
  		}
		else if (mode == 'click')
		{
			bgColor = '#006a69';
			txtColor = '#FFFFFF';
			if (Selected)
			{
				var holdElement = Selected;
			}
			Selected = element;
			if(holdElement)
			{
				LeftNav(holdElement,'out');
			}
  		}
  		else if (mode == 'out') 
		{
   			if (element == Selected)
			{
				bgColor = '#006a69';
				txtColor = '#ffffff';
			}	
  		}
		//modern browsers
  		if (document.getElementById) 
		{
			var navTxt = document.getElementById(element + "Link");
			//change colors, swap image
   			document.getElementById(element).style.backgroundColor = bgColor;
   			if (navTxt) 
			{
				navTxt.style.color = txtColor; 
			}
		//IE 4
  		}
		else if (document.all)
		{
			var navTxt = document.all(element + "Link");
			//change colors, swap image
			document.all(element).style.backgroundColor = bgColor;
   			if (navTxt) 
			{
				navTxt.style.color = txtColor; 
			}
  		}
	}
}
