/**********************************************************
	<span>s or <div>s come in pairs. The
	"contracted" forms have id=c0, c1, c2 (etc.), and
	the "expanded" forms have id=e0, e1, e2 (etc.)

	This function swaps the pair with the given
	divNum, and shows the expanded div if expanding is
	true, or the short one if expanding is false.
**********************************************************/
function swapDiv( divNum, expanding )
{
	if (expanding)
	{
		setIdProperty("c" + divNum, "display", "none");
		setIdProperty("e" + divNum, "display", "inline");
	}
	else
	{
		setIdProperty("e" + divNum, "display", "none");
		setIdProperty("c" + divNum, "display", "inline");
	}
}

/**********************************************************
	Each main menu item has an image (for the plus
	or minus sign) named i0, i1, i2, etc. and a
	submenu named s0, s1, s2, etc.
**********************************************************/
function sM(divNum)
{
	if (getIdProperty("s" + divNum, "display") != "block" )
	{
		setIdProperty("s" + divNum, "display", "block");
	}
	else
	{
		setIdProperty("s" + divNum, "display", "none");
	}
}

setBrowser();
