var questions = new Array();
var choices = new Array();
var answers = new Array();
var response = new Array();

questions[0] = "1) This sign means?";
choices[0] = new Array();
choices[0][0] = "Road narrows on both sides";
choices[0][1] = "Two lanes merge into one";
choices[0][2] = "End of dual carriageway";
choices[0][3] = "End of central reservation";
answers[0] = choices[0][0];

questions[1] = "2) This sign means?";
choices[1] = new Array();
choices[1][0] = "Dual carriageway ahead";
choices[1][1] = "Two way traffic ahead";
choices[1][2] = "Motorway ahead";
choices[1][3] = "Road narrows";
answers[1] = choices[1][1];

questions[2] = "3) This sign means?";
choices[2] = new Array();
choices[2][0] = "Bendy road";
choices[2][1] = "Slippery road";
choices[2][2] = "Steep hill";
choices[2][3] = "Oil on road";
answers[2] = choices[2][1];

questions[3] = "4) This sign means?";
choices[3] = new Array();
choices[3][0] = "Level crossing ahead without barrier";
choices[3][1] = "Gate ahead";
choices[3][2] = "Private road";
choices[3][3] = "Level crossing ahead with barrier";
answers[3] = choices[3][3];

questions[4] = "5) This sign means?";
choices[4] = new Array();
choices[4][0] = "No-entry";
choices[4][1] = "No vehicles except bicycles being pushed";
choices[4][2] = "No bicycles";
choices[4][3] = "Dead-end road";
answers[4] = choices[4][1];

questions[5] = "6) This sign means?";
choices[5] = new Array();
choices[5][0] = "One-way";
choices[5][1] = "No u-turns";
choices[5][2] = "No three-point-turns";
choices[5][3] = "Motorway";
answers[5] = choices[5][1];

questions[6] = "7) This sign means?";
choices[6] = new Array();
choices[6][0] = "Two-way traffic";
choices[6][1] = "Level crossing with barrier";
choices[6][2] = "Level crossing without barrier";
choices[6][3] = "Crossroads";
answers[6] = choices[6][3];

questions[7] = "8) This sign means?";
choices[7] = new Array();
choices[7][0] = "No motor vehicles";
choices[7][1] = "No motor vehicles except bicycles being pushed";
choices[7][2] = "No-entry";
choices[7][3] = "Only cars and motorcycles allowed";
answers[7] = choices[7][0];

questions[8] = "9) This sign means?";
choices[8] = new Array();
choices[8][0] = "Give way to oncoming vehicles";
choices[8][1] = "You have priority over oncoming vehicles";
choices[8][2] = "Road narrows";
choices[8][3] = "One-way road";
answers[8] = choices[8][0];

questions[9] = "10) This sign means?";
choices[9] = new Array();
choices[9][0] = "No-entry";
choices[9][1] = "No stopping";
choices[9][2] = "No parking";
choices[9][3] = "National speed limit applies";
answers[9] = choices[9][3];

questions[10] = "11) This sign means?";
choices[10] = new Array();
choices[10][0] = "No footway";
choices[10][1] = "Pedestrian crossing";
choices[10][2] = "Pedestrians only";
choices[10][3] = "Foot bridge ahead";
answers[10] = choices[10][1];

questions[11] = "12) This sign means?";
choices[11] = new Array();
choices[11][0] = "No footway";
choices[11][1] = "Pedestrian crossing";
choices[11][2] = "Pedestrians only";
choices[11][3] = "Foot bridge ahead";
answers[11] = choices[11][0];

questions[12] = "13) This sign means?";
choices[12] = new Array();
choices[12][0] = "Queues likely";
choices[12][1] = "One-way road";
choices[12][2] = "Traffic lights";
choices[12][3] = "Motorway";
answers[12] = choices[12][0];

questions[13] = "14) This sign means?";
choices[13] = new Array();
choices[13][0] = "Towed caravans only";
choices[13][1] = "No towed caravans";
choices[13][2] = "National speed limit applies for towed caravans";
choices[13][3] = "No towing allowed";
answers[13] = choices[13][1];

questions[14] = "15) This sign means?";
choices[14] = new Array();
choices[14][0] = "Hump bridge";
choices[14][1] = "Speed humps";
choices[14][2] = "Toll bridge";
choices[14][3] = "Height restriction";
answers[14] = choices[14][0];

questions[15] = "16) This gantry sign means?";
choices[15] = new Array();
choices[15][0] = "Slow down";
choices[15][1] = "Break-down ahead";
choices[15][2] = "Must not proceed further in this lane";
choices[15][3] = "Exit motorway at next available exit";
answers[15] = choices[15][2];

questions[16] = "17) This sign means?";
choices[16] = new Array();
choices[16][0] = "Road narrows on right";
choices[16][1] = "Road narrows on both sides";
choices[16][2] = "Road narrows on left";
choices[16][3] = "Lanes merge ahead";
answers[16] = choices[16][0];

