
//DISPLAY

function affDisplayIf(eltid){
	if (document.getElementById(eltid)){
		document.getElementById(eltid).style.display=='none'?document.getElementById(eltid).style.display='block':document.getElementById(eltid).style.display='none';
	}
}


function affDisplay(eltid){
	document.getElementById(eltid).style.display=='none'?document.getElementById(eltid).style.display='block':document.getElementById(eltid).style.display='none';
}

function affDisplayOn(eltid){
	document.getElementById(eltid).style.display='block';
}
function affDisplayOff(eltid){
	document.getElementById(eltid).style.display='none';
}
function affDisplayOnTous(pereId){
	for(i=0; document.getElementById(pereId).childNodes[i] ;i++){
		if(document.getElementById(pereId).childNodes[i].id ){affDisplayOn(document.getElementById(pereId).childNodes[i].id);}
	}
}
function affDisplayOffTous(pereId){	
	for(i=0; document.getElementById(pereId).childNodes[i] ;i++){
		if(document.getElementById(pereId).childNodes[i].id ){affDisplayOff(document.getElementById(pereId).childNodes[i].id);			}
	}
}

function affDisplayOffSauf(pereid,eltid){
	affDisplayOffTous(pereid);
	document.getElementById(eltid).style.display='block';
}
function affDisplayOffSauf_PlusPere(pereid,eltid){
	affDisplayOffTous(pereid);
	document.getElementById(pereid).style.display='block';
	document.getElementById(eltid).style.display='block';	
}

function affDisplayOffTempo(eltid,tempo){
	tempo!=''?setTimeout('affDisplayOff("eltid")',tempo/4*1000):affDisplayOff(eltid);
}





/***************************************************************************
* PROCEDURES
***********************/

/*
-----------------------------------------------
procédures menu
*/



function afficheProduitsFamille(familleProduits){

var classActuelleFamille=document.getElementById(familleProduits).className;
classActuelleFamille=='navNorm'?classActuelleFamille='navAct':classActuelleFamille='navNorm';
document.getElementById(familleProduits).className=classActuelleFamille;
}


/*
-----------------------------------------------
procédures carte france
*/
var divConteneur='conteneurCartesVisite';
function elementAAfficherProc(elt){
		affDisplayOffSauf(divConteneur, elt);
}


var divConteneurSurvol='conteneurCartesVisiteHover';
var divInfoPre='hoverInfoPre';
var divInfoPost='hoverInfoPost';

function elementPreAfficher(elt){
		affDisplayOffSauf(divConteneurSurvol, elt);
		affDisplayOn(divInfoPre);
		affDisplayOn(divInfoPost);
		
}
function elementPreAfficherOff(){
		affDisplayOffTous(divConteneurSurvol);
}

/*
-----------------------------------------------
procédures carte Monde
*/

var dernierDIV_affiche='';
	
function afficheInfoPays(NomDIV_ID){
	if ( dernierDIV_affiche != '' ) {affDisplayOff(dernierDIV_affiche);	}
	affDisplayOn(NomDIV_ID);
	dernierDIV_affiche=NomDIV_ID;
}
