// JavaScript Document
// Set up the image files to be used.
var theImages = new Array()

theImages[0] = '../uploads/images/mainpic/pic.jpg'
theImages[1] = '../uploads/images/mainpic/pic_f02.jpg'
theImages[2] = '../uploads/images/mainpic/pic_f03.jpg'
theImages[3] = '../uploads/images/mainpic/pic_f04.jpg'
theImages[4] = '../uploads/images/mainpic/pic_f05.jpg'
theImages[5] = '../uploads/images/mainpic/pic_f06.jpg'
theImages[6] = '../uploads/images/mainpic/pic_f07.jpg'
theImages[7] = '../uploads/images/mainpic/pic_f08.jpg'
theImages[8] = '../uploads/images/mainpic/pic_f09.jpg'
theImages[9] = '../uploads/images/mainpic/pic_f10.jpg'

// 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));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}

//  End -->

