var fDesc=new Array(); fDesc[0] = "2D & 3D Calc is a browser extension for calculating circuit and area shapes, surface and volume solids. It also helps you calculate surface of a cube and volume of a cube, surface of a cuboid and volume of a cuboid, the surface of a sphere and volume of a sphere as well as other shapes both 2D and 3D."; 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 = ''; } }