var vminutes = 5;
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('Piccolo', new Array()));
	answers.push( new inans('Flutes (3)', new Array('Flute')));
	answers.push( new inans('Oboes (3)', new Array('Oboe')));
	answers.push( new inans('English Horn', new Array('Cor Anglais')));
	answers.push( new inans('Clarinets (4)', new Array('Clarinet')));
	answers.push( new inans('Bass Clarinet', new Array('Bass Clarinet')));
	answers.push( new inans('Bassoons (3)', new Array('Bassoon')));
	answers.push( new inans('Contrabassoon', new Array('Contrabassoon')));
	answers.push( new inans('Horns (4)', new Array('French Horn')));
	answers.push( new inans('Trumpets (3)', new Array('Trumpet')));
	answers.push( new inans('Trombones (3)', new Array('Trombone')));
	answers.push( new inans('Tuba', new Array()));
	answers.push( new inans('Timpani', new Array('Kettle Drums')));
	answers.push( new inans('Snare Drum', new Array()));
	answers.push( new inans('Tenor Drum', new Array()));
	answers.push( new inans('Bass Drum', new Array()));
	answers.push( new inans('Cymbals', new Array()));
	answers.push( new inans('Tam-tam', new Array('Gong')));
	answers.push( new inans('Triangle', new Array()));
	answers.push( new inans('Wood Block', new Array()));
	answers.push( new inans('Tambourine', new Array('Marine')));
	answers.push( new inans('Glockenspiel', new Array('Orchestra bells','bell lira','bell lyre')));
	answers.push( new inans('Xylophone', new Array()));
	answers.push( new inans('Vibraphone', new Array('Vibraharp','Vibes')));
	answers.push( new inans('Chimes', new Array('Tubular bells')));
	answers.push( new inans('Piano', new Array('Grand Piano')));
	answers.push( new inans('Celesta', new Array('Celeste')));
	answers.push( new inans('Harp', new Array()));
	answers.push( new inans('Violins (30)', new Array('Violin')));
	answers.push( new inans('Violas (12)', new Array('Viola')));
	answers.push( new inans('Violoncellos (10)', new Array('Violonchello','Cello','Celli')));
	answers.push( new inans('Double Basses (8)', new Array('Double Bass','Contrabass')));
	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 sure know your Orchestral instruments.\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");
	}
}

