var theImages = new Array()

//Random-loading images
theImages[0] = new Array("images/artwork/art_001.jpg", "Doug Sirois - Art 503C, MFA, Illustration" ); // replace with names of images
theImages[1] = new Array("images/artwork/art_002.jpg", "Beginning Crafts - Found Object Body Ornament" ); // replace with names of images
theImages[2] = new Array("images/artwork/art_003.jpg", "Liz Shultze - Art 503C, MFA, Illustration" ); // replace with names of images
theImages[3] = new Array("images/artwork/art_004.jpg", "Christina Smith - Cake Slice" ); // replace with names of images
theImages[4] = new Array("images/artwork/art_005.jpg", "Nobuhito Nishigawara - Ceramics" ); // replace with names of images
theImages[5] = new Array("images/artwork/art_006.jpg", "Package Design for The LA Zoo - Art 483A, Graphic Design" ); // replace with names of images
theImages[6] = new Array("images/artwork/art_007.jpg", "Drawing & Painting Student Artwork" ); // replace with names of images
theImages[7] = new Array("images/artwork/art_008.jpg", "Greg Vriethoff - Cast Glass Scuplture" ); // replace with names of images
theImages[8] = new Array("images/artwork/art_009.jpg", "Drawing & Painting Student Artwork" ); // replace with names of images
theImages[9] = new Array("images/artwork/art_010.jpg", "Drawing & Painting Student Artwork" ); // replace with names of images
theImages[10] = new Array("images/artwork/art_011.jpg", "Sabre Cat - Christopher Michael - Enertainment Art/Animation" ); // replace with names of images
theImages[11] = new Array("images/artwork/art_012.jpg", "Character Sketeches  - Ryan DeLuca - Entertainment Art/Animation" ); // replace with names of images
theImages[12] = new Array("images/artwork/art_013.jpg", "Angela Price - Printmaking" ); // replace with names of images
theImages[13] = new Array("images/artwork/art_014.jpg", "Scott Angus - The King and Queen of America" ); // replace with names of images
theImages[14] = new Array("images/artwork/art_015.jpg", "Dialogues Installation: Matthew Cartwright, Jonathan Knauft, Mandy Oliver, Eric Stoner &amp; Kurt Weston" ); // replace with names of images

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][0]
}
var whichImage = Math.round(Math.random()*(p-1));

function showImage(){
if(whichImage==0){
document.write('<div><img class="home_img" src="'+theImages[whichImage][0]+'" alt="'+ theImages[whichImage][1] +'" title="'+ theImages[whichImage][1] +'" /></div><p class="caption">'+ theImages[whichImage][1] +'</p>');
}
else if(whichImage==1){
document.write('<div><img class="home_img" src="'+theImages[whichImage][0]+'" alt="'+ theImages[whichImage][1] +'" title="'+ theImages[whichImage][1] +'" /></div><p class="caption">'+ theImages[whichImage][1] +'</p>');
}
else if(whichImage==2){
document.write('<div><img class="home_img" src="'+theImages[whichImage][0]+'" alt="'+ theImages[whichImage][1] +'" title="'+ theImages[whichImage][1] +'" /></div><p class="caption">'+ theImages[whichImage][1] +'</p>');
}
else if(whichImage==3){
document.write('<div><img class="home_img" src="'+theImages[whichImage][0]+'" alt="'+ theImages[whichImage][1] +'" title="'+ theImages[whichImage][1] +'" /></div><p class="caption">'+ theImages[whichImage][1] +'</p>');
}
else if(whichImage==4){
document.write('<div><img class="home_img" src="'+theImages[whichImage][0]+'" alt="'+ theImages[whichImage][1] +'" title="'+ theImages[whichImage][1] +'" /></div><p class="caption">'+ theImages[whichImage][1] +'</p>');
}
else if(whichImage==5){
document.write('<div><img class="home_img" src="'+theImages[whichImage][0]+'" alt="'+ theImages[whichImage][1] +'" title="'+ theImages[whichImage][1] +'" /></div><p class="caption">'+ theImages[whichImage][1] +'</p>');
}
else if(whichImage==6){
document.write('<div><img class="home_img" src="'+theImages[whichImage][0]+'" alt="'+ theImages[whichImage][1] +'" title="'+ theImages[whichImage][1] +'" /></div><p class="caption">'+ theImages[whichImage][1] +'</p>');
}
else if(whichImage==7){
document.write('<div><img class="home_img" src="'+theImages[whichImage][0]+'" alt="'+ theImages[whichImage][1] +'" title="'+ theImages[whichImage][1] +'" /></div><p class="caption">'+ theImages[whichImage][1] +'</p>');
}
else if(whichImage==8){
document.write('<div><img class="home_img" src="'+theImages[whichImage][0]+'" alt="'+ theImages[whichImage][1] +'" title="'+ theImages[whichImage][1] +'" /></div><p class="caption">'+ theImages[whichImage][1] +'</p>');
}
else if(whichImage==9){
document.write('<div><img class="home_img" src="'+theImages[whichImage][0]+'" alt="'+ theImages[whichImage][1] +'" title="'+ theImages[whichImage][1] +'" /></div><p class="caption">'+ theImages[whichImage][1] +'</p>');
}
else if(whichImage==10){
document.write('<div><img class="home_img" src="'+theImages[whichImage][0]+'" alt="'+ theImages[whichImage][1] +'" title="'+ theImages[whichImage][1] +'" /></div><p class="caption">'+ theImages[whichImage][1] +'</p>');
}
else if(whichImage==11){
document.write('<div><img class="home_img" src="'+theImages[whichImage][0]+'" alt="'+ theImages[whichImage][1] +'" title="'+ theImages[whichImage][1] +'" /></div><p class="caption">'+ theImages[whichImage][1] +'</p>');
}
else if(whichImage==12){
document.write('<div><img class="home_img" src="'+theImages[whichImage][0]+'" alt="'+ theImages[whichImage][1] +'" title="'+ theImages[whichImage][1] +'" /></div><p class="caption">'+ theImages[whichImage][1] +'</p>');
}
else if(whichImage==13){
document.write('<div><img class="home_img" src="'+theImages[whichImage][0]+'" alt="'+ theImages[whichImage][1] +'" title="'+ theImages[whichImage][1] +'" /></div><p class="caption">'+ theImages[whichImage][1] +'</p>');
}
else if(whichImage==14){
document.write('<div><img class="home_img" src="'+theImages[whichImage][0]+'" alt="'+ theImages[whichImage][1] +'" title="'+ theImages[whichImage][1] +'" /></div><p class="caption">'+ theImages[whichImage][1] +'</p>');
}

}