		var firstTipIndex = 1;
var currentTipIndex = firstTipIndex;

function populateTipPane()
{
	var tipText = [ "<span>Mealtimes are more fun when everyone pitches in. Your children can help set the table, pour water or toss the salad.</span>"
	              , "<span>Give the four-legged members of your family their meal when you have yours, and keep the kids focused on what's <em>on</em> the table,  not under it!</span>"
	              , "<span>Go around the table and share the best / funniest / most interesting thing that happened in your day. It's a great way to reconnect as a family!</span>"
	              , "<span>Turn off the television and radio at mealtimes &#8212; you'll focus on what you're eating and who you're eating with much more than if you are distracted!</span>"
	              , "<span>Family meals can be difficult once school activities start up again. Schedule 1-2 nights a week as \"family night\" and get everyone involved in planning and preparing the meal. </span>"
	              , "<span>Use our Pyramid-Rich<sup>TM</sup> Recipes to find nutritious and delicious ways to keep everyone feeling their best. </span>"
	              , "<span>Give each child a turn to select a topic and get the conversation going around the table. </span>"
	              , "<span>Try topics like:  \"Who would you want to invite to dinner and why?\" Or try silly topics like \"What kind of an animal would you want to be?\" Their answers may surprise you!</span>"
	              , "<span>Plan one night a month as \"ethnic night\". Create a list of places and spend time with your kids looking for recipes and information about that culture. </span>"
	              , "<span>Now comes the fun part: prepare the meal with your kids if they are old enough to help. Even small children will be happy to stir or set the table!</span>"
	              , "<span>Concentration, problem-solving skills and test scores are all better in children who eat breakfast. </span>"
	              , "<span>For hearty family-friendly breakfasts, try peanut butter on toast and a Del Monte<sup>&reg;</sup> Fruit Cup, or a tortilla wrap with scrambled eggs and Del Monte<sup>&reg;</sup> Diced Tomatoes. </span>"
	              , "<span>Need quick meal solutions?  Mix zesty STARKIST Lemon Pepper Tuna Creations<sup>TM</sup> into pasta with Del Monte<sup>&reg;</sup> Mixed Vegetables. </span>"
	              , "<span>Another tasty idea:  serve STARKIST Teriyaki Tuna Fillets<sup>TM</sup> over rice with green beans and tomatoes for a quick dinner meal. </span>"
	              , "<span>To add extra vegetables in your family's meal, mix a can of Del Monte<sup>&reg;</sup> Green Beans or Peas into your soup or pasta, or add a can of Del Monte<sup>&reg;</sup> Corn to your favorite salsa. </span>"
	              , "<span>Stock your pantry with a variety of canned vegetables and broth for a quick \"homemade\" soup for a cool fall evening. </span>"
	              , "<span>Pineapple, mandarin oranges and peaches are a sweet addition to chicken or tuna salad, and a great way to add some extra fruit to your lunch. </span>"
	              , "<span>Stock up on single servings of fruit cups, graham crackers, granola bars, raisins, yogurt, nuts and vegetables for your kids to grab when they're hungry. </span>"
	              , "<span>Make a game out of trying new foods.  At the grocery store, have your kids look for the fruit or vegetable with the silliest name.  Buy one and give everyone a taste.  You may find a new favorite!</span>"
				  ];

	var tipsPerPane = 2;
	var nextFirstTipIndex = currentTipIndex + tipsPerPane;
	
	if (nextFirstTipIndex > tipText.length)
	{
		// wrap the index back to the first tip
		currentTipIndex = nextFirstTipIndex = firstTipIndex;
	}
	else
	{
		currentTipIndex += tipsPerPane;
	}
	//alert('cti = ' + currentTipIndex + ', nextFirstTipIndex = ' + nextFirstTipIndex);
	document.getElementById("tipList").start = nextFirstTipIndex;
	document.getElementById("bottomTip").style.visibility = 'visible';
	document.getElementById("topTip").innerHTML = tipText[nextFirstTipIndex - 1];
	if (nextFirstTipIndex < tipText.length)
	{
		document.getElementById("bottomTip").innerHTML = tipText[nextFirstTipIndex];
	}
	else
	{
		// we have only one tip on the last page, so hide the other one
		document.getElementById("bottomTip").style.visibility = 'hidden';
	}
}
