/* ***************************
*	Date: 10/16/2009
*	Purpose: Change the tab displayed on top of every page on theme 116
*************************** */

function changeTab(tabId) {
	// get and hide all tabs
	var tabText = new Array(3);
	var tabTitle = new Array(3);
	for ( i=1;i<=3;i++ ) {
		var currentTab = document.getElementById( 'extra-tab-' + i + '-title' ) || "n/a";
		if ( currentTab != "n/a" ) {
			tabText[i] = document.getElementById( 'extra-tab-' + i );
			tabTitle[i] = document.getElementById( 'extra-tab-' + i + '-title' );
			tabText[i].style.display = "none";
			tabTitle[i].className = "extra-tab"
		}
	}
	
	// show selected tab
	tabText[tabId].style.display = "block";
	tabTitle[tabId].className = "extra-tab selected";
}
