window.onload = init;

function init()
{

// Add event handler to all h2s and attach collapse / expand function
	var headers = document.getElementsByTagName('h2');

	for (var i = 0; i < headers.length; i++)
		{
		var clickheader = headers[i];
		clickheader.onclick = collexp;
		}
}

function collexp()
{
	if((typeof window.addEventListener != 'undefined') | (typeof document.addEventListener != 'undefined')) //gecko, mozilla, safari, konqueror
		{var locallist = this.parentNode.childNodes[2]}

	else
		{
		if(typeof window.attachEvent != 'undefined')//Win IE
			{var locallist = this.parentNode.childNodes[1]}
		}

	if(locallist.className == 'collapse')
		{locallist.className = 'expand';}
	else
		{locallist.className = 'collapse'}
}
