

var theImages = new Array()

theImages[0] = 'clare-louise-images/weddingdress-1.jpg'
theImages[1] = 'clare-louise-images/weddingdress-2.jpg'
theImages[2] = 'clare-louise-images/weddingdress-3.jpg'
theImages[3] = 'clare-louise-images/weddingdress-4.jpg'
theImages[4] = 'clare-louise-images/weddingdress-5.jpg'
theImages[5] = 'clare-louise-images/bridesmaids-1.jpg'
theImages[6] = 'clare-louise-images/weddingdress-6.jpg'
theImages[7] = 'clare-louise-images/bridesmaids-3.jpg'
theImages[8] = 'clare-louise-images/bridesmaids-2.jpg'
theImages[9] = 'clare-louise-images/weddingdress-7.jpg'
theImages[10] = 'clare-louise-images/weddingdress-8.jpg'
theImages[11] = 'clare-louise-images/weddingdress-9.jpg'
theImages[12] = 'clare-louise-images/weddingdress-10.jpg'
theImages[13] = 'clare-louise-images/weddingdress-11.jpg'
theImages[14] = 'clare-louise-images/weddingdress-12.jpg'
theImages[15] = 'clare-louise-images/bridesmaids-4.jpg'
theImages[16] = 'clare-louise-images/bridesmaids-5.jpg'
theImages[17] = 'clare-louise-images/bridesmaids-6.jpg'
theImages[18] = 'clare-louise-images/mens-1.jpg'
theImages[19] = 'clare-louise-images/picture-1.jpg'
theImages[20] = 'clare-louise-images/picture-2.jpg'
theImages[21] = 'clare-louise-images/picture-3.jpg'
theImages[21] = 'clare-louise-images/picture-4.jpg'



// ======================================
// do not change 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]+'">');
}
