// Java-Script fuer AUBW-Homepage
/////////////////////////////////

function xfonload(nart)
///////////////////////
// Aufrufe aus onLoad()
{
   var cart = "";
   var chlp = "";
   var cleer = "";
   var caubw = "AUBW";
   var ctitel = "";
   var cdsnhtm = "";

   // Stauszeile leeren
   self.status='';

   if (parent.frames.length<4)
   {
      return true
   };
   if (parent.frames[3].name!="yframemain")
   {
      return true
   };

   if (nart<2000)
   // 0-1999: allgemeine Seiten
   {
      if (nart==0)
      // Home
      {
         if (parent.yframetop.document.title!="AUBW (0)")
         {
            parent.yframetop.location.replace("ABTHOME.HTM")
         };
         return true
      };
      if (nart==1)
      // AUBW
      {
         if (parent.yframetop.document.title!="AUBW (1)")
         {
            parent.yframetop.location.replace("ABTAUBW.HTM")
         };
         return true
      };
      if (nart==2)
      // Was ist Aikido
      {
         if (parent.yframetop.document.title!="AUBW (2)")
         {
            parent.yframetop.location.replace("ABTWAS.HTM")
         };
         return true
      };
      if (nart==3)
      // Jugendseite
      {
         if (parent.yframetop.document.title!="AUBW (3)")
         {
            parent.yframetop.location.replace("ABTJUG.HTM")
         };
         return true
      };
      if (nart==4)
      // Vereine
      {
         if (parent.yframetop.document.title!="AUBW (4)")
         {
            parent.yframetop.location.replace("ABTVER.HTM")
         };
         return true
      };
      if (nart==5)
      // FREI (vormals Lehrg„nge 2003)
      {
         return true
      };
      if (nart==6)
      // Downloads (Lehrg„nge)
      {
         if (parent.yframetop.document.title!="AUBW (6)")
         {
            parent.yframetop.location.replace("ABTDNLG.HTM")
         };
         return true
      };
      if (nart==7)
      // Links
      {
         if (parent.yframetop.document.title!="AUBW (7)")
         {
            parent.yframetop.location.replace("ABTLINK.HTM")
         };
         return true
      };
      if (nart==8)
      // News
      {
         if (parent.yframetop.document.title!="AUBW (8)")
         {
            parent.yframetop.location.replace("ABTNEWS.HTM")
         };
         return true
      };
      if (nart==9)
      // Impressum
      {
         if (parent.yframetop.document.title!="AUBW (9)")
         {
            parent.yframetop.location.replace("ABTIMP.HTM")
         };
         return true
      };

      if (nart==10)
      // Info
      {
         if (parent.yframetop.document.title!="AUBW (10)")
         {
            parent.yframetop.location.replace("ABTINFO.HTM")
         };
         return true
      };
      if (nart==11)
      // Geschichte des Aikido
      {
         if (parent.yframetop.document.title!="AUBW (11)")
         {
            parent.yframetop.location.replace("ABTGES.HTM")
         };
         return true
      };
      if (nart==12)
      // Training
      {
         if (parent.yframetop.document.title!="AUBW (12)")
         {
            parent.yframetop.location.replace("ABTTRAI.HTM")
         };
         return true
      };
      if (nart==13)
      // AUD
      {
         if (parent.yframetop.document.title!="AUBW (13)")
         {
            parent.yframetop.location.replace("ABTAUD.HTM")
         };
         return true
      };
      if (nart==14)
      // Presse-Ver”ffentlichungen
      {
         if (parent.yframetop.document.title!="AUBW (14)")
         {
            parent.yframetop.location.replace("ABTPRESS.HTM")
         };
         return true
      };
      if (nart==15)
      // LG-Plan 2010
      {
         if (parent.yframetop.document.title!="AUBW (15)")
         {
            parent.yframetop.location.replace("ABTLGE10.HTM")
         };
         return true
      };
      if (nart==16)
      // LG-Plan 2011, ab 19.12.2011 LG-Plan 2012
      {
         if (parent.yframetop.document.title!="AUBW (16)")
         {
            parent.yframetop.location.replace("ABTLGE12.HTM")
         };
         return true
      };
      if (nart==18)
      // LG-Plan 2008
      {
         if (parent.yframetop.document.title!="AUBW (18)")
         {
            parent.yframetop.location.replace("ABTLGE08.HTM")
         };
         return true
      };
      if (nart==19)
      // LG-Plan 2009
      {
         if (parent.yframetop.document.title!="AUBW (19)")
         {
            parent.yframetop.location.replace("ABTLGE09.HTM")
         };
         return true
      };

      if (nart==20)
      // AUBW
      {
         if (parent.yframetop.document.title!="AUBW (20)")
         {
            parent.yframetop.location.replace("ABTVORST.HTM")
         };
         return true
      };
      if (nart==21)
      // 1.Vorsitzender
      {
         if (parent.yframetop.document.title!="AUBW (21)")
         {
            parent.yframetop.location.replace("ABTV01.HTM")
         };
         return true
      };
      if (nart==22)
      // 2.Vorsitzender
      {
         if (parent.yframetop.document.title!="AUBW (22)")
         {
            parent.yframetop.location.replace("ABTV02.HTM")
         };
         return true
      };
      if (nart==23)
      // Schatzmeister
      {
         if (parent.yframetop.document.title!="AUBW (23)")
         {
            parent.yframetop.location.replace("ABTVSM.HTM")
         };
         return true
      };
      if (nart==24)
      // Tech-Leiter
      {
         if (parent.yframetop.document.title!="AUBW (24)")
         {
            parent.yframetop.location.replace("ABTVTL.HTM")
         };
         return true
      };
      if (nart==25)
      // Jugendleiter
      {
         if (parent.yframetop.document.title!="AUBW (25)")
         {
            parent.yframetop.location.replace("ABTVJL.HTM")
         };
         return true
      };
      if (nart==26)
      // Lehrwart
      {
         if (parent.yframetop.document.title!="AUBW (26)")
         {
            parent.yframetop.location.replace("ABTVLW.HTM")
         };
         return true
      };
      if (nart==27)
      // Presse
      {
         if (parent.yframetop.document.title!="AUBW (27)")
         {
            parent.yframetop.location.replace("ABTVPR.HTM")
         };
         return true
      };
      if (nart==28)
      // Sachbearb.Internet
      {
         if (parent.yframetop.document.title!="AUBW (28)")
         {
            parent.yframetop.location.replace("ABTVSI.HTM")
         };
         return true
      };

      if (nart==29)
      // Downloads Sonstige
      {
         if (parent.yframetop.document.title!="AUBW (29)")
         {
            parent.yframetop.location.replace("ABTDNA.HTM")
         };
         return true
      };
      if (nart==30)
      // Satzung
      {
         if (parent.yframetop.document.title!="AUBW (30)")
         {
            parent.yframetop.location.replace("ABTSATZ.HTM")
         };
         return true
      };
      if (nart==31)
      // Ordnung 1
      {
         if (parent.yframetop.document.title!="AUBW (31)")
         {
            parent.yframetop.location.replace("ABTORD1.HTM")
         };
         return true
      };
      if (nart==32)
      // Spesenordnung
      {
         if (parent.yframetop.document.title!="AUBW (32)")
         {
            parent.yframetop.location.replace("ABTSO.HTM")
         };
         return true
      };
      if (nart==33)
      // šL-Aus- und Fortbildung
      {
         if (parent.yframetop.document.title!="AUBW (33)")
         {
            parent.yframetop.location.replace("ABTUL.HTM")
         };
         return true
      };
      if (nart==34)
      // Ehrenordnung
      {
         if (parent.yframetop.document.title!="AUBW (34)")
         {
            parent.yframetop.location.replace("ABTEO.HTM")
         };
         return true
      };
      return true
   };

   if (nart<2200)
   // 2000-2199: News-Archiv-Seiten
   {
      // nart --> String (zB "2002")
      cart = nart.toString();
      // erstelle zB "AUBW (2002)"
      ctitel = cleer.concat(caubw," (",cart,")");
      // erstelle Jahr 2-stellig (zB "02")
      chlp = cart.substr(2,2);
      // DSN erstellen (zB "ABTARC02.HTM")
      cdsnhtm = cleer.concat("ABTARC",chlp,".HTM");

      if (parent.yframetop.document.title!=ctitel)
      {
      parent.yframetop.location.replace(cdsnhtm)
      };
      return true
   };

   if (nart<20000)
   // 10000-20000: Lehrg„nge
   {
      // nart --> String (zB "10490")
      cart = nart.toString();
      // erstelle zB "AUBW (10490)"
      ctitel = cleer.concat(caubw," (",cart,")");
      // DSN erstellen (zB "LT010490.HTM")
      cdsnhtm = cleer.concat("LT0",cart,".HTM");

      if (parent.yframetop.document.title!=ctitel)
      {
      parent.yframetop.location.replace(cdsnhtm)
      };
      return true
   };

   if (nart<40000)
   // 20000-40000: Mitglieder (Vereine)
   {
      // nart --> String (zB "20010")
      cart = nart.toString();
      // erstelle zB "AUBW (20010)"
      ctitel = cleer.concat(caubw," (",cart,")");
      // DSN erstellen (zB "MT020010.HTM")
      cdsnhtm = cleer.concat("MT0",cart,".HTM");

      if (parent.yframetop.document.title!=ctitel)
      {
      parent.yframetop.location.replace(cdsnhtm)
      };
      return true
   };

   if (nart<60000)
   // 40000-60000: News
   {
      // nart --> String (zB "40010")
      cart = nart.toString();
      // erstelle zB "AUBW (40010)"
      ctitel = cleer.concat(caubw," (",cart,")");
      // DSN erstellen (zB "NT040010.HTM")
      cdsnhtm = cleer.concat("NT0",cart,".HTM");

      if (parent.yframetop.document.title!=ctitel)
      {
      parent.yframetop.location.replace(cdsnhtm)
      };
      return true
   };
   return true
};
