var ouvert = '';
var time;

function cache (id_f) {
	setVisibility(id_f, 0);
}


function montre (id_f, id_p) {
	if (ouvert != '') {
		cache (ouvert);
	}
	ouvert = id_f;
	var y = getOffsetTop(id_p) + getOffsetHeight(id_p);
	setTop(id_f, y);
	var x = getOffsetLeft(id_p);
	setLeft(id_f, x);
	var w =  getOffsetWidth (id_p);
	setWidth (id_f, w+'px');
	setVisibility(id_f, 1);
	clearTimeout (time);
}

function ferme() {
	if (ouvert != '') {
		cache (ouvert);
		ouvert = '';
	}
}

function set() {
	time = setTimeout ("ferme()", 1000);
}

function cl() {
	clearTimeout (time);
}