var theImages = new Array() 

theImages[0] = '/images/business_community/bc_homepage/bc_hp_header_random_image01.jpg'
theImages[1] = '/images/business_community/bc_homepage/bc_hp_header_random_image02.jpg'
theImages[2] = '/images/business_community/bc_homepage/bc_hp_header_random_image03.jpg'
theImages[3] = '/images/business_community/bc_homepage/bc_hp_header_random_image04.jpg'
theImages[4] = '/images/business_community/bc_homepage/bc_hp_header_random_image05.jpg'
theImages[5] = '/images/business_community/bc_homepage/bc_hp_header_random_image06.jpg'
theImages[6] = '/images/business_community/bc_homepage/bc_hp_header_random_image07.jpg'
theImages[7] = '/images/business_community/bc_homepage/bc_hp_header_random_image08.jpg'
theImages[8] = '/images/business_community/bc_homepage/bc_hp_header_random_image09.jpg'
theImages[9] = '/images/business_community/bc_homepage/bc_hp_header_random_image10.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 showHeaderImage() {
	document.write('<img src="'+theImages[whichImage]+'" width="460" height="140" align="right" border="0" alt="random header image">');
}
