// Set up the image files to be used.

var theImages = new Array() 

theImages[0] = 'airstrip'
theImages[1] = 'castle'
theImages[2] = 'diver'
theImages[3] = 'wreck'
theImages[4] = 'wheel'
theImages[5] = 'fundus'
theImages[6] = 'harbour'
theImages[7] = 'rocks'
theImages[8] = 'shoreline'
theImages[9] = 'skilift'
theImages[10] = 'snow_house'
theImages[11] = 'turningtorso'
theImages[12] = 'fish'
theImages[13] = 'perch'

var p = theImages.length;

var whichImage = Math.round(Math.random()*(p-1));

function ParaOver(LyynImage) {
	LyynImage.style.backgroundImage = "url(/Templates/images/intro/"+theImages[whichImage]+"_lyyn.jpg)";
}

function ParaOut(LyynImage) {
	LyynImage.style.backgroundImage = "url(/Templates/images/intro/"+theImages[whichImage]+".jpg)";
}

function setImage() {
		document.write('<STYLE>');
		document.write('.main_image {background-image: url(/Templates/images/intro/' + theImages[whichImage] + '.jpg)}');
		document.write('.main_image_lyyn {background-image: url(/Templates/images/intro/' + theImages[whichImage] + '_lyyn.jpg)}');
		document.write('</STYLE>');
}
