var current = '';

function infos() {
	var a = document.getElementById('menu').getElementsByTagName('a');
	for(var i = 0; i < a.length; i++){
		a[i].onmouseover = function() {
			if(current != ''){
				hide(current);
				current = '';
			}
			show(this.parentNode.id + '_infos');
		};
		a[i].onmouseout = function() {
			if(current == '') hide(this.parentNode.id + '_infos');
		};
		a[i].onclick = function() {
			current = this.parentNode.id + '_infos';
			show(current);
			return false;
		};
	}
}

function hide(id) { document.getElementById(id).style.display = 'none'; }
function show(id) { document.getElementById(id).style.display = 'block'; }
