var sActiveButton_gl="";

function fSetActiveButton(sId) {
  sPreviousButton=sActiveButton_gl;
  sActiveButton_gl=sId;
  // alert(sPreviousButton+" -> "+sActiveButton_gl);
  if((sPreviousButton!=sId)&&(sPreviousButton!="")) {
    if(isObject(getObjectById(sPreviousButton))) {
      fMenuOut(getObjectById(sPreviousButton));
    }
  }
  if(isObject(getObjectById(sActiveButton_gl))) {
    fMenuOver(getObjectById(sActiveButton_gl));
  }
}

function fGetActiveButton() {
  return sActiveButton_gl;
}

function fMenuOver(cObj) {
  cObj.className="menu_over";
  cHR=getObjectById(cObj.id+"_href");
  cHR.style.color="white";
  cHR.style.backgroundColor="#525252";
}

function fMenuOut(cObj) {
  if(sActiveButton_gl!=cObj.id) {
    cObj.className="menu";
    cHR=getObjectById(cObj.id+"_href");
    cHR.style.color="#000000";
    cHR.style.backgroundColor="white";
  }
}

function fMenuClick(cObj, sURI) {
  top.Navigation.fSetActiveButton(cObj.id);
  top.Bottom.fSetActiveButton(cObj.id);
  // alert("uri--> "+sURI);
  top.Inhalt.location.href=sURI;
}

function fSubMenuClick(cObj, sURI) {
  location.href=sURI;
}

function fMenuClickId(sId, sURI) {
  top.Navigation.fSetActiveButton(sId);
  top.Bottom.fSetActiveButton(sId);
  top.Inhalt.location.href=sURI;
}

function fSetMenu() {
  if(isDefined(top.Inhalt.sButtomName_gl)) {
    fSetActiveButton(top.Inhalt.sButtomName_gl);
  }
}