var gFaq = [];

/*** Basic Usability ***/
/*** Basic Usability ***/
/*** Basic Usability ***/
var lFaq = {};
var lH = "Basic usability";
lFaq.header = lH;
gFaq.push(lFaq);

/* QUESTION */
var lFaq = {};
var lQ = "Why should I join the Meal Planner as a registered member?";
var lA = "When you log in as a registered member, you can:<div class='faqBullets'><li>Save your preferences and substitutions from visit to visit</li><li>Rate recipes and mark your favorites</li></div>";
lFaq.question = lQ;
lFaq.answer = lA;
gFaq.push(lFaq);

/* QUESTION */
var lFaq = {};
var lQ = "Why can't I add a recipe to My Favorites, rate a recipe, or save my preferences?";
var lA = "You must be logged in as a registered member to access these features of the Meal Planner. Registration is easy and FREE. " + writeBodyLink({title:"Register",id:"register"}) + " now.";
lFaq.question = lQ;
lFaq.answer = lA;
gFaq.push(lFaq);

/* QUESTION */
var lFaq = {};
var lQ = "What is the Fast Track menu planning option?";
var lA = "If you are in a hurry when planning your menu, you may want to choose a category from the Fast Track options. This will automatically add seven meals to your menu from the category you choose.";
lFaq.question = lQ;
lFaq.answer = lA;
gFaq.push(lFaq);

/* QUESTION */
var lFaq = {};
var lQ = "How can I change or delete a recipe once I've added it to my calendar?";
var lA = 'If you want to remove a recipe from your calendar, simply click and drag it back to the list of recipes on the left. Then, choose another recipe to replace the dinner you removed. You also can remove all the recipes by clicking on the "Clear Calendar" button.';
lFaq.question = lQ;
lFaq.answer = lA;
gFaq.push(lFaq);

/* QUESTION */
var lFaq = {};
var lQ = "Why are some food items in my Daily Menu blue?";
var lA = 'The items that appear in blue are exchange items. When you click one, you will be able to choose from a list of possible substitutes. Once you\'ve made your choice, click "Make Exchange" and the new food item will replace the old one. If you do not want to change the food item, simply click "Cancel" or close the pop-up window.';
lFaq.question = lQ;
lFaq.answer = lA;
gFaq.push(lFaq);

/* QUESTION */
var lFaq = {};
var lQ = "Can I change my meal plan once I've made my recipe selections?";
var lA = 'Yes. Making changes to your meal plan is easy. Simply click the "Modify Recipe Selections" button.';
lFaq.question = lQ;
lFaq.answer = lA;
gFaq.push(lFaq);

/* QUESTION */
var lFaq = {};
var lQ = "How do I view my favorite recipes?";
var lA = 'You must be logged in as a registered member to access the "My Favorites" feature of the Meal Planner. Registration is easy and FREE, so why not ' + writeBodyLink({title:"register",id:"register"}) + ' today? Once you are logged in, simply click on "My Favorites" to see a list of your favorite recipes.';
lFaq.question = lQ;
lFaq.answer = lA;
gFaq.push(lFaq);

/* QUESTION */
var lFaq = {};
var lQ = "Why can't I view my 7-day meal plan, recipe cards, or shopping list?";
var lA = 'To view these items, you must have Adobe Reader on your computer. Installation is free, safe, and easy. ' + writeBodyLink({title:"Click Here",id:"adobe_reader"}) + ' to download the latest version of Adobe Reader.';
lFaq.question = lQ;
lFaq.answer = lA;
gFaq.push(lFaq);

/* QUESTION */
var lFaq = {};
var lQ = "Why can't I exchange items in my dinner selections?";
var lA = "You are not able to exchange items in your dinner selections because the ingredients and amounts in the meals are designed to meet the specific calorie requirement you selected.";
lFaq.question = lQ;
lFaq.answer = lA;
gFaq.push(lFaq);

/* QUESTION */
var lFaq = {};
var lQ = "Why can't I choose my breakfast, snack, or lunch?";
var lA = "You are not able to choose breakfast, snack, or lunch because these meals are designed to meet the specific calorie requirement you selected.";
lFaq.question = lQ;
lFaq.answer = lA;
gFaq.push(lFaq);

