function showRandomFotos() {
  fotosMax = 24;
  fotos = new Array();
  for (f=1; f<=fotosMax; f++) {
    if (f<10) 
      img_prelude = "0";
    else
      img_prelude = "";
    fotos[f] = "<img src='images/portret" + img_prelude + f + ".jpg' alt='HLS' width='190' height='190' />";
  }  

  randomFoto1 = 1 + Math.floor(Math.random() * (fotos.length-1) ); // randomFoto is object :s
  randomFoto2 = 1 + Math.floor(Math.random() * (fotos.length-1) ); // randomFoto is object :s

	if (randomFoto1 == randomFoto2) {
		randomFoto2 += 5;
		if (randomFoto2 >= fotosMax) { 
			randomFoto2 = 1; 
		} 
	}

  // finally write img random quote
  randomFotoImg1 = fotos[randomFoto1];
  randomFotoImg2 = fotos[randomFoto2];
  document.getElementById('random1').innerHTML = randomFotoImg1;
  document.getElementById('random2').innerHTML = randomFotoImg2;
  return;
}


