<!--
  function link(href, linktext, target)
  {
    this.href = href;
    this.linktext = linktext;
    this.target = target;
  }

  function is_sub(arr, href)
  {
    for(var elem in arr)
      if(arr[elem].href == href)
        return(true);
    
    return(false);
  }

function output(links)
  {
    var cls;
    var cls_l;
    var height;
    
    var filename = location.href.split("?")[0];
    filename = filename.substring(filename.lastIndexOf("/")+1, filename.length);
    
    document.writeln('<table cellpadding="0" cellspacing="0" class="menutable" onMouseOut="dehighlight()">');

    
    for(var i=0; i<links.length; i++)
    {
      for(var k=0; k<links[i].length; k++)
      {
        if(k == 0)
          cls = "menu_main";
        else  
          cls = "menu_sub";
          
        if(k > 0)
          if(!is_sub(links[i], filename))
            continue;
        
        
        if(k == 0)
        {
          // hauptmenüeintrag
          
          height = window.menuoptions["height"];
          
          if (links[i][0].href == filename || is_sub(links[i], filename))
          {
            cls_l = "menu_mark_main_l";
            cls = "menu_mark_main";
            
            window.main_item = i + "_" + k;
          }
          else
            cls_l = "menu_main";
        }
        else
        {
          // untermenüeinträge
          
          height = window.menuoptions["height_sub"];

          if (links[i][k].href == filename)
          {
            cls_l = "menu_mark_sub_l";
            cls = "menu_mark_sub";
          
            window.sub_item = i + "_" + k;
          }
          else
            cls_l = "menu_sub";
        }
        
        
                  
        document.writeln('<tr onMouseOver="highlight(\'' + i + '_' + k + '\')">');
        document.writeln('  <td id="td_l_' + i + '_' + k + '" class="' + cls_l + '" style="width: ' + window.menuoptions["width_l"] + 'px; height: ' + height + 'px;">&nbsp;</td>');
        document.writeln('  <td class="' + cls + '" style="width: ' + window.menuoptions["width_r"] + 'px; height: ' + height + 'px;"><a class="' + cls + '" style="border: none;" href="' + links[i][k].href + '" target="' + links[i][k].target +  '" onFocus="if (this.blur) this.blur()">' + links[i][k].linktext + '</a></td>');

        document.writeln("</tr>");

              
      }
    
    }
    
    document.writeln("</table>");
          
  }
  
  function get_element(id)
  {
    if(document.all)
      return(eval("document.all." + id));
    else
      return(document.getElementById(id));
  }
  
  function highlight(name)
  {       
    var ids = name.split("_");
    
    if(ids[1] > 0)
    {
      // Untermenüeintrag      
      if(window.sub_item != name)
        get_element("td_l_" + name).className = "menu_highlight_sub_l";
      
    }
    else
    {      
      // Hauptmenüeintrag
      if(window.main_item != name)
        get_element("td_l_" + name).className = "menu_highlight_main_l";
      
    }
    
    window.highlighted = name;
      
  }

  function dehighlight()
  {          
    var ids = window.highlighted.split("_");
    
    if(ids[1] > 0)
    {
      // Untermenüeintrag
      get_element("td_l_" + window.highlighted).className = "menu_sub";
      
      if(window.sub_item)
        get_element("td_l_" + window.sub_item).className = "menu_mark_sub_l";
      
    }
    else
    {
      // Hauptmenüeintrag
      get_element("td_l_" + window.highlighted).className = "menu_main";

      if(window.main_item)
        get_element("td_l_" + window.main_item).className = "menu_mark_main_l";
      
    }

  }
  
  // ---------------------------
  
  
  var menuoptions = new Array();
  menuoptions["width_l"] = 17;    // Breite der linken Tabellenspalte (mit den Pfeilen)
  menuoptions["width_r"] = 161;   // Breite der rechten Tabellenspalte
  menuoptions["height"] = 22;     // Höhe der Hauptmenüpunkte
  menuoptions["height_sub"] = 17; // Höhe der Untermenüpunkte
  //menuoptions["x"] = 50;
  //menuoptions["y"] = 50;

  
  var links = new Array();

  links[0] = new Array();
  links[0][0] = new link("1a-ueber.html", "Wir über uns", "body");
  links[0][1] = new link("http://www.wiv-ag.com", "WIV Wein International AG", "_blank");

  links[1] = new Array();
  links[1][0] = new link("2a-vorst.html", "Der Vorstand", "body");
  
  links[2] = new Array();
  links[2][0] = new link("3a1-ehru.html", "Ehrungen", "body");
   
  links[3] = new Array();
  links[3][0] = new link("3a-konta.html", "Kontakt", "body");
  links[3][1] = new link("mailto:info@pieroth.de", "E-Mail", "body");
  links[3][2] = new link("3b-adres.html", "Adressen & Telefon", "body");
  links[3][3] = new link("3c-weg.html", "So finden Sie uns", "body");
  

  links[4] = new Array();
  links[4][0] = new link("4-impress.html", "Impressum", "body");
  
  links[5] = new Array();
  links[5][0] = new link("5-links.html", "Links", "body");
  links[5][1] = new link("http://www.pieroth.de", "Pieroth.de", "_blank");
  links[5][2] = new link("http://www.sbrn.de", "Schachbezirk Rhein-Nahe", "_blank");
  links[5][3] = new link("http://www.ergebnisdienst.net", "Schachergebnisse", "_blank");
  links[5][4] = new link("http://cdsf-kirchberg.jimdo.com", "CdSF Kirchberg", "_blank");
  links[5][5] = new link("http://www.gambit-leideneck.de", "SV Gambit Leideneck", "_blank");

  links[6] = new Array();
  links[6][0] = new link("6a-gast.html", "Gästebuch", "body"); 
  links[6][1] = new link("6b-gast.html", "Einträge lesen", "body");
  links[6][2] = new link("6c-gast.html", "Einträge schreiben", "body");
  
  output(links);
-->
