var fDesc=new Array(); fDesc[0] = "Blackjack Simulator and Trainer allows you to improve your Blackjack playing. The program has two main functions: Simulator and Trainer. In simulation mode, the user chooses how the program should play and the program will act as a player, running as many simulations as you want. In training mode, you will play against the dealer, and the program will train you. When a decision is not correct the program will correct you. At the end of the game you'll get statistics showing your accuracy as a player."; 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 = ''; } }