
// FONCTIONS Pour PopUp Center
function montreCenterPopUp(id, largeur) {	
	// La popUp avec le contenu
	
	dom = document.getElementById && !document.all;
	py = 100;
	px = Math.floor(largeur / 2); 
	document.getElementById(id).style.top = py + 'px'; 
	document.getElementById(id).style.marginLeft = '-'+ px + 'px';	
	document.getElementById(id).style.display = "block";
	
	
	// La hauteur du fond transparent
	if (document.documentElement.clientHeight >= document.body.offsetHeight ) {	
	hy = document.documentElement.clientHeight; 
	} else { 
	hy = document.body.offsetHeight; 
	}

	if (hy >= document.getElementById(id).offsetHeight + py + py) {
	hyFinal = hy;
	} else {
	hyFinal = document.getElementById(id).offsetHeight + py + py;
	}

	document.getElementById('containerOpaque').style.display = "block";
	document.getElementById('containerOpaque').style.height = hyFinal+"px";
}



function cacheCenterPopUp(id) {
	// La popUp avec le contenu
	document.getElementById(id).style.display = "none";
	// Le fond transparent
	document.getElementById('containerOpaque').style.display = "none";
}

