var p = 0;
var whichImage = 0;
var theImagescorp = new Array(); 
var theImages = new Array();

function load_testimonial() {
	
	theImages[0] = 'files/design/images/headerimage1.jpg';
	theImages[1] = 'files/design/images/headerimage2.jpg';
	theImages[2] = 'files/design/images/headerimage3.jpg';
	theImages[3] = 'files/design/images/headerimage4.jpg';
	theImages[4] = 'files/design/images/headerimage5.jpg';
	
	p = theImages.length;
	
	var preBuffer = new Array();
	for (i = 0; i < p; i++){
	   preBuffer[i] = new Image();
	   preBuffer[i].src = theImages[i];
	}
	
	whichImage = Math.round(Math.random()*(p-1));
}

function load_corporate() {

	
	theImagescorp[0] = 'files/design/images/headerimagecorp1.jpg';
	theImagescorp[1] = 'files/design/images/headerimagecorp2.jpg';
	theImagescorp[2] = 'files/design/images/headerimagecorp3.jpg';
	theImagescorp[3] = 'files/design/images/headerimagecorp4.jpg';
	theImagescorp[4] = 'files/design/images/headerimagecorp5.jpg';
	theImagescorp[5] = 'files/design/images/headerimagecorp6.jpg';
	theImagescorp[6] = 'files/design/images/headerimagecorp7.jpg';
	
	p = theImagescorp.length;
	
	var preBuffer = new Array();
	for (i = 0; i < p; i++){
	   preBuffer[i] = new Image();
	   preBuffer[i].src = theImagescorp[i];
	}
	whichImage = Math.round(Math.random()*(p-1));
}

function showImageCorporate(){
document.write('<img src="'+theImagescorp[whichImage]+'">');
}

function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}