/*
 * Begin all the inital variables and load the first
 * tab in a constant variable to be used throughout 
 * all the functions.
 */
var active = "tab1-content";
var activeTab = "tab1";

function switchTab(id){
	if(activeTab != id){
	
		var nextContent = $(id + "-content");
		var previousContent = $(active);
		
		nextContent.className = "tabContent show";
		previousContent.className = "tabContent hide";
	
		active = id + "-content";
	
		var nextTab = $(id);
		var previousTab = $(activeTab);
	
		nextTab.className = "active";
		previousTab.className = "inactive";
	
		activeTab = id;
	}
}
