var fDesc=new Array();
fDesc[0] = "The Cricket is a tiny computer, that you can program using Logo.
The Handy Cricket is programmed in a language called “Cricket Logo,” which is a simplified version of the powerful yet easy-to-learn Logo language.
Cricket Logo has the following features:
procedure definition with inputs and return values;
global variables and local procedure inputs;
control structures like if, repeat, and loop;
a 16-bit number system (addition, subtraction, multiplication, division, remainder, comparison, bitwise operations, random function);
motor and sensor primitives;
timing functions and tone-playing functions;
data recording and playback primitives;
communications primitives.";
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 = '';
}
}