/*
Gestion de banniere
*/

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

banimageUrl[0]  = "http://www.game-modchip.com/images/r4ibanner.jpg";
banimageUrl[1]  = "http://www.game-modchip.com/images/psjailbanner.jpg";
banimageUrl[2]  = "http://www.game-modchip.com/images/xboxhddbanner.jpg";

banurl[0]       = "http://www.game-modchip.com/dsi/linkers/r4i-sdhc.html";
banurl[1]       = "http://www.game-modchip.com/sony-playstation-3/jailbreaks.html";
banurl[2]       = "http://www.game-modchip.com/xbox-360/parts-xbox360.html";

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();
