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


function loadanswers()
{
	answers = new Array();
	answers.push( new inans('Bakerloo line', new Array('Bakerloo')));
	answers.push( new inans('Central line', new Array('Central')));
	answers.push( new inans('Circle line', new Array('Circle')));
	answers.push( new inans('District line', new Array('District')));
	answers.push( new inans('Hammersmith & City line', new Array('Hammersmith & City','Hammersmith and City')));
	answers.push( new inans('Jubilee line', new Array('Jubilee')));
	answers.push( new inans('Metropolitan line', new Array('Metropolitan')));
	answers.push( new inans('Northern line', new Array('Northern')));
	answers.push( new inans('Piccadilly line', new Array('Piccadilly')));
	answers.push( new inans('Victoria line', new Array('Victoria')));
	answers.push( new inans('Waterloo & City line', new Array('Waterloo & City','Waterloo and City')));
	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, do you live or work in London?\nYou got all " + correct + " answers correct.\nWell done!!!");
	}
	if ( percent >= 90 && 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 >= 70 && percent < 90) {
	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 >= 55 && percent < 70) {
	alert("Good Job! You managed to get " + correct + " correct.\nThat is " + percent + "% of the total possible answers.\nThat is a good score");
	}
	if ( percent >= 35 && percent < 55) {
	alert("Not bad! You managed to get " + correct + " correct.\nThat is " + percent + "% of the total possible answers.\nThat is a average score");
	}
	if ( percent < 35) {
	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");
	}
}

