var vminutes = 5;
var vseconds = 00;
var boxedanswers = 0;
var autocomplete = 0;
var gamever = 0;
var justincase1 = 0;
var justincase2 = 0;


function loadanswers()
{
	answers = new Array();
	answers.push( new inans('All\'s Well That Ends Well', new Array('All is Well That Ends Well')));
	answers.push( new inans('As You Like It', new Array()));
	answers.push( new inans('The Comedy of Errors', new Array('Comedy of Errors')));
	answers.push( new inans('Cymbeline', new Array()));
	answers.push( new inans('Love\'s Labours Lost', new Array()));
	answers.push( new inans('Measure for Measure', new Array()));
	answers.push( new inans('The Merry Wives of Windsor', new Array('Merry Wives of Windsor')));
	answers.push( new inans('The Merchant of Venice', new Array('Merchant of Venice')));
	answers.push( new inans('A Midsummer Night\'s Dream', new Array('Midsummer Night\'s Dream')));
	answers.push( new inans('Much Ado About Nothing', new Array()));
	answers.push( new inans('Pericles, Prince of Tyre', new Array('Prince of Tyre')));
	answers.push( new inans('Taming of the Shrew', new Array()));
	answers.push( new inans('The Tempest', new Array()));
	answers.push( new inans('Troilus and Cressida', new Array('Troilus & Cressida')));
	answers.push( new inans('Twelfth Night', new Array('12th Night')));
	answers.push( new inans('Two Gentlemen of Verona', new Array()));
	answers.push( new inans('Winter\'s Tale', new Array()));
	answers.push( new inans('Henry IV, part 1', new Array('Henry 4th Part 1','Henry IV Part I','Henry 4th Part I')));
	answers.push( new inans('Henry IV, part 2', new Array('Henry 4th Part 2','Henry IV Part II','Henry 4th Part II')));
	answers.push( new inans('Henry V', new Array('Henry 5th')));
	answers.push( new inans('Henry VI, part 1', new Array('Henry 6th Part 1','Henry VI Part I','Henry 6th Part I')));
	answers.push( new inans('Henry VI, part 2', new Array('Henry 6th Part 2','Henry VI Part II','Henry 6th Part II')));
	answers.push( new inans('Henry VI, part 3', new Array('Henry 6th Part 3','Henry VI Part III','Henry 6th Part III')));
	answers.push( new inans('Henry VIII', new Array('Henry 8th')));
	answers.push( new inans('King John', new Array()));
	answers.push( new inans('Richard II', new Array('Richard 2nd')));
	answers.push( new inans('Richard III', new Array('Richard 3rd')));
	answers.push( new inans('Antony and Cleopatra', new Array('Anthony & Cleopatra')));
	answers.push( new inans('Coriolanus', new Array()));
	answers.push( new inans('Hamlet', new Array()));
	answers.push( new inans('Julius Caesar', new Array()));
	answers.push( new inans('King Lear', new Array()));
	answers.push( new inans('Macbeth', new Array()));
	answers.push( new inans('Othello', new Array()));
	answers.push( new inans('Romeo and Juliet', new Array('Romeo & Juliet')));
	answers.push( new inans('Timon of Athens', new Array()));
	answers.push( new inans('Titus Andronicus', new Array()));
	remaining = answers.length;
	displayRemaining();
}

function doEndAlert()
{
	var total = (correct + remaining);
	var percentunrounded = (correct/total) * 100;
	var percent = roundNumber(percentunrounded,2)
	if ( percent == 100 ) {
	alert("Nicely done. You named them all.\nYou got all " + correct + " answers correct.\nWell done!!!");
	}
	if ( percent >= 80 && percent < 100) {
	alert("Well done! You managed to get " + correct + " correct.\nThat is " + percent + "% of the total possible answers.\nThat is an amazing score");
	}
	if ( percent >= 60 && percent < 80) {
	alert("Great Job! You managed to get " + correct + " correct.\nThat is " + percent + "% of the total possible answers.\nThat is a very good score");
	}
	if ( percent >= 45 && percent < 60) {
	alert("Good Job! You managed to get " + correct + " correct.\nThat is " + percent + "% of the total possible answers.\nThat is a good score");
	}
	if ( percent >= 25 && percent < 45) {
	alert("Not bad! You managed to get " + correct + " correct.\nThat is " + percent + "% of the total possible answers.\nThat is a average score");
	}
	if ( percent < 25) {
	alert("Not very good, I'm afraid! You managed to get " + correct + " correct.\nThat is " + percent + "% of the total possible answers.\nThat is a not a very good score");
	}
}

