
//This function gets the Career Contact an Office Near You Box
function getCareerContact()
{
	var xmlhttp = window.createXmlHttpRequest();

	var fileToRetrieve = "/career/career_contact_office_box.html";
	xmlhttp.open("GET", fileToRetrieve, false);	
	xmlhttp.send(null);

	if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
	{ 
		var targetElement = document.getElementById("careerContactOffice"); 

		if (targetElement)
		{
			targetElement.innerHTML = xmlhttp.responseText;
		}
		
	}

	return true;
}

getCareerContact();



//This function gets the Customer Contact an Office Near You Box
function getCustomerContact()
{
	var xmlhttp = window.createXmlHttpRequest();

	var fileToRetrieve = "/customer/customer_contact_office_box.html";
	xmlhttp.open("GET", fileToRetrieve, false);	
	xmlhttp.send(null);

	if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
	{ 
		var targetElement = document.getElementById("customerContactOffice"); 

		if (targetElement)
		{
			targetElement.innerHTML = xmlhttp.responseText;
		}
		
	}

	return true;
}

getCustomerContact();



//This function gets the Footer
function getBottomNavigation()
{
	var xmlhttp = window.createXmlHttpRequest();

	var fileToRetrieve = "/assets/navigation/footer.html";
	xmlhttp.open("GET", fileToRetrieve, false);	
	xmlhttp.send(null);

	if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
	{ 
		var targetElement = document.getElementById("lowerNavigation"); 

		if (targetElement)
		{
			targetElement.innerHTML = xmlhttp.responseText;
		}
		
	}

	return true;
}

getBottomNavigation();

//This function gets the Career Navigation Header
function getCareerTopNavigation()
{
	var xmlhttp = window.createXmlHttpRequest();

	var fileToRetrieve = "/assets/navigation/career_navigation.html";
	xmlhttp.open("GET", fileToRetrieve, false);	
	xmlhttp.send(null);

	if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
	{ 
		var targetElement = document.getElementById("topCareerNavigation"); 

		if (targetElement)
		{
			targetElement.innerHTML = xmlhttp.responseText;
		}
		
	}

	return true;
}

getCareerTopNavigation();


//This function gets the Customer Navigation Header
function getCustomerTopNavigation()
{
	var xmlhttp = window.createXmlHttpRequest();

	var fileToRetrieve = "/assets/navigation/customer_navigation.html";
	xmlhttp.open("GET", fileToRetrieve, false);	
	xmlhttp.send(null);

	if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
	{ 
		var targetElement = document.getElementById("topCustomerNavigation"); 

		if (targetElement)
		{
			targetElement.innerHTML = xmlhttp.responseText;
		}
		
	}

	return true;
}

getCustomerTopNavigation();


//This function gets the General Navigation Header (i.e. Sitemap, JHFN News, etc.)
function getGeneralTopNavigation()
{
	var xmlhttp = window.createXmlHttpRequest();

	var fileToRetrieve = "/assets/navigation/general_navigation.html";
	xmlhttp.open("GET", fileToRetrieve, false);	
	xmlhttp.send(null);

	if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
	{ 
		var targetElement = document.getElementById("topGeneralNavigation"); 

		if (targetElement)
		{
			targetElement.innerHTML = xmlhttp.responseText;
		}
		
	}

	return true;
}

getGeneralTopNavigation();

//This function gets the Header (including the drop downs.)
function getMainNavigation()
{
	var xmlhttp = window.createXmlHttpRequest();

	var fileToRetrieve = "/assets/navigation/header.html";
	xmlhttp.open("GET", fileToRetrieve, false);	
	xmlhttp.send(null);

	if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
	{ 
		var targetElement = document.getElementById("mainNavigation"); 

		if (targetElement)
		{
			targetElement.innerHTML = xmlhttp.responseText;
		}
		
	}

	return true;
}

getMainNavigation();

