var fDesc=new Array(); fDesc[0] = "In this game you will need to control a sheepdog to drive the sheep into the barn. You can control the dog by moving the mouse and the dog will run towards the mouse cursor. When the dog approaches a sheep, the sheep will run away from the dog, you can control the direction of approach to drive the sheep into the pen. If you can drive all the sheep into the pen within the time limit, then you can advance to the next level. There are a total of 10 levels and there will be more sheep and more obstacles in later levels."; 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 = ''; } }