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('A Nightmare on Elm Street', new Array('Nightmare on Elm Street')));
	answers.push( new inans('Private Resort', new Array()));
	answers.push( new inans('Slow Burn', new Array()));
	answers.push( new inans('Platoon', new Array()));
	answers.push( new inans('Cry-Baby', new Array('Cry Baby')));
	answers.push( new inans('Edward Scissorhands', new Array()));
	answers.push( new inans('Freddy\'s Dead: The Final Nightmare', new Array('Freddy\'s Dead','Freddies Dead','Freddys Dead')));
	answers.push( new inans('What\'s Eating Gilbert Grape', new Array('Whats Eating Gilbert Grape','What is Eating Gilbert Grape'))); 	
	answers.push( new inans('Benny & Joon', new Array('Benny and Joon')));	
	answers.push( new inans('Arizona Dream', new Array('The Arrowtooth Waltz')));
	answers.push( new inans('Ed Wood', new Array()));
	answers.push( new inans('Nick of Time', new Array()));
	answers.push( new inans('Dead Man', new Array()));
	answers.push( new inans('Don Juan DeMarco', new Array()));
	answers.push( new inans('Donnie Brasco', new Array()));
	answers.push( new inans('The Brave', new Array('Brave')));
	answers.push( new inans('Fear and Loathing in Las Vegas', new Array('Fear & Loathing in Las Vegas')));
	answers.push( new inans('Sleepy Hollow', new Array()));
	answers.push( new inans('The Astronaut\'s Wife', new Array('The Astronauts Wife','Astronauts Wife')));
	answers.push( new inans('The Ninth Gate', new Array('Ninth Gate')));
	answers.push( new inans('Chocolat', new Array()));
	answers.push( new inans('Before Night Falls', new Array()));
	answers.push( new inans('From Hell', new Array()));
	answers.push( new inans('The Man Who Cried', new Array('Man Who Cried')));
	answers.push( new inans('Blow', new Array()));
	answers.push( new inans('Lost in La Mancha', new Array()));
	answers.push( new inans('Once Upon a Time in Mexico', new Array()));
	answers.push( new inans('Pirates of the Caribbean: The Curse of the Black Pearl', new Array('Pirates of the Caribbean','POTC','P.O.T.C','P.O.T.C.','Curse of the Black Pearl','The Curse of the Black Pearl')));
	answers.push( new inans('Happily Ever After', new Array('And They Lived Happily Ever After','Ils se marièrent et eurent beaucoup d\'enfants','Ils se marierent et eurent beaucoup denfants')));
	answers.push( new inans('Finding Neverland', new Array()));
	answers.push( new inans('Secret Window', new Array()));
	answers.push( new inans('The Libertine', new Array('Libertine')));
	answers.push( new inans('Charlie and the Chocolate Factory', new Array('Charlie & the Chocolate Factory')));
	answers.push( new inans('Corpse Bride', new Array()));
	answers.push( new inans('Pirates of the Caribbean: Dead Man\'s Chest', new Array('POTC2','POTCII','The Pirates of the Caribbean 2','The Pirates of the Caribbean II','Dead Mans Chest','Dead Man\'s Chest','P.O.T.C.2')));
	answers.push( new inans('Pirates of the Caribbean: At World\'s End', new Array('POTC3','POTCIII','The Pirates of the Caribbean 3','The Pirates of the Caribbean III','At Worlds End','At World\'s End','P.O.T.C.3')));
	answers.push( new inans('Sweeney Todd: The Demon Barber of Fleet Street', new Array('Sweeney Todd')));
	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, you sure know your films.\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 >= 23 && 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 < 23) {
	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");
	}
}

