// Ajout
function presidente()
{ 
	loading();
    var xhr; 
    try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    catch (e) 
    {
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
        {
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
        }
     } 
    xhr.onreadystatechange  = function()
    { 		
         if(xhr.readyState  == 4)
         {
              if(xhr.status  == 200) 
			  {
                 document.getElementById("content").innerHTML = xhr.responseText;	
				 unloading();
			  }
              else 
                document.getElementById("content").innerHTML = "Error:" + 	xhr.status;
         }		
    }; 
	//if (page=="") { page=1 }
   xhr.open("GET", "presidente.php",  true); 
   xhr.send(null); 
}

function capenvironnement()
{ 
	loading();
    var xhr; 
    try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    catch (e) 
    {
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
        {
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
        }
     } 
    xhr.onreadystatechange  = function()
    { 		
         if(xhr.readyState  == 4)
         {
              if(xhr.status  == 200) 
			  {
                 document.getElementById("content").innerHTML = xhr.responseText;	
				 unloading();
			  }
              else 
                document.getElementById("content").innerHTML = "Error:" + 	xhr.status;
         }		
    }; 
	//if (page=="") { page=1 }
   xhr.open("GET", "wait.php",  true); 
   xhr.send(null); 
}

function ecolejardin()
{ 
	loading();
    var xhr; 
    try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    catch (e) 
    {
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
        {
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
        }
     } 
    xhr.onreadystatechange  = function()
    { 		
         if(xhr.readyState  == 4)
         {
              if(xhr.status  == 200) 
			  {
                 document.getElementById("content").innerHTML = xhr.responseText;	
				 unloading();
			  }
              else 
                document.getElementById("content").innerHTML = "Error:" + 	xhr.status;
         }		
    }; 
	//if (page=="") { page=1 }
   xhr.open("GET", "wait.php",  true); 
   xhr.send(null); 
}

function enfantarbre()
{ 
	loading();
    var xhr; 
    try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    catch (e) 
    {
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
        {
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
        }
     } 
    xhr.onreadystatechange  = function()
    { 		
         if(xhr.readyState  == 4)
         {
              if(xhr.status  == 200) 
			  {
                 document.getElementById("content").innerHTML = xhr.responseText;	
				 unloading();
			  }
              else 
                document.getElementById("content").innerHTML = "Error:" + 	xhr.status;
         }		
    }; 
	//if (page=="") { page=1 }
   xhr.open("GET", "wait.php",  true); 
   xhr.send(null); 
}

function mangrove()
{ 
	loading();
    var xhr; 
    try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    catch (e) 
    {
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
        {
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
        }
     } 
    xhr.onreadystatechange  = function()
    { 		
         if(xhr.readyState  == 4)
         {
              if(xhr.status  == 200) 
			  {
                 document.getElementById("content").innerHTML = xhr.responseText;	
				 unloading();
			  }
              else 
                document.getElementById("content").innerHTML = "Error:" + 	xhr.status;
         }		
    }; 
	//if (page=="") { page=1 }
   xhr.open("GET", "wait.php",  true); 
   xhr.send(null); 
}

function chantierfemme()
{ 
	loading();
    var xhr; 
    try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    catch (e) 
    {
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
        {
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
        }
     } 
    xhr.onreadystatechange  = function()
    { 		
         if(xhr.readyState  == 4)
         {
              if(xhr.status  == 200) 
			  {
                 document.getElementById("content").innerHTML = xhr.responseText;	
				 unloading();
			  }
              else 
                document.getElementById("content").innerHTML = "Error:" + 	xhr.status;
         }		
    }; 
	//if (page=="") { page=1 }
   xhr.open("GET", "wait.php",  true); 
   xhr.send(null); 
}

function morneblanc()
{ 
	loading();
    var xhr; 
    try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    catch (e) 
    {
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
        {
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
        }
     } 
    xhr.onreadystatechange  = function()
    { 		
         if(xhr.readyState  == 4)
         {
              if(xhr.status  == 200) 
			  {
                 document.getElementById("content").innerHTML = xhr.responseText;	
				 unloading();
			  }
              else 
                document.getElementById("content").innerHTML = "Error:" + 	xhr.status;
         }		
    }; 
	//if (page=="") { page=1 }
   xhr.open("GET", "wait.php",  true); 
   xhr.send(null); 
}
// JavaScript Document
function tortues(page)
{ 
	loading();
    var xhr; 
    try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    catch (e) 
    {
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
        {
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
        }
     } 
    xhr.onreadystatechange  = function()
    { 		
         if(xhr.readyState  == 4)
         {
              if(xhr.status  == 200) 
			  {
                 document.getElementById("content").innerHTML = xhr.responseText;	
				 unloading();
			  }
              else 
                document.getElementById("content").innerHTML = "Error:" + 	xhr.status;
         }		
    }; 
	//if (page=="") { page=1 }
   xhr.open("GET", "act_tortues"+page+".php",  true); 
   xhr.send(null); 
}

