/*
Gestion de banniere
*/

banurl      = new Array;
banimageUrl = new Array;
banAlt      = new Array;

banimageUrl[0]  = "images/gx-home/r4-sdhc.jpg";
banurl[0]       = "http://www.assentek.com/console/consoles-portables/ds-lite/developpement-ds-lite.html";
banAlt[0]       = "Assentek.com - R4 SDCH";

banimageUrl[1]  = "images/gx-home/i-buddy-compagnon-msn.jpg";
banurl[1]       = "http://www.assentek.com/catalogsearch/result/?q=i-buddy&x=0&y=0";
banAlt[1]       = "Assentek.com - i-Buddy - Compagnon MSN, facebook, Twitter";

banimageUrl[2]  = "images/gx-home/r4i-sdhc-rts.jpg";
banurl[2]       = "http://www.assentek.com/r4i-dsi.html";
banAlt[2]       = "Assentek.com - R4i - SDHC & RTS";

banimageUrl[3]  = "images/gx-home/megadrive.jpg";
banurl[3]       = "http://www.assentek.com/console/oldies-consoles/megadrive.html";
banAlt[3]       = "Assentek.com - Mega Drive Sega";

banimageUrl[4]  = "images/gx-home/m3i-zero-et-ak2i-.jpg";
banurl[4]       = "http://www.assentek.com/console/consoles-portables/dsi/developpement-dsi.html";
banAlt[4]       = "Assentek.com - Linkers DSi";

banimageUrl[5]  = "images/gx-home/fragnstein-ps3-pc.jpg";
banurl[5]       = "http://www.assentek.com/fragnstein-ps3-pc.html";
banAlt[5]       = "Assentek.com - Fragnstein - PS3 - PC";

banimageUrl[6]  = "images/gx-home/receiveandpay.jpg";
banurl[6]       = "http://www.assentek.com/";
banAlt[6]       = "Assentek.com - Receive & pay - paiement comptant, a la reception ou en 3x sans frais";

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()",6000);      
   }

AffichePub();