rnd.today = new Date();
rnd.seed = rnd.today.getTime();
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// IMAGES IN DIRECTORY 1
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
var imgDir1 =	[
					["graphics/", ""],
					["left_bubble-heart.png", "passionate_people.php"],
					["left_bubble-torch.png", "professional_approach.php"],
					["left_bubble-chart.png", "continuous_improvement.php"],
					["left_bubble-team.png", "teamwork.php"],
					["left_bubble-badge.png", "customers_first.php"]
				];
				

// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//	FUNCTION:		display_image()
//	PARAMS:			iNum	- INTEGER : Number or array to reference
//
//	DESCRIPTION:	This will display a random image from the images in the array that is 
//					referenced using the iNum variable. Just pass in a nuber between 1-3.
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
function display_image(iNum){
	var arrImg = eval("imgDir" + iNum);	// Reference the array
	var dir = arrImg[0][0];				// References the image directory
	iNum = rand(arrImg.length-1);		// Get the random number
	
	// Display the image
	if (arrImg[iNum][1] != ""){
		document.write("<a href=\"" + arrImg[iNum][1] + "\"><img src=\"" + dir + arrImg[iNum][0] + "\" alt=\"\" border=\"0\"></a>");
	} else {
		document.write("<img src=\"" + dir + arrImg[iNum][0] + "\" alt=\"\">");
	}
}

// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//	FUNCTION:		rnd() / rand()
//	PARAMS:			iNum	- INTEGER : Max number to randomly generate
//
//	DESCRIPTION:	These two functions will randomly generate a random number from 9 - number.
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
function rnd() {
	rnd.seed = (rnd.seed * 9301 + 49297) % 233280;
	return rnd.seed / (233280.0);
}

function rand(iNum) {
	return Math.ceil(rnd() * iNum);
}

