<!--
/********** Trouve un objet par son id ou son name ***********/
function findObj(n) { // string 'n'
var x,d=document;
if(!(x=d[n])&&d.all) x=d.all[n];
if(!x && d.getElementById) x=d.getElementById(n);
return x;
}
/********** Retourne un tableau d'élément d'un obj html -> obj.AS = tous les A de obj obj.ALLS = tous les elmts de obj ***********/
function findTags(obj,tag){
	if(tag=='*'){
	obj.ALLS = obj.all||obj.getElementsByTagName(tag);
	}else{
	obj[tag+"S"] = obj.all?obj.all.tags(tag):obj.getElementsByTagName(tag);
	}
}
/*** Menu open/close avec changement de classes sur le bouton principal ***/

function menuOpenClose(objLink,idSmenu){
	if(!window['SetMenuInfoBulleActif']){
		var menu;
		if( !(menu=findObj('menuInfoBulle')) ){alert('menuInfoBulle est introuvable');return;}
	window['SetMenuInfoBulleActif']={lienActif:false, blocActif:false}
	findTags(menu,'A');
	findTags(menu,'DIV');
		for(var i=0; i<menu.AS.length; i++){
			if(menu.AS[i].className.indexOf('Open')!=-1){ window['SetMenuInfoBulleActif'].lienActif=menu.AS[i]; break;}
		}
		for(var i=0; i<menu.DIVS.length; i++){
			if(menu.DIVS[i].id && menu.DIVS[i].id.indexOf('bloc')==0 && menu.DIVS[i].style.display=='block'){ window['SetMenuInfoBulleActif'].blocActif=menu.DIVS[i]; break;}
		}
	}

var smenu=findObj(idSmenu),klass,oldLink=window['SetMenuInfoBulleActif'].lienActif,oldSmenu=window['SetMenuInfoBulleActif'].blocActif; 
	if( oldLink && oldLink!=objLink ){
	var Close=oldLink.className.replace("Open","");
	oldLink.className=Close;
		if( oldSmenu ){ oldSmenu.style.display='none'; }
	}
	if( smenu && (klass=objLink.className) ){
	klass=klass.replace("Open","");
		if(smenu.style.display=='none'){
		smenu.style.display='block';
		objLink.className=klass+"Open";
		window['SetMenuInfoBulleActif'].lienActif=objLink;
		window['SetMenuInfoBulleActif'].blocActif=smenu;
		}
	}
}
//-->