maxHeight = 0;
function effaceTout(min, max) {
	for (i=min; i<max+1; i++) {
		if (document.getElementById("publi"+i)) {
			if (document.getElementById("publiblock"+i)) {
				if (document.getElementById("publiblock"+i).clientHeight > maxHeight)
					maxHeight = document.getElementById("publiblock"+i).clientHeight;
			}
			document.getElementById("publi"+i).style.display = "none";
			document.getElementById("lien"+i).style.fontWeight = "normal";
		}
	}


}

//max repr?sente l'index du dernier ?l?ment du m?me bloc
function display(min, j, max) {
	effaceTout(min, max);
	document.getElementById("publi"+j).style.display = "block";
	document.getElementById("lien"+j).style.fontWeight = "bold";
	if (document.getElementById("publiblock"+j))
		document.getElementById("publiblock"+j).style.height = maxHeight+"px";
	window.status = maxHeight;
}


window.onload = function() {
	effaceTout(1, 12);
}

