var theImages = new Array()

theImages[0] = 'http://www.post-gazette.com/images4/2010_photoday_01.jpg'
theImages[1] = 'http://www.post-gazette.com/images4/2010_photoday_02.jpg'
theImages[2] = 'http://www.post-gazette.com/images4/2010_photoday_03.jpg'
theImages[3] = 'http://www.post-gazette.com/images4/2010_photoday_04.jpg'
theImages[4] = 'http://www.post-gazette.com/images4/2010_photoday_05.jpg'
theImages[5] = 'http://www.post-gazette.com/images4/2010_photoday_06.jpg'
theImages[6] = 'http://www.post-gazette.com/images4/2010_photoday_07.jpg'
theImages[7] = 'http://www.post-gazette.com/images4/2010_photoday_08.jpg'
theImages[8] = 'http://www.post-gazette.com/images4/2010_photoday_09.jpg'
theImages[9] = 'http://www.post-gazette.com/images4/2010_photoday_10.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(){
document.write('<img src="'+theImages[whichImage]+'">');
}


var theImagesX = new Array()

theImagesX[0] = 'http://www.post-gazette.com/images4/2010_xante_01.jpg'
theImagesX[1] = 'http://www.post-gazette.com/images4/2010_xante_02.jpg'
theImagesX[2] = 'http://www.post-gazette.com/images4/2010_xante_03.jpg'
theImagesX[3] = 'http://www.post-gazette.com/images4/2010_xante_04.jpg'
theImagesX[4] = 'http://www.post-gazette.com/images4/2010_xante_05.jpg'
theImagesX[5] = 'http://www.post-gazette.com/images4/2010_xante_06.jpg'
theImagesX[6] = 'http://www.post-gazette.com/images4/2010_xante_07.jpg'
theImagesX[7] = 'http://www.post-gazette.com/images4/2010_xante_08.jpg'
theImagesX[8] = 'http://www.post-gazette.com/images4/2010_xante_09.jpg'
theImagesX[9] = 'http://www.post-gazette.com/images4/2010_xante_10.jpg'

var k = 0
var q = theImagesX.length;
var preBuffer = new Array()
for (l = 0; l < q; l++){
   preBuffer[l] = new Image()
   preBuffer[l].src = theImagesX[l]
}
var whichImage = Math.round(Math.random()*(q-1));
function showImageX(){
document.write('<img src="'+theImagesX[whichImage]+'">');
}

