var styleSheet = document.styleSheets[0]
var selector = 'ul.column ul'
var properties = 'display:none'

if (typeof styleSheet.addRule != 'undefined')
	{styleSheet.addRule(selector, properties, index);}

else if (typeof styleSheet.insertRule != 'undefined')
	{
	if (typeof index == 'undefined')
		{var index = styleSheet.cssRules.length;}
	styleSheet.insertRule(selector + ' {' + properties + '}', index);
	}

//-----------------------

addEvent(window, 'load', init);

//-----------------------

function init()
{
	var colLists = document.querySelectorAll('ul li ul')
	var hdrs = document.querySelectorAll('h2')
	var z = hdrs.length-1

	for (var i=z; i>=0; i--)
		{
		hdrs[i].list = colLists[i]
		addEvent(hdrs[i], 'click', toggle);
		}
}

function toggle()
{
	var list = this.list

	if(list.className)
		{list.className = ''}
	else
		{list.className = 'expanded'}
}