//speed = getSpeed();

var epx = 250;

var imt = new Array ("vide.gif", "fleche.gif", "ar.gif", "af.gif", "ac4.gif", "ac1.gif", "ac2.gif", "ac3.gif", "altheor.gif", "fpopup.jpg", "fbas.jpg", "fmenu.jpg", "fgauche.jpg", "pt.gif", "vd.gif", "pfond.jpg", "pleft.gif", "pright.gif", "pbas.gif", "phaut.jpg");
var stp = 300/imt.length;
var im = new Array();
var go_next = false;
var t=0;

function load_init()
 {  
   bbn_clip('bar', 0, 0, 10, 50);
for (i=0; i<imt.length; i++) { im[i] = new Image(); im[i].src = 'images/'+imt[i]; }
  phase();
  
  cycle();
  setTimeout('go_next=true;', 15000);  
 }

function cycle()
 { if(go_next) { setTimeout("this.location = 'frame.php';", 100); 
 }
   else { setTimeout('cycle();', 10); }
 }
 
function phase()
 {  t = 0;
 
 for (i=0; i<im.length; i++) { if (im[i].complete) { t++; }    }

  bbn_clip('bar', 0, 0, Math.round(t*stp), 50);
   
  if (t==im.length) { go_next = true; } 
  else { setTimeout('phase();', 10); }
 
 }
 
