/**
 * Toggles display of child items in an accordion vertical navigation block
 *
 * @param	int		bid				The block ID
 * @param	int		pid				The parent page ID
 * @param	string	display_value	Some valid value for the 'display' style property of a UL element.
 * @return	void
 */

function toggle_accordion(bid, pid, display_value)
{
	var ul_elt = document.getElementById('childrenof' + pid + 'b' + bid);
	var img_elt = document.getElementById('accordion_control_' + pid + 'b' + bid); 
	
	switch(ul_elt.style.display)
	{
		case 'none':
			ul_elt.style.display = display_value;
			img_elt.src = 'modules/PageManager/pnimages/accordion_minus.png';
			break;
		
		default:
			ul_elt.style.display = 'none';
			img_elt.src = 'modules/PageManager/pnimages/accordion_plus.png';
			break;
	}
}