/**
 * Navig.js	=> controlleur principal
**/

	var alerte = function(m) {
		if (m=="non") {
			message = "Attention vous n’avez pas les codes pour modifier ce type d’information, rapprochez‐vous de l’interlocuteur salon de votre entreprise";
		};
		var msg = new MavDialog.Alert({ 'force': true, 'title': "Forum Avenir 2011", 'message': message });   
	}
	
	// user / event
	var u;
	var e;
              

	// pour inscription contact sur entreprise existante
	var pre = false;

	var idEntreprise;

	var Verificateur = new Class({
	Implements: [Options, Events],
	options: {  },
	
	initialize: function(_opts) {
		this.setOptions(_opts);
		//this.kelFormulaire = $$('form')
		
		this.kelFormulaire = _opts.getParent().getParent().get('id') ;
		this.listeDesChamps();
	},
              

	/**
	 * Envoi la requete au traitement PHP
	**/
	requete_controlleur: function(data) {		       
		if (pre===true) {                       
			idEntreprise = $('id_enterprise').get('html'); 
			req = new Request({
				url: 'assets/ajax/controlleur.php',
				method:'get',
				data:{
					a:'form',
					f:this.kelFormulaire,
					data:data,
					e:idEntreprise 
				},
				onSuccess: function(retourAjax) {    
					var msg = new MavDialog.Alert({ 
						'force': true, 
						'title': "Forum Avenir 2011 :", 
						'message':" : "+ retourAjax,
						'ok': function(e) {
							window.location="index.php?id=1";
						}
   					});
 				},                                                                             
				onFailure: function(retourAjax) {                                              
					message ="problème => " + retourAjax;                                            
 					var msg = new MavDialog({ 'force': true, 'title': "Forum Avenir 2011 :", 'message':" : "+ message });   
					
				}
        	
			});

   		
		} else {
 
			req = new Request({
				url: 'assets/ajax/controlleur.php',
				method:'get',
				data:{
					a:'form',
					f:this.kelFormulaire,
					data:data 
				},
				onSuccess: function(retourAjax) {    
					var msg = new MavDialog.Alert({ 
						'force': true, 
						'title': "Forum Avenir 2011 :", 
						'message':" : "+ retourAjax,
						'ok': function(e) {
							window.location="index.php?id=1";
						}
   					});
 				},                                                                             
				onFailure: function(retourAjax) {                                              
					message ="problème => " + retourAjax;                                            
 					var msg = new MavDialog({ 'force': true, 'title': "Forum Avenir 2011 :", 'message':" : "+ message });   
					
				}
        	
			});

   		          		
		}   		
		req.send();
	},
 
	 
//						


	/**
	 * Test une chaine de caractères
	**/
	



	/**
	 * Test un nombre
	**/
	












	
	listeDesChamps: function() {
		var liste = [];
		var specialite = "";
		var i = 0;
		var active_specialite = false;
		$$('input').each(function(champ) {
			
			// traitement special pour filiere et specialite
			if (champ.get('name')==="secteur_activite") {
 				if (champ.getParent().hasClass('selected')) {
 					liste.include(['secteur_activite', champ.get('value')]); 		
				};
			} else 
			if (champ.get('name')==="specialite") {
				active_specialite = true;
 				if (champ.getParent().hasClass('checked')) {
					if (i>0) {
						specialite += ", ";
					};
 					specialite += champ.get('value'); 
					i++;		
					
				};
				
			} else {
				liste.include([champ.get('name'), champ.get('value')]);
			}
			
			
			
			
			// test un nombre
			if (champ.hasClass('req-numeric')) {
				
			};
			
			// test une chaine de caractères
			if (champ.hasClass('req-string')) {
				
			};
			
		}); // fin each champ
		if (active_specialite) {
			liste.include(['specialite', specialite]); 		
		};
		this.requete_controlleur(liste)	;
	},
	
	
	
	errorMessage: function(_error) {
		
	}
	
}); // fin class Verificateur




	/**
	 * Affiche les moyen de paiement
	**/
	function AfficheMoyensPaiement() {
 		req = new Request({
			url: 'assets/ajax/moyenPaiement.php',
			method:'get',
			data:{
				a:"moyen"
  			},
			onSuccess: function(retourAjax) {  
				var msg = new MavDialog.Alert({ 'force': true, 
				'title': "Forum Avenir 2011 : Paiement", 
				'okText':"ok",
				'message': retourAjax}); 
			},
 			onFailure: function(retourAjax) {    
				alert(retourAjax);
			}
		});
		req.send();
	};




	/**
	 * Modification information contact principal
	**/
	function ModifInfosPerso(id_user) {
		u = id_user;
 		req = new Request({
			url: 'assets/ajax/modifInfoPerso.php',
			method:'get',
			data:{
				a:"modif_perso",
				u:id_user,
				action:'recup'
 			},
			onSuccess: function(retourAjax) {    
				var msg = new MavDialog.Alert({ 'force': true, 
				'title': "Forum Avenir 2011 : Modification informations personnelles", 
				'okText':"annuler",
				'message': retourAjax}); 
				if ($('modification')!==null) {
					$('modification').getElements('input').each(function(newCheckbox) {
						FancyForm.add(newCheckbox);
					});				
				};
 				
			   //$('bt_valide_modif').addEvent('click', function(e) {
			   //	e.stop();
			   //	if ($('password1').get('value') != $('password2').get('value')) {
			   //	
			   //		var msg = new MavDialog.Alert({ 'force': true, 
			   //		'title': "Forum Avenir 2011 : Modification informations personnelles", 
			   //		'message': "Attentions, les mots de passes ne sont pas identiques" }); 
			   //	} else {
			   //		$('modification_contact').send();
			   //	}
			   //});
			   //
			},                                                                             
			onFailure: function(retourAjax) {    
				alert(retourAjax);
			}
		});
		req.send();
	};

	/**
	 * Validation modif information contact principal
	**/
	function ValidationInfosPerso(id_user) {
		u = id_user;
 		req = new Request({
			url: 'assets/ajax/modifInfoPerso.php',
			method:'get',
			data:{
				a:"modif_perso",
				u:id_user,
				action:'valid'
 			},
			onSuccess: function(retourAjax) {    
				var msg = new MavDialog.Confirm({ 'force': true, 
				'title': "Forum Avenir 2011 : Modification prestation", 
				'message': retourAjax}); 
				if ($('modification')!==null) {
					$('modification').getElements('input').each(function(newCheckbox) {
						FancyForm.add(newCheckbox);
					});				
 				};
			},                                                                             
			onFailure: function(retourAjax) {    
				alert(retourAjax);
			}
		});
		req.send();
	};








	/**
	 * ListePrestationStand	=>  
	**/
	function ListePrestationStand(id_user) {
		u = id_user;
 		req = new Request({
			url: 'assets/ajax/prestationsStand.php',
			method:'get',
			data:{
				a:"presta_stand",
				u:id_user,
				action:'recup'
 			},
			onSuccess: function(retourAjax) {    
				var msg = new MavDialog.Alert({ 'force': true, 
				'title': "Forum Avenir 2011 : Modification prestation", 
				'okText':"annuler",
				'message': retourAjax}); 
				if ($('modification')!==null) {
					$('modification').getElements('input').each(function(newCheckbox) {
						FancyForm.add(newCheckbox);
					});				
 				};
			},                                                                             
			onFailure: function(retourAjax) {    
				alert(retourAjax);
			}
		});
		req.send();
	};



	/**
	 * ValidePrestationStand	=>  
	**/
	function ValidePrestationStand(id_user) {
		u = id_user;
 		req = new Request({
			url: 'assets/ajax/modifInfoPerso.php',
			method:'get',
			data:{
				a:"modif_perso",
				u:id_user,
				action:'valide'
 			},
			onSuccess: function(retourAjax) {    
				var msg = new MavDialog.Confirm({ 'force': true, 
				'title': "Forum Avenir 2011 : Modification prestation", 
				'message': retourAjax}); 
				if ($('modification')!==null) {
					$('modification').getElements('input').each(function(newCheckbox) {
						FancyForm.add(newCheckbox);
					});				
					
				};
			},                                                                             
			onFailure: function(retourAjax) {    
				alert(retourAjax);
			}
		});
		req.send();
	};



	/**
	 *  Modifier participants entreprise	=>  
	**/
	function GestionUtilisateur(id_user) {
		u = id_user;
 		req = new Request({
			url: 'assets/ajax/participantsEntreprise.php',
			method:'get',
			data:{
				a:"gestion_utilisateur",
				u:id_user,
				action:'recup'
 			},
			onSuccess: function(retourAjax) {    
				var msg = new MavDialog.Alert({ 'force': true, 
				'title': "Forum Avenir 2011 : Modification participants", 
				'okText':"annuler",
				'message': retourAjax}); 
				if ($('modification')!==null) {
					$('modification').getElements('input').each(function(newCheckbox) {
						FancyForm.add(newCheckbox);
					});				
 				};
			},                                                                             
			onFailure: function(retourAjax) {    
				alert(retourAjax);
			}
		});
		req.send();
	};




















	/**
	 * Participe	=> inscription temporaire d'un utilisateur à une manifestation
	**/
	function ParticipeEvenement(id_user, id_event) {
		u = id_user;
		e = id_event;
		req = new Request({
			url: 'assets/ajax/participation.php',
			method:'get',
			data:{
				a:"participe",
				u:id_user,
				event:id_event
			},
			onSuccess: function(retourAjax) {          
				if (retourAjax=="dejala") {
 					var msg = new MavDialog.Alert({ 'force': true, 
					'title': "Forum Avenir 2011 : inscription évènement", 
					'message': 'vous êtes déjà inscrit à cet évènement.<br />',
					'okText': "OK" });     
				} else {
 			   		var msg = new MavDialog.Confirm({ 'force': true, 
			   		'title': "Forum Avenir 2011 : inscription évènement", 
			   		'message': retourAjax,
			   		'callback': display_confirm }); 
				} 
			},                                                                             
			onFailure: function(retourAjax) {    
				alert(retourAjax);
			}
		});
		req.send();
	};


	/**
	 * Participe	=> inscription temporaire d'un utilisateur à une manifestation
	**/
	function ValideParticipeEvenement(id_user, id_event) { 
 		req = new Request({
			url: 'assets/ajax/participation.php',
			method:'get',
			data:{
				a:"valide_participe",
				u:id_user,
				event:id_event
 			},
			onSuccess: function(retourAjax) {     
				var msg = new MavDialog.Alert({ 'force': true, 
				'title': "Forum Avenir 2011 : inscription évènement", 
				'message': retourAjax,
				'okText':"OK" }); 
			},                                                                             
			onFailure: function(retourAjax) {    
				alert(retourAjax);
			}
		});
		req.send();
	};

 
	function display_confirm(_confirmed) {
		if (_confirmed) {
			ValideParticipeEvenement(u, e);			
		};
	}










	/**
	 * changeSpecialite	=> à la seléction d'un nouveau secteur d'activité
	**/
	function changeSpecialite() {
		var specialite;
		$$('input').each(function(champ) {
			if (champ.get('name')==="secteur_activite") {
 				if (champ.getParent().hasClass('selected')) {
					specialite = champ.get('value');
				};
			}
		});
		req = new Request({
			url: 'assets/ajax/listeSpecialite.php',
			method:'get',
			data:{
				a:'specialite',
				data:specialite 
			},
			onSuccess: function(retourAjax) {    
   				$('specialite').set('html', retourAjax);
				$('specialite').getElements('input').each(function(newCheckbox) {
					FancyForm.add(newCheckbox);
				});
 
			},                                                                             
			onFailure: function(retourAjax) {                                              
				message ="probleme => " + retourAjax;                                            
 				var msg = new MavDialog({ 'force': true, 'title': "Forum Avenir 2011 :", 'message':" : "+ message });   
				
			}
		});
		req.send();
	};



	/**
	 * filtreSpecialite	=> à la seléction d'un nouveau secteur d'activité
	**/
	function filtreSpecialite(entreprise) {
		var specialite = new Array();
		$$('input').each(function(champ) {
			if (champ.get('name')==="liste_secteur_activite" || champ.get('name')==="liste_secteur_activite_entrep" || champ.get('name')==="liste_secteur_activite_inscription") {
 				if (champ.getParent().hasClass('checked')) {
					specialite.push(champ.get('value'));
 				};
			}
		});      
 		if (entreprise=="entreprise") { 
			
			req = new Request({
				url: 'assets/ajax/filtreFiliere.php',
				method:'get',
				data:{
					a:'filtre',
					l:'entreprise',
					s:specialite 
				},
				onSuccess: function(retourAjax) {    
   					$('listeEtu').set('html', retourAjax);
				},                                                                             
				onFailure: function(retourAjax) {                                              
					message ="probleme => " + retourAjax;                                            
 					var msg = new MavDialog({ 'force': true, 'title': "Forum Avenir 2011 :", 'message':" : "+ message });   
 				}
			});
 			req.send();
				
		} else if (entreprise=="inscription") { 
			
			req = new Request({
				url: 'assets/ajax/filtreFiliere.php',
				method:'get',
				data:{
					a:'filtre',
					l:'inscription',
					s:specialite 
				},
				onSuccess: function(retourAjax) {    
   					$('listeEtu').set('html', retourAjax);
				},                                                                             
				onFailure: function(retourAjax) {                                              
					message ="probleme => " + retourAjax;                                            
 					var msg = new MavDialog({ 'force': true, 'title': "Forum Avenir 2011 :", 'message':" : "+ message });   
 				}
			});
 			req.send();
				
		} else {
			req = new Request({
				url: 'assets/ajax/filtreFiliere.php',
				method:'get',
				data:{
					a:'filtre',
					l:'etudiant',
					s:specialite 
				},
				onSuccess: function(retourAjax) {    
   					$('listeEtu').set('html', retourAjax);
				},                                                                             
				onFailure: function(retourAjax) {                                              
					message ="probleme => " + retourAjax;                                            
 					var msg = new MavDialog({ 'force': true, 'title': "Forum Avenir 2011 :", 'message':" : "+ message });   
 				}
			});
  			req.send();

		} 
		
	};




	var Diaporama = function() {   
		req = new Request({
			url: 'assets/ajax/diaporama.php',
			method:'get',
			data:{
			},
			onSuccess: function(retourAjax) { 
				var slide = '<div id="slide">' + retourAjax + '</div>';   
				$('diaporama').set('html', slide);
				var n = $('slide').getElements('img').length; 
				var monte = true;
				var bouge = function() {    
					var y = $('slide').getStyle('top').toInt();      
 					if (y==-(300*(n-1))) {
						monte = false;
					}
					if (y==0) {
						monte =true;
					};
					if (monte) {
						$('slide').tween('top', (y-300) +'px');
					} else {
						$('slide').tween('top', (y+300) +'px');						
					} 
				};
				bouge.periodical(3000);
			},                                                                             
			onFailure: function(retourAjax) {   
			}
		});
		req.send();        
	}











