var fDesc=new Array(); fDesc[0] = "The Material Editor provides functions to create and edit materials and maps. A material is data that you assign to the surface or faces of an object so that it appears a certain way when rendered. Materials affect the colour of objects, their glossiness, their opacity, and so on. The images or procedural effects you assign to materials are called maps."; 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 = ''; } }