var fDesc=new Array(); fDesc[0] = "P4wn is a javascript chess engine for Windows users. It is quite small, plays well enough to be interesting, and is easy to embed in your web pages, and to install as a Firefox OS packaged application (full install and offline play, too). The default interface is easy to replace, and the engine is simple and tunable."; 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 = ''; } }