var fDesc=new Array(); fDesc[1] = "different parts of the world and gives instant access to international dialing codes."; fDesc[2] = "and startup programs manager, plus a downloader for other utilities"; fDesc[3] = "cPanel. Back up the home directory, MySQL databases, filters and aliases with a couple of clicks, or create a scheduled task."; fDesc[5] = "download and install code signing tools, create and import certificates, and sign applications and other files with drag and drop ease."; fDesc[10] = "create Zip archives, too. It's the really easy way to manage with Zip files!"; 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 = '...'; } }