/* * Affichage d'un contenu suivant *  * @copyright	egzakt.com * * @version 	2007/06/05 * @package		EDU-083 * @author 		Emilie */function bloc_deroulant(objet) {	objet.next().slideToggle("normal");	objet.toggleClass("selected");	objet.parent().toggleClass("bloc_deroulant_selected");	return false;}$(function() {	$(".zone_deroulante").hide();		$("a.lien_deroulant").click(		function(){			return bloc_deroulant($(this));		}	);		if (window.location.hash != "") {		var bloc_nom = window.location.hash;		bloc_nom = bloc_nom.substr(1,bloc_nom.length-1);				var bloc = $("#"+bloc_nom);		bloc_deroulant(bloc.children("a"));	};		$("#sous_navig ul a").click(function(){			var bloc_nom = $(this).attr("rel");		var bloc = $("#"+bloc_nom);		bloc_deroulant(bloc.children("a"));			});});/* * Autoriser seulement des chiffres *  * @copyright	egzakt.com * @version 	2008/10/28 * @author 		Emilie */function champ_numerique(e) {	// 48 à 58 = 0 à 9	// 96 à 105 = 0 à 9 du numpad	// 8 = backspace	// 9 = tab	// 37 = fleche gauche	// 39 = fleche droite	// 46 = delete		key = e.which ? e.which : e.keyCode			if (!(((key >= 48) && (key <= 58)) || ((key >= 96) && (key <= 105)) || (key == 8) || (key == 9) || (key == 37) || (key == 39) || (key == 46))) {		return false;	}}/* Ajouter les paramètres de la recherche dans l'url * * @version 	2007/12/11 * @package		JBM-001 * @author 		Emilie */function calendrier_recherche(formulaire) {	action_originale = formulaire.attr("action");		if ($("#date").val() == "tous") {				$("#date :selected").val("tous/tous");	}			action = "/" + $("#date").val() + "/" + $("#categorie_code").val();		formulaire.attr("action",action_originale + action);		return true;}