var browser = "";      // default-Wert

function getBrowser() {
  if (browser == "") {
    // IE4
    if (document.all) {
      browser = "ie4";
    }
    // IE5, IE6, Netscape6, Opera6
    // xxx - Blödsinn, hier wird noch offset abgefragt, tasächlich wird aber style.top verwendet
    // if ((document.getElementById) && (document.getElementById(idz).offsetTop >= 0)) {
    if (document.getElementById) {
      browser = "ie5c";
    }
  }
  return browser;
}

// Popup-Fenster
function popWin(w, h, target, scrollbars) {
  posy = (screen.height - h)/2;
  posx = (screen.width - w)/2;
  param = new String("width=" + w + ",height=" + h + ",screenX=" + posx + ",screenY=" + posy + ";resizable=no,dependent=yes");
  if (scrollbars) param = param + ", scrollbars";
  popup = window.open("", target, param);
  popup.focus();
}
function popBio(w, h) {
  param = new String("width=" + w + ",height=" + h + ",resizable=yes,dependent=yes,scrollbars=yes");
  popup = window.open("", "bio", param);
  popup.focus();
}

function isVisible(id) {
  return (document.getElementById(id).style.visibility == 'visible');
}

function switchOn(id) {
  if (getBrowser() == "ie4") {
    document.all[id].style.visibility = 'visible';
  }
  if (getBrowser() == "ie5c") {
    document.getElementById(id).style.visibility = 'visible';
  }
}

function switchOff(elem) {
  elem.style.visibility = 'hidden';
}
