// Begin
// Set up the image files to be used.
var theImages = new Array(); // do not change this
var altImage = new Array(); // use the same array order to match image to alt text
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'interior-1.jpg';
theImages[1] = 'interior-2.jpg';
theImages[2] = 'interior-3.jpg';
theImages[3] = 'interior-4.jpg';
theImages[4] = 'interior-5.jpg';
theImages[5] = 'interior-7.jpg';
theImages[6] = 'interior-8.jpg';
theImages[7] = 'interior-9.jpg';
theImages[8] = 'interior-10.jpg';
theImages[9] = 'interior-11.jpg';
theImages[10] = 'interior-12.jpg';
theImages[11] = 'interior-13.jpg';
theImages[12] = 'interior-14.jpg';
theImages[13] = 'interior-15.jpg';
theImages[14] = 'interior-16.jpg';
theImages[15] = 'interior-17.jpg';

altImage[0] = 'Detail of an old typewriter';
altImage[1] = 'Detail of an old typewriter';
altImage[2] = 'Seamless texture based manuscript letter';
altImage[3] = 'Vintage hand writing on a letter. Old paper with visible structure. Pen ink.';
altImage[4] = 'Talmud sheet as a background';
altImage[5] = 'Detail of an old typewriter';
altImage[6] = 'Lucca Duomo Cathedral San Martino St Martin facade and campanile Lucca Tuscany Italy';
altImage[7] = 'Calligraphy type handwriting from the late';
altImage[8] = 'Old recipe handwriting detail';
altImage[9] = 'Vintage hand writing on a letter. Old yellowish paper. Visible structure. Pen ink. Houston postmark.';
altImage[10] = 'Vintage hand writing on a letter. Old paper. Visible structure. Pen ink.';
altImage[11] = 'Page from an ancient theologic latin book';
altImage[12] = 'Vintage hand-written page of a book';
altImage[13] = 'Diary page';
altImage[14] = 'Close up of old portable typewriter isolated on white';
altImage[15] = 'Old cyrillic typewriter';

// do not edit 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));

// Quarantine: images with trademark flags (1-4)
// Quarantine: Ancient theologic, roman incised lettering
while ((whichImage == 0) || (whichImage == 1) || (whichImage == 2) || (whichImage == 3) || (whichImage == 11)) {
	whichImage = Math.round(Math.random()*(p-1));	
}
function showImage(){
document.write('<img src="images/random-interior/'+theImages[whichImage]+'" alt="'+altImage[whichImage]+'" title="'+altImage[whichImage]+'">');
}

//  End -->