if (document.images) {
	var theImages = new Array();
	
	theImages[0] = "images/nav/management.gif";
	theImages[1] = "images/nav/management_over.gif";
	theImages[2] = "images/nav/investments.gif";
	theImages[3] = "images/nav/investments_over.gif";
	theImages[4] = "images/nav/development.gif";
	theImages[5] = "images/nav/development_over.gif";
	theImages[6] = "images/nav/communities.gif";
	theImages[7] = "images/nav/communities_over.gif";
	
	for (i = 0; i < theImages.length; i++) {
		var img = new Image();
		img.src = theImages[i];
	}
}

function showProductZoom() {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="600" height="256" id="zoom_view" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="zoom_view.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="zoom_view.swf" quality="high" bgcolor="#ffffff" width="600" height="256" name="zoom_view" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
}

function addEmploymentHistory() {
	var employmentHistoryCount = document.getElementById("employmentHistoryCount");
	employmentHistoryCount.value = parseInt(employmentHistoryCount.value) + 1;
	document.getElementById("employmentHistory" + employmentHistoryCount.value).style.display = "block";

	if (employmentHistoryCount.value == 3) {
		document.getElementById("addEmploymentHistory").style.display = "none";
	}
}

function validateApplicationForEmployment() {
	var firstName = document.forms["applicationForEmployment"].elements["firstName"].value;
	var lastName = document.forms["applicationForEmployment"].elements["lastName"].value;

	var error = false;
	var errorMessage = "";

	if (firstName == "") {
		error = true;
		errorMessage = "* Please enter your first name.\n";
	}

	if (lastName == "") {
		error = true;
		errorMessage += "* Please enter your last name.\n";
	}

	if (error) {
		alert(errorMessage);
		return false;
	}
}
