var fDesc=new Array(); fDesc[0] = "Slick2D is a simple set of tools wrapped around the LWJGL OpenGL binding for Java. It's aims are as follows: Make transition from Java2D to OpenGL easier. Provide the tools required for most simple games out of the box. Mix and Match - you use what you want, nothing is enforced. Help with rendering, sound, input, collision and anything else we can think of."; 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 = ''; } }