//window.onload=montre;
var last = null;

function cacher(ev) {
	//alert(last);
	if (last
		&& last.firstChild 
		&& last.firstChild.nextSibling 
		&& last.firstChild.nextSibling.style 
		&& last.firstChild.nextSibling.style.display)
		last.firstChild.nextSibling.style.display='none';
	last = null;
}

function stop(ev) {
	try {
		if (ev) {
			ev.stopPropagation();
		} else {
			window.event.cancelBubble = true;
		}
	} catch (e) {
		alert(e.message);
	}
}

function montre(ev, node) {
	//var nodes = document.getElementById('navmenu-l2').childNodes;
	cacher();
	if (!node) {
		node=ev;
		ev=null;
	}
	//window.alert(node);
	if ( node
		&& node.firstChild
		&& node.firstChild.nextSibling 
		&& node.firstChild.nextSibling.style 
		&& node.firstChild.nextSibling.style.display) {
		node.firstChild.nextSibling.style.display='block';
		last = node;
		//stop(ev);
	}
}
