/********************************************************************/
/* This file highlights the nav and footer nav when hovered over.	*/
/* By Tanner Naeher, Coyote6 GraphX, coyote6graphx.com.				*/
/********************************************************************/

// Variables.
nav_hover = '#9B4F19';
nav = '#000000';
footer_nav_hover = '#F7ECBE';
footer_nav = '#000000';

// Start once the document is ready.
$(document).ready(function(){

	// Highlight the footer home when the nav home is hovered over.
	$('#nav_home').hover(function(){
		$('#footer_home').css("text-decoration", "underline");
		$('#footer_home').css("color", footer_nav_hover);
		$('#nav_home').css("color", nav_hover);
		$('#nav_home').css("text-decoration", "underline");
	}, function(){
		$('#footer_home').css("text-decoration", "none");
		$('#footer_home').css("color", footer_nav);
		$('#nav_home').css("color", nav);
		$('#nav_home').css("text-decoration", "none");
	});

	// Highlight the footer company information when the nav company information is hovered over.
	$('#nav_company_information').hover(function(){
		$('#footer_company_information').css("text-decoration", "underline");
		$('#footer_company_information').css("color", footer_nav_hover);
		$('#nav_company_information').css("color", nav_hover);
		$('#nav_company_information').css("text-decoration", "underline");
	}, function(){
		$('#footer_company_information').css("text-decoration", "none");
		$('#footer_company_information').css("color", footer_nav);
		$('#nav_company_information').css("color", nav);
		$('#nav_company_information').css("text-decoration", "none");
	});

	// Highlight the footer high standards when the nav high standards is hovered over.
	$('#nav_high_standards').hover(function(){
		$('#footer_high_standards').css("text-decoration", "underline");
		$('#footer_high_standards').css("color", footer_nav_hover);
		$('#nav_high_standards').css("color", nav_hover);
		$('#nav_high_standards').css("text-decoration", "underline");
	}, function(){
		$('#footer_high_standards').css("text-decoration", "none");
		$('#footer_high_standards').css("color", footer_nav);
		$('#nav_high_standards').css("color", nav);
		$('#nav_high_standards').css("text-decoration", "none");
	});

	// Highlight the footer production capacity when the nav production capacity is hovered over.
	$('#nav_production_capacity').hover(function(){
		$('#footer_production_capacity').css("text-decoration", "underline");
		$('#footer_production_capacity').css("color", footer_nav_hover);
		$('#nav_production_capacity').css("color", nav_hover);
		$('#nav_production_capacity').css("text-decoration", "underline");
	}, function(){
		$('#footer_production_capacity').css("text-decoration", "none");
		$('#footer_production_capacity').css("color", footer_nav);
		$('#nav_production_capacity').css("color", nav);
		$('#nav_production_capacity').css("text-decoration", "none");
	});
	
	// Highlight the footer customer services when the nav customer services is hovered over.
	$('#nav_customer_service').hover(function(){
		$('#footer_customer_service').css("text-decoration", "underline");
		$('#footer_customer_service').css("color", footer_nav_hover);
		$('#nav_customer_service').css("color", nav_hover);
		$('#nav_customer_service').css("text-decoration", "underline");
	}, function(){
		$('#footer_customer_service').css("text-decoration", "none");
		$('#footer_customer_service').css("color", footer_nav);
		$('#nav_customer_service').css("color", nav);
		$('#nav_customer_service').css("text-decoration", "none");
	});
	
	// Highlight the footer contact us when the nav contact us is hovered over.
	$('#nav_contact_us').hover(function(){
		$('#footer_contact_us').css("text-decoration", "underline");
		$('#footer_contact_us').css("color", footer_nav_hover);
		$('#nav_contact_us').css("color", nav_hover);
		$('#nav_contact_us').css("text-decoration", "underline");
	}, function(){
		$('#footer_contact_us').css("text-decoration", "none");
		$('#footer_contact_us').css("color", footer_nav);
		$('#nav_contact_us').css("color", nav);
		$('#nav_contact_us').css("text-decoration", "none");
	});

	// Highlight the nav home when the footer home is hovered over.
	$('#footer_home').hover(function(){
		$('#footer_home').css("text-decoration", "underline");
		$('#footer_home').css("color", footer_nav_hover);
		$('#nav_home').css("color", nav_hover);
		$('#nav_home').css("text-decoration", "underline");
	}, function(){
		$('#footer_home').css("text-decoration", "none");
		$('#footer_home').css("color", footer_nav);
		$('#nav_home').css("color", nav);
		$('#nav_home').css("text-decoration", "none");
	});
	
	// Highlight the nav company information when the footer company information is hovered over.
	$('#footer_company_information').hover(function(){
		$('#footer_company_information').css("text-decoration", "underline");
		$('#footer_company_information').css("color", footer_nav_hover);
		$('#nav_company_information').css("color", nav_hover);
		$('#nav_company_information').css("text-decoration", "underline");
	}, function(){
		$('#footer_company_information').css("text-decoration", "none");
		$('#footer_company_information').css("color", footer_nav);
		$('#nav_company_information').css("color", nav);
		$('#nav_company_information').css("text-decoration", "none");
	});
	
	// Highlight the nav high standards when the footer high standards is hovered over.
	$('#footer_high_standards').hover(function(){
		$('#footer_high_standards').css("text-decoration", "underline");
		$('#footer_high_standards').css("color", footer_nav_hover);
		$('#nav_high_standards').css("color", nav_hover);
		$('#nav_high_standards').css("text-decoration", "underline");
	}, function(){
		$('#footer_high_standards').css("text-decoration", "none");
		$('#footer_high_standards').css("color", footer_nav);
		$('#nav_high_standards').css("color", nav);
		$('#nav_high_standards').css("text-decoration", "none");
	});

	// Highlight the nav production capacity when the footer production capacity is hovered over.
	$('#footer_production_capacity').hover(function(){
		$('#footer_production_capacity').css("text-decoration", "underline");
		$('#footer_production_capacity').css("color", footer_nav_hover);
		$('#nav_production_capacity').css("color", nav_hover);
		$('#nav_production_capacity').css("text-decoration", "underline");
	}, function(){
		$('#footer_production_capacity').css("text-decoration", "none");
		$('#footer_production_capacity').css("color", footer_nav);
		$('#nav_production_capacity').css("color", nav);
		$('#nav_production_capacity').css("text-decoration", "none");
	});

	// Highlight the nav customer service when the footer customer service is hovered over.
	$('#footer_customer_service').hover(function(){
		$('#footer_customer_service').css("text-decoration", "underline");
		$('#footer_customer_service').css("color", footer_nav_hover);
		$('#nav_customer_service').css("color", nav_hover);
		$('#nav_customer_service').css("text-decoration", "underline");
	}, function(){
		$('#footer_customer_service').css("text-decoration", "none");
		$('#footer_customer_service').css("color", footer_nav);
		$('#nav_customer_service').css("color", nav);
		$('#nav_customer_service').css("text-decoration", "none");
	});
	
	// Highlight the nav contact us when the footer contact us is hovered over.
	$('#footer_contact_us').hover(function(){
		$('#footer_contact_us').css("text-decoration", "underline");
		$('#footer_contact_us').css("color", footer_nav_hover);
		$('#nav_contact_us').css("color", nav_hover);
		$('#nav_contact_us').css("text-decoration", "underline");
	}, function(){
		$('#footer_contact_us').css("text-decoration", "none");
		$('#footer_contact_us').css("color", footer_nav);
		$('#nav_contact_us').css("color", nav);
		$('#nav_contact_us').css("text-decoration", "none");
	});
	
});