/*Gestion de banniere
*/
banurl      = new Array;
banimageUrl = new Array;
banAlt      = new Array;

banimageUrl[0]  = "http://pub.assentek.com/images/gx-home/1004/ASSENTEK-USBLOADER.jpg";

banimageUrl[1]  = "http://pub.assentek.com/images/gx-home/1004/ASSENTEK-X360KEY.jpg";

banimageUrl[2]  = "http://pub.assentek.com/images/gx-home/1004/ASSENTEK-OCCAS.jpg";



banurl[0]       = "http://www.assentek.com/search.php?orderby=position&orderway=desc&search_query=usb+loader";

banurl[1]       = "http://www.assentek.com/puces-et-accessoires-de-flash/3587-x360key.html";

banurl[2]       = "http://www.assentek.com/search.php?orderby=position&orderway=desc&search_query=occasion";

affiche = false;

function AffichePub()
   {
   if(!affiche)
      {
      numimage= Math.round(Math.random()*(banurl.length-1));
      document.write ('<A HREF="#" onClick="window.open(banurl[numimage],\'_blank\')"><IMG SRC="' + banimageUrl[numimage] + '" BORDER=0 NAME=banpub ALT="' + banAlt[numimage] + '"></A>')
      affiche = true;
      }
   else
      {
      if(numimage == (banurl.length-1))
         numimage = 0;
      else
         numimage++;
      document.banpub.src=banimageUrl[numimage];
      }
   setTimeout("AffichePub()",5000);
   }

AffichePub();
