var fDesc=new Array(); fDesc[0] = "PhotoResampling is a tool that allows you to work with digital images or photos, resize them to match your needs for for printing, web publishing or simply to be watched on the computer. PhotoResampling is capable to manage more than 9 resample algorithms. GBLS is my own algorithm which, offers better results than all other common algorithms."; 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 = ''; } }