function jafa(page)
{ 
	loading();
    var xhr; 
    try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    catch (e) 
    {
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
        {
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
        }
     } 
    xhr.onreadystatechange  = function()
    { 		
         if(xhr.readyState  == 4)
         {
              if(xhr.status  == 200) 
			  {
                 document.getElementById("content").innerHTML = xhr.responseText;	
				 unloading();
			  }
              else 
                document.getElementById("content").innerHTML = "Error:" + 	xhr.status;
         }		
    }; 
	//if (page=="") { page=1 }
   xhr.open("GET", "act_jafa"+page+".php",  true); 
   xhr.send(null); 
}

function ecomarin(page)
{ 
	loading();
    var xhr; 
    try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    catch (e) 
    {
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
        {
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
        }
     } 
    xhr.onreadystatechange  = function()
    { 		
         if(xhr.readyState  == 4)
         {
              if(xhr.status  == 200) 
			  {
                 document.getElementById("content").innerHTML = xhr.responseText;	
				 unloading();
			  }
              else 
                document.getElementById("content").innerHTML = "Error:" + 	xhr.status;
         }		
    }; 
	//if (page=="") { page=1 }
   xhr.open("GET", "act_Ecomarin"+page+".php",  true); 
   xhr.send(null); 
}

function videos()
{ 
	loading();
    var xhr; 
    try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    catch (e) 
    {
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
        {
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
        }
     } 
    xhr.onreadystatechange  = function()
    { 		
         if(xhr.readyState  == 4)
         {
              if(xhr.status  == 200) 
			  {
                 document.getElementById("content").innerHTML = xhr.responseText;	
				 unloading();
			  }
              else 
                document.getElementById("content").innerHTML = "Error:" + 	xhr.status;
         }		
    }; 
	//if (page=="") { page=1 }
   xhr.open("GET", "act_videos.php",  true); 
   xhr.send(null); 
}

function ecojournees(page)
{ 
	loading();
    var xhr; 
    try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    catch (e) 
    {
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
        {
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
        }
     } 
    xhr.onreadystatechange  = function()
    { 		
         if(xhr.readyState  == 4)
         {
              if(xhr.status  == 200) 
			  {
                 document.getElementById("content").innerHTML = xhr.responseText;	
				 unloading();
			  }
              else 
                document.getElementById("content").innerHTML = "Error:" + 	xhr.status;
         }		
    }; 
	//if (page=="") { page=1 }
   xhr.open("GET", "act_Ecojournees"+page+".php",  true); 
   xhr.send(null); 
}

function accueil()
{ 
	loading();
    var xhr; 
    try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    catch (e) 
    {
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
        {
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
        }
     } 
    xhr.onreadystatechange  = function()
    { 		
         if(xhr.readyState  == 4)
         {
              if(xhr.status  == 200) 
			  {
                 document.getElementById("content").innerHTML = xhr.responseText;	
				 unloading();
			  }
              else 
                document.getElementById("content").innerHTML = "Error:" + 	xhr.status;
         }		
    }; 
   xhr.open("GET", "accueil.php",  true); 
   xhr.send(null); 
}

function membres()
{ 
	loading();
    var xhr; 
    try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    catch (e) 
    {
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
        {
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
        }
     } 
    xhr.onreadystatechange  = function()
    { 		
         if(xhr.readyState  == 4)
         {
              if(xhr.status  == 200) 
			  {
                 document.getElementById("content").innerHTML = xhr.responseText;	
				 unloading();
			  }
              else 
                document.getElementById("content").innerHTML = "Error:" + 	xhr.status;
         }		
    }; 
   xhr.open("GET", "membres.php",  true); 
   xhr.send(null); 
}

function objet()
{ 
	loading();
    var xhr; 
    try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    catch (e) 
    {
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
        {
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
        }
     } 
    xhr.onreadystatechange  = function()
    { 		
         if(xhr.readyState  == 4)
         {
              if(xhr.status  == 200) 
			  {
                 document.getElementById("content").innerHTML = xhr.responseText;	
				 unloading();
			  }
              else 
                document.getElementById("content").innerHTML = "Error:" + 	xhr.status;
         }		
    }; 
   xhr.open("GET", "objet.php",  true); 
   xhr.send(null); 
}

function partenaires()
{ 
	loading();
    var xhr; 
    try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    catch (e) 
    {
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
        {
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
        }
     } 
    xhr.onreadystatechange  = function()
    { 		
         if(xhr.readyState  == 4)
         {
              if(xhr.status  == 200) 
			  {
                 document.getElementById("content").innerHTML = xhr.responseText;	
				 unloading();
			  }
              else 
                document.getElementById("content").innerHTML = "Error:" + 	xhr.status;
         }		
    }; 
   xhr.open("GET", "partenaires.php",  true); 
   xhr.send(null); 
}

function soutenir()
{ 
	loading();
    var xhr; 
    try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    catch (e) 
    {
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
        {
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
        }
     } 
    xhr.onreadystatechange  = function()
    { 		
         if(xhr.readyState  == 4)
         {
              if(xhr.status  == 200) 
			  {
                 document.getElementById("content").innerHTML = xhr.responseText;	
				 unloading();
			  }
              else 
                document.getElementById("content").innerHTML = "Error:" + 	xhr.status;
         }		
    }; 
   xhr.open("GET", "soutenir.php",  true); 
   xhr.send(null); 
}