questions[17] = "18) These road markings mean?";
choices[17] = new Array();
choices[17][0] = "No loading at the time specified";
choices[17][1] = "No parking";
choices[17][2] = "No loading at any time";
choices[17][3] = "No stopping";
answers[17] = choices[17][2];

questions[18] = "19) This sign means?";
choices[18] = new Array();
choices[18][0] = "No nitrous to be used in area";
choices[18][1] = "National speed limit applies";
choices[18][2] = "No vehicles carrying explosives";
choices[18][3] = "No fireworks";
answers[18] = choices[18][2];

questions[19] = "20) This sign means?";
choices[19] = new Array();
choices[19][0] = "No cycling";
choices[19][1] = "No cycle lanes";
choices[19][2] = "Warning cyclists";
choices[19][3] = "No cycle racing";
answers[19] = choices[19][0];

questions[20] = "21) This sign means?";
choices[20] = new Array();
choices[20][0] = "Minimum speed limit applies";
choices[20][1] = "Maximum speed limit";
choices[20][2] = "National speed limit";
choices[20][3] = "End of speed limit";
answers[20] = choices[20][1];

questions[21] = "22) This sign means?";
choices[21] = new Array();
choices[21][0] = "No-entry";
choices[21][1] = "National speed limit applies";
choices[21][2] = "Dead-end road";
choices[21][3] = "No stopping";
answers[21] = choices[21][0];

questions[22] = "23) This sign means?";
choices[22] = new Array();
choices[22][0] = "Give-way to oncoming traffic";
choices[22][1] = "One-way";
choices[22][2] = "Two-way road";
choices[22][3] = "Traffic has priority over oncoming vehicles";
answers[22] = choices[22][3];

questions[23] = "24) This sign means?";
choices[23] = new Array();
choices[23][0] = "No-entry";
choices[23][1] = "No through road";
choices[23][2] = "Level crossing";
choices[23][3] = "No vehicles";
answers[23] = choices[23][1];

questions[24] = "25) This sign means?";
choices[24] = new Array();
choices[24][0] = "Maximum speed";
choices[24][1] = "Minimum speed";
choices[24][2] = "Maximum weight";
choices[24][3] = "Minimum weight";
answers[24] = choices[24][1];

questions[25] = "26) This sign means?";
choices[25] = new Array();
choices[25][0] = "One-way";
choices[25][1] = "No vehicles";
choices[25][2] = "Keep left";
choices[25][3] = "Ahead only";
answers[25] = choices[25][3];

questions[26] = "27) This sign means?";
choices[26] = new Array();
choices[26][0] = "One-way";
choices[26][1] = "Ahead only";
choices[26][2] = "Keep left";
choices[26][3] = "No vehicles";
answers[26] = choices[26][0];

questions[27] = "28) This sign means?";
choices[27] = new Array();
choices[27][0] = "Helicopter landing pad";
choices[27][1] = "No-through road";
choices[27][2] = "No vehicles";
choices[27][3] = "Hospital with accident and emergency facilities";
answers[27] = choices[27][3];

questions[28] = "29) This gantry sign means?";
choices[28] = new Array();
choices[28][0] = "Change lanes";
choices[28][1] = "Keep left";
choices[28][2] = "Leave motorway at next available exit";
choices[28][3] = "Stop";
answers[28] = choices[28][0];

questions[29] = "30) This sign means?";
choices[29] = new Array();
choices[29][0] = "Roundabout";
choices[29][1] = "One-way road system";
choices[29][2] = "No u-turn";
choices[29][3] = "Mini-roundabout";
answers[29] = choices[29][3];

questions[30] = "31) This sign means?";
choices[30] = new Array();
choices[30][0] = "Speed humps";
choices[30][1] = "Humped bridge";
choices[30][2] = "Uneven road";
choices[30][3] = "Narrow road";
answers[30] = choices[30][2];

questions[31] = "32) This sign means?";
choices[31] = new Array();
choices[31][0] = "No overtaking";
choices[31][1] = "Two way road";
choices[31][2] = "Use both lanes";
choices[31][3] = "Overtaking permitted";
answers[31] = choices[31][0];

questions[32] = "33) This sign means?";
choices[32] = new Array();
choices[32][0] = "Two way traffic passes";
choices[32][1] = "Overtaking vehicles";
choices[32][2] = "Dual carriageway ahead";
choices[32][3] = "Level crossing without gate or barrier";
answers[32] = choices[32][0];

questions[33] = "34) This sign means?";
choices[33] = new Array();
choices[33][0] = "Level crossing without barrier or gate";
choices[33][1] = "Tourist attraction";
choices[33][2] = "Railway station";
choices[33][3] = "Level crossing with barrier or gate";
answers[33] = choices[33][0];

questions[34] = "35) These road markings mean?";
choices[34] = new Array();
choices[34][0] = "No loading or unloading at anytime";
choices[34][1] = "No loading or unloading at times shown";
choices[34][2] = "No waiting at times shown";
choices[34][3] = "No parking at times shown";
answers[34] = choices[34][1];

