/**
// ==============================================
// 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 splash = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the splash[x] index!

splash[0] = 'http://www.deep6divingjervisbay.com/images/splash/front/splash1.jpg'
splash[1] = 'http://www.deep6divingjervisbay.com/images/splash/front/splash2.jpg'
splash[2] = 'http://www.deep6divingjervisbay.com/images/splash/front/splash3.jpg'
//splash[3] = 'http://www.deep6divingjervisbay.com/images/splash/front/splash4.jpg'//  
splash[3] = 'http://www.deep6divingjervisbay.com/images/splash/front/splash5.jpg'
splash[4] = 'http://www.deep6divingjervisbay.com/images/splash/front/splash6.jpg'
splash[5] = 'http://www.deep6divingjervisbay.com/images/splash/front/splash7.jpg'
splash[6] = 'http://www.deep6divingjervisbay.com/images/splash/front/splash8.jpg'

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

var j = 0
var p = splash.length;

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

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