function seiteninitialisierung(piktogrammgross, piktogrammgrosstext)
         {
         if   (piktogrammgross != '')
              {
              produktpiktogramme(piktogrammgross,piktogrammgrosstext);
              piktogrammwechsler(2);
              statuszeilentext('');
              }
         else {
              piktogrammwechsler(1);
              statuszeilentext('');
              }
         }

function statuszeilentext(text)
	{
         if   (text == '')
              {
              window.status = '| DATADRUCK Nersingen |'; return true;
              }
         else {
              window.status = '| '+ text +' |'; return true;
              }
         }

function versteckesubnavigation(subkategorie)
	{
    document.getElementById(subkategorie).style.display = 'none';
	}

function zeigesubnavigation(subkategorie)
	{
    document.getElementById(subkategorie).style.display = 'block';
	}

function produktpiktogramme(piktogramm,produkttext)
	{
         document.getElementById('a4').innerHTML = '<img src="piktogramme/gross'+piktogramm+'.gif" width="189" height="176" alt="" />';
         document.getElementById('b1').innerHTML = '<img src="bilder/produkte'+produkttext+'.gif" width="186" height="87" alt="" />';
         }

function navigationshover(piktogramm,produkttext)
	{
         if   (document.getElementById('b0').style.visibility == 'visible')
              {
              document.getElementById('b0').style.visibility = 'hidden';
              document.getElementById('b2').style.visibility = 'hidden';
              }
         else {
              document.getElementById('b0').innerHTML = '<img src="piktogramme/gross'+piktogramm+'.gif" width="189" height="176" alt="" />';
              document.getElementById('b2').innerHTML = '<img src="bilder/produkte'+produkttext+'.gif" width="186" height="87" alt="" />';
              document.getElementById('b0').style.visibility = 'visible';
              document.getElementById('b2').style.visibility = 'visible';
              }
         }

function zufallszahlengenerator(min, max)
	{
         var zahl = min - 1;
         while (zahl < min)
               {
               zahl = Math.floor(Math.random()*(max+1));
               }
         return zahl;
         }

