var fDesc=new Array(); fDesc[1] = "animation is really well done and includes a 360ยบ perspective of the place, allowing us to have a great, relaxing view of the scenery and the surrounding mountains."; fDesc[2] = "visualization. They allow fast complex signal manipulations with zero lines of program code. Free for non-commercial use."; fDesc[3] = "MPEG/demuxed M2V for DVD authoring."; fDesc[12] = "decorated with holiday lights. Don/t you think that Christmas is an amazing and unique holiday, which cannot be compared to any"; fDesc[13] = "matrices, math parser, probabilities, optimization, signal processing and statistic analysis routines."; 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 = '...'; } }