var fDesc=new Array(); fDesc[0] = "Food Planner is a powerful diet planning application designed to help you achieve your weight management goals. You can calculate your calorie and nutritional needs and log your daily food intake. The database includes over 7000 food entries taken from the USDA foods database."; 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 = ''; } }