//<!-- JavaScript Si Si!
if (parent != self) { top.location.href = self.location.href }

Elements = 50;
Depart = 0;

var TuCours =300;var TuSautes = 200;

var Bidule = new Array();

var PX = new Array();var PY = new Array(); var Bouge = new Array;

var H = new Array();var V = new Array();


if (self.innerWidth)  document.captureEvents(Event.MOUSEMOVE)
document.onmousemove  = OuQueTes;
function OuQueTes(e) {
if (navigator.appName!='Netscape') { 
     TuCours = event.clientX; TuSautes = event.clientY;  
    } else {
   TuCours = e.pageX; TuSautes = e.pageY; 
    }   }

 if (self.innerWidth) {
    Largeur=parseInt(self.innerWidth);     Hauteur=self.innerHeight;
} else {
    Largeur=document.body.clientWidth;   Hauteur=document.body.clientHeight;       }
if (Hauteur==0) {Hauteur=screen.height-180; }

for (N=0;N<Elements;N++)
	{
	Bouge[N] = 1;
	PX[N] = Largeur - 15;
	PY[N] = Hauteur-15;
	H[N] = -6;
	V[N] = -6;
	Fleur = "Fleur1.gif";
	if(N>Elements*.33)
		{
		PX[N] = 1;
		H[N] = -H[N];
//		Fleur = "Fleur2.gif";
		}
	if(N>Elements*.66)
		{
		PX[N] = Largeur/2-7;
		H[N] = 0;
		Fleur = "Fleur2.gif";
		V[N] = V[N]+1;
		}

	document.write("<p><span id='Zoulou"+N+"' style='position:absolute; left: "+PX[N]+"; top:"+PY[N]+"; z-index:1; visibility:visible;'>");
	document.write("<img src='"+Fleur+"' border='0' ></span></p>");

	}


function BougeMoiCa()
	{
	for (N=0;N<Elements;N++)
		{
		Megapolis = "Zoulou"+N;

		if (document.layers)
			{
			Bidule[N]=document.layers.Megapolis;
			}  else   {
			Bidule[N]=document.getElementById("Zoulou"+N).style;
			}
		}   

	// Et on change tous ensemble !
	if (Math.round(Math.random()*35)==1 && Depart ==2 || Depart ==1)
		{
		for (N=0;N<Elements;N++)
			{
			H[N]=Math.round(Math.random()*10)-5;
			V[N]=Math.round(Math.random()*6)-3;
			}
		Depart = 2;
		} 

	//  déplacements
	for (N=0;N<Elements;N++)
		{
		if(Depart == 2 && Bouge[N] == 1)
			{
			LH=35; LV=25;
			TropLoin=0;
			if ((PX[N] + 250 > TuCours &&  PX[N]-250 < TuCours ) && (PY[N] + 150 > TuSautes && PY[N] - 150 < TuSautes )) {
			if (PX[N]+40 < TuCours  ) {H[N]++; TropLoin=1;}
			if (PX[N]-40 > TuCours  ) {H[N]--;TropLoin=1;}

			if (PY[N]+40 < TuSautes ) {V[N]++;TropLoin=2;}
			if (PY[N]-40 > TuSautes ) {V[N]--;TropLoin=2;}
			}

		if (PX[N] < 1 || PX[N] > Largeur-LH || PY[N] > Hauteur-LV || PY[N] < 1) {PX[N] = -16; PY[N] = -16; Bouge[N] = 0; Bidule[N].left=PX[N]; Bidule[N].top=PY[N];}

		}	//	fin if Depart > XXX
if(Bouge[N] == 1)
	{
PX[N]+=H[N]; PY[N]+=V[N];

Bidule[N].left=PX[N]; Bidule[N].top=PY[N];
if(PY[N] < Hauteur/2 && Depart == 0)	{	Depart =1;	}
	}
    }

Tempo=setTimeout("BougeMoiCa()",50); }
  

//  -->
