ejs_banurl = new Array;
ejs_banimageUrl=new Array;

ejs_banimageUrl[0] = "pub/agl_uk.swf";
ejs_banurl[0] = "p_puzzle_agl.htm";

ejs_banimageUrl[1] = "pub/sna_uk.swf";
ejs_banurl[1] = "p_puzzle_sna.htm";

ejs_banimageUrl[2] = "pub/tib1_uk.swf";
ejs_banurl[2] = "p_edu_ti1.htm";

ejs_banimageUrl[3] = "pub/tib2_uk.swf";
ejs_banurl[3] = "p_edu_ti2.htm";

ejs_banimageUrl[4] = "pub/tib3_uk.swf";
ejs_banurl[4] = "p_edu_ti3.htm";


affiche = false;

function AffichePub()
   {
   if(!affiche)
      {
      numimage= Math.round(Math.random()*(ejs_banurl.length-1));
      document.write ('<A HREF="#" onClick="window.open(ejs_banurl[numimage],\'_blank\')"><iframe SRC="' + ejs_banimageUrl[numimage] + '" width="630" height ="144" marginheight="0" scolling="0" frameborder=0 hspace="0" NAME=ejs_banpub></iframe>')
      affiche = true;
      }
   else
      {
      if(numimage == (ejs_banurl.length-1))
         numimage = 0;
      else
         numimage++;
      document.ejs_banpub.src=ejs_banimageUrl[numimage];
      }
   setTimeout("AffichePub()",2000);
   }

AffichePub();
