function selectRandomImage(arg)
{
	var i = Math.random() * arg.length;
	return Math.floor(i);
}

function loadFoundingValue(arg)
{
	var path = '';

	if (arg && arg == 'intl') {
		//path = '../images/';
	} else {
		//path = '../../images/';
	}
	
	path = '/images/';

	var theImages = new Array(
		path + 'ico_brandValue.gif',
		path + 'ico_customerService.gif',
		path + 'ico_funAndFriendly.gif',
		path + 'ico_hardwork.gif',
		path + 'ico_honestyAndIntegrity.gif',
		path + 'ico_listenToCustomers.gif',
		path + 'ico_openDoors.gif',
		path + 'ico_strengthenCommunities.gif'
	);

	var theAlts = new Array(
		"Our brand is the most value thing we own",
		"Customer Service is our way of life",
		"Enterprise is a fun and friendly place, where teamwork rules",
		"We work hard and reward hard work",
		"Personal honesty and integrity are the foundation to our success",
		"Great things happen when we listen to our customers",
		"Our doors are open",
		"We strengthen our communities one neighborhood at a time"
	);

	var i = selectRandomImage(theImages);
	document.images['foundingValuesImage'].src = theImages[i];
	document.images['foundingValuesImage'].alt = theAlts[i];
}

function loadPictureOfSuccess(arg)
{
	var path = '';

	if (arg && arg == 'intl') {
		//path = '../images/';
	} else {
		//path = '../../images/';
	}
    
    path = '/images/';
	var theImages = new Array(
		//path + 'ico_picOfSuccess_33.gif',
		//path + 'ico_picOfSuccess_34.gif',
		//path + 'ico_picOfSuccess_35.gif',
		//path + 'ico_picOfSuccess_36.gif',
		//path + 'ico_picOfSuccess_40.gif'
		//path + 'ico_picOfSuccess_41.jpg'
		//path + 'ico_picOfSuccess_42.gif'
		path + 'ico_picOfSuccess_43.jpg'
	);

	var i = selectRandomImage(theImages);
	//document.images['pictureOfSuccessImage'].src = theImages[i];
}

function loadPictureOfSuccessHome(arg)
{
	var path = '';

	if (arg && arg == 'intl') {
		path = '../images/';
	} else {
		path = '../../images/';
	}

	var theImages = new Array(
		//path + 'ico_picOfSuccessHome_33.jpg',
		//path + 'ico_picOfSuccessHome_34.jpg',
		//path + 'ico_picOfSuccessHome_35.jpg',
		//path + 'ico_picOfSuccessHome_36.jpg',
		//path + 'ico_picOfSuccessHome_40.jpg'
		//path + 'ico_picOfSuccessHome_41.jpg'
		//path + 'ico_picOfSuccessHome_42.jpg'
		path + 'ico_picOfSuccessHome_43.jpg'
	);

	var i = selectRandomImage(theImages);
	document.images['pictureOfSuccessImage'].src = theImages[i];
}

function loadAnImage(arg)
{
	loadFoundingValue(arg);
	loadPictureOfSuccess(arg);
}