	var oLastBtn=0;
	var oLastBtnClass="";
	function RaiseButton(){
		window.event.cancelBubble=true;
		oBtn = window.event.srcElement;
		var bChosen = false;
		if(oLastBtn && oLastBtn != oBtn){
			HideButton();
		}
		if(oBtn.buttonType)
		{
		// we want to maintain the steady state classname for the button
			isUp = oBtn.className.lastIndexOf("Up");
			isDown = oBtn.className.lastIndexOf("Down");
			if(isUp == -1 && isDown == -1)
				oLastBtnClass  = oBtn.className;
				
			oBtn.className = oBtn.buttonType + "Up";
			oLastBtn=oBtn;			
		}
		else 
		{
			oLastBtn = 0;
		}
	}
	function DepressButton(){
		window.event.cancelBubble=true;
		oBtn = window.event.srcElement;
		if(oBtn.buttonType){
			oBtn.className = oBtn.buttonType + "Down";
		}
	}
	function HideButton(){
		
		
		if(oLastBtnClass == "")
			oLastBtnClass = oLastBtn.className;
			
		//alert("Last button class: " + oLastBtnClass );
		
		if ((oLastBtnClass == "LeftNavChosen") || (oLastBtnClass == "LeftNavSubChosen") || (oLastBtnClass == "appNavChosen") || (oLastBtnClass == "appNavSubChosen")) {
			oLastBtn.className = oLastBtn.buttonType + "Chosen";
		}
		else {
			oLastBtn.className = oLastBtn.buttonType + "Off";
		}
		oLastBtnClass = oLastBtn.className;
	}
        var strTDColor = '#3366CC';
        g_RolledTD = new Object;

        function textRoll(strTextColor)
  {
                window.event.srcElement.style.color = strTextColor;
                window.event.cancelBubble = true;
        }
        function TDUnRoll()
        {
                g_RolledTD.bgColor = strTDColor;
        }
        function TDRoll(strTDColor)
        {
                window.event.srcElement.bgColor = strTDColor;
                g_RolledTD = window.event.srcElement;
                window.event.cancelBubble = true;
        }

        document.onClick = TDUnRoll;
        document.onmouseover = TDUnRoll;

