ejs_banurl = new Array;
ejs_banimageUrl=new Array;


ejs_banimageUrl[0] = "itembasket/set-nor-anf-042.jpg;itembasket/ses-nhp-aw-077.jpg;itembasket/tab-tet-tin-010.jpg";
ejs_banurl[0] = "coffee-table-set-bamboo-teak-wood-furniture-02.html#justclick;sofa-set-bamboo-teak-wood-furniture-03.html#justclick;coffee-table-bamboo-teak-wood-furniture-05.html#justclick";

ejs_banimageUrl[1] = "itembasket/set-nor-anf-021-t.jpg;itembasket/ses-sde-sd-042-set.jpg;itembasket/cab-pco-cb-0950a2.jpg";
ejs_banurl[1] = "dining-set-bamboo-teak-wood-furniture-04.html#justclick;sofa-set-bamboo-teak-wood-furniture-02.html#justclick;cabinet-bamboo-teak-wood-furniture-09.html#justclick";

ejs_banimageUrl[2] = "itembasket/mtv-jtl-cimg-0507.jpg;itembasket/ses-nhp-aw-161.jpg;itembasket/ceb-pco-cb-0706.jpg";
ejs_banurl[2] = "tv-hi-fi-cabinet-bamboo-teak-wood-furniture-03.html#justclick;sofa-set-bamboo-teak-wood-furniture-03.html#justclick;box-chest-bamboo-teak-wood-furniture-01.html#justclick";

img_url  = new Array;
lien_url  = new Array;
img_url[0]  = ejs_banimageUrl[0].split(/;/);
lien_url[0] = ejs_banurl[0].split(/;/);
img_url[1]  = ejs_banimageUrl[1].split(/;/);
lien_url[1] = ejs_banurl[1].split(/;/);
img_url[2]  = ejs_banimageUrl[2].split(/;/);
lien_url[2] = ejs_banurl[2].split(/;/);

affiche = false;

function AffichePub()
   {
   if(!affiche)
      {
      numimage= Math.round(Math.random()*(ejs_banurl.length-1));
      	document.write ('<td><div align="right"><A HREF="#" onClick="window.open(lien_url[numimage][0],\'_blank\')"><IMG SRC="' + img_url[numimage][0] + '" BORDER=0 alt= "click and have a look" NAME="ejs_banpub0"></A></div></td>')
      	document.write ('<td><div align="center"><A HREF="#" onClick="window.open(lien_url[numimage][1],\'_blank\')"><IMG SRC="' + img_url[numimage][1] + '" BORDER=0 alt= "click and have a look" NAME="ejs_banpub1"></A></div></td>')
      	document.write ('<td><div align="left"><A HREF="#" onClick="window.open(lien_url[numimage][2],\'_blank\')"><IMG SRC="' + img_url[numimage][2] + '" BORDER=0 alt= "click and have a look" NAME="ejs_banpub2"></A></div></td>')
      affiche = true;
      }
   else
      {
      if(numimage == 2) 
	  {
         numimage = 0;
	  }
      else	
	  {
         numimage++;
      }
   	document.ejs_banpub0.src=img_url[numimage][0];
   	document.ejs_banpub1.src=img_url[numimage][1];
   	document.ejs_banpub2.src=img_url[numimage][2];
	}
   setTimeout("AffichePub()",3000);
   }

AffichePub();
