/* Trail par E.D Prod 1998
   http://javascript-lab.nexen.net
*/
CreerObj("mgobj0",0,0,10,10,1,0,"<img src='magic.gif' width=10 height=10 border=0>","",0);
CreerObj("mgobj1",0,0,10,10,1,0,"<img src='magic.gif' width=9 height=9 border=0>","",0);
CreerObj("mgobj2",0,0,10,10,1,0,"<img src='magic.gif' width=8 height=8 border=0>","",0);
CreerObj("mgobj3",0,0,10,10,1,0,"<img src='magic.gif' width=7 height=7 border=0>","",0);
CreerObj("mgobj4",0,0,10,10,1,0,"<img src='magic.gif' width=6 height=6 border=0>","",0);
CreerObj("mgobj5",0,0,10,10,1,0,"<img src='magic.gif' width=5 height=5 border=0>","",0);
CreerObj("mgobj6",0,0,10,10,1,0,"<img src='magic.gif' width=4 height=4 border=0>","",0);
CreerObj("mgobj7",0,0,10,10,1,0,"<img src='magic.gif' width=3 height=3 border=0>","",0);
CreerObj("mgobj8",0,0,10,10,1,0,"<img src='magic.gif' width=2 height=2 border=0>","",0);
CreerObj("mgobj9",0,0,10,10,1,0,"<img src='magic.gif' width=1 height=1 border=0>","",0);

var Xpos = 0;var Ypos = 0;
var coordx;var coordy;
coordx = new Array(0,0,0,0,0,0,0,0,0,0);coordy = new Array(0,0,0,0,0,0,0,0,0,0);

function magiclogo() {

 ty = TailleY();
 tx = TailleX();

 Xpos=tx/2;Ypos=0;

 x0=Xpos-125+(Math.random()*230);
 y0=Ypos+(Math.random()*200);;

 for (var i = 9; i > 0; i--) {
  coordx[i]=coordx[i-1];
  coordy[i]=coordy[i-1];
 }

 coordx[0]=x0;coordy[0]=y0;
 for (var i = 0; i < 10; i++) {
  VoirObj("mgobj"+i);
  PlacerObj("mgobj"+i,coordx[i]-(i/2),coordy[i]-(i/2));
 }
 setTimeout("magiclogo();",0);
}


