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


function loadanswers()
{
	answers = new Array();
	answers.push( new inans('Sony PlayStation 2', new Array('PlayStation 2','PS2')));
	answers.push( new inans('Nintendo Game Boy/Game Boy Color', new Array('Game Boy','Tata Game Boy','GBC','Game boy color','gameboy','game boy colour')));
	answers.push( new inans('Sony PlayStation', new Array('Playstation','Playstaion 1','PS','PS1','PSX','PSone','PS one')));
	answers.push( new inans('Nintendo DS', new Array('NDS','DS')));
	answers.push( new inans('Nintendo Game Boy Advance', new Array('Gameboy Advance','Nintendo GBA','GBA')));
	answers.push( new inans('Nintendo Entertainment System', new Array('NES','Family Computer','Famicom','FC','Tata Famicom')));
	answers.push( new inans('Super Nintendo Entertainment System', new Array('SNES','Super NES','Super Nintendo','Super Family Computer','Super Famicom','Super Comboy','SFC')));
	answers.push( new inans('Sony PlayStation Portable', new Array('PSP','PlayStation Portable')));
	answers.push( new inans('Nintendo Wii', new Array('Wii')));
	answers.push( new inans('Nintendo 64', new Array('N64')));
	answers.push( new inans('Atari 2600', new Array('Atari VCS','2600')));
	answers.push( new inans('Sega Mega Drive/Genesis', new Array('Sega Megadrive','Megadrive','Mega Drive','Genesis','Sega Genesis')));
	answers.push( new inans('Microsoft Xbox', new Array('Xbox')));
	answers.push( new inans('Microsoft Xbox 360', new Array('Xbox 360')));
	answers.push( new inans('Nintendo GameCube', new Array('GCN','GameCube')));
	answers.push( new inans('Sega Saturn', new Array('Saturn')));
	answers.push( new inans('Sony PlayStation 3', new Array('PS3','Playstation 3')));
	answers.push( new inans('Sega Master System', new Array('Sega Mark III','Master System')));
	answers.push( new inans('Sega Game Gear', new Array('Game Gear')));
	answers.push( new inans('Sega Dreamcast', new Array('Dreamcast')));
	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 know you console history, don't you.\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");
	}
}

