jQuery.noConflict();

jQuery(document).ready(function(){
	
jQuery('.ok').css('cursor','pointer');
jQuery('.informations').css('display','none');

jQuery(".ok").click(function(){
	jQuery(".informations").dialog({hide: 'blind',show: 'blind',modal: true,width:500,height:400});
})

jQuery('#div_2').hide();
jQuery('#div_3').hide();
jQuery("#informations_noms").text(jQuery(".RecupNext1").text());
jQuery("#titre").val(jQuery(".RecupNext1").text());
jQuery('#sous-nav li').css('cursor','pointer');

jQuery("#selection1").click(function(){
	jQuery("#informations_noms").text(jQuery(".RecupNext1").text());
	//jQuery("#titre").text(jQuery(".RecupNext1").text());
	jQuery('#sous-nav li a').removeClass('on');
	jQuery(".content-stage").hide();
	jQuery("#div_1").fadeIn({ duration: 1000, easing: 'easeInOutSine'});
	jQuery('#selection1').addClass('on');
})	

jQuery("#selection2").click(function(){
	jQuery("#informations_noms").text(jQuery(".RecupNext2").text());
	//jQuery("#titre").text(jQuery(".RecupNext2").text());
	jQuery('#sous-nav li a').removeClass('on');
	jQuery(".content-stage").hide();
	jQuery("#div_2").fadeIn({ duration: 1000, easing: 'easeInOutSine'});
	jQuery('#selection2').addClass('on');
})	

jQuery("#selection3").click(function(){
	jQuery("#informations_noms").text(jQuery(".RecupNext3").text());
	//jQuery("#titre").text(jQuery(".RecupNext3").text());
	jQuery('#sous-nav li a').removeClass('on');
	jQuery(".content-stage").hide();
	jQuery("#div_3").fadeIn({ duration: 1000, easing: 'easeInOutSine'});
	jQuery('#selection3').addClass('on');
})	


jQuery("#envoyer_demande").validate({
   rules: {
      nom: "required",
	  prenom: "required",
	  mail: "required",
	  message: "required"
	  },
   messages: {
   	nom: "<b style='color:red;'>Champ obligatoire</b>",
   	prenom: "<b style='color:red;'>Champ obligatoire</b>",
	mail: "<b style='color:red;'>Champ obligatoire</b>",
   	message: "<b style='color:red;'>Champ obligatoire</b>"
   }
})

})