/* QUESTION */
var lFaq = {};
var lQ = "How do I save my 7-day meal plan?";
var lA = 'For your convenience, the Meal Planner allows you to save your meal plans so that you can reference them at a later date. To save your plan, simply log in, select your meals, and click "Save My Meal Plan."';
lFaq.question = lQ;
lFaq.answer = lA;
gFaq.push(lFaq);

/* QUESTION */
/* SSK removed as per clients request 20070426 
var lFaq = {};
var lQ = "How do I duplicate meal selections?";
var lA = "If you find a recipe that you really enjoy, and would like to add it to your meal plan more than once , it's easy to do. Simply select the particular recipe as many times as you'd like within your personal meal plan.";
lFaq.question = lQ;
lFaq.answer = lA;
gFaq.push(lFaq);
*/

/* QUESTION */
var lFaq = {};
var lQ = "What does the Advanced Search feature do?";
var lA = "The Advanced Search feature allows you to search for recipes in several convenient ways. For example, if there is an ingredient you'd like to include or exclude from a recipe&mdash;such as  items that are gluten&ndash;free, dairy&ndash;free, etc&mdash;the Advanced Search feature makes it simple.";
lFaq.question = lQ;
lFaq.answer = lA;
gFaq.push(lFaq);

/* QUESTION */
var lFaq = {};
var lQ = "How do I duplicate meal selections?";
var lA = "If you find a recipe that you really enjoy, and would like to add it to your meal plan more than once, it's easy to do. Simply select the particular recipe as many times as you'd like within your personal meal plan.";
lFaq.question = lQ;
lFaq.answer = lA;
gFaq.push(lFaq);

/* QUESTION */
var lFaq = {};
var lQ = "How are recipes arranged in the Meal Planner, and how do I access them?";
var lA = "Recipe categories are arranged in an easy-to-use format. You can search via categories such as: Fast Track, Cuisine, Main Ingredient, New Recipes, and Advanced Search. Simply click on the tabs that you're interested in to view and select from the many recipes.";
lFaq.question = lQ;
lFaq.answer = lA;
gFaq.push(lFaq);

/* QUESTION */
var lFaq = {};
var lQ = "How can I add my own notes to recipes?";
var lA = 'Registered members can add notes and comments to recipes by clicking on the "View" icon, adding comments in the notes box on the left side of the recipe card, and clicking "Save."<br /> Hint: Check the "Add to My Favorites" box at the top of the card before saving the recipe, and it will be easy to retrieve later on&mdash;simply click on "Cuisine" and look under "My Favorites."';
lFaq.question = lQ;
lFaq.answer = lA;
gFaq.push(lFaq);


/*** Meal Planning ***/
/*** Meal Planning ***/
/*** Meal Planning ***/
var lFaq = {};
var lH = "Meal planning";
lFaq.header = lH;
gFaq.push(lFaq);

/* QUESTION */
var lFaq = {};
var lQ = "How do I know which calorie level to choose?";
var lA = "Choosing the correct calorie level depends on several different factors, such as your height, your weight, and whether you wish to maintain or lose weight. Click here for detailed information on choosing the calorie level that is best for you. Any diet change should be discussed with a dietitian or your health care professional.";
lFaq.question = lQ;
lFaq.answer = lA;
gFaq.push(lFaq);

/* QUESTION */
var lFaq = {};
var lQ = "Can I set up my Meal Planner to always exclude certain food items?";
var lA = 'Yes, but you must be logged in as a registered member to access this feature of the Meal Planner. Registration is easy and FREE, so why not ' + writeBodyLink({title:"register",id:"register"}) + ' today? Once you are logged in, simply click on "Meal Plan" in the upper right-hand corner of your Meal Planner and then choose "Food Preferences" from the drop-down menu. Once you\'ve made your selections for substitutions, the Meal Planner will remember your preferences for breakfast, snacks, and lunch each time you return to the site.';
lFaq.question = lQ;
lFaq.answer = lA;
gFaq.push(lFaq);

/* QUESTION */
var lFaq = {};
var lQ = "Who creates the recipes on the Meal Planner?";
var lA = "Recipes on the Meal Planner were created by a Registered Dietitian and chef. We're always adding new recipes, so remember to check back for updates to the site.";
lFaq.question = lQ;
lFaq.answer = lA;
gFaq.push(lFaq);