piktogramme = new Array('<a href="padressieren.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | Adressieren\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/adressieren.gif" width="92" height="87" alt="Adressieren" title="Adressieren" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="paufkleber.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | Aufkleber\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/aufkleber.gif" width="92" height="87" alt="Aufkleber" title="Aufkleber" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="ploseblattsammlungen.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | Lose Blattsammlungen\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/blattsammlunggeklammert.gif" width="92" height="87" alt="Blattsammlung geklammert" title="Blattsammlung geklammert" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="pblocksaetze.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | Blocks&auml;tze\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/blocksaetze.gif" width="92" height="87" alt="Blocksätze" title="Blocksätze" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="pbloecke.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | Bl&ouml;cke\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/bloeckeallerart.gif" width="92" height="87" alt="Blöcke aller Art" title="Blöcke aller Art" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="pbuecher.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | B&uuml;cher\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/buecherohnetext.gif" width="92" height="87" alt="Bücher" title="Bücher" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="pdatenuebernahme.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | Daten&uuml;bernahme\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/datenuebernahme.gif" width="92" height="87" alt="Datenübernahme" title="Datenübernahme" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="pdatenuebernahme.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | Daten&uuml;bernahme\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/digitaldruck.gif" width="92" height="87" alt="Digitaldruck" title="Digitaldruck" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="pflyer.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | Flyer\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/flyer.gif" width="92" height="87" alt="Flyer aller Art" title="Flyer aller Art" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="pfaelzel.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | F&auml;lzel\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/gefaelzeltgebunden.gif" width="92" height="87" alt="Gefälzelt und Gebunden" title="Gefälzelt und Gebunden" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="phefte.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | Hefte\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/hefteabheftvorrichtung.gif" width="92" height="87" alt="Hefte mit Abheftvorrichtung" title="Hefte mit Abheftvorrichtung" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="phefte.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | Hefte\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/hefteohnetext.gif" width="92" height="87" alt="Hefte A5 A4" title="Hefte A5 A4" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="pbestuecken.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | Best&uuml;cken\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/konfektionierenbestuecken.gif" width="92" height="87" alt="Konfektionieren und Bestücken" title="Konfektionieren und Bestücken" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="pkonfektionieren.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | Konfektionieren\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/konfektionierung.gif" width="92" height="87" alt="Konfektionieren" title="Konfektionieren" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="pkuvertieren.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | Kuvertieren\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/kuvertieren.gif" width="92" height="87" alt="Kuvertieren" title="Kuvertieren" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="ppuenktlichelieferung.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | P&uuml;nktliche Lieferung\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/lieferung.gif" width="92" height="87" alt="P&uuml;nktliche Lieferung" title="P&uuml;nktliche Lieferung" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="ploseblattsammlungen.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | Lose Blattsammlungen\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/losesblatt.gif" width="92" height="87" alt="Lose Blattsammlung" title="Lose Blattsammlung" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="ppapiera4.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | A4\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/papiera4.gif" width="92" height="87" alt="Papier DIN A4" title="Papier DIN A4" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="ppapiera4.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | Plakate\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/plakate.gif" width="92" height="87" alt="Plakate" title="Plakate" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="ppostausliefern.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | Postausliefern\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/postausliefern.gif" width="92" height="87" alt="Postaufliefern" title="Postaufliefern" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="pwireo.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | Wire O\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/register.gif" width="92" height="87" alt="lose Blattsammlung mit Register" title="lose Blattsammlung mit Register" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="psatz.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | Satz\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/satzgestaltung.gif" width="92" height="87" alt="Satz und Gestaltung" title="Satz und Gestaltung" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="pschnelltrennsaetze.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | Schnelltrenns&auml;tze\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/schnelltrennsaetze.gif" width="92" height="87" alt="Schnelltrennsätze" title="Schnelltrennsätze" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="pseminarlogistik.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | Seminarlogistik\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/seminarlogistik.gif" width="92" height="87" alt="Seminarlogistik" title="Seminarlogistik" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="pspiralbindung.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | Spiralbindung\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/spiralbindung.gif" width="92" height="87" alt="Spiralbindung" title="Spiralbindung" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="ptragerband.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | Tr&auml;gerband\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/traegerband.gif" width="92" height="87" alt="Trägerband" title="Trägerband" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="pvisitenkarten.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | Visitenkarten\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/visitenkarten.gif" width="92" height="87" alt="Visitenkarten" title="Visitenkarten" class="piktogramm" onclick="this.blur();" /></a>',
                        '<a href="kontakt.php" onmouseover="statuszeilentext(\'DATADRUCK Nersingen | Kontakt\'); return true;" onmouseout="statuszeilentext(\'\'); return true;"><img src="piktogramme/wollmilchsau.gif" width="92" height="87" alt="Eierlegende Wollmilchsau" title="Eierlegende Wollmilchsau" class="piktogramm" onclick="this.blur();" /></a>');

gesetzt = new Array(0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0);
position = new Array(16, 17, 1, 9, 30, 12, 11, 24, 4, 26, 22, 25, 0);

rechtecke = new Array ('<img src="bilder/baelle.jpg" width="189" height="176" alt="" class="centerbild" />',
		      '<img src="bilder/buehne.jpg" width="189" height="176" alt="" class="centerbild" />',
                       '<img src="bilder/engel.jpg" width="189" height="176" alt="" class="centerbild" />',
                       '<img src="bilder/geige.jpg" width="189" height="176" alt="" class="centerbild" />',
                       '<img src="bilder/hand.jpg" width="189" height="176" alt="" class="centerbild" />',
                       '<img src="bilder/knoblauch.jpg" width="189" height="176" alt="" class="centerbild" />',
                       '<img src="bilder/marienkaefer.jpg" width="189" height="176" alt="" class="centerbild" />',
                       '<img src="bilder/noten.jpg" width="189" height="176" alt="" class="centerbild" />',
                       '<img src="bilder/notizzettel.jpg" width="189" height="176" alt="" class="centerbild" />',
                       '<img src="bilder/nuss.jpg" width="189" height="176" alt="" class="centerbild" />',
                       '<img src="bilder/pepperoni.jpg" width="189" height="176" alt="" class="centerbild" />',
                       '<img src="bilder/scharf.jpg" width="189" height="176" alt="" class="centerbild" />',
                       '<img src="bilder/sonnenstuhl.jpg" width="189" height="176" alt="" class="centerbild" />',
                       '<img src="bilder/spitzefeder.jpg" width="189" height="176" alt="" class="centerbild" />',
                       '<img src="bilder/tee.jpg" width="189" height="176" alt="" class="centerbild" />',
                       '<img src="bilder/teeglas.jpg" width="189" height="176" alt="" class="centerbild" />',
                       '<img src="bilder/uhr.jpg" width="189" height="176" alt="" class="centerbild" />',
                       '<img src="bilder/vorhang.jpg" width="189" height="176" alt="" class="centerbild" />',
                       '<img src="bilder/heidelberg.jpg" width="189" height="176" alt="" class="centerbild" />');

