var theImagesH = new Array()
theImagesH[0] = '../banner_ads/hadith_left/left_bar1.jpg'
theImagesH[1] = '../banner_ads/hadith_left/left_bar2.jpg'
theImagesH[2] = '../banner_ads/hadith_left/left_bar3.jpg'
theImagesH[3] = '../banner_ads/hadith_left/left_bar4.jpg'
theImagesH[4] = '../banner_ads/hadith_left/left_bar5.jpg'

var jH = 0
var pH = theImagesH.length;
var preBufferH = new Array()
for (i = 0; i < p; i++){
   preBufferH[i] = new Image()
   preBufferH[i].src = theImagesH[i]
}
var whichImageH = Math.round(Math.random()*(p-1));
function showImageH(){
document.write('<img src="'+theImagesH[whichImageH]+'">'); }