var theImages = new Array()

//Random-loading images
theImages[0] = 'http://sanctumguild.eu/settings/sanctumguild/files/header01.jpg'
theImages[1] = 'http://sanctumguild.eu/settings/sanctumguild/files/header02.jpg'
theImages[2] = 'http://sanctumguild.eu/settings/sanctumguild/files/header03.jpg'
theImages[3] = 'http://sanctumguild.eu/settings/sanctumguild/files/header04.jpg'
theImages[4] = 'http://sanctumguild.eu/settings/sanctumguild/files/header05.jpg'

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]+'" border=0 width=1000 height=300>');
}
