var vminutes = 3;
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('Endless Love', new Array()));
	answers.push( new inans('Taps', new Array()));
	answers.push( new inans('The Outsiders', new Array('Outsiders')));
	answers.push( new inans('Losin\' It', new Array('Losin It','Losing It')));
	answers.push( new inans('All the Right Moves', new Array()));
	answers.push( new inans('Risky Business', new Array()));
	answers.push( new inans('Legend', new Array()));
	answers.push( new inans('Top Gun', new Array()));
	answers.push( new inans('The Color of Money', new Array('The Colour of Money')));
	answers.push( new inans('Cocktail', new Array()));
	answers.push( new inans('Young Guns', new Array()));
	answers.push( new inans('Rain Man', new Array()));
	answers.push( new inans('Born on the Fourth of July', new Array('Born on the 4th of July')));
	answers.push( new inans('Days of Thunder', new Array()));
	answers.push( new inans('Far and Away', new Array('Far & Away')));
	answers.push( new inans('A Few Good Men', new Array('Few Good Men')));
	answers.push( new inans('The Firm', new Array('Firm')));
	answers.push( new inans('Interview with the Vampire: Vampire Chronicles', new Array('Interview with the Vampire: The Vampire Chronicles','Interview with the Vampire','Interview with a Vampire','The Vampire Chronicles')));
	answers.push( new inans('Mission: Impossible', new Array('Mission Impossible','MI')));
	answers.push( new inans('Jerry Maguire', new Array()));
	answers.push( new inans('Eyes Wide Shut', new Array('EWS')));
	answers.push( new inans('Magnolia', new Array()));
	answers.push( new inans('Mission: Impossible II', new Array('Mission Impossible II','Mission Impossible 2','MI2')));
	answers.push( new inans('Stanley Kubrick: A Life in Pictures', new Array('Stanley Kubrick','A Life in Pictures')));
	answers.push( new inans('Vanilla Sky', new Array()));
	answers.push( new inans('Space Station 3D', new Array()));
	answers.push( new inans('Minority Report', new Array()));
	answers.push( new inans('Austin Powers in Goldmember', new Array('Goldmember')));
	answers.push( new inans('The Last Samurai', new Array('Last Samurai')));
	answers.push( new inans('Collateral', new Array()));
	answers.push( new inans('War of the Worlds', new Array()));
	answers.push( new inans('Mission: Impossible III', new Array('Mission Impossible III','Mission Impossible 3','MI3')));
	answers.push( new inans('Lions for Lambs', new Array()));
	answers.push( new inans('Tropic Thunder', new Array()));
	answers.push( new inans('Valkyrie', 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 >= 70 && 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 >= 50 && percent < 70) {
	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 >= 35 && percent < 50) {
	alert("Good Job! You managed to get " + correct + " correct.\nThat is " + percent + "% of the total possible answers.\nThat is a good score");
	}
	if ( percent >= 15 && percent < 35) {
	alert("Not bad! You managed to get " + correct + " correct.\nThat is " + percent + "% of the total possible answers.\nThat is a average score");
	}
	if ( percent < 15) {
	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");
	}
}

