<!--

   var fBreite; // Breite des sichtbaren Dokumentes
   var fHoehe;  // Höhe des sichtbaren Dokumentes

   var ydir = '++'; // wird der y-Wert erhöht (Richtung)?
   var xdir = '++'; // wird der x-Wert erhöht (Richtung)?

   var T1, T2; // unsere Timeouts

   var x = 1; // Starten des Bildes an x = 1
   var y = 1; // Starten des Bildes an y = 1

function initfly() {
  if (document.getElementById) {
    Bild = document.getElementById("Pict").style;
  } else {
    Bild = document.Pict;
  }
  windowsize()
}       

   function windowsize() {
    clearTimeout(T1); // alle Timeouts löschen
    clearTimeout(T2);
     fBreite = getWindowWidth() - 75; //Breite des Bildes
     fHoehe = getWindowHeight() - 75; //Höhe des Bildes
    T2 = setTimeout('Richtungsaenderung()', 10000);
    bewegen();
   }

   function Richtungsaenderung() {
    if (Math.floor(Math.random()*2)) {
     (Math.floor(Math.random()*2)) ? xdir='--': xdir='++';
    }
    else {
     (Math.floor(Math.random()*2)) ? ydir='--': ydir='++';
    }
    T2 = setTimeout('Richtungsaenderung()', 10000);
   }

   function bewegen() {
    eval('x'+xdir);
    eval('y'+ydir);
     Bild.left = x+posLeft() + "px";
     Bild.top = y+posTop()+ "px";
       if (parseInt(Bild.top) <= 5+posTop()) ydir = '++';
       if (parseInt(Bild.top) >= fHoehe+posTop()) ydir = '--';
       if (parseInt(Bild.left) >= fBreite+posLeft()) xdir = '--';
       if (parseInt(Bild.left) <= 5+posLeft()) xdir = '++';
    T1 = setTimeout('bewegen()', 30);
   }
//-->
