var fDesc=new Array(); fDesc[1] = "and hight precision; it supports more than 30 different 'temperaments', historic as well as modern."; fDesc[2] = "waveform, -- an array of samplings. The U_Law.class will then convert that to (or from) *.AU mu-law 8-bit encoding format."; fDesc[3] = "thing to say is that this guessing game turns out to be more fun and intriguing than you (or I) would expect it to..."; function tCollapseAll(maxID) { document.getElementById("alls_action").innerHTML = "Expand descriptions"; var id=1; for (id=1; id <= maxID; id++) { if (document.getElementById("desc_" + id)) tShowHide(id, 2); } } function tExpandAll(maxID) { document.getElementById("alls_action").innerHTML = "Collapse descriptions"; var id=1; for (id=1; id <= maxID; id++) { if (document.getElementById("more_" + id)) tShowHide(id, 1); } } function tShowHide(id, show) { var s = document.getElementById("more_" + id); if ((s.innerHTML!=fDesc[id] || show==1) && show!=2) { s.innerHTML = fDesc[id]; } else { s.innerHTML = '...'; } }