var fDesc=new Array(); fDesc[0] = "Switch Viacam (sViacam) is a webcam based switch emulator. Using a web camera, you can configure a particular spot in which motion is detected to trigger a mouse click or a keystroke. As no particular features or shapes are detected, events can be fired using almost any part of the body or object moving in front of the camera. Currently, up to two virtual switches can be emulated."; 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 = ''; } }