<!--

Ie=document.all;
Ns=document.layers;
satelarray=new Array(
             "graphics/traine-tail.gif",22,52,20,-2,
             "graphics/traine-y.gif",20,52,20,2,
             "graphics/traine-l.gif",20,52,20,-2,
             "graphics/traine-i.gif",20,52,20,2, 
             "graphics/traine-m.gif",20,52,20,-2,
             "graphics/traine-a.gif",20,52,20,2,
             "graphics/traine-f.gif",20,52,20,-2,
             "graphics/traine-a.gif",20,52,20,2,
             "graphics/traine-t.gif",20,52,20,-2,
             "graphics/traine-s.gif",20,52,20,2,
             "graphics/traine-i.gif",20,52,20,-2,
             "graphics/traine-t.gif",20,52,20,2,
             "graphics/traine-u.gif",20,52,20,-2,
             "graphics/traine-a.gif",20,52,20,2,
             "graphics/traine-b.gif",20,52,50,-2,
             "graphics/traine-head.gif",73,52,0,0);
nocolumns = 5;
prex = '/';
satelnos=parseInt(satelarray.length/nocolumns);
timelapse=52;
ybase = 60;
xbase = 120;

for (i=0; i<satelnos; i++)
    {satelid = "SATEL"+i;
     Xp = i*10;
     Yp = i*10;
     W = (i*nocolumns)+1;
     H = (i*nocolumns)+2;
     with (document)
          {write((!Ie) ? "<layer id='" + satelid + "' left=" + Xp +
                            " top=" + Yp +" width=" + W + " height=" + H + ">" 
                        : "<div id='" + satelid + "'" + " style='position:absolute; left:" +
                            Xp + "; top:" + Yp + "; width:" + W + "; height:" + H + ";'>"
                );
           write("<img src='" + prex + satelarray[i*nocolumns] + "' width=" + satelarray[W] +
                   " height=" + satelarray[H] + " border=0>");
           write((Ie)?"</div>":"</layer>");
          }
   }

function getXpos(N)
   {return (Ie) ? parseInt(Ie[N].style.left) : Ns[N].left}

function getYpos(N)
   {return (Ie) ? parseInt(Ie[N].style.top) : Ns[N].top}

function movesatel(N,DX,DY)
   {c=(Ie) ? Ie[N].style : Ns[N];
    c.left=DX;
    c.top=DY
   }

function sattelite()
   {for (i=0; i<(satelnos-1); i++)
        {currentXpos = getXpos("SATEL"+(i+1));
         currentYpos = getYpos("SATEL"+(i+1));
         newXpos = currentXpos + satelarray[i*nocolumns+3];
         newYpos = currentYpos + satelarray[i*nocolumns+4];
         movesatel("SATEL"+i,newXpos,newYpos);
        }
   }

function newPos(e)
   {movesatel("SATEL"+(satelnos-1),
              ((Ie)?event.clientX+document.body.scrollLeft:e.pageX)+4,
              ((Ie)?event.clientY+document.body.scrollTop:e.pageY)-15)
   }

if   (Ns)
     {document.captureEvents(Event.MOUSEMOVE);}
else {document.body.onscroll=newPos;}

document.onmousemove=newPos;
setInterval("sattelite()",timelapse);
         
//-->
