var navigAndern; // boolean: true wenn der linke Frame modifiziert werden
                 // soll (d.h.bei großer Auflösung)


function klickAktion(nrButton)
{

   if (navigAendern == true) // Surfer surft mit linker Leiste
   {
      top.frames[0].location.href="../allgemein/frame_links.html?gelb="+nrButton;
      // Navigationsseite wird mit entsprechendem Parameter neu geladen
      // !! bei lokalem Test lokalen Link einsetzen ...
   }

}


function fussAusgeben()
{
     var parentText;

     // Nur Fälle mit Linker Befehlsleiste



     if(parent.frames.length > 0 ) // Seite ist in Unterframe
     {

        if ( parent.frames[1].name == "frame_rechts") // Große Auflösung Direkt im rechten Unterframe
        {  parentText = " "; // nix drin
           navigAendern = true;

        }
        else // kleine oder Große Auflösung und im Überschrift-Unterframe --> Frame abbauen
        {
             if ( parent.parent.frames[1].name == "frame_rechts") //Doppelter Frame, Große Auflösung
             {  parentText = " target = \"_parent\""
                navigAendern = true;

             }
             else // kleine Auflösung mit Frame
             {  parentText = " target = \"_parent\""
                navigAendern = false;

             }

        }
      }
      else // Seite ist in keinem Unterframe: nur der Link wird verfolgt
     {  navigAendern = false;
        parentText= " ";
     }

   
   document.writeln(" <HR> ");

   document.writeln("<CENTER>");

   document.writeln ("<TABLE border='0' width='800'>");
   document.writeln (" <TR>");

   document.writeln ("<TD align='left' nowrap><img border='0' ");
   document.writeln("src='../allgemein/logo_sw_klein_links.gif' ");
   document.writeln("width='92' height='47'></TD>");

   document.writeln("<TD align='center'>&nbsp;|&nbsp;");
   
   document.writeln("<A " + parentText + " onClick=klickAktion(0) HREF='../home/home.html'>Home</A>");
   document.writeln("&nbsp;|&nbsp;");
   
   document.writeln("<A " + parentText + " onClick=klickAktion(1)  HREF='../begruessung/begruessung.html'>Begr&uuml;&szlig;ung</A>");   
   document.writeln("&nbsp;|&nbsp;");

   document.writeln("<A " + parentText + " onClick=klickAktion(2)  HREF='../news/news.html' >News</A>");
   document.writeln("&nbsp;|&nbsp;");

   document.writeln("<A " + parentText + " onClick=klickAktion(3)  HREF='../ferienregion/ferienregion.html'>Ferienregion</A>");
   document.writeln("&nbsp;|&nbsp;");
   
   document.writeln("<A " + parentText + " onClick=klickAktion(4)  HREF='../weinregion/weinregion.html' >Weinregion</A>");
   document.writeln("&nbsp;|&nbsp;");
   
   document.writeln("<A " + parentText + " onClick=klickAktion(5) HREF='../kultur_kunst/kultur_kunst.html'>Kultur &amp; Kunst</A>");
   document.writeln("&nbsp;|&nbsp;<BR><BR>&nbsp;|&nbsp;");
   
   document.writeln("<A " + parentText + " onClick=klickAktion(6)  HREF='../sport_fun/sport_fun.html'>Sport &amp; Fun</A>");
   document.writeln("&nbsp;|&nbsp;");
  
   document.writeln("<A " + parentText + " onClick=klickAktion(7)  HREF='../gastgeber/gastgeber.html'>Gastgeber</A>");
   document.writeln("&nbsp;|&nbsp;");
  
   document.writeln("<A " + parentText + " onClick=klickAktion(8)  HREF='../info_buchung/info_buchung.html'>Info &amp; Buchung</A>");
   document.writeln("&nbsp;|&nbsp;");
  
   document.writeln("<A " + parentText + " onClick=klickAktion(9)  HREF='../buergerservice/buergerservice.html'>B&uuml;rgerservice</A>");
   document.writeln("&nbsp;|&nbsp;");
  
   document.writeln("<A " + parentText + " onClick=klickAktion(10)  HREF='../impressum/impressum.html'>Impressum</A>");
   document.writeln("&nbsp;|&nbsp;");
  
   document.writeln("<A HREF=\"mailto:info@bernkastel-kues.de\">E-Mail</A>");
   document.writeln("&nbsp; | &nbsp;</TD> ");
   
   document.writeln ("<TD align='right' nowrap><img border='0' ");	
  
   document.writeln("src='../allgemein/logo_sw_klein_rechts.gif' ");
   document.writeln("width='92' height='47'></TD>");

   document.writeln("</TR> ");
   document.writeln("</TABLE> ");
   document.writeln("</CENTER>");
}

function neuesFenster(adresse)
{
FensterAuf = this.open(adresse, "CtrlWindow", "toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,status=yes,directories=yes");
}
