/* 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) Whose biography is called 'Dear Fatty'?";
choices[0] = new Array();
choices[0][0] = "Dawn French";
choices[0][1] = "Jennifer Saunders";
choices[0][2] = "Victoria Wood";
choices[0][3] = "Jo Brand";
answers[0] = choices[0][0];

questions[1] = "2) What is the name of the capital of Turkey?";
choices[1] = new Array();
choices[1][0] = "Lisbon";
choices[1][1] = "Cairo";
choices[1][2] = "Ankara";
choices[1][3] = "Brussels";
answers[1] = choices[1][2];

questions[2] = "3) In which country are the ruins of the city of Carthage situated?";
choices[2] = new Array();
choices[2][0] = "Rome";
choices[2][1] = "Berlin";
choices[2][2] = "Oslo";
choices[2][3] = "Tunisia";
answers[2] = choices[2][3];

questions[3] = "4) Which part of the eye determines its colour?";
choices[3] = new Array();
choices[3][0] = "The Retina";
choices[3][1] = "The Iris";
choices[3][2] = "The Pupil";
choices[3][3] = "The Cornea";
answers[3] = choices[3][1];

questions[4] = "5) Trichology is the study of what?";
choices[4] = new Array();
choices[4][0] = "Hair and Scalp";
choices[4][1] = "Triangles";
choices[4][2] = "The Mind";
choices[4][3] = "The Teeth";
answers[4] = choices[4][0];

questions[5] = "6) In the Morse code, which letter is indicated by one dash?";
choices[5] = new Array();
choices[5][0] = "S";
choices[5][1] = "O";
choices[5][2] = "N";
choices[5][3] = "T";
answers[5] = choices[5][3];

questions[6] = "7) Who wrote 'The Tale of Peter Rabbit'?";
choices[6] = new Array();
choices[6][0] = "Beatrix Potter";
choices[6][1] = "Enid Blyton";
choices[6][2] = "Emily Bronte";
choices[6][3] = "Charles Dickens";
answers[6] = choices[6][0];

questions[7] = "8) What is a crack in a glacier called?";
choices[7] = new Array();
choices[7][0] = "Crack";
choices[7][1] = "Rupture";
choices[7][2] = "Crevasse";
choices[7][3] = "Crazing";
answers[7] = choices[7][2];

questions[8] = "9) Paul McCartney has always used his middle name. What is his first name?";
choices[8] = new Array();
choices[8][0] = "James";
choices[8][1] = "John";
choices[8][2] = "Jack";
choices[8][3] = "Peter";
answers[8] = choices[8][0];

questions[9] = "10) In Britain, how many pennies made up a 'tanner'?";
choices[9] = new Array();
choices[9][0] = "Two";
choices[9][1] = "Three";
choices[9][2] = "Six";
choices[9][3] = "Eight";
answers[9] = choices[9][2];

// response for getting 100%
response[0] = "Excellent, top marks - you are a Genius!";
// 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] = "Oh dear, I think you need to go back to school (or try again)!";

