var vminutes = 5;
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('Empire of the Sun', new Array()));
	answers.push( new inans('Mio in the Land of Faraway', new Array('Mio min Mio','The Land of Faraway')));
	answers.push( new inans('Henry V', new Array('Henry the 5th','Henry 5')));
	answers.push( new inans('Treasure Island', new Array()));
	answers.push( new inans('Newsies', new Array()));
	answers.push( new inans('Swing Kids', new Array()));
	answers.push( new inans('Little Women', new Array()));
	answers.push( new inans('Prince of Jutland', new Array()));
	answers.push( new inans('Pocahontas', new Array()));
	answers.push( new inans('The Portrait of a Lady', new Array('Portrait of a Lady')));
	answers.push( new inans('The Secret Agent', new Array('Secret Agent')));
	answers.push( new inans('Metroland', new Array()));
	answers.push( new inans('All the Little Animals', new Array('The Little Animals')));
	answers.push( new inans('Velvet Goldmine', new Array()));
	answers.push( new inans('A Midsummer Night\'s Dream', new Array('Midsummer Night Dream','A Midsummer Night Dream','Midsummer Nights Dream','A Midsummer Nights Dream')));
	answers.push( new inans('Shaft', new Array()));
	answers.push( new inans('American Psycho', new Array()));
	answers.push( new inans('Captain Corelli\'s Mandolin', new Array('Captain Corellis Mandolin')));
	answers.push( new inans('Equilibrium', new Array()));
	answers.push( new inans('Reign of Fire', new Array()));
	answers.push( new inans('Laurel Canyon', new Array()));
	answers.push( new inans('Howl\'s Moving Castle', new Array('Howls Moving Castle','Hauru no ugoku shiro')));
	answers.push( new inans('The Machinist', new Array('Machinist','Maquinista El','El Maquinista')));
	answers.push( new inans('Batman Begins', new Array()));
	answers.push( new inans('The New World', new Array('New World')));
	answers.push( new inans('The Prestige', new Array('Prestige')));
	answers.push( new inans('Harsh Times', new Array()));
	answers.push( new inans('Rescue Dawn', new Array()));
	answers.push( new inans('I\'m Not There', new Array('Im not There')));
	answers.push( new inans('3:10 to Yuma', new Array('310 to Yuma','3 10 to Yuma')));
	answers.push( new inans('The Dark Knight', new Array('Batman: The Dark Knight','Dark Knight')));
	answers.push( new inans('Public Enemies', new Array()));
	answers.push( new inans('Terminator Salvation', new Array('Terminator 4','Terminator IV')));
	answers.push( new inans('Killing Pablo', 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");
	}
}

