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


function loadanswers()
{
	answers = new Array();
	answers.push( new inans('He Knows You\'re Alone', new Array('Blood Wedding','He Knows Youre Alone','He Knows You are Alone')));
	answers.push( new inans('Splash', new Array()));
	answers.push( new inans('Bachelor Party', new Array()));
	answers.push( new inans('The Man with One Red Shoe', new Array('Man with One Red Shoe','Man with 1 Red Shoe')));
	answers.push( new inans('Volunteers', new Array()));
	answers.push( new inans('The Money Pit', new Array('Money Pit')));
	answers.push( new inans('Nothing in Common', new Array()));
	answers.push( new inans('Every Time We Say Goodbye', new Array()));
	answers.push( new inans('Dragnet', new Array()));
	answers.push( new inans('Big', new Array()));
	answers.push( new inans('Punchline', new Array()));
	answers.push( new inans('The \'Burbs', new Array('The Burbs')));
	answers.push( new inans('Turner & Hooch', new Array('Turner and Hooch')));
	answers.push( new inans('Joe Versus the Volcano', new Array()));
	answers.push( new inans('The Bonfire of the Vanities', new Array('Bonfire of the Vanities')));
	answers.push( new inans('Radio Flyer', new Array()));
	answers.push( new inans('A League of Their Own', new Array('League of Their Own')));
	answers.push( new inans('Sleepless in Seattle', new Array()));
	answers.push( new inans('Philadelphia', new Array()));
	answers.push( new inans('Forrest Gump', new Array()));
	answers.push( new inans('Apollo 13', new Array()));
	answers.push( new inans('Toy Story', new Array()));
	answers.push( new inans('That Thing You Do!', new Array('That Thing You Do')));
	answers.push( new inans('Saving Private Ryan', new Array()));
	answers.push( new inans('You\'ve Got Mail', new Array('Youve Got Mail','You have Got Mail','You Got Mail')));
	answers.push( new inans('Toy Story 2', new Array()));
	answers.push( new inans('The Green Mile', new Array('Stephen King\'s The Green Mile','Green Mile')));
	answers.push( new inans('Cast Away', new Array('Castaway')));
	answers.push( new inans('Road to Perdition', new Array()));
	answers.push( new inans('Catch Me if You Can', new Array()));
	answers.push( new inans('The Ladykillers', new Array('Ladykillers')));
	answers.push( new inans('The Terminal', new Array('Terminal')));
	answers.push( new inans('Elvis Has Left the Building', new Array()));
	answers.push( new inans('The Polar Express', new Array('Polar Express')));
	answers.push( new inans('Cars', new Array()));
	answers.push( new inans('The Da Vinci Code', new Array('Da Vinci Code')));
	answers.push( new inans('The Simpsons Movie', new Array('Simpsons Movie')));
	answers.push( new inans('Charlie Wilson\'s War', new Array('Charlie Wilsons War')));
	answers.push( new inans('The Great Buck Howard', new Array()));
	answers.push( new inans('Angels & Demons', new Array('Angels and Demons')));
	answers.push( new inans('A Cold Case', new Array()));
	answers.push( new inans('Boone\'s Lick', new Array('Boones Lick')));
	answers.push( new inans('Toy Story 3', new Array()));
	answers.push( new inans('The Risk Pool', 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 >= 75 && 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 < 75) {
	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 >= 25 && 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 >= 10 && percent < 25) {
	alert("Not bad! You managed to get " + correct + " correct.\nThat is " + percent + "% of the total possible answers.\nThat is a average score");
	}
	if ( percent < 10) {
	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");
	}
}
