// JavaScript Document
var questions = new Array(29);
var ans1 = new Array(30);
var ans2 = new Array(30);
var ans3 = new Array(30);
var ans4 = new Array(30);
var correct = new Array(30);

questions[0] = "President Reagan's administration classified what school lunch food as a vegetable?";
ans1[0] = "Milk";
ans2[0] = "Jell-O";
ans3[0] = "Ketchup";
ans4[0] = "Pizza";
correct[0] = 3;

questions[1] = "Chinese White Cabbage is known by what other name?";
ans1[1] = "Kimchee";
ans2[1] = "Bok Choy";
ans3[1] = "Chow Mein";
ans4[1] = "Chow Yun Fat";
correct[1] = 2;

questions[2] = "Portobello and Shiitake are types of what menu item?";
ans1[2] = "Red Wine";
ans2[2] = "White Wine";
ans3[2] = "Cheese";
ans4[2] = "Mushrooms";
correct[2] = 4;

questions[3] = "What kind of fat helps reduce cholesterol and is considered the good kind?";
ans1[3] = "Monounsaturated fat";
ans2[3] = "Polyunsaturated fat";
ans3[3] = "Saturated fat";
ans4[3] = "There is no good kind";
correct[3] = 1;

questions[4] = "A GEODUCK is a type of what?";
ans1[4] = "Duck";
ans2[4] = "Clam";
ans3[4] = "Soup";
ans4[4] = "Snail";
correct[4] = 2;

questions[5] = "What part of the cinnamon tree does the spice cinnamon come from?";
ans1[5] = "Roots";
ans2[5] = "Leaves";
ans3[5] = "Bark";
ans4[5] = "Fruit";
correct[5] = 3;

questions[6] = "Which of the following dishes is NOT made with cornmeal?";
ans1[6] = "Mush";
ans2[6] = "Polenta";
ans3[6] = "Grits";
ans4[6] = "Risotto";
correct[6] = 4;

questions[7] = "Riboflavin and niacin are found in what complex vitamin?";
ans1[7] = "Vitamin A";
ans2[7] = "Vitamin B";
ans3[7] = "Vitamin C";
ans4[7] = "Vitamin D";
correct[7] = 2;

questions[8] = "The side dish couscous is made primarily from what?";
ans1[8] = "Rice";
ans2[8] = "Wheat";
ans3[8] = "Oats";
ans4[8] = "Garbanzo Beans";
correct[8] = 2;

questions[9] = "Caesar Salad was first prepared in what country?";
ans1[9] = "Italy";
ans2[9] = "United States";
ans3[9] = "Russia";
ans4[9] = "Mexico";
correct[9] = 4;

questions[10] = "Where is spilling salt considered good luck:";
ans1[10] = "Austria";
ans2[10] = "Japan";
ans3[10] = "Chile";
ans4[10] = "Morocco";
correct[10] = 2;

questions[11] = "Pepperoni is America’s favorite pizza topping. What is Japan’s favorite pizza topping:";
ans1[11] = "Eggs";
ans2[11] = "Pickled ginger";
ans3[11] = "Squid";
ans4[11] = "Fish";
correct[11] = 3;

questions[12] = "What flower does natural vanilla flavoring come from:";
ans1[12] = "Roses";
ans2[12] = "Orchids";
ans3[12] = "Honeysuckle";
ans4[12] = "Daisies";
correct[12] = 2;

questions[13] = "In the Middle East, what is the poor man’s food:";
ans1[13] = "Raisins";
ans2[13] = "Dates";
ans3[13] = "Plums";
ans4[13] = "Figs";
correct[13] = 4;

questions[14] = "What is the most recognized smell in the world:";
ans1[14] = "Popcorn";
ans2[14] = "Peanut butter";
ans3[14] = "Coffee";
ans4[14] = "Chocolate";
correct[14] = 3;

questions[15] = "Even though almonds are high in calories and fat, they’re good for you because they help to:";
ans1[15] = "build strong bones";
ans2[15] = "relieve stress";
ans3[15] = "lower cholesterol";
ans4[15] = "break up fat";
correct[15] = 3;

questions[16] = "The national dish of Brazil is FEIJOADA. What are the main ingredients?";
ans1[16] = "Chili peppers and rice";
ans2[16] = "Chicken and potatoes";
ans3[16] = "Seafood and black beans";
ans4[16] = "Black beans and meat";
correct[16] = 4;

questions[17] = "Japanese soba noodles are made from what?";
ans1[17] = "Buckwheat";
ans2[17] = "Semolina ";
ans3[17] = "Spinach ";
ans4[17] = "Rice";
correct[17] = 1;

questions[18] = "What is hominy made from?";
ans1[18] = "Wheat";
ans2[18] = "Corn";
ans3[18] = "Potatoes";
ans4[18] = "Rice";
correct[18] = 2;

