sections = ['wys','wyd','spk','int','ent','mus','hea','hom','sce','act'];

function clicked(sectionShort)
{
	//console.log("clicked - ", sectionShort);
	
	currentClassName = document.getElementById('section-'+sectionShort).className;
	//console.log("currentClassName ", currentClassName);
	
	if (currentClassName == 'Open')
	{
		closeSection(sectionShort);
	}
	else
	{
		openSection(sectionShort);
	}
}

function openSection(sectionShort)
{
	//console.log("openSection ", sectionShort);
	document.getElementById('section-'+sectionShort).className = 'Open';
}

function closeSection(sectionShort)
{
	//console.log("closeSection ", sectionShort);
	document.getElementById('section-'+sectionShort).className = 'Closed';
}

function closeAll()
{
	for (var z = 0; z < sections.length; z++)
	{
		document.getElementById('section-'+sections[z]).className = 'Closed';
	}
}