var fDesc=new Array(); fDesc[0] = "Perfect Diet Tracker is a program designed to help you track your diet and achieve a safe and consistent weight loss, maintaining that weight loss once you reach your target. The app takes care of calorie counting and exercise tracking for you, monitoring your calorific and nutritional intake."; 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 = ''; } }