
  function highKarte(nr) {
    if (!popupActive)
      eval("document.getElementById('grossekarte').src=grossekarte_"+nr+".src;");
  }

  function lowKarte() {
    document.getElementById('grossekarte').src=grossekarte_0.src;
  }


  function activateKarte(nr) {
    if (!popupActive) {
      eval("document.getElementById('kleinekarte_"+nr+"').style.visibility='visible';");
      eval("document.getElementById('kleinetabelle_"+nr+"').style.visibility='visible';");
      lowKarte();
      popupActive = true;
    }
  }

  function deactivateKarte(nr) {
    eval("document.getElementById('kleinekarte_"+nr+"').style.visibility='hidden';");
    eval("document.getElementById('kleinetabelle_"+nr+"').style.visibility='hidden';");
    lowKarte();
    popupActive = false;
  }

  function moveDiv(x, y) {
    eval("document.getElementById('stadtmarker').style.left = '" + x + "px';");
    eval("document.getElementById('stadtmarker').style.top = '" + y + "px';");
  }

  function showStadtMarker(xPos, yPos, link, id) {
    moveDiv(ausgleichLeft + xPos - ausgleichDivLeft, ausgleichTop + yPos - ausgleichDivTop);
    ShowDiv('stadtmarker');
    linkAufStadt = link;
  }

  function showListeStadtMarker(xPos, yPos, link, id) {
    if (!popupActive)
      showStadtMarker(xPos, yPos, link, id);
  }

  function openStadt() {
    staedtePopup = window.open(linkAufStadt,"staedtePopup","width=516,height=400,left=150,top=70,scrollbars=yes");
  }

  function openStadtMitParam(link) {
    staedtePopup = window.open(link,"staedtePopup","width=514,height=400,left=150,top=70,scrollbars=yes");
  }

  function openMotivMitParam(link) {
    staedtePopup = window.open(link,"motivePopup","width=514,height=400,left=150,top=70,scrollbars=yes");
  }

  function hideMarker(id) {
    if (id != '') simpleDeHighlight(document.getElementById(id));
    HideDiv('stadtmarker');
  }

  function markiereTabelle(xPos, yPos, link, id) {
    showStadtMarker(xPos, yPos, link);
    if (id != '') simpleHighlight(document.getElementById(id));
    aktuelleID = id;
    linkAufGalerie = link;
  }

  function openGalerie() {
    document.location.href = linkAufGalerie;
  }
