// Procédures globales du projet
function PROCEDURESGLOBALESDEEASYMINDSNAVIGATEUR_CELULAPOSICAOX(VPARAMTAMANHO){{if (VPARAMTAMANHO==undefined) VPARAMTAMANHO=0;{var VBROWSERLARGURA=eval("document.body").clientWidth;var VPOSICAOX=0;if((VBROWSERLARGURA>1024)){
VPOSICAOX=Math.floor(((VBROWSERLARGURA-VPARAMTAMANHO)/2));return(VPOSICAOX)}return(0)}}}
function AlturaJanela(Teste)
{
document.body.style.height=Teste+"px";
document.body.scrollHeight=Teste+"px";
	
}


function CentreCellule(sCellule)
{
	var nNL, nNH;
	var nCL, nCH;
	
	// Récupère les dimensions du navigateur
	nNL = NavigateurLargeur();
	nNH = NavigateurHauteur();	
	if (nNH <= 10) nNH = 760;
	
	nCL = parseInt(document.getElementById("dww"+sCellule).offsetWidth);
	nCH = parseInt(document.getElementById("dww"+sCellule).offsetHeight);
	
	//nCL = parseInt(document.getElementById("dww"+sCellule).offsetWidth);
	//nCH = parseInt(document.getElementById("dww"+sCellule).offsetHeight);
	
	//document.getElementById("dww"+sCellule).style.top = parseInt((nNH - nCH) / 2) + "px";
	document.getElementById("dww"+sCellule).style.left = parseInt((nNL - nCL) / 2) + "px";	
}

function NavigateurHauteur(bForDWW)
{
	var nH;
	
	if (document.body.clientHeight)
	nH = document.body.clientHeight;
	else
	if (window.innerHeight)
	nH = window.innerHeight;
	else
	nH = window.clientHeight;
	
	if (bForDWW == true)
	nH = document.body.scrollHeight;
	else
	if (nH == 0) nH = document.body.scrollHeight;	
	
	return nH;			
	
}

function NavigateurLargeur()
{
	if (document.documentElement.clientWidth)
	return document.documentElement.clientWidth;
	else
	if (document.body.clientWidth)
	return document.body.clientWidth;
	else
	if (window.innerWidth)
	return window.innerWidth;
	else
	return window.clientWidth;
}


function RedimensionaJanela()
{
	// Branche un événement sur le redimensionnement du navigateur
	// Attention : sous FireFox, l'événement OnResize est exécuté uniquement lors de la fin du redimensionnement
	window.onresize = OnNavigateurDimension;
}


