var tabs = new Array();
tabs[0] = "hotTopics";
tabs[1] = "compendialUpdates";
tabs[2] = "whatNew";

var curTab = tabs[0];
var tabIndex = 0;

function init() {
	selectTab( curTab );
}

function selectTab( tab ) {
	var tabDiv = document.getElementById( tab + "Div" );
	var tabBox = document.getElementById( tab + "Tab" );
	var tabHeader = document.getElementById( "tabheader" );
	
	tabHeader.className = tab + 'Selected';
	tabDiv.style.display = "block";

	for(i=0; i<tabs.length;i++) {
		if(tabs[i] != tab) {
			curTabDiv = document.getElementById( tabs[i] + "Div" );
			curTabBox = document.getElementById( tabs[i] + "Tab" );
			curTabDiv.style.display = "none";
		}
	}
}