var oLastBtn=0;



function nameon(o)
{
o.style.filter="invert()"
}
function nameout(o)
{
o.style.filter=""
}





function RaiseButton(){
window.event.cancelBubble=true;
oBtn = window.event.srcElement;
var bChosen = false;
if(oLastBtn && oLastBtn != oBtn){
HideButton();
}
if(oBtn.buttonType){
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"; 
if (oBtn.className == "LNChosenDown") {
oBtn.className = "LNDown";
}
}
}
function HideButton(){
if ((oLastBtn.buttonType == "LNChosen") || (oLastBtn.buttonType == "LNSubChosen")) {
oLastBtn.className = oLastBtn.buttonType;
}
else {
oLastBtn.className = oLastBtn.buttonType + "Off";
}
}


