var fDesc=new Array(); fDesc[1] = "with your audio files, it will save a lot of your time. The program includes an audio file mixer and a tag editor among other useful tools. It also gives you the possibility to record Mp3, WMA, FLAC and WAV streams."; fDesc[2] = "it sends to MusicBrainz, a database containing more than a million songs, to get accurate information about the song."; 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 = '...'; } }