// JavaScript Document version 1.05
function centerPopUp (file,w,h,scrollbar,name){
var cx = Math.round ((screen.availWidth / 2) - (w / 2));
var cy = Math.round ((screen.availHeight / 2) - (h / 2));
scrollbar=(scrollbar == "undefined")?'no':scrollbar;
name=(name == "undefined")?'popUp':name;
window.open(file, name, 'height='+ h +', width='+ w +', top='+ cy +', left='+ cx +', toolbar=no, menubar=no, location=no, toolbar = no,resizable=yes, scrollbars=yes, status=no');
}
function openPop (file,w,h,scrollbar,name){
scrollbar=(scrollbar == "undefined")?'no':scrollbar;
name=(name == "undefined")?'popUp':name;
window.open(file, name, 'height='+ h +', width='+ w +', top=0, left=0, toolbar=no, menubar=no, location=no, toolbar = no,resizable=yes, scrollbars=yes, status=no');
}
////////////////////////////// messages d'alertes simple
function simpleAlert(msg){
	var al = new Alert_window();
	//al.setCloseButton("X","Fermer");
	al.create(msg);
}

function centerPopUp2 (url,fermer){	
var obj=new JsPop;
obj.setTextFermer(fermer);
w=745;
h=472;

var lib=new SuperClass();
var new_h_w=lib.getViewSize();
if(new_h_w[1]<h){h=new_h_w[1]-20;}
if(new_h_w[0]<h){w=new_h_w[0]-20;}
obj.openFramePop(w,h,url);	
}
function visite(id) {
	var nombredediv = 4; // Nombre de div 
	for(x = 1; x <= 4;x++) {
		if(x == id) { document.getElementById("adresse"+x).style.display="block";
		} else { document.getElementById("adresse"+x).style.display="none";	}
	}
}