// Set up the image files to be used.
var theImages = new Array() // do not change this
var windowstatus = new Array()

// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'images/pix/image1.jpg'
theImages[1] = 'images/pix/image2.jpg'
theImages[2] = 'images/pix/image3.jpg'
theImages[3] = 'images/pix/image4.jpg'
theImages[4] = 'images/pix/image5.jpg'
theImages[5] = 'images/pix/image6.jpg'
theImages[6] = 'images/pix/image7.jpg'
theImages[7] = 'images/pix/image8.jpg'



windowstatus[0] = "\n The Kidapawan City Hall..."
windowstatus[1] = "\n The Cotabato Council building..."
windowstatus[2] = "\n Apokids members went out bicycling..."
windowstatus[3] = "\n Sctr. Marlowe E. Llorito in an exhibit booth..."
windowstatus[4] = "\n SCA Rex N. Toledo explaining about ''lowie''."
windowstatus[5] = "\n Our candlestands. Six years old...<br> We use this throughout the ceremony during an investiture of court of honor."
windowstatus[6] = "\n Segrigating the garbage..."
windowstatus[7] = "\n Catching WB Aries Panes..."

// 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('<div align="center"><img src="'+theImages[whichImage]+'"></div>');

//for windows status text
//window.status = windowstatus[whichImage]

//another way to show the text below the image
//document.write(windowstatus[whichImage])
}
function showText(){
document.write(''+windowstatus[whichImage]+'')
}