// JavaScript Document
/* 
	Author:  Andrew Desender
	Name:    tabs.js
	Creation Date:    November 15th, 2008
	Last Modified:    March 13th, 2009
	Version:  2.0
	
	Description - This assumes that there are 3 tabs, they must be named:
	    tab - For the content of tab
		highTab - Controls the highlighting of the tab
		
		Changes the content based on which tab control is selected,  also highlights the tab in a special way to let the user know which tab was selecetd.
*/

function hideTab(refTab, totalNum) {
	for(i = 1; i <= totalNum; i++) {
		tab = "tab" + i;
		highTab = "highTab" + i;
		
		if(i == refTab) {
			document.getElementById(tab).style.visibility = 'visible';
			document.getElementById(tab).style.display = 'block';			
			document.getElementById(highTab).className = "tabs-selected";		
		} else {
			document.getElementById(tab).style.visibility = 'hidden';			
			document.getElementById(tab).style.display = 'none';			
			document.getElementById(highTab).className = "";					
		}
	}
}