var fDesc=new Array(); fDesc[0] = "DiffImg is a program that can compare two images and show the positions where pixels differ. DifffImg use OpenCV as backend so it can read and compare 8/16/24/32 bits images without problem but only single channel and RGB image has been take into account, so alpha channel isn't supported."; 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 = ''; } }