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

Elements = 7;
var Bidule = new Array();
var PX = new Array();var PY = 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++)
	{
	PX[N] = Math.round(Math.random()*(Largeur-92))+10;
	PY[N] = Math.round(Math.random()*(Hauteur-92))+10;
	H[N] = Math.round(Math.random()*(10))-5;
	V[N] = Math.round(Math.random()*(10))-5;
	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='Bulle"+N+".gif' 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()*25)==1)
		{
		for (N=0;N<Elements;N++)
			{
			H[N]=Math.round(Math.random()*8)-4;
			V[N]=Math.round(Math.random()*10)-5;
			}
		} 

//  déplacements
for (N=0;N<Elements;N++) {
LH=75; LV=75;

if (PX[N] < 1) {H[N]=4;}
if (PX[N] > Largeur-LH) {H[N]=-4;}
if (PY[N] > Hauteur-LV) {V[N]=-5;}
if (PY[N] < 1) {V[N]=5;}
PX[N]+=H[N]; PY[N]+=V[N];

Bidule[N].left=PX[N]; Bidule[N].top=PY[N];
     }

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

//  -->