// RBA Javascript

	// About Us page functions

		// This array should have all current names, in order	
		var people = new Array('about', 'blakely', 'brown', 'chitwood', 'eaves', 'finnell', 'matens', 'patterson', 'schmidt', 'waterhouse', 'white');


		function changePerson(name)
		{
			hidePeople();
			var chosen = document.getElementById(name);
			chosen.style.display = "inline";
		}
		
		function hidePeople()
		{
			for (x in people)
			{
				var current = document.getElementById(people[x]);
				current.style.display = "none";
			}			
		}
		
		
		
	// Providers page functions
	
		// This array should have all the current providers in case we decide to hide others when you toggle a new one
		var providers = new Array('assurant', 'bcbsga', 'bcbstn', 'cariten', 'cigna', 'deltadental', 'guardian', 'hartford', 'humana', 'jefferson', 'lincoln', 'metlife', 'mutualomaha', 'principal', 'sunlife', 'united', 'medicare', 'ssa', 'ada', 'cms', 'hipaa', 'healthfinder', 'mayoclinic', 'medlineplus');
		
		function toggleProvider(name)
		{
			var chosen = document.getElementById(name);
			if (chosen.style.display == "block") {
				chosen.style.display = "none";
				chosen.parentNode.className = "closed";
			} else {
				chosen.style.display = "block";
				chosen.parentNode.className = "open";
			}
		}