var fDesc=new Array(); fDesc[1] = "Mechanical Clock 3D Screensaver you will put a huge mechanical clock right on your screen! This 18th century Swiss clock shows all the internal mechanisms of a real clock, working perfectly and giving you the time continuously."; fDesc[2] = "different difficulty levels,kids between age 4-7 yrs would really relish learning the so called difficult subject MATHS.Arthur`s Maths games would really shape the calculative abilities of children."; fDesc[5] = "Creating slides for song lyrics has never been easier!"; 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 = '...'; } }