/* Javascript code used to hide/unhide blocks of text in a web browser 
 * This code was taken from ghacks.net (http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/)
 * Modified by Betenoir (info@betenoir.net) - 09/02/2009
 */		

function display(action, id)
        {
           if (action == 'show')
           {
            document.getElementById("paragraph"+id).style.display = "block";
            document.getElementById("link"+id).href= "javascript:display('hide', "+id+")";
            document.getElementById("link"+id).innerHTML = "Cachez texte";
            }

            if (action == 'hide')
            {
             document.getElementById("paragraph"+id).style.display = "none";
             document.getElementById("link"+id).href= "javascript:display('show', "+id+")";
             document.getElementById("link"+id).innerHTML = "Lire plus";
            }
        }
