var WordsFont = "26px Verdana"; var GAEventName = "game-099-0002-mixed-20"; var word_list = 0; var WordList = [ [ "I","need","ensure","you","produce","best","doors", "how","would","describe","David","Davids","David's","face", "what","drawing", "Peter","realize","reallize","he","doing","does", "!","?",",",".","didn't","don't","doesn't","will","be","the","a","an","to","was","is","are" ], [ "hit","that","button", "yesterday","we","faced","lot","of","difficulties","difficultyes", "why","you","not","listening","me", "place","pot","into","oven","lay", "!","?",",",".","didn't","don't","doesn't","will","be","the","a","an","to","was","is","are" ], [ "has","she","eaten","all","her","food", "this","sleeve","not","covering","my","wrist","cover","does", "accident","causing","disruptions","all","over","country","disruption", "wouldn't","you","like","close","door", "!","?",",",".","didn't","don't","doesn't","will","be","the","a","an","to","was","is","are" ], [ "your","work","ending","now","end", "have","they","caught","burglars","cought","catch", "always","choose","best","chuse", "could","you","tell","me","if","level","increasing","increase", "!","?",",",".","didn't","don't","doesn't","will","be","the","a","an","to","was","is","are" ], [ "what","do","they","teach","in","that","college", "when","did","they","catch","them", "man","pointing","towards","green","house","point", "we","representing","our","village","reprecenting", "!","?",",",".","didn't","don't","doesn't","will","be","the","a","an","to","was","is","are" ] ]; var A = [ ["I","need","to","ensure",",","you","produce","the","best","doors","."], ["Don't","hit","that","button","."], ["Has","she","eaten","all","her","food","?"], ["Is","your","work","ending","now","?"], ["What","do","they","teach","in","that","college","?"], ["How","would","you","describe","David's","face","?"], ["Yesterday","we","faced","a","lot","of","difficulties","."], ["This","sleeve","is","not","covering","my","wrist","."], ["Have","they","caught","the","burglars","?"], ["When","did","they","catch","them","?"], ["What","are","you","drawing","?"], ["Why","are","you","not","listening","to","me","?"], ["The","accident","was","causing","disruptions","all","over","the","country","."], ["Always","choose","the","best","."], ["The","man","was","pointing","towards","the","green","house","."], ["Peter","didn't","realize",",","what","he","was","doing","."], ["Place","the","pot","into","the","oven","."], ["Wouldn't","you","like","to","close","the","door","?"], ["Could","you","tell","me",",","if","the","level","is","increasing","?"], ["We","will","be","representing","our","village","."] ]; var Points = [ 18, 8, 12, 10, 14, 15, 14, 14, 10, 11, 9, 15, 19, 8, 16, 14, 12, 15, 19, 12 ]; var TotalPoints = 265; var ColorList = ["red", "blue", "brown", "maroon", "black"]; var Q = [ "Мені потрібно запевнитись, що виробляєте найкращі двері.", "Не бий ту кнопку.", "Вона з'їла всю свою їжу?", "Твоя робота закінчується зараз?", "Що вони навчають у тому коледжі?", "Як би ти описала обличчя Дейвида?", "Вчора ми постали перед багатьма труднощами.", "Цей рукав не накриває моє зап'ястя.", "Вони зловили грабіжників?", "Коли вони їх зловили?", "Що креслиш?", "Чому ти мене не слухаєш?", "Аварія спричинювала зриви по всій країні.", "Завжди обирайте найкраще.", "Чоловік вказував на зелену хату.", "Пітер не усвідомлював, що робив.", "Клади горщик в духовку.", "Ви б не хотіли зачинити двері?", "Не могли б мені сказати, чи збільшується рівень?", "Ми представлятимемо наше село." ]; var TotalGames = A.length+1; ///////////////////////////////////////// // Randomize the words array ///////////////////////////////////////// function ReshuffleArray(array) { var currentIndex = array.length, temporaryValue, randomIndex; // While there remain elements to shuffle... while (0 !== currentIndex) { // Pick a remaining element... randomIndex = Math.floor(Math.random() * currentIndex); currentIndex -= 1; // And swap it with the current element. temporaryValue = array[currentIndex]; array[currentIndex] = array[randomIndex]; array[randomIndex] = temporaryValue; } return array; } for( var i = 0; i 3 ) word_list = 0; else word_list++; } var MaxCorrectSounds = 16; var ErrorSoundCounter = 0; var ErrorSound = [ "099-0002-001.mp3", "099-0002-002.mp3", "099-0002-003.mp3", "099-0002-004.mp3", "099-0002-005.mp3", "099-0002-006.mp3", "099-0002-007.mp3", "099-0002-008.mp3", "099-0002-009.mp3", "099-0002-010.mp3", "099-0002-011.mp3", "099-0002-012.mp3", "099-0002-013.mp3", "099-0002-014.mp3", "099-0002-015.mp3", "099-0002-016.mp3", "099-0002-017.mp3", "099-0002-018.mp3", "099-0002-019.mp3", "099-0002-020.mp3" ]; var MaxUaSounds = 20; var UaSound = [ "u099-0002-001.mp3", "u099-0002-002.mp3", "u099-0002-003.mp3", "u099-0002-004.mp3", "u099-0002-005.mp3", "u099-0002-006.mp3", "u099-0002-007.mp3", "u099-0002-008.mp3", "u099-0002-009.mp3", "u099-0002-010.mp3", "u099-0002-011.mp3", "u099-0002-012.mp3", "u099-0002-013.mp3", "u099-0002-014.mp3", "u099-0002-015.mp3", "u099-0002-016.mp3", "u099-0002-017.mp3", "u099-0002-018.mp3", "u099-0002-019.mp3", "u099-0002-020.mp3" ]; var CorrectSound = [ "correct8.mp3", "correct9.mp3", "correct10.mp3", "correct11.mp3", "correct12.mp3", "correct4.mp3", "correct6.mp3", "correct7.mp3", "correct14.mp3", "correct15.mp3", "correct16.mp3", "correct1.mp3", "correct2.mp3", "correct3.mp3", "correct18.mp3", "correct13.mp3" ]; CorrectSound = ReshuffleArray(CorrectSound);