var fDesc=new Array(); fDesc[0] = "GraphDark can calculate the time when an astronomical object will be visible from your location and whether moonlight, twilight, or low haze will affect the view. The visibility of a single object, such as a comet, can be shown over a period of months or years. GraphDark can also list all the objects that are visible on a single night."; 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 = ''; } }