/*

  HerrOtto IT Services Ltd. | Sandweg 7b | 21509 Glinde | Germany
  Kontakt: info(at)herrotto.de | Web: http://www.herrotto.de
    
*/

function Abfrage(frage, url)
{
  if (confirm(frage)) {
    location.href=url;
  }
}

function Display(id, mode)
{
  var obj = document.getElementById(id);
  if (obj) {
    if (mode == 'show') {
      obj.style.display = 'block';
    } else {
      obj.style.display = 'none';
    }
  }
}

function titlemenu_mouseover(id) {
  document.getElementById("titlemenu_left_cell_" + id).style.background = "";
  document.getElementById("titlemenu_left_cell_" + id).style.backgroundColor = "#00918a";
  document.getElementById("titlemenu_mid_" + id).style.background = "";
  document.getElementById("titlemenu_mid_" + id).style.backgroundColor = "#00918a";
  document.getElementById("titlemenu_midtxt_" + id).style.color = "#ffffff";
  document.getElementById("titlemenu_right_cell_" + id).style.background = "";
  document.getElementById("titlemenu_right_cell_" + id).style.backgroundColor = "#00918a";

  Display("titlemenu_left_" + id, "hide");
  Display("hover_titlemenu_left_" + id, "show");
  Display("titlemenu_right_" + id, "hide");
  Display("hover_titlemenu_right_" + id, "show");
}
  
function titlemenu_mouseout(id) {
  document.getElementById("titlemenu_left_cell_" + id).style.background = "";
  document.getElementById("titlemenu_left_cell_" + id).style.backgroundColor = "#d8d8d8";
  document.getElementById("titlemenu_mid_" + id).style.background = "";
  document.getElementById("titlemenu_mid_" + id).style.backgroundColor = "#d8d8d8";
  document.getElementById("titlemenu_midtxt_" + id).style.color = "#909090";
  document.getElementById("titlemenu_right_cell_" + id).style.background = "";
  document.getElementById("titlemenu_right_cell_" + id).style.backgroundColor = "#d8d8d8";

  Display("hover_titlemenu_left_" + id, "hide");
  Display("titlemenu_left_" + id, "show");
  Display("hover_titlemenu_right_" + id, "hide");
  Display("titlemenu_right_" + id, "show");
}

// IE/Firefox/Opera... Layer-Ermittlung
function getElement(name) {
  if (document.getElementById) {
    return document.getElementById(name);
  } else {
    return document.all[name];
  }
}


