var fDesc=new Array(); fDesc[0] = "Valentina is a cross-platform pattern making program that allows designers to create and model patterns of clothing. The application enables pattern creation, using either standard sizing tables or an individual’s set of measurements, and it blends new technologies with traditional methods to create a unique pattern making tool."; function tShowHide(id, show) { var s = document.getElementById("desc"); if ((s.innerHTML.length<=212 || show==1) && show!=2) { s.innerHTML = fDesc[id]; if (document.getElementById('m1')) document.getElementById('m1').style.display='none'; if (document.getElementById('m2')) document.getElementById('m2').style.display='none'; if (document.getElementById('more_txt')) document.getElementById('more_txt').style.display='inline'; } else { s.innerHTML = ''; } }