
var iNumTabs = 2;
var curLayer = null;
var curLabel = null;
var arrMenuColors = new Array(2);
arrMenuColors["menu1label"] = new Array(2);
arrMenuColors["menu2label"] = new Array(2);

arrMenuColors["menu1label"]["on"] = "#ff0033";
arrMenuColors["menu1label"]["off"] = "#cccccc";
arrMenuColors["menu2label"]["on"] = "#ff0033";
arrMenuColors["menu2label"]["off"] = "#cccccc";

function HideAll()
{	
	for (i = 1; i <= iNumTabs; i++)
	{
		curLabel = document.getElementById('menu' + i + 'label');
		curLayer = document.getElementById('menu' + i);
		curText = document.getElementById('menu' + i + 'text');
		curLayer.style.display = 'none';
		curText.style.color = arrMenuColors['menu' + i + 'label']['off'];		
	}
}

function ShowMenu(visiblelayer)
{				
	var Label = document.getElementById(visiblelayer + 'label');
	var Text = document.getElementById(visiblelayer + 'text');
	var ShowLayer = document.getElementById(visiblelayer);	
	HideAll();				
	ShowLayer.style.display = 'block';
	Text.style.color = arrMenuColors[visiblelayer + 'label']['on'];		
	
}


