 //<![CDATA[
 
// depuis  Menu en travaux
function Travaux(){
alert ("Cette page est en cours de réalisation \n Elle sera active prochainement ! \n Revenez plus tard !");
 }// fin en travaux
// Fonction simple du menu

function Menu(nav,numero){
   this.nav = nav; if (!nav) {nav='accueil'};
   this.numero = numero;
  
 $.get('./phpjs/'+ nav +'.php', { 'numero': numero },function(data) // pour ne pas voir à attendre
		 {
		 $('#colonne_centre').html(data);
		 });
        } // fin Fonctions simple du menu

// popup echo de la sab
 var popupEcho = 0;
 function ouvrir_popup_echo(numero) {
   this.numero = numero;
   $.get('./echo_popup.php', { 'numero': numero },function(data) // pour ne pas voir à attendre
		 {
		 $('.popup_echo').html(data);
		 });
 if(popupEcho == 0) {
 //on centre le popup
 var windowHeight = document.documentElement.clientHeight;
 var windowWidth = document.documentElement.clientWidth;
 var popupHeight = $(".popup_echo").height();
 var popupWidth = $(".popup_echo").width();
 $('.popup_echo').css({
 "position" : "absolute",
 "top" : windowHeight/2 - popupHeight/2,
 "left" : windowWidth/2 - popupWidth/2
 });
 // fin centrer
 $('.background').css({ "opacity": "0.8"});
 $('.background').fadeIn('slow');
 $('.popup_echo').fadeIn('slow');
 popupEcho = 1;
 }
 }
 function fermer_popup_echo() {
 if(popupEcho == 1) {
  $('.background').fadeOut('slow');
 $('.popup_echo').fadeOut('slow');
 popupEcho = 0;
 }
 }
 // fin popup echo de la sab		
 // popup photo des profs
 var popupProf = 0;
 function ouvrir_popup_prof() {
 if(popupProf == 0) {
 //on centre le popup
 var windowHeight = document.documentElement.clientHeight;
 var windowWidth = document.documentElement.clientWidth;
 var popupHeight = $(".popup").height();
 var popupWidth = $(".popup").width();
 $('.popup').css({
 "position" : "absolute",
 "top" : windowHeight/2 - popupHeight/2,
 "left" : windowWidth/2 - popupWidth/2
 });
 // fin centrer
 $('.background').css({ "opacity": "0.8"});
 $('.background').fadeIn('slow');
 $('.popup').fadeIn('slow');
 popupProf = 1;
 }
 }
 function fermer_popup_prof() {
 if(popupProf == 1) {
  $('.background').fadeOut('slow');
 $('.popup').fadeOut('slow');
 popupProf = 0;
 }
 }
 // fin popup photo des profs 
// popup plan d'accès
 var popupPlan = 0;
 function ouvrir_popup_plan() {
   $.get('./plan_acces_popup.php', function(data) // pour ne pas voir à attendre
		 {
		 $('.popup_plan').html(data);
		 });
 if(popupPlan == 0) {
 //on centre le popup
 var windowHeight = document.documentElement.clientHeight;
 var windowWidth = document.documentElement.clientWidth;
 var popupHeight = $(".popup_plan").height();
 var popupWidth = $(".popup_plan").width();
 $('.popup_plan').css({
 "position" : "absolute",
 "top" : windowHeight/2 - popupHeight/2,
 "left" : windowWidth/2 - popupWidth/2
 });
 // fin centrer
 $('.background').css({ "opacity": "0.8"});
 $('.background').fadeIn('slow');
 $('.popup_plan').fadeIn('slow');
 popupPlan = 1;
 }
 }
 function fermer_popup_plan() {
 if(popupPlan == 1) {
  $('.background').fadeOut('slow');
 $('.popup_plan').fadeOut('slow');
 popupPlan = 0;
 }
 }
 // fin popup plan d'acces
//]]>
