var curRep = null;
REGEX_ID = /([0-9]+)$/ 
function initFaq(){
	var qsts = document.getElementsByTagName("p");
	for(var i = 0; i < qsts.length; i++){
		if(qsts[i].className == "question"){
			qsts[i].onclick = function(){
				openReponse(this.getAttribute("id"));
			}
		}
	}
	// Remise des questions en display:block
}
function openReponse(idQst){
	var id = idQst.match(REGEX_ID)
	if(id){
		if(curRep){
			Effect.BlindUp(curRep);
		}
		curRep = $("reponse-"+id[1]);
		Effect.BlindDown("reponse-"+id[1]);
	}
}
Event.observe(window, 'load', initFaq, false);


