// JavaScript Document

// random splash generator

function randomSplash()

{

var splashImage=new Array()

// location of images in this array
splashImage[1]="ill/ill1.jpg";
splashImage[2]="ill/ill2.jpg";
splashImage[3]="ill/ill3.jpg";
splashImage[4]="ill/ill4.jpg";
splashImage[5]="ill/ill5.jpg";
splashImage[6]="ill/ill6.jpg";


var splashCaption=new Array()
// captions
splashCaption[1]="Illustarjon 1";
splashCaption[2]="Illustarjon 2";
splashCaption[3]="Illustarjon 3";
splashCaption[4]="Illustarjon 4";
splashCaption[5]="Illustarjon 5";
splashCaption[6]="Illustarjon 6";


var getRan=Math.floor(Math.random()*splashImage.length)
if (getRan==0)
getRan=1

document.write('<p><img src=\"'+splashImage[getRan]+'\" alt=\"Illustarjoner.\" title=\"Illustarjoner.\" width=\"280\" height=\"260\" \/>');

document.write('<p>'+splashCaption[getRan]+'<br \/>');
document.write('View more images in the <a href=\"illustarjoner.html\">gallery<\/a><\/p>');
}

// swap image and caption

function swapPhoto(photoSRC,theCaption,thePrice) {

	var displayedCaption = document.getElementById("caption");
	
	displayedCaption.firstChild.nodeValue = theCaption;

    document.images.imgPhoto.src = "ill/" + photoSRC;
}

