// Javascript document

var TimeOut;
var Prev = 0;
var NumImages = 53;
var PrevPrev = 0;

function RotatePic() {

  if(document.images) {
    var rand = Math.round(Math.random() * NumImages);
    while(rand==Prev||rand==PrevPrev) {
      rand = Math.round(Math.random() * NumImages);
    }
    PrevPrev = Prev;
    Prev = rand;
    document.images.pic.src="images/150/" + rand + ".jpg";
    TimeOut = setTimeout("RotatePic();", 7000);
  }


}
// ...and ends here-->