/* QUESTION */
var lFaq = {};
var lQ = "Why should I keep coming back to the Meal Planner?";
var lA = "The Meal Planner is constantly being updated with additional recipes, enhanced features, and useful tools designed to improve the health and lifestyle of people trying to manage their cholesterol. Check back periodically to take advantage of all the features the Meal Planner has to offer.";
lFaq.question = lQ;
lFaq.answer = lA;
gFaq.push(lFaq);

/* QUESTION */
var lFaq = {};
var lQ = "How can I organize my recipe selections?";
var lA = "The Meal Planner allows you to arrange your selections by sodium level, calorie level, carbohydrate level, or even alphabetically.";
lFaq.question = lQ;
lFaq.answer = lA;
gFaq.push(lFaq);


/*** Special Diets ***/
/*** Special Diets ***/
/*** Special Diets ***/
/* QUESTION */
var lFaq = {};
var lH = "Special diets";
lFaq.header = lH;
gFaq.push(lFaq);

/* QUESTION */
var lFaq = {};
var lQ = "I'm a vegetarian. Are there special recipes available for me?";
var lA = 'Yes. There is a special Fast Track vegetarian option called "Veggie Delight." By clicking on this option, you automatically will be provided with seven vegetarian dinners in your calendar. You also may search for vegetarian meals by clicking on the "Vegetarian" category under "Main Ingredient."';
lFaq.question = lQ;
lFaq.answer = lA;
gFaq.push(lFaq);

/* QUESTION */
var lFaq = {};
var lQ = "I have diabetes; is there special information available for me?";
var lA = "If you have diabetes, you already may be watching your diet carefully. You'll be pleased to know you can follow your low&ndash;fat meal plan with little worry, since it represents a well-balanced diet. " + writeBodyLink({title:"Click here",id:"diabetes"}) + " to learn more about diabetes.";
lFaq.question = lQ;
lFaq.answer = lA;
gFaq.push(lFaq);

/* QUESTION */
var lFaq = {};
var lQ = "I have high blood pressure/hypertension; is there any special information available for me?";
var lA = "When it comes to lowering your blood pressure, watching what you eat can make a big difference. In particular, limit the sodium content and total calories in your diet. " + writeBodyLink({title:"Click here",id:"blood_pressure",write:false,arrow:false}) + " to learn more about high blood pressure.";

lFaq.question = lQ;
lFaq.answer = lA;
gFaq.push(lFaq);

/*******************************************************************/
/*******************************************************************/
/*******************************************************************/

/* variable written to the faqs.aspx page */
var lFaqText = "";

/* WRITE ALL THE FAQs */
for(var i=0; i <gFaq.length; i++){
	
	if(gFaq[i].header){
		//lFaqText += '<p><h3 class="mph3" style="margin:30px 0px 0px 0px;">' + gFaq[i].header + '</h3></p>';
		lFaqText += '<p><h2>' + gFaq[i].header + '</h2></p>';
	}else{
		lFaqText += '<div class="faq_container"><div class="faqPlus_Minus_div"><a id="faqPlus_Minus' + i + '" class="faqLinkPlus_Minus" href="javascript:void(0);" onclick="doFAQclick(' + i + ');" onfocus="this.blur();">+</a></div><a id="faqQuestion' + i + '" class="faqLink" href="javascript:void(0);" onclick="doFAQclick(' + i + ');" onfocus="this.blur();">' + gFaq[i].question + '</a></div>';
		lFaqText += '<div id="faqAnswer' + i + '" class="faqAnswer">' + writeTableBox(true) + '<div class="faqAnswers"><p>' + gFaq[i].answer + '</p></div>' + writeTableBox() + '</div>';
	}
}

function doFAQclick(pNum){
	var lDiv = document.getElementById("faqAnswer" + pNum);
	var lPlus = document.getElementById("faqPlus_Minus" + pNum);
	var lShow = (lDiv.style.display != "block")? true : false;
	
	if(lShow){
		lDiv.style.display = "block";
		lPlus.innerHTML = "&ndash;";
	}else{
		lDiv.style.display = "none";
		lPlus.innerHTML = "+";
	}
}