/* * * * * * * * * * * * * * * * * * * * * * * * * * *
 *                                                   *
 *  Script to enable toggling of semantic relations  *
 *  with the ReSIST Wiki pages using moo.fx          *
 *                                                   *
 *  icm, 20060325                                    *
 *                                                   *
 * * * * * * * * * * * * * * * * * * * * * * * * * * */

var rollup = null;

/**
 *  This function initialises the moo.fx code to
 *  show the roll-up for semantic info div. It is
 *  assumed that at most one such div will exist.
 */
function initRollups() {

	div = document.getElementById('semanticInfoContent');
	txt = document.getElementById('semanticInfoToggle');

	if (div != null) { 
		rollup = new fx.Height('semanticInfoContent', {duration: 200});
		rollup.hide();
		txt.innerHTML = ", or <a href='javascript:showSemantics();'>click here to view them</a>.";
	}
}



/**
 *  Show the DIV containing the semantic information
 */
function showSemantics() {
	document.getElementById('semanticInfoToggle').innerHTML = "."; 
	rollup.toggle();
}

