var theImages = new Array()

theImages[0] = 'img/wedding1.jpg'
theImages[1] = 'img/wedding2.jpg'
theImages[2] = 'img/wedding3.jpg'
theImages[3] = 'img/wedding4.jpg'
theImages[4] = 'img/wedding5.jpg'

var j = 0
var p = theImages.length;

var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}
