var fDesc=new Array(); fDesc[0] = "The pattern analyzer is a tool for editing and analyzing patterns. In further aid to help users transition their original patterns into ABL, an audio detection algorithm has been devised to emulate TB-303 patterns. The original patterns are recorded under certain conditions, then simply hit "Detect from wave" and select the audio file. ABL2 will create a pattern resembling the audio input."; 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 = ''; } }