
var texts = [ 'you will not be put "on a diet;" you will eat satisfying, enjoyable, and healthful foods.  You will be properly nourished, develop healthy habits and form a positive relationship with food and eating.  We will strategize to enable you to overcome challenges, i.e.: a stressful career, time limitations, frequent dining out and travel, and emotional eating, to mention a few.  You will learn to make healthy choices that fit your calorie and nutrient needs, as well as your lifestyle.  You will understand portion control and be equipped with strategies to keep you satisfied and free of cravings.  Through education, coaching, and support, "dieting" will be a thing of the past.',
             'creating a new life is an exciting and special time; it\'s also a critical time to be adequately nourished.  When you are eating for two, it\'s essential to choose the right foods, in the recommended quantity, in order to meet the nutritional needs of both mother and baby.  It is also important to encourage appropriate weight gain as your pregnancy progresses.  Nutrition counseling will help keep you and baby healthy and happy.',
             'nutrition is not only essential for a baby, but for mommy as well.  Postpartum, the focus is on helping a new mother be adequately nourished, maintain energy, support lactation (if nursing) and get her pre-baby body back, all while adjusting to her new schedule and routines.  An eating plan will be created to make eating healthy easy and thoughtless.',
             'food and nutrition play an integral part in the treatment of your medical condition.  You can prolong your life via dietary and lifestyle changes.  Nutrition intervention is one of the most important steps in treating cardiovascular disease, hyperlipidemia (elevated cholesterol and triglycerides), and hypertension (high blood pressure).  Learn easy ways to eat healthy and be healthy.',
             'manage your blood sugar and help to prevent complications of diabetes through dietary and lifestyle interventions.  Learn about all the foods you can eat, instead of focusing on what you can\'t eat.  Diabetes management involves more than just foods to include and exclude; portion control, meal composition, food combinations at meals, and timing of meals are all important factors.   Eating for health with diabetes does not have to be difficult or complicated.',
             'nutrition is an essential part of health and well-being.  To be healthy, you must eat healthy!  Learn to optimize your diet and extend your life.',
             'weight management counseling targeted specifically to teens, taking into account their lifestyles, activity levels, and food preferences.  Through early intervention, adolescents will develop healthy habits and learn to make the best choices, all while enjoying their carefree life!',
             'feed your family healthy, affordable, well-balanced meals.  Learn about smart shopping, portion control, and creating quick, easy meals the whole family will enjoy.' ];

window.onload = function() {

    var serviceMenu = document.getElementById('serviceMenu');
    for( var i=0; i<serviceMenu.childNodes.length; i++ )
        serviceMenu.childNodes[i].firstChild.onclick = onClick_item;
}
    
function onClick_item() {

    var serviceText = document.getElementById('serviceText'),
        children = this.parentNode.parentNode.childNodes,
        currentHeader = document.getElementById('currentHeader');
    for( var i=0; i<children.length; i++ )
        if( this == children[i].firstChild )
            break;
    serviceText.innerHTML = texts[i];
    currentHeader.innerHTML = this.firstChild.nodeValue+':';
    return false;
}
