//links must be labeled as follows...   [ "S" # "-L" # ]   ...   ie - "S1-L3"

var lastS = 0;
var lastL = 0;

function ccc(section, link)
{
	restoreL(lastS, lastL);

	if (section == 99) section = lastS;

		showThis('links' + section);
		hideThis('links' + findOpp(section));
		toCollapse('view' + findOpp(section));
		toView('view' + section);

	hideL(section, link);

	lastS = section;
	lastL = link;

}

function restoreL(sec, link)
{
	if (link != 0)
	{
		document.all('S' + sec + '-L' + link).style.display = '';
	}
}

function hideL(sec, link)
{
	if (sec)
	{
		document.all('S' + sec + '-L' + link).style.display = 'none';
	}
}

function findOpp(section)
{
	var opp;
	if (section == 1)
	{
		opp = 2;
	}
	else if (section == 2)
	{
		opp = 1;
	}
	return opp;
}
