// JavaScript Sammlung
// Browserversion ermitteln
   var browser;
   var bversion;

function browsersuch()
 {
   if (navigator.appName == "Netscape")
     {
     browser="NN";
     bversion=navigator.appVersion.charAt(0);
     }
   if (navigator.appName == "Microsoft Internet Explorer")
     {
     browser="MSIE";
     bversion=navigator.appVersion.charAt(0);
     }
   if (navigator.appName != "Netscape" && navigator.appName != "Microsoft Internet Explorer")
     {
     browser="?";
     bversion="?";
     }
 }

// Überprüfen, ob Frameset gewählt

function frameset(url)
 {
 var seite;
   if (window.name != 'frame_rechts')
     {
     TEST=confirm("Diese Seite ist Bestandteil des Framesets von Uwe's Homepage." +
                  "\n" +
                  "\nKlicken Sie auf OK, um auf diese Seiten zu gelangen.");
     if (TEST==true) {
         document.location.href=url + 'index.htm'
//         parent.frames[0].location.href="navgrnd.htm";
//         parent.frames[1].location.href="navi.htm";
//         parent.frames[2].location.href=seite;
         }
         //document.location.href=url + 'index.htm'};
     }
 }

function a_home ()
{parent.frames[0].location.href="navgrnd.htm"
}

// Copyrighthinweis Fusszeile
function footer()
{
  document.write("<HR>");
  document.write("<font face=&quot;VERDANA,ARIAL,HELVETICA&quot;><font size=-2><i>&copy; Uwe Simpfend&ouml;rfer</i>");
  document.write("<BR>Letzte &Auml;nderung: ", document.lastModified);
  document.write("</font></font>");
}

// Virtueller Rundgang durch Brettach
var neu=null;
var hoehe='100', breite='100';
var ntext = new textarray;
var ausrichtung = new bildausrichtung;

function textarray() {
         this[0] = 'die älteste Brücke über die Brettach (in Brettach)';
         this[1] = 'Blick auf die Kirche aus NordOst',
         this[2] = 'Mühlstrasse, links-Mühle, rechts-Pfarrhaus';
         this[3] = 'links-Rathaus, rechts-Scheune(Schlößle)';
         this[4] = 'Pfarrhaus';
         this[5] = 'altes Schulhaus';
         this[6] = 'Hauptstrasse - Haus Schumacher';
         this[7] = 'Ilgenstrasse';
         this[8] = 'Neuenstädter Strasse';
         this[9] = 'Bauhof';
         this[10]= 'Blick nach SüdOst';
         this[11]= 'Im "Paradies"';
         this[12]= 'Fachwerkhaus in der Cleversulzbacherstrasse';
         this[13]= 'Kasernengasse';
         this[14]= 'Mühle mit Wehr';
         this[15]= 'Schillerstrasse ehemals Schulstrasse';
         this[16]= 'Backhaus';
         this[17]= 'Pesttor';
         this[18]= 'Rathaus im Hintergrund links - Schlössle';
         this[19]= 'Schlössle';
         this[20]= 'Kirchbrunnen mit Gaden, im Hintergrund Backhaus';
         this[21]= 'Blick über Brettach vom Rödern-Berg';
         this[22]= 'Blick über Neu_Brettach vom Rödern-Berg';
         this[23]= 'Vom Helmbundweg Richtung Ortsmitte';
}
function bildausrichtung() {
         this[0] = 'quer';
         this[1] = 'quer';
         this[2] = 'quer';
         this[3] = 'quer';
         this[4] = 'hoch';
         this[5] = 'hoch';
         this[6] = 'quer';
         this[7] = 'quer';
         this[8] = 'quer';
         this[9] = 'quer';
         this[10]= 'quer';
         this[11]= 'quer';
         this[12]= 'quer';
         this[13]= 'quer';
         this[14]= 'hoch';
         this[15]= 'quer';
         this[16]= 'quer';
         this[17]= 'quer';
         this[18]= 'quer';
         this[19]= 'hoch';
         this[20]= 'quer';
         this[21]= 'quer';
         this[22]= 'quer';
         this[23]= 'quer';
}

function fenster(bild)
{
  browsersuch();
  if (ausrichtung[bild] == "quer")
  {
    if (browser == "NN" && bversion >= "4")
      {
      hoehe = "338";
      breite = "450";
      }
    else
      {
      hoehe = "367";
      breite = "462";
      }
  }
  else
  {
    if (browser == "NN" && bversion >= "4")
      {
      hoehe = "450";
      breite = "338";
      }
    else
      {
      hoehe = "480";
      breite = "348";
      }
  }
neu = window.open('',"Fenster2","width=breite,height=100");//,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no");
  if (neu != null);
  {
    if (neu.opener == null);
    {
      neu.opener=self;
    }
  }
  neu.resizeTo(breite,hoehe);
  neu.document.clear();
  neu.document.open();
  neu.document.write("<HTML><HEAD><TITLE>Virtueller Rundgang durch Brettach</title>");
  neu.document.write("<body text=#ffffff background=" + "vbr_" + (bild+1) + ".jpg></body></head>");
  neu.document.write("<table height=100%><tr><td valign=bottom><font face=VERDANA,ARIAL,HELVETICA>");
  neu.document.write("<font size=-1>" + ntext[bild] + "</font></td></tr></table></html>");
  neu.focus();
}
