NumImagesMax = 18;

function imageAleatoire(){
  temp=Math.random();
  NombreAleatoire = Math.round((NumImagesMax-1)*temp+1);
  document.write("<img src=\"../../images/splash/images_aleatoires/image" + NombreAleatoire + ".jpg\" width=\"120\" height=\"120\">");
}

function imagesAleatoires(n){
  vTemp = new Array(n);
  indice=0;
  while(indice<n){
    intTemp = Math.round(Math.random()*(NumImagesMax-1)+1);
    if(!estDansVecteur(vTemp,intTemp)){
      vTemp[indice] = intTemp;
      indice++;
    }
  }

  for(i=0; i<n; i++){
    document.write("<tr><td valign=\"top\" align=\"left\"><img border=\"0\" src=\"../../images/splash/images_aleatoires/image" + vTemp[i] + ".jpg\" width=\"120\" height=\"120\"></td></tr>\n<tr><td valign=\"top\" align=\"left\"><img border=\"0\" src=\"../../images/cale.gif\" width=\"1\" height=\"8\"></td></tr>");
  }
}

function estDansVecteur(vecteur,valeur){
  for(j=0;j<vecteur.length;j++){
    if(vecteur[j] == valeur){return true;}
  }
  return false;
}