function Sous_Menu(which){
	document.getElementById('SousMenu_Association').style.display = 'none';
	document.getElementById('SousMenu_Jeunes_Parents').style.display = 'none';
	document.getElementById('SousMenu_Partenaires').style.display = 'none';
	document.getElementById('SousMenu_'+which).style.display = 'block';
}

function Sous_Menu_Out(){
		//document.getElementById('SousMenu_Association').style.display = 'none';
		//document.getElementById('SousMenu_Jeunes_Parents').style.display = 'none';
		//document.getElementById('SousMenu_Partenaires').style.display = 'none';
}

function favoris() {
	if( navigator.appName != 'Microsoft Internet Explorer' ){ 
		window.sidebar.addPanel("l'AJI44, Animation Jeunes Intercommunales","http://www.aji44.com",""); 
	}else{ 
		window.external.AddFavorite("http://www.aji44.com","l'AJI44, Animation Jeunes Intercommunales"); 
	} 
}

<!--
function MM_validateForm() { //v4.0
  if (document.getElementById){
    var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
    for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]);
      if (val) { if(args[i+1]==""){ nm=val.name; }else{ nm=args[i+1]; } if ((val=val.value)!="") {
        if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
          if (p<1 || p==(val.length-1)) errors+='- Le champ de saisie doit contenir une adresse e-m@il.\n';
        } else if (test!='R') { num = parseFloat(val);
          if (isNaN(val)) errors+='- '+nm+' doit contenir un nombre.\n';
          if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
            min=test.substring(8,p); max=test.substring(p+1);
            if (num<min || max<num) errors+='- '+nm+' doit contenir un nombre entre '+min+' et '+max+'.\n';
      } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' est obligatoire.\n'; }
    } if (errors) alert('Les erreurs suivantes se sont produites : \n'+errors);
    document.MM_returnValue = (errors == '');
} }
//-->

function AJI_Les_Clubs(rubrique){
	document.getElementById('Les_Clubs').style.textDecoration = 'none';
	document.getElementById('Souvenirs').style.textDecoration = 'none';
	document.getElementById(rubrique).style.textDecoration = 'underline';
}

function AJI_Temps_Forts(page,rubrique){
	document.getElementById('Prochainement').style.textDecoration = 'none';
	document.getElementById('Souviens_Toi').style.textDecoration = 'none';
	document.getElementById(rubrique).style.textDecoration = 'underline';
	//AJI_Ajax(page,rubrique);
	AJI_TF(page,rubrique);
	//$.get("AJI_Ajax.php",{page:"Temps_Forts",rubrique:rubrique}, function(data){
	  //alert("Data Loaded: " + data);
		//document.getElementById('Div_Ajax').innerHTML = data;
	//});
	
}

function AJI_TF(page,rubrique){ // Fonction Ajax permettant de charger Google_Map associé à un article
			$url="AJI_Ajax.php?page="+page+"&rubrique="+rubrique;	
			var req  = null;
			//Créer une instance de XMLHttpRequest, l'objet "req" selon le navigateur
			if(window.XMLHttpRequest){
				req = new XMLHttpRequest(); 
			}else if (window.ActiveXObject){
				req  = new ActiveXObject("Microsoft.XMLHTTP");
			}
			
			//Gestion des erreurs.
			req.onreadystatechange = function(){ 
				if(req.readyState == 4){
						if(req.status == 200){
							//Incrementation des Informations.
							document.getElementById('Div_Ajax').innerHTML = req.responseText;	
							//alert('okkk');
							setTimeout('TEST2();',1000);
						}else{
							//Incrementation des Informations.
							document.getElementById('Div_Ajax').innerHTML = "Erreur: " + req.status + " " + req.statusText;
						}
				}
			}

			//Execution du Script Distant.
			//$url = $url + "&_librairie_root=<?php echo $_librairie_root; ?>" + "¤tlang=<?php echo $currentlang; ?>";
			req.open("GET", $url, true); 
			req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); 
			req.send(null);
		}
		