questions[19] = "Which of the following is NOT an herb or spice?";
ans1[19] = "Sassafras";
ans2[19] = "Soapwort";
ans3[19] = "Soursop";
ans4[19] = "Cumin";
correct[19] = 3;

questions[20] = "Which of the following foods has NO cholesterol content?";
ans1[20] = "Boiled eggs";
ans2[20] = "Seafood pasta";
ans3[20] = "Lemon meringuepie";
ans4[20] = "Coconut milk";
correct[20] = 4;

questions[21] = "What is a roux?";
ans1[21] = "A mixture of bay leaves, parsley, and sage wrapped in a muslin bag and dropped in a soup or stew";
ans2[21] = "A mixture of melted butter (or other fat) and flour used to thicken sauces and soups";
ans3[21] = "A tomato sauce";
ans4[21] = "A French pastry filled with dark chocolate and topped with whipped cream";
correct[21] = 2;

questions[22] = "What is Bok Choy?";
ans1[22] = "A type of green often eaten in stir-fries";
ans2[22] = "A very hot pepper used in Szechwan cuisine";
ans3[22] = "A sticky rice desert eaten in Japan";
ans4[22] = "A sweet tea served in India";
correct[22] = 1;

questions[23] = "If you ordered TORI UDON in a Japanese restaurant, what would you get?";
ans1[23] = "Raw fish";
ans2[23] = "Thick noodles in broth with chicken";
ans3[23] = "Cold tofu";
ans4[23] = "Green tea ice cream";
correct[23] = 2;

questions[24] = "Which of the following is an unaged spirit made from grain and potatoes?";
ans1[24] = "Vodka";
ans2[24] = "Whiskey";
ans3[24] = "Champagne";
ans4[24] = "Gin";
correct[24] = 1;

questions[25] = "Which of the following foods has the lowest water content?";
ans1[25] = "Fresh carrots";
ans2[25] = "Fresh tomatoes";
ans3[25] = "Fresh celery";
ans4[25] = "Whole milk";
correct[25] = 4;

questions[26] = "Which of the following statements about onions is NOT true?";
ans1[26] = "The pigment of onionskin can be used as a dye";
ans2[26] = "It is a good idea to store potatoes and onions separately";
ans3[26] = "The green stalks of onions are poisonous";
ans4[26] = "Onions were used for their antibacterial characteristics during World War II";
correct[26] = 3;

questions[27] = "Humans are most sensitive to which of the following basic tastes?";
ans1[27] = "Sweet";
ans2[27] = "Salty ";
ans3[27] = "Bitter";
ans4[27] = "Soure";
correct[27] = 3;

questions[28] = "What are sweetbreads?";
ans1[28] = "The pancreas or the thymus gland of cattle";
ans2[28] = "Small, sugary cakes originating in Holland";
ans3[28] = "Pickled hog hooves";
ans4[28] = "Salt toffee originating in Newfoundland, Canada";
correct[28] = 1;

questions[29] = "What is polenta?";
ans1[29] = "A stew eaten in Brazil made from shrimp, spices and coconut milk";
ans2[29] = "A tuberous vegetable from Peru";
ans3[29] = "An Italian concoction of cornmeal and water";
ans4[29] = "An alcoholic drink consumed in large quantities by the French on New Year's Eve";
correct[29] = 3;

var tTkindex, val;

function testme()
{
	if (val == correct[tTkindex])
		alert("Congratulations! You answered the question correctly.");
	else
		alert("Sorry, the correct answer is: " + eval("ans" + correct[tTkindex] + "[" + tTkindex + "]"));
	window.location.reload()
}

function quiz()
{
	tTkindex = Math.floor(Math.random() * questions.length);
	document.write('<div class=\"thinkTank\"><strong>' + questions[tTkindex] + '</strong>');
	document.write('</div>');
	document.write('<p></p>');

	val = 1;  
	
	document.write('<div class=\"line\"></div><br />');
	document.write('<div class="thinkTank">');
	document.write('<input type="radio" name="tt" onclick="val = 1" checked="checked" />' + ans1[tTkindex] + '</input><br />');
	document.write('<input type="radio" name="tt" onclick="val = 2" />' + ans2[tTkindex] + '</input><br />');
	document.write('<input type="radio" name="tt" onclick="val = 3" />' + ans3[tTkindex] + '</input><br />');
	document.write('<input type="radio" name="tt" onclick="val = 4" />' + ans4[tTkindex] + '</input><br /><br />');
	document.write('<input type="button" onclick="testme()" value="Test me!" class="buttonLook"></input>');
	document.write('</div>');
	document.write('<br /><br /><br /><br />');
	 
}


