var recipeArray = {"COLUMNS":["ID","CONTENT","PREVIOUS","NEXT"],"DATA":[
	 [0,'<h1>Banana Cake</h1><em>Submitted by Nanette Pierson | Bernville, PA</em><br /><br /><span class="bold green">INGREDIENTS</span><br />&frac12; c. shortening<br />2 eggs<br />1 tsp. vanilla<br />&frac12; tsp. baking soda<br />1 c. mashed banana<br />4-5 tbsp. milk<br />1&frac12; c. sugar<br />2 c. flour<br />&frac12; tsp. salt<br />1 tsp. vinegar<br /><br /><span class="bold green">DIRECTIONS</span><br />Mix all ingredients together. Spray cake pan with non-stick spray. Pour batter into pan and bake at 350 degrees for 35 minutes or until knife comes out clean and dry.',4,1]
	,[1,'<h1>Pumpkin Brownies</h1><em>Submitted by Melanie Davis | Wylie, TX</em><br /><br /><span class="bold green">INGREDIENTS</span><br />1 15 oz. can of pumpkin<br />1 c. vegetable oil<br />4 eggs<br />2 c. sugar<br />2 c. flour<br />1 tsp. baking soda<br />1 tsp. baking powder<br />1 tsp. cinnamon<br />&frac12; tsp. salt<br /><br /><span class="bold green">DIRECTIONS</span><br />Beat together eggs, oil, pumpkin and sugar. Stir in remaining ingredients until evenly mixed. Pour into a greased and floured 9x13 inch pan. Bake for 30 minutes or until center springs back when touched. Serve with cream cheese frosting!',0,2]
	,[2,'<h1>Mary Hansen&rsquo;s Party Pretzels</h1><em>Submitted by Mary Hansen | Las Vegas, NV</em><br /><br /><span class="bold green">INGREDIENTS</span><br />3 lbs. thin, small, loop pretzels (3 bags)<br />2 pkg. dried original Ranch dressing powder mix. (1 oz. ea.)<br />1 tsp. garlic powder<br />2 tsp. dill weed<br />1 bottle butter flavored popcorn oil<br /><br /><span class="bold green">DIRECTIONS</span><br />Mix ingredients together. Pour mix over pretzels and mix and mix till oil is used up (a 2&frac12; gallon Ziploc bag works well, just keep turning the bag over until all of the pretzels are coated).',1,3]
	,[3,'<h1>Vidalia Onion Casserole</h1><em>Submitted by Lisa Farina | Marietta, GA</em><br /><br /><span class="bold green">INGREDIENTS</span><br />10 large vidalia onions<br />1 c. margarine<br />2 c. grated parmesan cheese<br />40 Ritz crackers<br /><br /><span class="bold green">DIRECTIONS</span><br />Slice onion into thin rings, melt margarine; add onions and saut&eacute; until opaque. Pour half into casserole dish - cover with &frac12; cheese and &frac12; of crackers. Repeat layers. Bake uncovered until golden brown 30 minutes at 350 degrees.',2,4]
	,[4,'<h1>Summer Spaghetti</h1><em>Submitted by Kelly O&rsquo;Rourke | Medway, ME</em><br /><br /><span class="bold green">INGREDIENTS</span><br />6 green olives, chopped<br />1 lb. tomatoes, chopped<br />1 medium onion, chopped<br />2 cloves garlic, minced<br />&frac12; c. chopped parsley<br />2 tbsp. fresh basil<br />&frac12; tsp. paprika<br />&frac12; tsp. oregano<br />1 tbsp. red wine vinegar<br />&frac12; c. olive oil<br />&frac12; - 1 lb. thin spaghetti<br /><br /><span class="bold green">DIRECTIONS</span><br />In a medium bowl, mix all ingredients. Refrigerate for an hour to let all flavors blend. Cook pasta according to package directions. Strain. Pour cold mixture on top of hot pasta and serve.',3,0]
	]}.DATA;

function showRecipe(selectedRecipeArrayIndex){	
	var idx = selectedRecipeArrayIndex;
	var selectedItem = recipeArray[idx];
	var previousOnClick = 'showRecipe('+selectedItem[2]+'); return false;';
	var nextOnClick = 'showRecipe('+selectedItem[3]+'); return false;';
	
	document.getElementById("recipe").innerHTML = selectedItem[1];
	document.getElementById("previousRecipe").onclick = new Function(previousOnClick);
	document.getElementById("nextRecipe").onclick = new Function(nextOnClick);
}