function my_random(n) {
  if(navigator.appVersion.charAt(0) <=2 && navigator.appName.charAt(0) == "N") {
      t = new Date();
      t = t.getTime(); t += ""; t = t.substring(t.length-3,t.length); t = eval(t)/1000;
      t = Math.floor(t*n);
      return t;
  }
  else {
      t = Math.floor(Math.random()*n);
      return t;
  }
 }

var imgMax  = 2;
var imgRand = my_random(imgMax)+1;

if(imgRand == 1) document.write('<IMG src="images/photo01.jpg" width="612" height="375" border="0" alt="AlteLiebe dinner" title="AlteLiebe dinner">');
else if(imgRand == 2) document.write('<IMG src="images/photo02.jpg" width="612" height="375" border="0" alt="AlteLiebe lunch" title="AlteLiebe lunch">');