window.addEvent('domready',function(){
 
	// changement filiere / specialite sur formes inscription et modification
	$$('input').each(function(champ) {
		if (champ.get('name')==="secteur_activite") {
  			champ.addEvent('click', function(e) {
				changeSpecialite(champ.get('value'));
  			});
		}
	});
	
	// filtre changement filiere / specialite sur liste etudiants	
	$$('input').each(function(champ) {
		if (champ.get('name')==="liste_secteur_activite") {
  			champ.addEvent('click', function(e) {
				filtreSpecialite();
  			});
		}
	});
	
	// filtre changement filiere / specialite sur liste entreprise	
	$$('input').each(function(champ) {
		if (champ.get('name')==="liste_secteur_activite_entrep") {
  			champ.addEvent('click', function(e) { 
				filtreSpecialite('entreprise');
  			});
		}
	});   	
	// filtre changement filiere / specialite sur liste entreprise	
	$$('input').each(function(champ) {
		if (champ.get('name')==="liste_secteur_activite_inscription") {
  			champ.addEvent('click', function(e) { 
				filtreSpecialite('inscription');
  			});
		}
	});   

                          
	if ($('bt_valider')!==null) {
		$('bt_valider').addEvent('click', function(e) {
			var verif = new Verificateur($('bt_valider'));
		});
	};
                          


	if ($('bt_valider_inscription_pre')!==null) {
		$('bt_valider_inscription_pre').addEvent('click', function(e) {   
			e.stop();                   
			pre = true;
			var verif = new Verificateur($('bt_valider_inscription_pre'));
		});
	};
                          





	
	// Affichage pannels page d'accueil
    if ($('logo1')!=null) {
		$('logo1').addEvent('mouseover', function(e) {
			$('texte1').setStyle('display', 'block');    
			$('diaporama').hide();
		});                                          
		$('logo1').addEvent('mouseout', function(e) {
			$('texte1').setStyle('display', 'none');    
			$('diaporama').show();                 
		});                                                   
		$('logo2').addEvent('mouseover', function(e) {
			$('texte2').setStyle('display', 'block');      
			$('diaporama').hide();                
		});                                          
		$('logo2').addEvent('mouseout', function(e) {
			$('texte2').setStyle('display', 'none');    
			$('diaporama').show();              
		});                                                   
		$('logo3').addEvent('mouseover', function(e) {
			$('texte3').setStyle('display', 'block');     
			$('diaporama').hide();                
		});                                          
		$('logo3').addEvent('mouseout', function(e) {
			$('texte3').setStyle('display', 'none');     
			$('diaporama').show();              
		}); 
	}          




	// pour page accueil entreprise
	if ($('bt_modifier_fiche_entreprise')!==null) {
		$('bt_modifier_fiche_entreprise').addEvent('click', function(e) {
			window.location = "modification-fiche-entreprise.html";
		})
	};


	if ($('bt_modifier_presta')!==null) {
		if (!$('bt_modifier_presta').hasClass('OFF')) {
	   		$('bt_modifier_presta').addEvent('click', function(e) {
				var id_user = $('bt_modifier_presta').get('value');
				ListePrestationStand(id_user);		
	   		});			
		};
 
	};




	if ($('bt_voir_agenda_entreprise')!==null) {
		$('bt_voir_agenda_entreprise').addEvent('click', function(e) {
			window.location = "agenda-entreprise.html";
		})
	};


	if ($('bt_participer')!==null) {
		$('bt_participer').addEvent('click', function(e) {
			window.location = "liste-des-prestations.html";
 
		})
	};


	// page participer aux prestations
	$$('button.bt_prestation').each(function(bt) {
		bt.addEvent('click', function(e) {
			var id_user = bt.getElement('span.id_user').get('html');
			var id_event = bt.get('value');
			ParticipeEvenement(id_user, id_event);
 		});
	});


	if ($('bt_modifier_fichePerso')!==null) {
		$('bt_modifier_fichePerso').addEvent('click', function(bt) {
 			var id_user = $('bt_modifier_fichePerso').get('value');
			ModifInfosPerso(id_user);
		});
	};

	if ($('bt_modifier_utilisateurs')!==null) {
		$('bt_modifier_utilisateurs').addEvent('click', function(bt) {
				var id_user = $('bt_modifier_utilisateurs').get('value');

			GestionUtilisateur(id_user);

		});
	};



	// Gestion de la couleur générale de page en fonction de la filière
	var classesPage = $('page').get('class').split(' '); 


	// logo Header => retour accueil
	$$('img.logo').each(function(logo) {
		logo.addEvent('click', function(e) {
			window.location = "accueil.html";
		});
	});



	if ($('bt_voir_accueil_etudiant')!==null) {
		$('bt_voir_accueil_etudiant').addEvent('click', function(e) {   
			e.stop();
 			window.location = "accueil-etudiant.html";
		});
	};



		
	// Bouton retour liste entreprises
	if ($('bt_retour_liste_entreprises')!==null) {
		$('bt_retour_liste_entreprises').addEvent('click', function(e) {
			window.location = 'liste-des-entreprises.html';
		});
	};	
		
	// Bouton retour liste etudiants
	if ($('bt_retour_liste_etudiants')!==null) {
		$('bt_retour_liste_etudiants').addEvent('click', function(e) {
			window.location = 'cvtheque.html';
		});
	};	
		
		

		
	// Bouton retour liste entreprises
	if ($('bt_retour_liste_entreprises')!==null) {
		$('bt_retour_liste_entreprises').addEvent('click', function(e) {
			window.location = 'liste-des-entreprises.html';
		});
	};			
	// Bouton retour modification étudiant
	if ($('bt_retour_modification_etudiant')!==null) {
		$('bt_retour_modification_etudiant').addEvent('click', function(e) {
			window.location = 'accueil-etudiant.html';
		});
	};
	
	// Bouton ajouter experience étudiant
	if ($('bt_ajouter_experience')!==null) {
		$('bt_ajouter_experience').addEvent('click', function(e) {
			window.location = 'modification-experiences-etudiant.html';
		});
	};

	// pour page accueil etudiant
	if ($('bt_modifier_fiche_etudiant')!==null) {
		$('bt_modifier_fiche_etudiant').addEvent('click', function(e) {
			window.location = "modification-fiche-etudiant.html";
		})
	};




	// Bouton retour modification entreprise
	if ($('bt_retour_modification_entreprise')!==null) {
		$('bt_retour_modification_entreprise').addEvent('click', function(e) {
			window.location = 'accueil-entreprise.html';
		});
	};
                
	if ($('bt_voir_agenda_etu')!==null) {
		$('bt_voir_agenda_etu').addEvent('click', function(e) {
			window.location = "agenda-etudiant.html";
		});
	};
                  
	if ($('bt_retour_inscription_pre')!==null) {
		$('bt_retour_inscription_pre').addEvent('click', function(e) {
			window.location = "inscription-entreprise-pre.html";
		});
	};
                             
	if ($('bt_retour_accueil')!==null) {
		$('bt_retour_accueil').addEvent('click', function(e) {
			window.location = "accueil.html";
		});
	};                       
	if ($('bt_creer_entreprise')!==null) {
		$('bt_creer_entreprise').addEvent('click', function(e) {
			window.location = "inscription-entreprise.html";
		});
	};               
	
	
	
	            
	if ($('bt_reglement')!==null) {
		$('bt_reglement').addEvent('click', function(e) {
			AfficheMoyensPaiement();
		});
	};               
	
	
	             
                 

             
	if ($('bt_recap_entreprise')!==null) {
		$('bt_recap_entreprise').addEvent('click', function(e) { 
			window.location = "recapitulatif-entreprise.html";
		});
	};                            
                                        
	// verouillage inscription etudiant
  //  if ($('diplome')!==null) {
  //  	$('diplome').addEvent('click', function(e) {
  //  		e.stop();
  //  		var retourAjax = '<p>Si vous n’êtes plus étudiant de l’Université de Limoges, veuillez contacter la plate-forme premier emploi du Carrefour des étudiants pour procéder à la création de votre compte au 05 55 14 92 70 </p>';
  //  		var msg = new MavDialog.Alert({ 'force': true, 'title': "Information :", 'message':retourAjax, okText:"OK" });   
  //  	});		
  //  };
	                            
            

	if ($('bonjour')!==null) {
		$('bonjour').addEvent('click', function(e) {
 			window.location = "accueil.html?webloginmode=lo";
		});
	};
     
	if ($('zoneLogout')!==null) {
		$('zoneOrganisateurs').setStyle('margin-top', '60px');
	};
     

     $$('li.navG').each(function(nav) {
		nav.addEvent('click', function(e) {           
			e.stop();
			var url = nav.getElement('a').get('href');
			var cible = nav.getElement('a').get('target');
			if (cible=="_blank") {
				window.open(url);
			} else {
				window.location = url;
			}
		});
	});
 

	if (Browser.Engine.trident) { 
		if (!Cookie.read('carrefour-ie') ) {                                           
			var messageExplorer = "Nous vous invitons pour une utilisation optimale du site à vous connecter avec un navigateur autre que Internet Explorer. (Firefox, Chrome, Opéra, safari)";
			var msg = new MavDialog.Alert({ 'force': true, 'title': "Information :", 'message':messageExplorer, okText:"OK" });   
			var IEcookie = Cookie.write('carrefour-ie', 'dejavu');		
		};
		
	};       
	




	$$('.inscrire').addEvent('click', function(e) {
		e.stop();
		var message = "Les inscriptions sont maintenant terminées pour le Forum-avenir 2011.";
		var msg = new MavDialog.Alert({ 'force': true, 'title': "Information :", 'message':message, okText:"OK" });   
		
	})


	if ($('bt_rdv')!==null) {
		$('bt_rdv').addEvent('click', function(e) {
			e.stop();
			var message = '<p>Les prises de rendez-vous sont maintenant terminées pour le Forum-avenir 2011.<br /><a href="contact.html" title="aller sur la page contact">cliquez sur ce lien pour nous contacter </a></p>';
			var msg = new MavDialog.Alert({ 'force': true, 'title': "Information :", 'message':message, okText:"OK" });  
			
		});
	};





	
	
	/**
	 * Diaporama Accueil
	**/
	if ($('diaporama')!==null) {
		Diaporama();
	};
	 
	
	var messageFin = '<p>Nous remercions l\'ensemble des entreprises et organismes participants à l\'édition 2011 de Forum Avenir.<br /> Nous vous donnons rendez-vous pour la 5e édition qui se tiendra fin septembre 2012 à l\'ENSCI. <br /> Pour plus d\'informations, vous pouvez écrire à : <a href="mailto:&#x63;&#x6F;&#x6E;&#x74;&#x61;&#x63;&#x74;&#x40;&#x66;&#x6F;&#x72;&#x75;&#x6D;&#x61;&#x76;&#x65;&#x6E;&#x69;&#x72;&#x2E;&#x66;&#x72;">contact@forumavenir.fr</a><br />&nbsp;<br /> Le comité d\'organisation</p> ';
	var msg = new MavDialog.Alert({ 'force': true, 'width':750, 'title': "<b>Forum Avenir 2011</b>", 'message':messageFin, okText:"OK",'ok': function() { window.close(self); } });   

});
