function afficheSsBlock(id , level, path) {
	
	var obj 	= findObj('block' + level + id);
	var imgtest = findObj('img'  + level + id);
	
	if (obj.style.display == "none") {
		obj.style.display = "block";
		imgtest.src = path + "images/moins.gif";
	}
	else {
		obj.style.display = "none";
		imgtest.src = path + "images/plus.gif";
		}
	}

// Fonction pour trouver l'objet.
function findObj(id, ref) {
  	
	var nInt, i, obj;
	
	if (!ref) ref = document;
	
	n = id.indexOf("?");
	
	if ((n > 0) && parent.frames.length) {
		// Va chercher la frame
   		ref = parent.frames[id.substring(n + 1)].document;
		id  = id.substring(0, nInt);
		}
	obj = ref[id];
	
	if ((!obj) && ref.getElementById) obj = ref.getElementById(id);
 	if ((!obj) && ref.all) obj = ref.all[id];
	// NS4 ...
	for (i = 0; ((!obj) && (i < ref.forms.length)); i++) obj = ref.forms[i][id];																																	
  	for (i = 0; ((!obj) && (ref.layers) && (i < ref.layers.length)); i++) obj = findObj(id, ref.layers[i].document);
	
	return obj;
	}

		
function affiche(idM) {
		
	var oDiv = findObj('menu' + idM);
		
		for(i=1;i <= 3;i++) {
			if(i != idM) {
				var oDiv2 = findObj('menu' + i);
				oDiv2.style.display = 'none';
				}
			}
		
	if(oDiv.style.display == 'none') oDiv.style.display = 'block';
	else oDiv.style.display = 'none';
	}



	
function openpopup(fichier, fwidth, fweight) {
	var popup = window.open( fichier, 'popup' , 'scrollbars=1, top=15px, left=15px, width=' + fwidth + ',height=' + fweight);
	popup.focus();
	}

function openpopup2(fichier, fwidth, fweight) {
	var popup = window.open( fichier, 'popup' , 'scrollbars=0, top=15px, left=15px, width=' + fwidth + ',height=' + fweight);
	popup.focus();
	}

function lien(lien) {
	window.open(lien, '_blank');
	}