var fDesc=new Array(); fDesc[0] = "The best way to learn a repertoire is by using Chess Openings Wizard to read an ebook written by a chess teacher. Generally the author will show only one recommended move for each position for the side you are learning. That simplifies the process of learning the opening. All the reasonable candidate moves for your opponent are shown, with explanations of the ideas behind each move."; 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 = ''; } }