questions[35] = "36) These markings found in the middle of the road are the?";
choices[35] = new Array();
choices[35][0] = "Centre line";
choices[35][1] = "Cycle lane";
choices[35][2] = "Hazard warning line";
choices[35][3] = "Bus lane";
answers[35] = choices[35][2];

questions[36] = "37) These markings found in the middle of the road are the?";
choices[36] = new Array();
choices[36][0] = "Centre line";
choices[36][1] = "Cycle lane";
choices[36][2] = "Bus lane";
choices[36][3] = "Hazard warning line";
answers[36] = choices[36][0];

questions[37] = "38) This sign means?";
choices[37] = new Array();
choices[37][0] = "Minimum speed limit applies";
choices[37][1] = "Minimum speed limit ends";
choices[37][2] = "Slow down";
choices[37][3] = "No stopping";
answers[37] = choices[37][1];

questions[38] = "39) This sign means?";
choices[38] = new Array();
choices[38][0] = "No stopping";
choices[38][1] = "No entry";
choices[38][2] = "No waiting";
choices[38][3] = "National speed limit applies";
answers[38] = choices[38][2];

questions[39] = "40) This sign means?";
choices[39] = new Array();
choices[39][0] = "No stopping";
choices[39][1] = "No entry";
choices[39][2] = "No waiting";
choices[39][3] = "National speed limit applies";
answers[39] = choices[39][0];

questions[40] = "41) This gantry sign means?";
choices[40] = new Array();
choices[40][0] = "Change lanes";
choices[40][1] = "Keep left";
choices[40][2] = "Stop on the hard shoulder";
choices[40][3] = "Leave motorway at next exit";
answers[40] = choices[40][3];

questions[41] = "42) This sign means?";
choices[41] = new Array();
choices[41][0] = "Bridge";
choices[41][1] = "Speed humps";
choices[41][2] = "No entry";
choices[41][3] = "Opening or swing bridge ahead";
answers[41] = choices[41][3];

questions[42] = "43) This sign means?";
choices[42] = new Array();
choices[42][0] = "Roundabout";
choices[42][1] = "Mini-roundabout";
choices[42][2] = "One-way road system";
choices[42][3] = "Vehicles turning";
answers[42] = choices[42][0];

questions[43] = "44) This sign means?";
choices[43] = new Array();
choices[43][0] = "Traffic can pass on either side";
choices[43][1] = "Two way traffic";
choices[43][2] = "Junctions on left and right";
choices[43][3] = "Road widens";
answers[43] = choices[43][0];

questions[44] = "45) This sign means?";
choices[44] = new Array();
choices[44][0] = "Keep left";
choices[44][1] = "Turn left ahead";
choices[44][2] = "One-way road";
choices[44][3] = "Roundabout";
answers[44] = choices[44][1];

questions[45] = "46) This sign means?";
choices[45] = new Array();
choices[45][0] = "Speed humps";
choices[45][1] = "Humped bridge";
choices[45][2] = "Uneven road";
choices[45][3] = "Tunnel";
answers[45] = choices[45][0];

questions[46] = "47) This sign means?";
choices[46] = new Array();
choices[46][0] = "Turn left ahead";
choices[46][1] = "Keep left";
choices[46][2] = "Passing places ahead";
choices[46][3] = "One-way road";
answers[46] = choices[46][1];

questions[47] = "48) This sign means?";
choices[47] = new Array();
choices[47][0] = "Sidewinds";
choices[47][1] = "Airport or air-strip ahead";
choices[47][2] = "Flags";
choices[47][3] = "Wind socks";
answers[47] = choices[47][0];

questions[48] = "49) This sign means?";
choices[48] = new Array();
choices[48][0] = "Height limit";
choices[48][1] = "No vehicles";
choices[48][2] = "Weight limit";
choices[48][3] = "Width limit";
answers[48] = choices[48][3];

questions[49] = "50) This sign means?";
choices[49] = new Array();
choices[49][0] = "Steep uphill";
choices[49][1] = "Speed humps";
choices[49][2] = "Steep downhill";
choices[49][3] = "Height restriction";
answers[49] = choices[49][2];

// response for getting 100%
response[0] = "Hey, well done! Top marks! Nice sign reading skills. Lets hope you do the same on your real theory test.";
// response for getting 90% or more
response[1] = "Passed easily, congratulations! Could you get full marks?"
// response for getting 70% or more
response[2] = "Phew! You've just about passed! Try again to better your score!";
// response for getting over 50%
response[3] = "Oh no! So close! But you must get at least 43 out of 50 to pass.";
// response for getting 40% or more
response[4] = "Getting better, but you must get at least 43 questions correct to pass.";
// response for getting 20% or more
response[5] = "Sorry to say that you've failed. You Must get at least 43 correct to pass.";
// response for getting 10% or more
response[6] = "Sorry to say that you've failed. You Must get at least 43 correct to pass.";
// response for getting 9% or less
response[7] = "Sorry to say that you've failed. You Must get at least 43 correct to pass.";