/* // I display a random image from a given array */
<!-- The JavaScript Source!! http://javascript.internet.com // improved by neocode.com
var imgpath = '/esa/socdev/unpfii/theme/images/random/';
var theImages = new Array()
theImages[0] = 'slide01.gif,Indigenous Man'
theImages[1] = 'slide02.gif,Indigenous Man2'
theImages[2] = 'slide03.gif,Indigenous Group'
theImages[3] = 'slide04.gif,Indigenous Woman'
theImages[4] = 'slide05.gif,Indigenous Man3'
theImages[5] = 'slide06.gif,Indigenous Children'
theImages[6] = 'slide07.gif,'
theImages[7] = 'slide08.gif,'
theImages[8] = 'slide09.gif,'
theImages[9] = 'slide10.gif,'
theImages[10] = 'slide11.gif,'
theImages[11] = 'slide12.gif,'
theImages[12] = 'slide13.gif,'
theImages[13] = 'slide14.gif,'
theImages[14] = 'slide15.gif,'
theImages[15] = 'slide16.gif,'
theImages[16] = 'slide17.gif,'
theImages[17] = 'slide18.gif,'
theImages[18] = 'slide19.jpg,'
theImages[19] = 'slide20.jpg,'
theImages[20] = 'slide21.gif,'
theImages[21] = 'slide22.jpg,'
theImages[22] = 'slide23.jpg,'
theImages[23] = 'slide24.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(){
	var picfile = theImages[whichImage].substr(0,theImages[whichImage].indexOf(","))
	var picalt = theImages[whichImage].substr(theImages[whichImage].indexOf(",")+1,theImages[whichImage].length)
	document.write('<img src="'+imgpath+picfile+'" alt="'+picalt+'">');
}