var fDesc=new Array(); fDesc[0] = "ROBOTC for Mindstorms is a powerful C-based programming language with a Windows environment for writing and debugging programs. It allows users to step line by line through program execution and analysis of all variables. It also enables the user to see the real time states of all motors and sensor."; 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 = ''; } }