var vminutes = 3;
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('Ottawa Senators', new Array()));
	answers.push( new inans('New York Rangers', new Array()));
	answers.push( new inans('Boston Bruins', new Array()));
	answers.push( new inans('Montreal Canadiens', new Array()));
	answers.push( new inans('Toronto Maple Leafs', new Array()));
	answers.push( new inans('Chicago Black Hawks', new Array()));
	answers.push( new inans('Montreal Maroons', new Array()));
	answers.push( new inans('Detroit Red Wings', new Array()));
	answers.push( new inans('Philadelphia Flyers', new Array()));
	answers.push( new inans('New York Islanders', new Array()));
	answers.push( new inans('Edmonton Oilers', new Array()));
	answers.push( new inans('Calgary Flames', new Array()));
	answers.push( new inans('Pittsburgh Penguins', new Array()));
	answers.push( new inans('New Jersey Devils', new Array()));
	answers.push( new inans('Colorado Avalanche', new Array()));
	answers.push( new inans('Dallas Stars', new Array()));
	answers.push( new inans('Tampa Bay Lightning', new Array()));
	answers.push( new inans('Carolina Hurricanes', new Array()));
	answers.push( new inans('Anaheim Ducks', 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 >= 35 && 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 >= 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");
	}
}

