var fDesc=new Array(); fDesc[1] = "application allows you to crack the protection of both ZIP and RAR files created with most applications. It uses two methods to achieve this task: a brute-force approach and a dictionary-based approach."; fDesc[2] = "archives and ARJ archives. The program is highly optimized for speed."; fDesc[3] = "when it comes to all around performance, WinArj 98 stands apart from the rest. Anyone can learn to take advantage of WinAr..."; 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 = '...'; } }