/*
** Turns the tab the right color based on the current page.
*/
function workTabs() {

	var tabHome	= document.getElementById('homeTab');
	var tabCalendar	= document.getElementById('calendarTab');
	var tabEvents	= document.getElementById('eventsTab');
	var tabAboutUs	= document.getElementById('aboutUsTab');
	var tabCookTeam	= document.getElementById('cookTeamTab');

	var txtHome	= document.getElementById('homeText');
	var txtCalendar	= document.getElementById('calendarText');
	var txtEvents	= document.getElementById('eventsText');
	var txtAboutUs	= document.getElementById('aboutUsText');
	var txtCookTeam	= document.getElementById('cookTeamText');

	var myLocation	= location.pathname;

	switch (myLocation) {
		case "/":
			tabHome.setAttribute("class", "tabGold");
			txtHome.setAttribute("class", "tabTextBlue");
		break;

		case "/home":
			tabHome.setAttribute("class", "tabGold");
			txtHome.setAttribute("class", "tabTextBlue");
		break;

		case "/calendar":
			tabCalendar.setAttribute("class", "tabGold");
			txtCalendar.setAttribute("class", "tabTextBlue");
		break;

		case "/events":
			tabEvents.setAttribute("class", "tabGold");
			txtEvents.setAttribute("class", "tabTextBlue");
		break;

		case "/aboutUs":
			tabAboutUs.setAttribute("class", "tabGold");
			txtAboutUs.setAttribute("class", "tabTextBlue");
		break;

		case "/cookTeam":
			tabCookTeam.setAttribute("class", "tabGold");
			txtCookTeam.setAttribute("class", "tabTextBlue");
		break;

	}
}


