function makeNav (iSubMenu)
{
  var tf = top.frames[1].document;

  if (!top)
    return;

  tf.open("text/html");
  tf.writeln("<HTML><HEAD><META http-equiv=\'Content-Type\' content=\'text/html; charset=iso-8859-1\'><META name=\'GENERATOR\'><TITLE>Schützenverein Freischütz Hausen</TITLE></HEAD>");
  tf.writeln("<BODY background='img/hintergrund.jpg' LINK=#000000 VLINK=#000000 ALINK=#000000><BR><br><IMG SRC='img/wappenfarbe.gif'><P><H3>");

  tf.write ("<A HREF='javascript:top.makeNav(1);'>Home</A>");
  if (iSubMenu == 1) {
    top.frames[5].location.href="home.htm";
  }
  tf.write ("<BR>");

  tf.write ("<A HREF='javascript:top.makeNav(2);'>Rückblicke</A>");
  if (iSubMenu == 2) {
    tf.write ("<TABLE><TD WIDTH='20'></TD><TD><A HREF='chronik.htm' TARGET='content'>Chronik</A><BR>");
    tf.write ("<A HREF='schuetzenkoenige.htm' TARGET='content'>Könige</A><BR>");
    tf.write ("<A HREF='erfolge.htm' TARGET='content'>Erfolge</A></TD></TABLE>");
    top.frames[5].location.href="ruckblick.htm";
  }
  else tf.write ("<BR>");

  tf.write ("<A HREF='javascript:top.makeNav(3);'>Veranstaltungen</A>");
  if (iSubMenu == 3) {
    tf.write ("<TABLE><TD WIDTH='20'></TD><TD><A HREF='veranstaltungen_termine.htm' TARGET='content'>Termine</A></TD></TABLE>");
    top.frames[5].location.href="veranstaltung.htm";
  }
  else tf.write ("<BR>");

  tf.write ("<A HREF='javascript:top.makeNav(4);'>Mannschaften</A>");
  if (iSubMenu == 4) {

    top.frames[5].location.href="mannschaft.htm";
  }
  tf.write ("<BR>");

  tf.write ("<A HREF='javascript:top.makeNav(5);'>Jugendabteilung</A>");
  if (iSubMenu == 5) {
    tf.write ("<TABLE><TD WIDTH='20'></TD><TD><A HREF='jugendabteilung_ferienprogramm.htm' TARGET='content'>Ferienprogramm</A><BR>");
    tf.write ("<A HREF='jugendabteilung_zeltlager.htm' TARGET='content'>Zeltlager</A></TD></TABLE>");
    top.frames[5].location.href="jugend.htm";
  }
  else tf.write ("<BR>");

  tf.write ("<A HREF='javascript:top.makeNav(6);'>Ergebnisdienst</A>");
  if (iSubMenu == 6) {
     top.frames[5].location.href="ergebnis.htm";
  }
  tf.write ("<BR>");

  tf.write ("<A HREF='javascript:top.makeNav(7);'>Gästebuch</A>");
  if (iSubMenu == 7) {
    top.frames[5].location.href="http://www.1ab.de/netzwerk/gaestebuch/index.cfm?id=14095";
  }
  tf.write ("<BR>");

  tf.write ("<A HREF='javascript:top.makeNav(8);'>Kontakt</A>");
  if (iSubMenu == 8 || (iSubMenu > 80 && iSubMenu <90)) {
    if (iSubMenu == 8)
    {
        tf.write ("<TABLE><TD WIDTH='20'></TD><TD><A HREF='email.htm' TARGET='content'>E-Mail</A><BR>");
        tf.write ("<A HREF='vorstandschaft.htm' TARGET='content'>Vorstandschaft</A><BR>");
        tf.write ("<A HREF='anfahrt.htm' TARGET='content'>Anfahrtsweg</A><BR>");
        tf.write ("<A HREF='impressum.htm' TARGET='content'>Impressum</A></TD></TABLE>");
        top.frames[5].location.href="kontakt.htm";
    } else {
        if (iSubMenu == 83)
        {
            tf.write ("<TABLE><TD WIDTH='20'></TD><TD><A HREF='email.htm' TARGET='content'>E-Mail</A><BR>");
            tf.write ("<A HREF='vorstandschaft.htm' TARGET='content'>Vorstandschaft</A><BR>");
            tf.write ("<A HREF='anfahrt.htm' TARGET='content'>Anfahrtsweg</A><BR>");
            tf.write ("<A HREF='impressum.htm' TARGET='content'>Impressum</A></TD></TABLE>");
            top.frames[5].location.href="anfahrt.htm";
        }
        if (iSubMenu == 84)
        {
            tf.write ("<TABLE><TD WIDTH='20'></TD><TD><A HREF='email.htm' TARGET='content'>E-Mail</A><BR>");
            tf.write ("<A HREF='vorstandschaft.htm' TARGET='content'>Vorstandschaft</A><BR>");
            tf.write ("<A HREF='anfahrt.htm' TARGET='content'>Anfahrtsweg</A><BR>");
            tf.write ("<A HREF='impressum.htm' TARGET='content'>Impressum</A></TD></TABLE>");
            top.frames[5].location.href="impressum.htm";
        }
    }
 
  }
  else tf.write ("<BR>");

  tf.write ("<A HREF='javascript:top.makeNav(9);'>Links</A>");
  if (iSubMenu == 9) {
    top.frames[5].location.href="links.htm";
  }
  tf.write ("<BR>");

  tf.write ("<BR><BR><BR><img src='http://vskm.org/c/9c3b4378d8ac901.gif' border=0 alt='Besucherzähler'>");
  tf.write ("</H3></BODY></HTML>");

  tf.close();

  return;
}
