/* 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) Who played Muhammad Ali in the movie 'Ali'?";
choices[0] = new Array();
choices[0][0] = "Wesley Snipes";
choices[0][1] = "Denzel Washington";
choices[0][2] = "Danny Glover";
choices[0][3] = "Will Smith";
answers[0] = choices[0][3];

questions[1] = "2) Which vegetable is produced from the plant maize?";
choices[1] = new Array();
choices[1][0] = "Carrot";
choices[1][1] = "Sweetcorn";
choices[1][2] = "Swede";
choices[1][3] = "Leek";
answers[1] = choices[1][1];

questions[2] = "3) Which girl band had a hit single with 'Independent Woman'?";
choices[2] = new Array();
choices[2][0] = "Destiny's Child";
choices[2][1] = "Girls Aloud";
choices[2][2] = "Eternal";
choices[2][3] = "Hearsay";
answers[2] = choices[2][0];

questions[3] = "4) In which part of the UK was Charlotte Church born?";
choices[3] = new Array();
choices[3][0] = "England";
choices[3][1] = "Northern Ireland";
choices[3][2] = "Scotland";
choices[3][3] = "Wales";
answers[3] = choices[3][3];

questions[4] = "5) What is a flexible diving board called?";
choices[4] = new Array();
choices[4][0] = "Springboard";
choices[4][1] = "Jackboard";
choices[4][2] = "Wooden board";
choices[4][3] = "Pivotboard";
answers[4] = choices[4][0];

questions[5] = "6) In Edward Lear's poem, what was remarkable about the Pobble?";
choices[5] = new Array();
choices[5][0] = "It had no ears";
choices[5][1] = "It had no nose";
choices[5][2] = "It had no toes";
choices[5][3] = "It had no eyes";
answers[5] = choices[5][2];

questions[6] = "7) Oxford bags were a type of what?";
choices[6] = new Array();
choices[6][0] = "Black rings under your eyes";
choices[6][1] = "Rucksacks";
choices[6][2] = "Hats";
choices[6][3] = "Trousers";
answers[6] = choices[6][3];

questions[7] = "8) What colour is Lily Savage's hair?";
choices[7] = new Array();
choices[7][0] = "White";
choices[7][1] = "Blonde";
choices[7][2] = "Yellow";
choices[7][3] = "Grey";
answers[7] = choices[7][1];

questions[8] = "9) A black mamba is what type of creature?";
choices[8] = new Array();
choices[8][0] = "Cockroach";
choices[8][1] = "Spider";
choices[8][2] = "Monkey";
choices[8][3] = "Snake";
answers[8] = choices[8][3];

questions[9] = "10) Which musical instrument was invented by Johann Christophe Denner?";
choices[9] = new Array();
choices[9][0] = "Violin";
choices[9][1] = "Flute";
choices[9][2] = "Clarinet";
choices[9][3] = "Guitar";
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)!";

