// JavaScript Document 

function showBlock(id) {
	if (document.getElementById(id)) {document.getElementById(id).style.display='block';}
}
function hideBlock(id) {
	if (document.getElementById(id)) {document.getElementById(id).style.display='none';}
}

function getSize(id,name)
{
	maLargeur =  Math.ceil(name.length*6.8);  
	if ( maLargeur < 68) { maLargeur  = 68; }
	if (document.getElementById(id)) {document.getElementById(id).style.width=maLargeur+'px';}

}



sfHover = function() {
	var sfEls = document.getElementById("menu").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);





function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
		//if (document.getElementById('snav'+i)) {document.getElementById('snav'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}
