// Setting files to use for the array.
var mgapix = new Array() 
//Add more files below following same format.

mgapix[0] = 'images/orgs/h_free.gif'
mgapix[1] = 'images/orgs/h_freed.gif'

var b = mgapix.length;
var pBuffer = new Array()
for (i = 0; i < b; i++){
   pBuffer[i] = new Image()
   pBuffer[i].src = mgapix[i]
}
var selectpix = Math.round(Math.random()*(b-1));
function ipakitahead(){
document.write('<img src="'+mgapix[selectpix]+'">');
}