﻿function file(fichier) {
	if(window.XMLHttpRequest) // FIREFOX
	xhr_object = new XMLHttpRequest();
	else if(window.ActiveXObject) // IE
	xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
	else
	return(false);
	xhr_object.open("GET", fichier, false);
	xhr_object.send(null);
	if(xhr_object.readyState == 4) return(xhr_object.responseText);
	else return(false);
}


 ///////////////////////////////////////////////////////////accueil//////////////////////////////////////////////////

 function montre1()
 {
 document.getElementById("accueil").style.visibility="visible";
 }

 function accueil()
 {
 document.write('<INPUT TYPE="button" CLASS="button" ONMOUSEOVER="this.className=\'inputover\';" ONCLICK="IciMoncodeOuMonAdresseDePage" ONMOUSEOUT="this.className=\'button\';" VALUE="Nouveau..." STYLE="margin-top: 2px;"><HR><INPUT TYPE="button" CLASS="button" VALUE="Ouvrir..." STYLE="margin-top: -2px;" ONMOUSEOVER="this.className=\'inputover\';" ONCLICK="IciMoncodeOuMonAdresseDePage" ONMOUSEOUT="this.className=\'button\';"><INPUT TYPE="button" CLASS="button" VALUE="Sauvegarder..." STYLE="margin-top: 2px;" ONMOUSEOVER="this.className=\'inputover\';" ONCLICK="IciMoncodeOuMonAdresseDePage" ONMOUSEOUT="this.className=\'button\';"><HR><INPUT TYPE="button" CLASS="button" VALUE="Imprimer..." STYLE="margin-bottom: 2px; margin-top: -22px;" ONMOUSEOVER="this.className=\'inputover\';" ONCLICK="IciMoncodeOuMonAdresseDePage" ONMOUSEOUT="this.className=\'button\';">');
 }

 function cache1()
 {
 document.getElementById("accueil").style.visibility="hidden";
 }

 /////////////////////////////////////////////////////////////////presentation/////////////////////////////////////////////////

 function montre2()
 {
 document.getElementById("presentation").style.visibility="visible";
 }

 function present()
 {
 //document.write('<INPUT TYPE="button" CLASS="button" VALUE="Decouvrez les foulees" STYLE="margin-top: 2px;" ONMOUSEOVER="this.className=\'inputover\';" ONCLICK="IciMoncodeOuMonAdresseDePage" ONMOUSEOUT="this.className=\'button\';"><INPUT TYPE="button" CLASS="button" VALUE="Historique des foulées" STYLE="margin-top: 2px;" ONMOUSEOVER="this.className=\'inputover\';" ONCLICK="IciMoncodeOuMonAdresseDePage" ONMOUSEOUT="this.className=\'button\';"><HR><INPUT TYPE="button" CLASS="button" VALUE="le don et la greffe de moelle osseuse" STYLE="margin-top: -2px;" ONMOUSEOVER="this.className=\'inputover\';" ONCLICK="IciMoncodeOuMonAdresseDePage" ONMOUSEOUT="this.className=\'button\';"><INPUT TYPE="button" CLASS="button" VALUE="Béatrice Hoyez, notre marraine d''honneur" STYLE="margin-top: 2px;" ONMOUSEOVER="this.className=\'inputover\';" ONCLICK="IciMoncodeOuMonAdresseDePage" ONMOUSEOUT="this.className=\'button\';"><INPUT TYPE="button" CLASS="button" VALUE="Coller..." STYLE="margin-top: 2px;" ONMOUSEOVER="this.className=\'inputover\';" ONCLICK="IciMoncodeOuMonAdresseDePage" ONMOUSEOUT="this.className=\'button\';"><INPUT TYPE="button" CLASS="button" VALUE="Suprimer..." STYLE="margin-top: 2px;" ONMOUSEOVER="this.className=\'inputover\';" ONCLICK="IciMoncodeOuMonAdresseDePage" ONMOUSEOUT="this.className=\'button\';"><HR><INPUT TYPE="button" CLASS="button" VALUE="Sélectionner tout" STYLE="margin-bottom: 2px; margin-top: -22px" ONMOUSEOVER="this.className=\'inputover\';" ONCLICK="IciMoncodeOuMonAdresseDePage" ONMOUSEOUT="this.className=\'button\';">');
 //document.write('<INPUT TYPE="button" CLASS="button" ONMOUSEOVER="this.className=\'inputover\';" ONCLICK="IciMoncodeOuMonAdresseDePage" ONMOUSEOUT="this.className=\'button\';" VALUE="D&eacute;couvrez les foul&eacute;es" STYLE="margin-top:5px;height:100%"><HR><INPUT TYPE="button" CLASS="button" VALUE="Historique des foul&eacute;es" STYLE="height:100%" ONMOUSEOVER="this.className=\'inputover\';" ONCLICK="IciMoncodeOuMonAdresseDePage" ONMOUSEOUT="this.className=\'button\';"><HR><INPUT TYPE="button" CLASS="button" VALUE="Le don et la greffe de \n moelle osseuse" STYLE="margin-top: 2px;height:29px" ONMOUSEOVER="this.className=\'inputover\';" ONCLICK="IciMoncodeOuMonAdresseDePage" ONMOUSEOUT="this.className=\'button\';"><HR><INPUT TYPE="button" CLASS="button" VALUE="B&eacute;atrice Hoyez, notre\n marraine d\'honneur" STYLE="margin-bottom: 8px; margin-top: 0px;height:29px" ONMOUSEOVER="this.className=\'inputover\';" ONCLICK="IciMoncodeOuMonAdresseDePage" ONMOUSEOUT="this.className=\'button\';">');
 document.write('<a href="../presentation/decouv.php"  CLASS="lien_menu" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';" STYLE="margin-top:5px;height:100%">D&eacute;couvrez les foul&eacute;es</a><HR><a href="../presentation/historique.php" CLASS="lien_menu" STYLE="height:100%" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';">Historique des foul&eacute;es</a><HR><a href="../presentation/don_greffe.php" CLASS="lien_menu" STYLE="margin-top: 2px;height:29px" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';">Le don et la greffe de \n moelle osseuse</a><HR><a href="../presentation/don_soi.php" CLASS="lien_menu" STYLE="margin-bottom: 8px; margin-top: 0px;height:29px" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';">Le don de soi : Solidarit&eacute;, Sport et Sant&eacute;</a>');
 //ONCLICK="document.getElementById(\'contenu\').innerHTML=file(\'./presentation/index.php\')"
 }

 function cache2()
 {
 document.getElementById("presentation").style.visibility="hidden";
 }

 ////////////////////////////////////////////////////////programme///////////////////////////////////////////////

 function montre3()
 {
 document.getElementById("programme").style.visibility="visible";
 }

 function prog()
 {
 
 document.write('<a href="../programme/courses.php" CLASS="lien_menu" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';" style="margin-top:5px;height:100%">Les courses</a><HR><a href="../programme/challenges.php" CLASS="lien_menu" STYLE="height:100%" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';">Les challenges</a><HR><a href="../programme/depart_ arrivee.php" CLASS="lien_menu" STYLE="margin-top:0px;height:100%;margin-bottom:5px" ONMOUSEOVER="this.className=\'inputover\';"  ONMOUSEOUT="this.className=\'lien_menu\';">Espace Départ et Arrivée</a>');
 }

 function cache3()
 {
 document.getElementById("programme").style.visibility="hidden";
 }

 /////////////////////////////////////////////////////////////////nouveautesS/////////////////////////////////////////////////

 function montre4()
 {
 //document.getElementById("nouveautes").style.visibility="visible";
 }

 function nouveau()
 {
  // document.write('<a href="../nouveautes/concours_photo.php" class="lien_menu" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';" STYLE="margin-top:5px;">Le grand concours<br /> photographique</a><HR><a href="../nouveautes/course_eveil.php" CLASS="lien_menu" STYLE="height:100%" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';">La nouvelle course Eveil\n d\'athl&eacute;tisme</a><HR><a href="../nouveautes/maillot_orange.php" CLASS="lien_menu" STYLE="margin-top:0px;height:100%;margin-bottom:5px" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';">Le maillot orange</a>');
 }

 function cache4()
 {
 //document.getElementById("nouveautes").style.visibility="hidden";
 }

 ////////////////////////////////////////////////////////////////inscription/////////////////////////////////////////////////

 function montre5()
 {
 document.getElementById("inscription").style.visibility="visible";
 }

 function insc()
 {
 document.write('<a href="../inscription/formulaire.php" CLASS="lien_menu" STYLE="margin-top:0px;" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';">Inscription individuelle</a><HR>                    <a href="../inscription/formulaire_collectif.php" CLASS="lien_menu" STYLE="margin-top:0px;" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';">Inscription Collective</a><HR>                              <a href="../inscription/reglement.php" CLASS="lien_menu" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';" STYLE="margin-top:5px;height:100%">Le r&eacute;glement</a><HR><a href="../inscription/inscription.php" CLASS="lien_menu" STYLE="height:100%" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';">Comment s\'inscrire</a><HR><a href="../inscription/dossard.php" CLASS="lien_menu" STYLE="margin-top:0px;height:100%;margin-bottom:5px" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';">Comment obtenir\n votre dossard ?</a><HR><a href="../inscription/acces.php" CLASS="lien_menu" STYLE="margin-top:0px;" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';">Acc&eacute;s et Parking</a><HR><a href="../connexion/index.php" CLASS="lien_menu" STYLE="margin-top:0px;" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';">Se connecter</a><br /><br />');
 //document.write('                  <a href="../inscription/reglement.php" CLASS="lien_menu" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';" STYLE="margin-top:5px;height:100%">Le r&eacute;glement</a><HR><a href="../inscription/inscription.php" CLASS="lien_menu" STYLE="height:100%" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';">Comment s\'inscrire</a><HR><a href="../inscription/dossard.php" CLASS="lien_menu" STYLE="margin-top:0px;height:100%;margin-bottom:5px" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';">Comment obtenir\n votre dossard ?</a><HR><a href="../inscription/acces.php" CLASS="lien_menu" STYLE="margin-top:0px;" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';">Acc&eacute;s et Parking</a><br /><br />');
 }

 function cache5()
 {
 document.getElementById("inscription").style.visibility="hidden";
 } 
 
 /////////////////////////////////////////////////////////////////palmares/////////////////////////////////////////////////

 function montre6()
 {
 document.getElementById("palmares").style.visibility="visible";
 }

 function palm()
 {
 document.write('<a href="../palmares/resultats.php" CLASS="lien_menu" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';" STYLE="margin-top:5px;height:100%">R&eacute;sultats des\n courses</a><HR><a href="../palmares/res_challenges.php" CLASS="lien_menu" STYLE="height:100%" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';">R&eacute;sultats des\n challenges</a>');
 }

 function cache6()
 {
 document.getElementById("palmares").style.visibility="hidden";
 }
 
 /////////////////////////////////////////////////////////////////partenaires/////////////////////////////////////////////////

 function montre7()
 {
 document.getElementById("partenaires").style.visibility="visible";
 }

 function parten()
 {
 document.write('<a href="http://www.arcelormittal.com/" target="_BLANK" class="lien_menu" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';" STYLE="margin-top:5px;height:100%">&nbsp;ArcelorMittal\n Atlantique</a><HR><a href="../partenaires/entreprises.php" CLASS="lien_menu" STYLE="height:100%" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';">Les entreprises\n partenaires</a><hr><a href="../partenaires/associations.php" CLASS="lien_menu" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';" STYLE="margin-top:5px;height:100%">Les associations</a><HR><a href="../partenaires/benevoles.php" CLASS="lien_menu" STYLE="height:100%;margin-bottom:5px" ONMOUSEOVER="this.className=\'inputover\';" ONMOUSEOUT="this.className=\'lien_menu\';">Les b&eacute;n&eacute;voles</a>');
 }

 function cache7()
 {
 document.getElementById("partenaires").style.visibility="hidden";
 }
