$(function () {
    var texteIntroductifListe = $(".JQ_TEXTEINTRODUCTIF");
    var ln = texteIntroductifListe.length;
    for(var i = 0; i < ln; i++) {
        var el = $(texteIntroductifListe[i]);
        var id = el.attr("id");
        el.after("<a class='affichertout' href='#" + id + "'>[+] lire la suite </a>");
    }
    $(".affichertout").toggle(afficherTexteIntroductif,cacherTexteIntroductif);
});

function afficherTexteIntroductif() {
    var thisEl = $(this);
    $(thisEl.attr("href")).show();
    thisEl.html("[-] réduire");
    return false;
}

function cacherTexteIntroductif() {
    var thisEl = $(this);
    $(thisEl.attr("href")).hide();
    thisEl.html("[+] lire la suite");
    return false;
}
