/* animation curseur souris - Cotatel SA
*/
CreerObj("iobj0",0,0,10,10,1,0,"<img src='http://www.cotatel.fr/images/noel/boule4.gif' width=20 height=27 border=0>","",0)
CreerObj("iobj1",0,0,10,10,1,0,"<img src='http://www.cotatel.fr/images/noel/boule4.gif' width=20 height=27 border=0>","",0)
CreerObj("iobj2",0,0,10,10,1,0,"<img src='http://www.cotatel.fr/images/noel/boule4.gif' width=20 height=27 border=0>","",0)
CreerObj("iobj3",0,0,10,10,1,0,"<img src='http://www.cotatel.fr/images/noel/boule4.gif' width=20 height=27 border=0>","",0)
CreerObj("iobj4",0,0,10,10,1,0,"<img src='http://www.cotatel.fr/images/noel/boule4.gif' width=20 height=27 border=0>","",0)
CreerObj("iobj5",0,0,10,10,1,0,"<img src='http://www.cotatel.fr/images/noel/boule8.gif' width=20 height=27 border=0>","",0)
CreerObj("iobj6",0,0,10,10,1,0,"<img src='http://www.cotatel.fr/images/noel/boule4.gif' width=20 height=27 border=0>","",0)
CreerObj("iobj7",0,0,10,10,1,0,"<img src='http://www.cotatel.fr/images/noel/boule4.gif' width=20 height=27 border=0>","",0)
CreerObj("iobj8",0,0,10,10,1,0,"<img src='http://www.cotatel.fr/images/noel/boule4.gif' width=20 height=27 border=0>","",0)
CreerObj("iobj9",0,0,10,10,1,0,"<img src='http://www.cotatel.fr/images/noel/boule4.gif' width=20 height=27 border=0>","",0)
CreerObj("iobj10",0,0,10,10,1,0,"<img src='http://www.cotatel.fr/images/noel/boule4.gif' width=20 height=27 border=0>","",0)
CreerObj("iobj11",0,0,10,10,1,0,"<img src='http://www.cotatel.fr/images/noel/boule8.gif' width=20 height=27 border=0>","",0)
CreerObj("iobj12",0,0,10,10,1,0,"<img src='http://www.cotatel.fr/images/noel/boule4.gif' width=20 height=27 border=0>","",0)
CreerObj("iobj13",0,0,10,10,1,0,"<img src='http://www.cotatel.fr/images/noel/boule4.gif' width=18 height=25 border=0>","",0)
CreerObj("iobj14",0,0,10,10,1,0,"<img src='http://www.cotatel.fr/images/noel/boule8.gif' width=16 height=22 border=0>","",0)
CreerObj("iobj15",0,0,10,10,1,0,"<img src='http://www.cotatel.fr/images/noel/boule4.gif' width=14 height=19 border=0>","",0)
CreerObj("iobj16",0,0,10,10,1,0,"<img src='http://www.cotatel.fr/images/noel/boule4.gif' width=10 height=13 border=0>","",0)
CreerObj("iobj17",0,0,10,10,1,0,"<img src='http://www.cotatel.fr/images/noel/boule4.gif' width=7 height=10 border=0>","",0)

var coordx;var coordy;var db=1;
coordx = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);coordy = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);

function sourisc() {
 x0=coordx[0];y0=coordy[1];ex=SourisX();ey=SourisY();
 if (ex>65000) {ex=0;ey=0;}
 reelx=x0+6;reely=y0+6;
 rx=reelx;ry=reely;
 rx+=(ex-rx)*1;ry+=(ey-ry)*1;
 reelx=rx;reely=ry;
 x0=Math.round(reelx);y0=Math.round(reely);
 coordx[0]=Math.round(x0);coordy[0]=Math.round(y0);
 for (var i = 15; i > 0; i--) {
  coordx[i]=Math.round(coordx[i-1]);
  coordy[i]=Math.round(coordy[i-1]);
 }
 for (var i = 0; i <= 15; i++) {
  PlacerObj("iobj"+i,coordx[i],coordy[i]+10);
 	if (coordx[i]>coordx[0]-15 && coordx[i]<coordx[0]+15 && coordy[i]>coordy[0]-15 && coordy[i]<coordy[0]+15) {CacherObj("iobj"+i);}
 	else {VoirObj("iobj"+i);}  
 }
 setTimeout("sourisc();", 140);
}
