<!-- Preloader script start. Mm'mmm good. -->
<!-- Make sure the browser supports image objects -->
 if (document.images)
 {
<!-- Preload onMouseovers -->
  preHome2 = new Image(51,19); 
  preHome2.src = "images/home2.gif";
  preTrips2 = new Image(67,19); 
  preTrips2.src = "images/trip2.gif";
  preLocation2 = new Image(70,19); 
  preLocation2.src = "images/location2.gif";
  preBoat2 = new Image(114,19); 
  preBoat2.src = "images/boat2.gif";
  preGallery2 = new Image(103,19); 
  preGallery2.src = "images/gallery2.gif";
  preFish2 = new Image(67,19); 
  preFish2.src = "images/fish2.gif";
  preMorephotos2 = new Image(102,19); 
  preMorephotos2.src = "images/morephotos2.gif";
<!-- Preload onMousedowns -->
  preHome3 = new Image(51,19); 
  preHome3.src = "images/home3.gif";
  preTrips3 = new Image(67,19); 
  preTrips3.src = "images/trip3.gif";
  preLocation3 = new Image(70,19); 
  preLocation3.src = "images/location3.gif";
  preBoat3 = new Image(114,19); 
  preBoat3.src = "images/boat3.gif";
  preGallery3 = new Image(103,19); 
  preGallery3.src = "images/gallery3.gif";
  preFish3 = new Image(67,19); 
  preFish3.src = "images/fish3.gif";
  preMorephotos3 = new Image(102,19); 
  preMorephotos3.src = "images/morephotos3.gif";
 }
<!-- Done with preloading -->
<!-- Defining the random image arrays.. One array for each random image.. -->
 randPhoto1 = new Array("images/thumbnails/photo_01.gif", "images/thumbnails/photo_02.gif", "images/thumbnails/photo_03.gif", "images/thumbnails/photo_04.gif", "images/thumbnails/photo_05.gif", "images/thumbnails/photo_06.gif", "images/thumbnails/photo_07.gif", "images/thumbnails/photo_08.gif", "images/thumbnails/photo_09.gif", "images/thumbnails/photo_10.gif")
 randPhoto2 = new Array("images/thumbnails/photo_11.gif", "images/thumbnails/photo_12.gif", "images/thumbnails/photo_13.gif", "images/thumbnails/photo_14.gif", "images/thumbnails/photo_15.gif", "images/thumbnails/photo_16.gif", "images/thumbnails/photo_17.gif", "images/thumbnails/photo_18.gif", "images/thumbnails/photo_19.gif", "images/thumbnails/photo_20.gif")
 randPhoto3 = new Array("images/thumbnails/photo_41.gif", "images/thumbnails/photo_42.gif", "images/thumbnails/photo_43.gif", "images/thumbnails/photo_44.gif", "images/thumbnails/photo_45.gif", "images/thumbnails/photo_46.gif", "images/thumbnails/photo_47.gif", "images/thumbnails/photo_48.gif", "images/thumbnails/photo_49.gif", "images/thumbnails/photo_50.gif")
<!-- Choosing a random picture from each array. -->
 function randImages() {
<!-- Make sure the browser supports image objects again. Crapwad legacy browsers. -->
  if (document.images) {
   randNumber = Math.floor((Math.random() * randPhoto1.length))
   document.random1.src = randPhoto1[randNumber]
   randNumber = Math.floor((Math.random() * randPhoto2.length))
   document.random2.src = randPhoto2[randNumber]
   randNumber = Math.floor((Math.random() * randPhoto3.length))
   document.random3.src = randPhoto3[randNumber]
  }
 }
<!-- Done with random pics... randImages() will be called later, in all the pages... -->
 function newWindow(photoURL) {
  photoWindow = window.open(photoURL, "newWin", config="width=400,height=300")
  photoWindow.focus()
 }
 function fishWindow(photoURL) {
  photoWindow = window.open(photoURL, "newWin")
  photoWindow.focus()
 }
 function mapZoom(mapURL) {
  document.map.src=mapURL
 }