function expander(which) { //--------------------------------------------------------------------------------------------------- if (document.getElementById && document.createTextNode) { //--------------------------------------------------------------------------------------------------- if (which=="dispall") { expanderAll(1); } else if (which=="hideall") { expanderAll(0); } //--------------------------------------------------------------------------------------------------- else { m=document.getElementById("exp"); trig=m.getElementsByTagName("div").item(which).style.display; t=m.getElementsByTagName("p").item(which); h=t.getElementsByTagName("a").item(0).firstChild; //--------------------------------------------------------------------------------------------------- if (trig=="block") trig="none"; else if (trig=="" || trig=="none") trig="block"; //--------------------------------------------------------------------------------------------------- if (trig=="none") { h.nodeValue=h.nodeValue.replace(highlighttext,normaltext); t.style.background=normalbackground; t.style.color=normalcolour; } //--------------------------------------------------------------------------------------------------- else { h.nodeValue=h.nodeValue.replace(normaltext,highlighttext); t.style.background=highlightbackground; t.style.color=highlightcolour; } m.getElementsByTagName("div").item(which).style.display=trig; //--------------------------------------------------------------------------------------------------- } } } //--------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------- function expanderAll(show) { //--------------------------------------------------------------------------------------------------- if (document.getElementById && document.createTextNode) { m=document.getElementById("exp"); for (i=0;i#exp div{display:none;}') } //--------------------------------------------------------------------------------------------------- highlightcolour="#333"; highlightbackground=""; highlighttext="hide"; normalcolour="#333"; normalbackground=""; normaltext="show"; //---------------------------------------------------------------------------------------------------