var oLastBtn=0;

function SideBtnRaise(){
	window.event.cancelBubble=true;
	oBtn = window.event.srcElement;
	var bChosen = false;
	if(oLastBtn && oLastBtn != oBtn){
		SideBtnHide();
	}
	if(oBtn.buttonType){
		if (oBtn.buttonType != "BtnChosen") {
		oBtn.className = oBtn.buttonType + "Up";
		oLastBtn=oBtn;
		}
	}
	else {
	oLastBtn = 0;
	}
}

function SideBtnDepress(){
	window.event.cancelBubble=true;
	oBtn = window.event.srcElement;
	if(oBtn.buttonType){
		if (oBtn.buttonType != "BtnChosen") {
		oBtn.className = oBtn.buttonType + "Down"; 
		}
	}
}

function SideBtnHide(){
	if (oLastBtn.buttonType == "BtnChosen") {
		oLastBtn.className = oLastBtn.buttonType;
	}
	else {
		if (oBtn.buttonType != "BtnChosen") {
		oLastBtn.className = oLastBtn.buttonType + "Off";
	}
	oLastBtn.className = oLastBtn.buttonType + "Off";
	}
}