texte = new Array ('<img src="bilder/textbunt.gif" width="186" height="87" alt="">',
		  '<img src="bilder/textauftritt.gif" width="186" height="87" alt="">',
                   '<img src="bilder/textausruhen.gif" width="186" height="87" alt="">',
                   '<img src="bilder/texterstegeige.gif" width="186" height="87" alt="">',
                   '<img src="bilder/texthanddrauf.gif" width="186" height="87" alt="">',
                   '<img src="bilder/textwennstinkt.gif" width="186" height="87" alt="">',
                   '<img src="bilder/textglueckist.gif" width="186" height="87" alt="">',
                   '<img src="bilder/textton.gif" width="186" height="87" alt="">',
                   '<img src="bilder/textsagen.gif" width="186" height="87" alt="">',
                   '<img src="bilder/texthartenuesse.gif" width="186" height="87" alt="">',
                   '<img src="bilder/textscharf.gif" width="186" height="87" alt="">',
                   '<img src="bilder/textscharf.gif" width="186" height="87" alt="">',
                   '<img src="bilder/textlehnen.gif" width="186" height="87" alt="">',
                   '<img src="bilder/textspitzefeder.gif" width="186" height="87" alt="">',
                   '<img src="bilder/textteetrinken.gif" width="186" height="87" alt="">',
                   '<img src="bilder/textteetrinken.gif" width="186" height="87" alt="">',
                   '<img src="bilder/text5vor12.gif" width="186" height="87" alt="">',
                   '<img src="bilder/textauftritt.gif" width="186" height="87" alt="">',
                   '<img src="bilder/textheidelberg.gif" width="186" height="87" alt="">');

istgesetzt = 0;
positionshilfe = 0;
loeschmich = 0;
loeschi = 0;

function piktogrammwechsler(initialisierung)
         {
         var zuersetzen = zufallszahlengenerator(0, 12);
         if (initialisierung == 1)
            {
            zuersetzen = 4;
            }

         if   (zuersetzen != 4)
              {
              var ersetztdurch = zufallszahlengenerator(0, 27);
              while (istgesetzt == 0)
              	   {
                    if   (gesetzt[ersetztdurch] == 0)
                         {
                         istgesetzt = 1;
                         }
                    else {
                    	ersetztdurch = zufallszahlengenerator(0, 27);
                    	}
                    }
              istgesetzt = 0;
              positionshilfe = position[zuersetzen];
              position[zuersetzen] = ersetztdurch;
              gesetzt[positionshilfe] = 0;
              gesetzt[ersetztdurch] = 1;

              document.getElementById('a' + zuersetzen).innerHTML = piktogramme[ersetztdurch];
              }
         else {
              if   (initialisierung == 2)
              	  {
                   zuersetzen = 3;
                   var ersetztdurch = zufallszahlengenerator(0, 27);

                   while (istgesetzt == 0)
              	   	{
                    	if   (gesetzt[ersetztdurch] == 0)
                              {
                              istgesetzt = 1;
                              }
                    	else {
                    	     ersetztdurch = zufallszahlengenerator(0, 27);
                    	     }
                    	}

              	  istgesetzt = 0;
              	  positionshilfe = position[zuersetzen];
              	  position[zuersetzen] = ersetztdurch;
              	  gesetzt[positionshilfe] = 0;
              	  gesetzt[ersetztdurch] = 1;

              	  document.getElementById('a' + zuersetzen).innerHTML = piktogramme[ersetztdurch];
                   }
              else {
              	  var ersetztdurch = zufallszahlengenerator(0, 18);
              	  document.getElementById('a4').innerHTML = rechtecke[ersetztdurch];
              	  document.getElementById('b1').innerHTML = texte[ersetztdurch];
                   }
              }

         if   (initialisierung == 2)
              {
              window.setTimeout("piktogrammwechsler(2)", 5000);
              }
         else {
              window.setTimeout("piktogrammwechsler(0)", 5000);
              }
         }

function suchtipseinausblenden()
	{
         if   (document.getElementById('suchtipsanzeigen').style.display == 'block')
              {
              document.getElementById('suchtipsanzeigen').style.display = 'none';
              }
         else {
              document.getElementById('suchtipsanzeigen').style.display = 'block';
              }
         }
