var theImages = new Object() // do not change this
theImages['about'] = new Array();
theImages['business'] = new Array();
theImages['press'] = new Array();
theImages['social'] = new Array();
theImages['career'] = new Array();
theImages['strategic'] = new Array();
theImages['business_cola'] = new Array();
theImages['business_cerveza'] = new Array();
theImages['business_comercio'] = new Array();


// To add more image files, continue with the
// pattern below, adding to the array.

theImages['about'][0] = 'sh_img_about1.jpg';
theImages['about'][1] = 'sh_img_about2.jpg';
theImages['about'][2] = 'sh_img_about3.jpg';

theImages['business'][0] = 'sh_img_business1.jpg'
theImages['business'][1] = 'sh_img_business2.jpg'
theImages['business'][2] = 'sh_img_business3.jpg'
theImages['business'][3] = 'sh_img_business4.jpg'
theImages['business'][4] = 'sh_img_business5.jpg'
theImages['business'][5] = 'sh_img_business6.jpg'

theImages['press'][0] = 'sh_img_press1.jpg';
theImages['press'][1] = 'sh_img_press2.jpg';
theImages['press'][2] = 'sh_img_press3.jpg';

theImages['social'][0] = 'sh_img_social1.jpg';
theImages['social'][1] = 'sh_img_social2.jpg';

theImages['career'][0] = 'sh_img_career1.jpg';
theImages['career'][1] = 'sh_img_career2.jpg';
theImages['career'][2] = 'sh_img_career3.jpg';

theImages['strategic'][0] = 'sh_img_strategic1.jpg';
theImages['strategic'][1] = 'sh_img_strategic2.jpg';

theImages['business_cola'][0] = 'sh_img_cola1.jpg';
theImages['business_cola'][1] = 'sh_img_cola2.jpg';
theImages['business_cola'][2] = 'sh_img_cola3.jpg';

theImages['business_cerveza'][0] = 'sh_img_cerveza4.jpg';
theImages['business_cerveza'][1] = 'sh_img_cerveza4.jpg';
theImages['business_cerveza'][2] = 'sh_img_cerveza4.jpg';
theImages['business_cerveza'][3] = 'sh_img_cerveza4.jpg';

theImages['business_comercio'][0] = 'sh_img_comercio1.jpg';
theImages['business_comercio'][1] = 'sh_img_comercio2.jpg';
theImages['business_comercio'][2] = 'sh_img_comercio3.jpg';

// do not edit anything below this line

function showImage(sectionId){
	var j = 0
	var p = theImages[sectionId].length;
	var preBuffer = new Array()
	for (i = 0; i < p; i++){
	   	preBuffer[i] = new Image()
   		preBuffer[i].src = theImages[sectionId][i]
	}
	var whichImage = Math.round(Math.random()*(p-1));
	document.write('<img src="'+themeRootDirectory+'/images/'+theImages[sectionId][whichImage]+'" width="740" height="151" alt="" usemap="#heineken" />');
}

