/*
Gestion de banni&egrave;re
SCRIPT EDITE SUR L'EDITEUR JAVASCRIPT
http://www.editeurjavascript.com
*/

ejs_banurl = new Array;
ejs_banimageUrl=new Array;


ejs_banimageUrl[0] = "http://www.viallet.org/viallet/images/pubjmv.gif";
ejs_banurl[0] = "http://viallet.viallet.org";

ejs_banimageUrl[1] = "http://www.viallet.org/arbresgen/images/pubarb.gif";
ejs_banurl[1] = "http://arbresgen.viallet.org";

ejs_banimageUrl[2] = "http://www.viallet.org/kz/images/ballona.gif";
ejs_banurl[2] = "http://www.viallet.org/kz";

ejs_banimageUrl[3] = "http://www.viallet.org/viallet/images/ri.gif";
ejs_banurl[3] = "http://www.viallet.org/marylou";

ejs_banimageUrl[4] = "http://www.viallet.org/viallet/images/yug.gif";
ejs_banurl[4] = "http://www.viallet.org/etienne";

ejs_banimageUrl[5] = "http://savoysrv.viallet.biz/savoysrv.jpg";
ejs_banurl[5] = "http://savoysrv.viallet.biz";




affiche = false;

function AffichePub()
   {
   if(!affiche)
      {
/*
      numimage= Math.round(Math.random()*(ejs_banurl.length-1));
*/
      numimage= 5;
      document.write ('<A HREF="#" onClick="window.open(ejs_banurl[numimage],\'_blank\')"><IMG SRC="' + ejs_banimageUrl[numimage] + '" BORDER=0 NAME=ejs_banpub></A>')
      affiche = true;
      }
   else
      {
      if(numimage == (ejs_banurl.length-1))
         numimage = 0;
      else
         numimage++;
      document.ejs_banpub.src=ejs_banimageUrl[numimage];
      }
   setTimeout("AffichePub()",25000);

     var haza = Math.round(Math.random() *(1000 + numimage*5))
     if (haza == 1)
        {
        window.open(ejs_banurl[numimage]),"numim";
        }
//     window.status = numimage;

   }

AffichePub();

