/*
Gestion de banni&egrave;re
SCRIPT EDITE SUR L'EDITEUR JAVASCRIPT
http://www.editeurjavascript.com
*/

banurl = new Array;
banimageUrl=new Array;

banimageUrl[0] = "boutique/images/nourriture_ban.png";  // 1e image
banurl[0] = "boutique/nourriture.html";

banimageUrl[1] = "boutique/images/orijen_ban.png";      // 2e image
banurl[1] = "boutique/orijen.html";

banimageUrl[2] = "boutique/images/acana_ban.png";       // 3e image
banurl[2] = "boutique/acana.html";

banimageUrl[3] = "boutique/images/dogswell_ban.png";    // 4e image
banurl[3] = "boutique/dogswell.html";

banimageUrl[4] = "boutique/images/chien_affamme.png";   // 5e image
banurl[4] = "boutique/nourriture.html";

banimageUrl[5] = "boutique/images/chat_affamme.png";   // 6e image
banurl[5] = "boutique/nourriture.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></A>')
      affiche = true;
      }
   else
      {
      if(numimage == (banurl.length-1))
         numimage = 0;
      else
         numimage++;
      document.banpub.src=banimageUrl[numimage];
      }
   setTimeout("AffichePub()",2500);   // Durée de chaque image  5000 = 5 sec.
   }

AffichePub();
