/* MATRIX par E.D Prod 1998
   javascript-lab@nexen.net
   http://javascript-lab.nexen.net
*/

var coordy = new Array();var coordyb = new Array();
var vity= new Array();
var nbbande=40;deca=70;

for ( j = 0 ; j < nbbande ; j++ ) {

 var ty=TailleY();
 var realname="matrix"+j;
 var realname2="matrixb"+j;var temp=0;
 CreerObj(realname,0,0,20,488,1,2,"<IMG SRC='matrix.gif' WIDTH=20 HEIGHT=488 BORDER=0>","",0);
 CreerObj(realname2,0,0,20,1192,1,1,"<IMG SRC='matrixback.gif' WIDTH=20 HEIGHT=1192 BORDER=0>","",0);
 temp=(488+(Math.random()*1400));coordy[j]=-(Math.round(temp/11)*11);
 temp=((Math.random()*392));coordyb[j]=-(Math.round(temp/11)*11);
 vity[j]=Math.round(1+(Math.random()*3))*11;
}

function matrix() {
 var temp=0;
 for ( j = 0 ; j < nbbande ; j++ ) {

   var ty=TailleY();
   var realname="matrix"+j;
   var realname2="matrixb"+j;
   
   PlacerObj(realname,deca+(j*22),coordy[j]);
   PlacerObj(realname2,deca+(j*22),coordyb[j]);
   coordy[j]+=vity[j];
   coordyb[j]+=Math.round(1+(Math.random()*4))*11;
   
   if (coordy[j]>ty) {temp=(488+(Math.random()*1400));coordy[j]=-(Math.round(temp/11)*11);vity[j]=Math.round(1+(Math.random()*3))*11;}
   if (coordyb[j]>0) {temp=((Math.random()*392));coordyb[j]=-(Math.round(temp/11)*11);}
 }

 setTimeout("matrix()", 100);
}


