<!--
// ==============================================
// Copyright 2003 by jsCode.com
// Source: jsCode.com
// Author: etLux
// Free for all; but please leave in the header.
// ==============================================

// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the theImages[x] index!

theImages[0] = '/assets/images/home_images/Blue-Tit-2-h.jpg'
theImages[1] = '/assets/images/home_images/Coigach-loch-panoramic-h.jpg'
theImages[2] = '/assets/images/home_images/db_BEM-burn-h.jpg'
theImages[3] = '/assets/images/home_images/Calton-Hill-h.jpg'
theImages[4] = '/assets/images/home_images/Lochan-na-Stainge-h.jpg'
theImages[5] = '/assets/images/home_images/Barns-Ness-h.jpg'
theImages[6] = '/assets/images/home_images/Green-sea-h.jpg'
theImages[7] = '/assets/images/home_images/Anstruther-harbour-h.jpg'
theImages[8] = '/assets/images/home_images/Loch-Achray-boat-h.jpg'
theImages[9] = '/assets/images/home_images/Mooring-chain-bandw-h.jpg'
theImages[10] = '/assets/images/home_images/Purple-pansy-h.jpg'
theImages[11] = '/assets/images/home_images/Rannoch-stump-h.jpg'
theImages[12] = '/assets/images/home_images/Coigach-m-h.jpg'
theImages[13] = '/assets/images/home_images/Roof-dome-bandw-h.jpg'
theImages[14] = '/assets/images/home_images/Sandwood-rocks-h.jpg'




// ======================================
// do not change anything below this line
// ======================================

var j = 0
var p = theImages.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}

var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}
//-->


<!--
var gallery = new Array();
gallery[0] = new Array("assets/images/home_images/Blue-Tit-2-h.jpg","assets/images/home_images/Coigach-loch-panoramic-h.jpg","assets/images/home_images/db_BEM-burn-h.jpg");
gallery[1] = new Array("assets/images/home_images/Calton-Hill-h.jpg","assets/images/home_images/Lochan-na-Stainge-h.jpg","assets/images/home_images/Barns-Ness-h.jpg");
gallery[2] = new Array("assets/images/home_images/Green-sea-h.jpg","assets/images/home_images/Anstruther-harbour-h.jpg","assets/images/home_images/Loch-Achray-boat-h.jpg");

function pickImageFrom(whichGallery)
{
var idx = Math.floor(Math.random() * gallery[whichGallery].length);
document.write('<img src="' + gallery[whichGallery][idx] + '">');
}



//--> 

