     function toggleInlineDisplay(objectID) {
	var object = document.getElementById(objectID);
	state = object.className;

	if (state == "arrowRight") {
		object.className = "arrowDown";
	} else {
		object.className = "arrowRight";
	}
     } 

     function toggleDisplay(objectID) {
	var object = document.getElementById(objectID);
	state = object.style.display;

	if (state == 'none' || state == '')
		object.style. display = 'block';
	else {
		object.style.display = 'none'; 
	}
     }
     
     function toggleMain(tid) {
	toggleDisplay('topic' + tid);
	toggleInlineDisplay('arrowRight_' + tid);
     }
