/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: James Crooke :: http://www.cj-design.com */

var questions = new Array();
var choices = new Array();
var answers = new Array();
var response = new Array();

// To add more questions, just follow the format below.

questions[0] = "1) What fruits can you use in som tam?";
choices[0] = new Array();
choices[0][0] = "a) papaya";
choices[0][1] = "b) apple";
choices[0][2] = "c) banana";
choices[0][3] = "d) coconut";
choices[0][4] = "e) mango";
answers[0] = [0,1,4];

questions[1] = "2) What dishes are sweet?";
choices[1] = new Array();
choices[1][0] = "a) Thong yod";
choices[1][1] = "b) Khao mun gai";
choices[1][2] = "c) Kluay buat chee";
answers[1] = [0,2];

questions[2] = "3) How many dishes have fruit?";
choices[2] = new Array();
choices[2][0] = "a) 1";
choices[2][1] = "b) 2";
choices[2][2] = "c) 3";
answers[2] = 1;

questions[3] = "4) What cooking terms are mentioned?";
choices[3] = new Array();
choices[3][0] = "a) fried";
choices[3][1] = "b) steamed";
choices[3][2] = "c) boiled";
choices[3][3] = "d) minced";
choices[3][4] = "e) grilled";
answers[3] = [1,2,3];

questions[4] = "5) What dishes are good for vegetarians?";
choices[4] = new Array();
choices[4][0] = "a) som tam";
choices[4][1] = "b) khai mun gai";
choices[4][2] = "c) thong yod";
choices[4][3] = "d) khai toon";
choices[4][4] = "e) kluay buat chee";
answers[4] = [0,2,4];

questions[5] = "6) What dish does not have much taste by itself?";
choices[5] = new Array();
choices[5][0] = "a) khao ka moo";
choices[5][1] = "b) khai mun gai";
choices[5][2] = "c) khai toon";
answers[5] = 1;


// response for getting 100%
response[0] = "Excellent, top marks!";
// response for getting 90% or more
response[1] = "Excellent, try again to get 100%!"
// response for getting 70% or more
response[2] = "Well done, that is a good score, can you do better?";
// response for getting over 50%
response[3] = "Nice one, you got more than half of the questions right, can you do better?";
// response for getting 40% or more
response[4] = "You got some questions right, you can do better!";
// response for getting 20% or more
response[5] = "You didn't do too well, why not try again!?";
// response for getting 10% or more
response[6] = "That was pretty poor!  Try again to improve!";
// response for getting 9% or less
response[7] = "Not so good! Maybe you should read the transcript.";



