var supported = (document.getElementById || document.all);

if (supported)
{
	document.write("<STYLE TYPE=\"text/css\">");
	document.write(".subnav {display: none}");
	document.write("</STYLE>");

	var max = 7; // # of menus
	var shown = new Array();
	for (var i=1;i<=max;i++)
	{
		shown[i+1] = false;
	}
}

function expand(i)
{
	shown[i] = (shown[i]) ? false : true;
	current = (shown[i]) ? 'block' : 'none';
	if (document.getElementById) {
		document.getElementById('sub'+i).style.display = current;
		var oldImage = document.getElementById('right' + i);
		if (shown[i]) {
			oldImage.src=arrDown;
		} else {
			oldImage.src=arrRight;
		}
	} else if (document.all) {
		document.all['sub'+i].style.display = current;
		var oldImage ="document.right" + i;
		if (shown[i]) {
			oldImage.src=arrDown;
		} else {
			oldImage.src=arrRight;
		}
	}
}

