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('Mercury', new Array()));
	answers.push( new inans('Venus', new Array()));
	answers.push( new inans('Earth', new Array()));
	answers.push( new inans('Mars', new Array()));
	answers.push( new inans('Jupiter', new Array()));
	answers.push( new inans('Saturn', new Array()));
	answers.push( new inans('Uranus', new Array()));
	answers.push( new inans('Neptune', new Array()));
	answers.push( new inans('Ceres', new Array()));
	answers.push( new inans('Pluto', new Array()));
	answers.push( new inans('Haumea', new Array()));
	answers.push( new inans('Makemake', new Array()));
	answers.push( new inans('Eris', 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("Absolutely Amazing, You managed to name them all those planets and dwarf planets.\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 >= 43 && 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 >= 27 && percent < 43) {
	alert("Not bad! You managed to get " + correct + " correct.\nThat is " + percent + "% of the total possible answers.\nThat is a average score");
	}
	if ( percent < 27) {
	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");
	}
}
