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


function loadanswers()
{
	answers = new Array();
	answers.push( new inans('Zinedine Zidane (1998, 2000, 2003)', new Array('Zinedine Zidane','Zidane')));
	answers.push( new inans('Ronaldo (1996, 1997, 2002)', new Array('Ronaldo')));
	answers.push( new inans('Ronaldinho (2004, 2005)', new Array('Ronaldinho')));
	answers.push( new inans('Luís Figo (2001)', new Array('Luís Figo','Luis Figo','Figo')));
	answers.push( new inans('Romário (1994)', new Array('Romário','Romario')));
	answers.push( new inans('George Weah (1995)', new Array('George Weah','Weah')));
	answers.push( new inans('Rivaldo (1999)', new Array('Rivaldo')));
	answers.push( new inans('Roberto Baggio (1993)', new Array('Roberto Baggio','Baggio')));
	answers.push( new inans('Lothar Matthäus (1991)', new Array('Lothar Matthäus','Lothar Matthaus','Matthaus')));
	answers.push( new inans('Marco Van Basten (1992)', new Array('Marco Van Basten','Van Basten')));
	answers.push( new inans('Kaká (2007)', new Array('Kaká','Kaka')));
	answers.push( new inans('Fabio Cannavaro (2006)', new Array('Fabio Cannavaro','Cannavaro')));
	answers.push( new inans('Birgit Prinz (Female 2003, 2004, 2005)', new Array('Birgit Prinz','Prinz')));
	answers.push( new inans('Mia Hamm (Female 2001, 2002)', new Array('Mia Hamm','Hamm')));
	answers.push( new inans('Marta (Female 2006, 2007)', new Array('Marta')));
	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 managed to name all of these top footballers.\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 >= 20 && 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 < 20) {
	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");
	}
}

