var fDesc=new Array(); fDesc[1] = "feature recognition allows automating post-processing such as red-eye removal and skin tone adjustment, creating 3D head models and morphing tools."; fDesc[2] = "your machine with only your voice print. www.windentify.com for live demo."; fDesc[3] = "how they looked in the past and will look in the future. Show couples what their children will look like."; fDesc[4] = "recognition."; 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 = '...'; } }