
var opened=false;$(document).ready(function(){formatSection();$("#faq .sous-section .questions").each(function(i){$(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(i){$(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(i){closeFaqSection($(this),false);});$("#faq .sous-section:first-child").each(function(i){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(element,effect){if(element==null){return;}
element.children(".entete-ferme").hide();element.children(".entete-ouvert").show();if(effect){element.children(".questions").slideDown("slow");}else{element.children(".questions").show();}}
function closeFaqSection(element,effect){if(element==null){return;}
element.children(".entete-ferme").show();element.children(".entete-ouvert").hide();if(effect){element.children(".questions").slideUp("slow");}else{element.children(".questions").hide();}}
function openQuestion(element){element.parents(".sous-section").find(".reponse").hide();element.children(".reponse").show();}