/* # vim:set filetype=javascript: */




function citation_switch () {
	para = document.getElementById ('citation-para');
	link = document.getElementById ('citation-link');
	linktxt = link.firstChild;
	
	v = para.style.display;
	
	//para.style.display = 'none';
	//return;

	vtxt = linktxt.nodeValue;

	if (v == 'none') {
		para.style.display = 'block';
		vtxt = "- " + vtxt.substr (2);
	}
	else {
		para.style.display = 'none';
		vtxt = "+ " + vtxt.substr (2);
	}

	//link.nodeValue = linktxt;
	linktxt.nodeValue = vtxt;
}

function my_init () {
	$("#topic_tree").treeview ({collapsed: true});	
}

$(document).ready (my_init);

