

// 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.

theImages[0] = 'images/random/greece1.jpg'
theImages[1] = 'images/random/greece2.jpg'
theImages[2] = 'images/random/greece3.jpg'
theImages[3] = 'images/random/greece4.jpg'
theImages[4] = 'images/random/greece5.jpg'
theImages[5] = 'images/random/greece6.jpg'
theImages[6] = 'images/random/greece7.jpg'
theImages[7] = 'images/random/greece8.jpg'
theImages[8] = 'images/random/greece14.jpg'
theImages[9] = 'images/random/greece10.jpg'
theImages[10] = 'images/random/greece11.jpg'
theImages[11] = 'images/random/greece12.jpg'
theImages[12] = 'images/random/greece13.jpg'
theImages[13] = 'images/random/greece9.jpg'

// do not edit 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]+'">');
}


function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		navigation_01_over = newImage("images/navigation_01-over.gif");
		navigation_02_over = newImage("images/navigation_02-over.gif");
		navigation_03_over = newImage("images/navigation_03-over.gif");
		navigation_04_over = newImage("images/navigation_04-over.gif");
		navigation_05_over = newImage("images/navigation_05-over.gif");
		navigation_06_over = newImage("images/navigation_06-over.gif");
		preloadFlag = true;
	}
}



