var theImages = new Array()

theImages[0] = '../image_rotation/1.jpg'
theImages[1] = '../image_rotation/2.jpg'
theImages[2] = '../image_rotation/3.jpg'
theImages[3] = '../image_rotation/4.jpg'
theImages[4] = '../image_rotation/5.jpg'
theImages[5] = '../image_rotation/6.jpg'
theImages[6] = '../image_rotation/7.jpg'
theImages[7] = '../image_rotation/8.jpg'
theImages[8] = '../image_rotation/9.jpg'
theImages[9] = '../image_rotation/10.jpg'
theImages[10] = '../image_rotation/11.jpg'
theImages[11] = '../image_rotation/14.jpg'
theImages[12] = '../image_rotation/15.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(){
if(window.location.href == 'http://luciaandcompany.com/'){
	document.write('<img src="'+theImages[2]+'">');
}
else if(window.location.href == 'http://www.luciaandcompany.com/'){
	document.write('<img src="'+theImages[2]+'">');
}
else{
	document.write('<img src="'+theImages[whichImage]+'">');
}
}