function AJI_Projets_Jeunes(page,rubrique){
	document.getElementById('A_Venir').style.textDecoration = 'none';
	document.getElementById('Ca_S_Est_Passe').style.textDecoration = 'none';
	document.getElementById(rubrique).style.textDecoration = 'underline';
	AJI_Ajax(page,rubrique);
}

function AJI_Sejours(page,rubrique){
	document.getElementById('Les_Sejours').style.textDecoration = 'none';
	document.getElementById('Souvenirs').style.textDecoration = 'none';
	document.getElementById(rubrique).style.textDecoration = 'underline';
	AJI_Ajax(page,rubrique);
}

function AJI_College_Lycee(page,rubrique){
	document.getElementById('Le_Projet').style.textDecoration = 'none';
	document.getElementById('Les_Actions').style.textDecoration = 'none';
	document.getElementById(rubrique).style.textDecoration = 'underline';
	AJI_Ajax(page,rubrique);
}

function AJI_Ajax(page,rubrique){
		$url="AJI_Ajax.php?page="+page+"&rubrique="+rubrique;	
		divId = 'Div_Ajax'; // ID of Div which will recover the result.
		url = $url; // 'HTML file to be called' ext *.php, *.inc, ...
		loader = '<p>loading</p>'; // 'html for loading' or false
		effect = 'appear'; // 'appear' , 'blind' , 'highlight' or false
		ecache = false; //cache for html file true or false
		$ajaxload(divId, url, loader, effect, ecache);
		TEST2();
}

function AJI_GM_OLD(page,rubrique){
		$url="AJI_GM.php?page="+page+"&rubrique="+rubrique;	
		divId = 'Div_GM'; // ID of Div which will recover the result.
		url = $url; // 'HTML file to be called' ext *.php, *.inc, ...
		loader = '<p>loading</p>'; // 'html for loading' or false
		effect = 'appear'; // 'appear' , 'blind' , 'highlight' or false
		ecache = false; //cache for html file true or false
		$ajaxload(divId, url, loader, effect, ecache);
}

function AJI_Calendar(date1,date2){
		$url="Calendar_Ajax.php?date1="+date1+"&date2="+date2;	
		divId = 'Div_Ajax_Calendar'; // ID of Div which will recover the result.
		url = $url; // 'HTML file to be called' ext *.php, *.inc, ...
		loader = '<p>loading</p>'; // 'html for loading' or false
		effect = 'appear'; // 'appear' , 'blind' , 'highlight' or false
		ecache = false; //cache for html file true or false
		$ajaxload(divId, url, loader, effect, ecache);
}

function TEST2(){
	$("#Div_GM").dialog({width:550,draggable:false,resizable:false,autoOpen:false,modal:true,overlay:{opacity:0.5,background:"black"}});
	$('.GM').click(function() {
		document.getElementById('Div_GM').innerHTML = '';
		AJI_GM(this.id);
		$("#Div_GM").dialog("open");		
	});
}

function AJI_GM(id){ // Fonction Ajax permettant de charger Google_Map associé à un article
			$url = "AJI_GM.php?article_id="+id;
			var req  = null;
			//Créer une instance de XMLHttpRequest, l'objet "req" selon le navigateur
			if(window.XMLHttpRequest){
				req = new XMLHttpRequest(); 
			}else if (window.ActiveXObject){
				req  = new ActiveXObject("Microsoft.XMLHTTP");
			}
			
			//Gestion des erreurs.
			req.onreadystatechange = function(){ 
				if(req.readyState == 4){
						if(req.status == 200){
							//Incrementation des Informations.
							document.getElementById('Div_GM').innerHTML = req.responseText;	
						}else{
							//Incrementation des Informations.
							document.getElementById('Div_GM').innerHTML = "Erreur: " + req.status + " " + req.statusText;
						}
				}
			}

			//Execution du Script Distant.
			//$url = $url + "&_librairie_root=<?php echo $_librairie_root; ?>" + "¤tlang=<?php echo $currentlang; ?>";
			req.open("GET", $url, true); 
			req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); 
			req.send(null);
		}