function associations()
{ 
	loading();
    var xhr; 
    try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    catch (e) 
    {
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
        {
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
        }
     } 
    xhr.onreadystatechange  = function()
    { 		
         if(xhr.readyState  == 4)
         {
              if(xhr.status  == 200) 
			  {
                 document.getElementById("content").innerHTML = xhr.responseText;	
				 unloading();
			  }
              else 
                document.getElementById("content").innerHTML = "Error:" + 	xhr.status;
         }		
    }; 
   xhr.open("GET", "associations.php",  true); 
   xhr.send(null); 
}

function associations2()
{ 
	loading2();
    var xhr; 
    try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    catch (e) 
    {
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
        {
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
        }
     } 
    xhr.onreadystatechange  = function()
    { 		
         if(xhr.readyState  == 4)
         {
              if(xhr.status  == 200) 
			  {
                 document.getElementById("content2").innerHTML = xhr.responseText;	
				 unloading2();
			  }
              else 
                document.getElementById("content2").innerHTML = "Error:" + 	xhr.status;
         }		
    }; 
   xhr.open("POST", "associations2.php",  true); 
   xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
   xhr.send("ville="+document.getElementById("ville").value+"&pays="+document.getElementById("pays").value+"&zone="+document.getElementById("zone").value); 
}

function contact()
{ 
	loading();
    var xhr; 
    try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    catch (e) 
    {
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
        {
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
        }
     } 
    xhr.onreadystatechange  = function()
    { 		
         if(xhr.readyState  == 4)
         {
              if(xhr.status  == 200) 
			  {
                 document.getElementById("content").innerHTML = xhr.responseText;	
				 unloading();
			  }
              else 
                document.getElementById("content").innerHTML = "Error:" + 	xhr.status;
         }		
    }; 
   xhr.open("GET", "contact.php",  true); 
   xhr.send(null); 
}

function contact2()
{ 
	loading2();
    var xhr; 
    try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    catch (e) 
    {
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
        {
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
        }
     } 
    xhr.onreadystatechange  = function()
    { 		
         if(xhr.readyState  == 4)
         {
              if(xhr.status  == 200) 
			  {
                 document.getElementById("content").innerHTML = xhr.responseText;	
				 unloading2();
			  }
              else 
                document.getElementById("content").innerHTML = "Error:" + 	xhr.status;
         }		
    }; 
   xhr.open("POST", "contact.php",  true); 
   xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
   xhr.send("action="+document.getElementById("action").value+"&nom="+document.getElementById("nom").value+"&gsm="+document.getElementById("gsm").value+"&email="+document.getElementById("email").value+"&message="+document.getElementById("message").value+"&ville="+document.getElementById("ville").value+"&pays="+document.getElementById("pays").value); 
}

function contact3()
{ 
	loading();
    var xhr; 
    try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   }
    catch (e) 
    {
        try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
        catch (e2) 
        {
          try {  xhr = new XMLHttpRequest();     }
          catch (e3) {  xhr = false;   }
        }
     } 
    xhr.onreadystatechange  = function()
    { 		
         if(xhr.readyState  == 4)
         {
              if(xhr.status  == 200) 
			  {
                 document.getElementById("content").innerHTML = xhr.responseText;	
				 unloading();
			  }
              else 
                document.getElementById("content").innerHTML = "Error:" + 	xhr.status;
         }		
    }; 
   xhr.open("POST", "associations.php",  true); 
   xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
   xhr.send("action="+document.getElementById("action").value+"&raisoc="+document.getElementById("raisoc").value+"&ad1="+document.getElementById("ad1").value+"&ad2="+document.getElementById("ad2").value+"&cp="+document.getElementById("cp").value+"&ville1="+document.getElementById("ville1").value+"&pays1="+document.getElementById("pays1").value+"&tel="+document.getElementById("tel").value+"&fax="+document.getElementById("fax").value+"&email="+document.getElementById("email").value+"&siteweb="+document.getElementById("siteweb").value+"&n1="+document.getElementById("n1").value+"&f1="+document.getElementById("f1").value+"&g1="+document.getElementById("g1").value+"&e1="+document.getElementById("e1").value+"&n2="+document.getElementById("n2").value+"&f2="+document.getElementById("f2").value+"&g2="+document.getElementById("g2").value+"&e2="+document.getElementById("e2").value+"&n3="+document.getElementById("n3").value+"&f3="+document.getElementById("f3").value+"&g3="+document.getElementById("g3").value+"&e3="+document.getElementById("e3").value); 
}

function loading()
{
	document.getElementById("loading").style.display="block";
	document.getElementById("content").style.display="none";
}

function unloading()
{
	document.getElementById("loading").style.display="none";
	document.getElementById("content").style.display="block";
}

function loading2()
{
	document.getElementById("loading2").style.display="block";
	document.getElementById("content2").style.display="none";
}

function unloading2()
{
	document.getElementById("loading2").style.display="none";
	document.getElementById("content2").style.display="block";
}
