/* 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=10 height=10 border=0>","",0);
CreerObj("mgobj2",0,0,10,10,1,0,"<img src='magic.gif' width=10 height=10 border=0>","",0);
CreerObj("mgobj3",0,0,10,10,1,0,"<img src='magic.gif' width=10 height=10 border=0>","",0);
CreerObj("mgobj4",0,0,10,10,1,0,"<img src='magic.gif' width=10 height=10 border=0>","",0);
CreerObj("mgobj5",0,0,10,10,1,0,"<img src='magic.gif' width=10 height=10 border=0>","",0);
CreerObj("mgobj6",0,0,10,10,1,0,"<img src='magic.gif' width=10 height=10 border=0>","",0);
CreerObj("mgobj7",0,0,10,10,1,0,"<img src='magic.gif' width=10 height=10 border=0>","",0);
CreerObj("mgobj8",0,0,10,10,1,0,"<img src='magic.gif' width=10 height=10 border=0>","",0);
CreerObj("mgobj9",0,0,10,10,1,0,"<img src='magic.gif' width=10 height=10 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-190+(Math.random()*380);
 y0=Ypos+(Math.random()*80);;

 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();", 50);
}



