function foldUpEditorialTwoBoxes(boxClass)
{
	if ($$("body ."+boxClass) != null)
	{
		theEditorialBoxes = $$("body ."+boxClass);
		for (var i=0;i<theEditorialBoxes.length;i++)
		{
			if(($ES(".rollDownLink",theEditorialBoxes[i])) && ($ES(".rollUpLink",theEditorialBoxes[i]))) {
				theBoxKids = theEditorialBoxes[i].getChildren();
				theBoxKids.each(function(el){el.initialDisplay = (el.getStyle('display') == 'undefined' ? 'block' : el.getStyle('display'));});
/*				theBoxKids.each(function(el) {
						if (el != el.getParent().getFirst()) {
							el.setStyle('display', 'none');
						}
					}
				);*/
				theEditorialBoxes[i].status = 'open';
			}
		}
		editorialBoxes = $ES("."+boxClass, document.body);
		for (count=0; count<editorialBoxes.length; count++) {
			if(($ES(".rollDownLink",editorialBoxes[count])) && ($ES(".rollUpLink",editorialBoxes[count]))) {
				theRevealLink = $ES(".rollDownLink",editorialBoxes[count]);
				theRetractLink = $ES(".rollUpLink",editorialBoxes[count]);
				editorialBoxes[count].rollDown = theRevealLink;
				theRevealLink.inThisBox = editorialBoxes[count];
				editorialBoxes[count].rollUp = theRetractLink;
				theRetractLink.inThisBox = editorialBoxes[count];
				theRetractLink.addEvent('click', function(){toggleBox(this)}.bindWithEvent(editorialBoxes[count]));
				theRevealLink.addEvent('click', function(){toggleBox(this)}.bindWithEvent(editorialBoxes[count]));
			}
		}
	}
}

function toggleBox(summat)
{
	theBoxKids = summat.getChildren();
	theBoxKids.each(
		function(el) {
			if (el !== el.getParent().getFirst()) {
				el.setStyle('display', (summat.status == 'folded' ? el.initialDisplay : 'none'));
			}
		}
	);
	summat.status = (summat.status === 'folded' ? 'open' : 'folded');
}

function specToggle(what)
{
	var dlid = what.id.substr(0,what.id.length - 7);
	var disp = document.getElementById(dlid).style.display;
	
	if (disp == 'none')
	{
		document.getElementById(dlid).style.display = 'block';
		what.innerHTML = 'Hide';
		what.className = 'spec_open';
	}
	else
	{
		document.getElementById(dlid).style.display = 'none';
		what.innerHTML = 'Show';
		what.className = 'spec_closed';
	}

}
