

//This function is needed for dynamic expand/collapse with animation
//param: element id, desired state, duration
// the element id of the open/close links must match that of the opening div id,
//  such that if the open/close divs are divID1_open, and divID1_close, the opening div must be divID1, 
function toggleDisplay(em, st, dr) {
	ido = em + '_open';
	idc = em + '_close';
	Element.toggle(ido);
	Element.toggle(idc);
	if(st=='open') {
		new Effect.BlindDown(document.getElementById(em), {duration:dr});
	} else {
		new Effect.BlindUp(document.getElementById(em), {duration:dr});
	}
}
