/* 
ViewIndicator: This function handles the tabs in the "Key Indicators" box of the main page.
created by: Mike Zavarello
created on: August 6, 2008
*/

var noIndicators = 6;

function ViewIndicator(selectedTab) {
	for (i = 1; i <= noIndicators; i++) {
		var thisIndicatorTab = "KeyIndicator" + i + "Tab";
		var thisIndicatorLayer =  "KeyIndicator" + i;
		if (i == selectedTab) {
			var className = "KeyIndicatorTabOn";
			var styleDisplay = "block";
			var styleVisibility = "visible";
		} else {
			var className = "KeyIndicatorTabOff";
			var styleDisplay = "none";
			var styleVisibility = "hidden";
		}
		document.getElementById(thisIndicatorTab).className = className;
		document.getElementById(thisIndicatorLayer).style.display = styleDisplay;
		document.getElementById(thisIndicatorLayer).style.visibility = styleVisibility;
	}
}