function MakeDefs(node) {
	node = document.getElementById(node);
	list = node.getElementsByTagName('dfn');
	for (i = 0; i < list.length; i++) {
		cur = list[i];
		newin = document.createElement('span');
		newin.className = 'dfn';
		newin.innerHTML = '&nbsp;' + (i + 1) + '&nbsp;';
		newin.title = cur.innerHTML;

		cur.parentNode.insertBefore(newin, cur);
	}

}


window.addEvent('domready', function() {

$$('#menu ul.submenu').each(function(item) {

men = $(item.parentNode);
men.submenu = item;

men.addEvent('mouseenter', function() {
	$clear(this.iwantout);
	this.noleave = 1;

	this.ef = new Fx.Style(this.submenu, 'height', {duration: 200, wait: false});
	this.ef.start(this.submenu.scrollHeight);
}).addEvent('mouseleave', function() {
	this.noleave = 0;
	this.iwantout = this.ef.start.delay(200, this.ef, 0);
});

item.addEvent('mouseenter', function() {
	this.noleave = 0;
	$clear(this.parentNode.iwantout);
	this.parentNode.ef.start(this.scrollHeight);
}).addEvent('mouseleave', function() {
	if (this.parentNode.noleave) return true;
	this.parentNode.iwantout = this.parentNode.ef.start.delay(200, this.parentNode.ef, 0);
});



})

});

/*


	addEvent('mouseenter', function() {
	if (window.activedetails) return true;
	ilist.effect('height', {duration: 200}).start(ilist.scrollHeight);
}).addEvent('mouseleave', function() {
	if (window.activedetails) return true;
	ilist.effect('height', {duration: 200}).start(0);
});



*/