
var opened=false;$(document).ready(function(){formatSection();$("#faq .sous-section .questions").each(function(b){$(this).find("li").filter(".questions > li").eq(0).css("border-top","solid 0px black");$(this).find("li:last-child").css("border-bottom","solid 0px black")});$("#faq .cadreInterieur .questions").each(function(b){$(this).find("li:last-child").css("border-bottom","solid 0px black")});$(".question").click(function(){$(this).next().toggle()})});function formatSection(){$("#faq .sous-section li .reponse").hide();$("#faq .sous-section ol li:first-child .reponse").show();$("#faq .section-contenu .sous-section").each(function(b){closeFaqSection($(this),false)});$("#faq .sous-section:first-child").each(function(b){openFaqSection($(this),false)});$(".entete-ferme").click(function(){if(opened==false){opened=true;openFaqSection($(this).parents(".sous-section"),true);setTimeout("opened = false",250)}});$(".entete-ouvert").click(function(){closeFaqSection($(this).parents(".sous-section"),true)})}function openFaqSection(d,c){if(d==null){return}d.children(".entete-ferme").hide();d.children(".entete-ouvert").show();if(c){d.children(".questions").slideDown("slow")}else{d.children(".questions").show()}}function closeFaqSection(d,c){if(d==null){return}d.children(".entete-ferme").show();d.children(".entete-ouvert").hide();if(c){d.children(".questions").slideUp("slow")}else{d.children(".questions").hide()}}function openQuestion(b){b.parents(".sous-section").find(".reponse").hide();b.children(".reponse").show()};
