ejs_banurl = new Array;
ejs_banimageUrl=new Array;

// roi du matelas 16/01/2012
ejs_banimageUrl[0] = "http://action.metaffiliation.com/suivi.php?maff=S464BD41725155";
ejs_banurl[0] = "http://action.metaffiliation.com/suivi.php?mclic=S464BD41725155 target='_blank'";

// se rencontrer
ejs_banimageUrl[1] = "http://action.metaffiliation.com/suivi.php?maff=S46771417251413";
ejs_banurl[1] = "http://action.metaffiliation.com/suivi.php?mclic=S46771417251413 target='_blank'";

// wingrattage affilinet
ejs_banimageUrl[2] = "http://banniere.reussissonsensemble.fr/view.asp?ref=573030&site=6884&b=6";
ejs_banurl[2] = "http://clic.reussissonsensemble.fr/click.asp?ref=573030&site=6884&type=b6&bnb=6 target='_blank'";

// trip union
ejs_banimageUrl[3] = "http://action.metaffiliation.com/suivi.php?maff=S468A9417251411";
ejs_banurl[3] = "http://action.metaffiliation.com/suivi.php?mclic=S468A9417251411 target='_blank'";

// kingoloto affili
ejs_banimageUrl[4] = "http://banniere.reussissonsensemble.fr/view.asp?ref=573030&site=4457&b=139";
ejs_banurl[4] = "http://clic.reussissonsensemble.fr/click.asp?ref=573030&site=4457&type=b139&bnb=139 target='_blank'";

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\')"><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()",20000);
   }

AffichePub();
