function collapse(e)
{
	var parent = e.target.parentNode;
	var divs = parent.getElementsByTagName('DIV');
	var target = $(divs[1]);
	if (target.is(':visible'))
	{
		target.fadeOut('fast');
		parent.style.backgroundImage = 'url(/graphics/rightTri.gif)';
	} else {
		target.fadeIn('fast');
		parent.style.backgroundImage = 'url(/graphics/downTri.gif)';
	}
}

function bind()
{
	jQuery('.cChunk .pHead').bind('click', collapse).bind('mouseover mouseout', function(e) { e.target.style.textDecoration = (e.type == 'mouseover') ? 'underline' : 'none';} );
}

jQuery(function($) { bind(); } );
