var presentation = ["Brother Bear<\/word>","Inuit boy<\/word>","pursues a bear<\/word>","revenge<\/word>","killed<\/word>","tracks down the bear<\/word>","kills it<\/word>","the Spirits<\/word>","change Kenai into a bear himself<\/word>","human again<\/word>","mountain<\/word>","Northern lights touch the earth<\/word>","Kenai is joined by a bear cub<\/word>","discovers the true meaning of brotherhood<\/word>","comedy-drama film<\/word>","Walt Disney Feature Animation<\/word>","Walt Disney Pictures<\/word>","film<\/word>","Kenai<\/word>","oldest brother<\/word>","Sitka<\/word>","travel<\/word>","Brother Bear<\/strong> is a 2003 American animated comedy-drama film<\/strong> produced by Walt Disney Feature Animation<\/strong> and released by Walt Disney Pictures<\/strong>. In the film<\/strong>, an Inuit boy<\/strong> named Kenai<\/strong> pursues a bear<\/strong> in revenge<\/strong> for a fight that he provoked in which his oldest brother<\/strong> Sitka<\/strong> is killed<\/strong>. He tracks down the bear<\/strong> and kills it<\/strong>, but the Spirits<\/strong>, incensed by this unnecessary death, change Kenai into a bear himself<\/strong> as punishment. In order to be human again<\/strong>, Kenai<\/strong> must travel<\/strong> to a mountain<\/strong> where the Northern lights touch the earth<\/strong>. On his way, Kenai is joined by a bear cub<\/strong>, and learns to see through another's eyes, feel through another's heart, and discovers the true meaning of brotherhood<\/strong>.<\/phrase>","created through the Great Spirits<\/word>","form of an aurora<\/word>","necklaces in the shapes of different animals<\/word>","animals they represent symbolize what they must achieve to call themselves men<\/word>","Kenai receives the bear of love<\/word>","objects to his totem<\/word>","stating that bears are thieves<\/word>","Kodiak bear steals their basket of salmon<\/word>","pursue the bear<\/word>","fight ends on top of a glacier,<\/word>","Sitka gives his life to save his brothers<\/word>","bear survives the fall<\/word>","After Sitka's funeral<\/word>","Kenai blames the bear for Sitka's death<\/word>","chases the bear<\/word>","eventually slaying it<\/word>","the Spirits<\/word>","transform Kenai into a bear<\/word>","Denahi arrives<\/word>","believing that Kenai was killed by the bear<\/word>","vows to avenge Kenai by hunting it down<\/word>","post-ice age<\/word>","Alaska<\/word>","local tribesmen<\/word>","all creatures<\/word>","appear<\/word>","Kenai<\/word>","Denahi<\/word>","Sitka<\/word>","their tribe<\/word>","receive<\/word>","their totems<\/word>","rocky cliff<\/word>","In a post-ice age<\/strong> Alaska<\/strong>, the local tribesmen<\/strong> believe all creatures<\/strong> are created through the Great Spirits<\/strong>, who are said to appear<\/strong> in the form of an aurora<\/strong>. A trio of brothers, Kenai<\/strong>, the youngest; Denahi<\/strong>, the middle; and Sitka<\/strong>, the eldest, return to their tribe<\/strong> in order to receive<\/strong> their totems<\/strong>, necklaces in the shapes of different animals<\/strong>. The particular animals they represent symbolize what they must achieve to call themselves men<\/strong>. Unlike Sitka<\/strong>, who gained the eagle of guidance, and Denahi<\/strong>, who gained the wolf of wisdom, Kenai receives the bear of love<\/strong>. He objects to his totem<\/strong>, stating that bears are thieves<\/strong>, and believes his point is made a fact when a Kodiak bear steals their basket of salmon<\/strong>. Kenai<\/strong> and his brothers pursue the bear<\/strong>, but a fight ends on top of a glacier,<\/strong> during which Sitka gives his life to save his brothers<\/strong> by dislodging the glacier, although the bear survives the fall<\/strong>. After Sitka's funeral<\/strong>, an enraged Kenai blames the bear for Sitka's death<\/strong>. He hunts down and chases the bear<\/strong> up onto a rocky cliff<\/strong>, fighting and eventually slaying it<\/strong>. the Spirits<\/strong>, represented by Sitka<\/strong>'s spirit in the form of a bald eagle, arrive and transform Kenai into a bear<\/strong> after the dead bear's body evaporates and joins them. Denahi arrives<\/strong> and, believing that Kenai was killed by the bear<\/strong> from earlier, vows to avenge Kenai by hunting it down<\/strong>.<\/phrase>","Kenai falls down some rapids<\/word>","healed by Tanana<\/word>","shaman of his tribe<\/word>","advises him to return to the mountain<\/word>","find Sitka<\/word>","turned back to a human<\/word>","he atones for his actions<\/word>","wildlife can now speak<\/word>","caught in a trap<\/word>","freed by an outgoing bear cub<\/word>","Kenai will escort Koda to an annual salmon run<\/word>","cub will lead Kenai to the mountain<\/word>","two eventually form a brother-like relationship<\/word>","Koda reveals that his mother is missing<\/word>","two are hunted by Denahi<\/word>","Kenai<\/word>","moose brothers<\/word>","Rutt<\/word>","Tuke<\/word>","Koda<\/word>","Kenai falls down some rapids<\/strong>, survives, and is healed by Tanana<\/strong>, the shaman of his tribe<\/strong>. She does not speak the bear language, but advises him to return to the mountain<\/strong> to find Sitka<\/strong> and be turned back to a human<\/strong>, but only when he atones for his actions<\/strong>; she vanishes without an explanation. Kenai<\/strong> quickly discovers that the wildlife can now speak<\/strong> to him, meeting a pair of moose brothers<\/strong> named Rutt<\/strong> and Tuke<\/strong>. He gets caught in a trap<\/strong>, but is freed by an outgoing bear cub<\/strong> named Koda<\/strong>. They make a deal, Kenai will escort Koda to an annual salmon run<\/strong> and then the cub will lead Kenai to the mountain<\/strong>. As the two eventually form a brother-like relationship<\/strong>, Koda reveals that his mother is missing<\/strong>. The two are hunted by Denahi<\/strong>, who is still determined to avenge Kenai<\/strong>, unaware that the bear he is pursuing is actually Kenai<\/strong> himself.<\/phrase>","reach the salmon run<\/word>","large number of bears live as a family<\/word>","leader<\/word>","Koda tells a story about his mother recently fighting human hunters<\/word>","lead to Sitka's death<\/word>","the bear he killed was Koda's mother herself<\/word>","Kenai<\/word>","Koda<\/word>","Tug<\/word>","realize<\/word>","Eventually, Kenai<\/strong> and Koda<\/strong> reach the salmon run<\/strong>, where a large number of bears live as a family<\/strong>, including the leader<\/strong> Tug<\/strong>. Kenai<\/strong> accepts his new surroundings and is comfortable living with the other bears. During a discussion among the bears, Koda tells a story about his mother recently fighting human hunters<\/strong> on a glacier, reminding Kenai<\/strong> of his and his brothers' fight with the bear that lead to Sitka's death<\/strong> and making him realize<\/strong> that the entire time, the bear he killed was Koda's mother herself<\/strong>.<\/phrase>","runs away<\/word>","Koda soon follows<\/word>","Kenai confesses the truth to Koda<\/word>","Kenai leaves to reach the mountain<\/word>","having had a falling-out<\/word>","reform their brotherhood<\/word>","prompting him to forgive Kenai<\/word>","mountain<\/word>","Kenai is cornered by Denahi<\/word>","battle is interrupted by Koda<\/word>","steals Denahi's spear<\/word>","Kenai sacrifices himself for Koda<\/word>","prompting Sitka to appear<\/word>","turn him back into a human<\/word>","Koda needs him because of his own mistake<\/word>","Kenai asks Sitka to transform him back into a bear<\/word>","Sitka complies<\/word>","Kenai is transformed back into a bear<\/word>","Koda is reunited briefly<\/word>","spirit of his mother<\/word>","Kenai lives with the rest of the bears<\/word>","gains his title as a man<\/word>","Kenai<\/word>","Rutt<\/word>","Tuke<\/word>","Koda<\/word>","love<\/word>","Denahi<\/word>","surprise<\/word>","Sitka<\/word>","Shocked and horrified at his actions, Kenai<\/strong> runs away<\/strong> in a fit of guilt, but Koda soon follows<\/strong> him. Crestfallen, Kenai confesses the truth to Koda<\/strong>, who runs away<\/strong>, grief-stricken. An apologetic Kenai leaves to reach the mountain<\/strong>. Meanwhile, Rutt<\/strong> and Tuke<\/strong>, having had a falling-out<\/strong>, reform their brotherhood<\/strong> in front of Koda<\/strong>, prompting him to forgive Kenai<\/strong>. On the mountain<\/strong>, Kenai is cornered by Denahi<\/strong>, but their battle is interrupted by Koda<\/strong>, who steals Denahi's spear<\/strong>. Kenai sacrifices himself for Koda<\/strong>, out of love<\/strong>, prompting Sitka to appear<\/strong> and turn him back into a human<\/strong>, much to Denahi<\/strong> and Koda<\/strong>'s surprise<\/strong>. However, upon realizing that Koda needs him because of his own mistake<\/strong>, Kenai asks Sitka to transform him back into a bear<\/strong> with Denahi<\/strong>'s support. Sitka complies<\/strong>, and Kenai is transformed back into a bear<\/strong>. Koda is reunited briefly<\/strong> with the spirit of his mother<\/strong>, before she and Sitka<\/strong> return to the spirit world. In the end, Kenai lives with the rest of the bears<\/strong> and gains his title as a man<\/strong>, through being a bear.<\/phrase>"]; var currentPosition = 0; var totalPositions = 0; var timePerWord = 1500; var timePerPhraseWord = 120 var readAheadPlayerTimer; var autoPlay = true; var setMinimized = false; var wordSpeedOptions = {'Slower':2000,'Moderate':1200,'Fast':800}; var phraseSpeedOptions = {'Slower':280,'Moderate':200,'Fast':80}; var defaultWordSpeedOption = 'Moderate'; var defaultPhraseSpeedOption = 'Moderate'; var logToLTI = false; $(window).load(function(){ totalPositions = presentation.length; if (totalPositions > 0){ $('body').prepend('
'); $('body').prepend('
'); $('#read_ahead_player').prepend('
'); initializeReadAheadControls(); initializeReadAheadSlider(); initializeReadAheadSpeedOptions(); currentReadAheadControls(); resumeReadAheadPlayback(); } }); $(document).keyup(function(e){ switch(e.which) { case 37: pauseReadAheadPresentation(); priorReadAheadPresentationItem(); break; case 39: pauseReadAheadPresentation(); nextReadAheadPresentationItem(); break; default: break; } }); function initializeReadAheadControls(){ var s = ''; s += ''; s += ''; s += ''; s += '
'; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; s += '
'; $('#read_ahead_player').append(s); } function initializeReadAheadSlider(){ var s = ''; s += '
'; s += '
'; s += '
'; $('#read_ahead_controls').prepend(s); updateReadAheadSliderPosition(); } function initializeReadAheadSpeedOptions(){ var s = '
'; s += '
'; s += ' Word Speed
'; s += '
'; optionCount = 0; for (index in wordSpeedOptions) { optionCount++; } optionWidth = 100 / optionCount; for (index in wordSpeedOptions) { var option = wordSpeedOptions[index]; if (index == defaultWordSpeedOption) { s += ''; updateReadAheadWordSpeed(option); } else { s += ''; } } s += '
'; s += '
'; s += '
'; s += ' Phrase Speed
'; s += '
'; optionCount = 0; for (index in phraseSpeedOptions) { optionCount++; } optionWidth = 100 / optionCount; for (index in phraseSpeedOptions) { var option = phraseSpeedOptions[index]; if (index == defaultWordSpeedOption) { s += ''; updateReadAheadPhraseSpeed(option); } else { s += ''; } } s += '
'; s += '
'; s += '
'; $('#read_ahead_controls').append(s); } function updateReadAheadWordSpeed(microseconds,sender) { microseconds = microseconds != undefined && microseconds > 0 ? microseconds : 0; if (microseconds > 0) { timePerWord = microseconds; } if (sender!=undefined) { $('#slider_control_word_speed').find('a').removeClass('current_speed'); $(sender).addClass('current_speed'); } logReadAheadPlayerAction('updateReadAheadWordSpeed','Presentation',microseconds); } function updateReadAheadPhraseSpeed(microseconds,sender) { microseconds = microseconds != undefined && microseconds > 0 ? microseconds : 0; if (microseconds > 0 ) { timePerPhraseWord = microseconds; } if (sender!=undefined) { $('#slider_control_phrase_speed').find('a').removeClass('current_speed'); $(sender).addClass('current_speed'); } logReadAheadPlayerAction('updateReadAheadPhraseSpeed','Presentation',microseconds); } function updateReadAheadSliderPosition(){ var currentSliderBarWidth = 100 - (100 / totalPositions * (currentPosition + 1)); $('#readAheadSliderBar').css('width',currentSliderBarWidth+'%'); } function currentReadAheadControls(){ $('#read_ahead_player_pause_play').show(); if (currentPosition < totalPositions - 1) { $('#read_ahead_player_next_word').removeClass('disabled'); } else { $('#read_ahead_player_next_word').addClass('disabled'); } if (currentPosition > 0) { $('#read_ahead_player_previous_word').removeClass('disabled'); } else { $('#read_ahead_player_previous_word').addClass('disabled'); } } function restartReadAheadPresentation(){ currentPosition = 0; logReadAheadPlayerAction('restartReadAheadPresentation','Presentation',''); resumeReadAheadPlayback(); } function resumeReadAheadPlayback(){ $('.fa-repeat').removeClass('fa-repeat').addClass('fa-play'); $('#read_ahead_player_pause_play').each(function(){ $(this).find('.fa-play').removeClass('fa-play').addClass('fa-pause'); $(this).off('click'); $(this).attr('onclick','pauseReadAheadPresentation()'); }); logReadAheadPlayerAction('resumeReadAheadPlayback','Presentation',''); playReadAheadPresentation(); } function pauseReadAheadPresentation(){ $('#read_ahead_player_pause_play').each(function(){ $(this).find('.fa-pause').removeClass('fa-pause').addClass('fa-play'); $(this).off('click'); $(this).attr('onclick','resumeReadAheadPlayback()'); }); logReadAheadPlayerAction('pauseReadAheadPresentation','Presentation',''); read_ahead_pause(); } function endReadAheadPresentation(){ $('.fa-play').removeClass('fa-play').addClass('fa-repeat'); $('.fa-pause').removeClass('fa-pause').addClass('fa-repeat'); $('#read_ahead_player_pause_play').each(function(){ $(this).off('click'); $(this).attr('onclick','restartReadAheadPresentation()'); }); logReadAheadPlayerAction('endReadAheadPresentation','Presentation',''); logLTIEndPresentation(); } function playReadAheadPresentation(){ autoPlay=true; currentPosition--; logReadAheadPlayerAction('playReadAheadPresentation','Presentation',''); nextReadAheadPresentationItem(); } function startReadAheadStepper(timeDisplayWord){ clearInterval(readAheadPlayerTimer); readAheadPlayerTimer = setTimeout(function() { read_ahead_step(); },timeDisplayWord); } function stopReadAheadStepper(){ clearInterval(readAheadPlayerTimer); } function read_ahead_step(){ if (autoPlay) { nextReadAheadPresentationItem(); } } function read_ahead_pause(){ autoPlay=false; stopReadAheadStepper(); } function showReadAheadPresentationItem(index){ currentPosition = index; currentPresentationItem = presentation[currentPosition] != undefined ? presentation[currentPosition].trim() : ""; if (currentPresentationItem != "") { currentItemWordCount = presentation[currentPosition].replace("\n","").split(" ").length; if (currentPresentationItem.startsWith("")){ startReadAheadStepper(currentItemWordCount*timePerWord); $('#read_ahead_player_field').html('
'+currentPresentationItem+'
'); logReadAheadPlayerAction('showReadAheadPresentationItem','Word',currentPresentationItem); } else { startReadAheadStepper(currentItemWordCount*timePerPhraseWord); $('#read_ahead_player_field').html('
'+currentPresentationItem.replace("\n","
")+'
'); logReadAheadPlayerAction('showReadAheadPresentationItem','Phrase',''); } } else { if (currentPosition < totalPositions) { nextReadAheadPresentationItem(); } else { endReadAheadPresentation(); read_ahead_minimize(); } } currentReadAheadControls(); updateReadAheadSliderPosition(); saveReadAheadPosition(); } function priorReadAheadPresentationItem(){ stopReadAheadStepper(); logReadAheadPlayerAction('priorReadAheadPresentationItem','Controls',''); showReadAheadPresentationItem(currentPosition-1); } function nextReadAheadPresentationItem(){ stopReadAheadStepper(); logReadAheadPlayerAction('nextReadAheadPresentationItem','Controls',''); showReadAheadPresentationItem(currentPosition+1); } function read_ahead_playAgain(){ currentWordIndex = 0; logReadAheadPlayerAction('read_ahead_playAgain','Controls',''); playReadAheadPresentation(); } function read_ahead_minimize(){ setMinimized = true; logReadAheadPlayerAction('read_ahead_minimize','Controls',''); read_ahead_switch_min_max(); } function read_ahead_maximize(){ setMinimized = false; logReadAheadPlayerAction('read_ahead_maximize','Controls',''); read_ahead_switch_min_max(); } function read_ahead_switch_min_max(forceSwitch){ forceSwitch = forceSwitch != undefined ? forceSwitch : false; if (forceSwitch) { setMinimized = !setMinimized; } if (setMinimized) { $('#read_ahead_player_back').fadeOut(); $('#read_ahead_player').addClass('minimize'); $('.player-icons .fa-stack').removeClass('fa-lg').addClass('fa-sm'); $('.player-icons .fa-minus').removeClass('fa-minus').addClass('fa-expand'); logReadAheadPlayerAction('read_ahead_switch_min_max','Min',''); //$('#read_ahead_player_max_min').each(function(){ // $(this).off('click'); // $(this).attr('onclick','read_ahead_maximize()'); //}); } else { $('#read_ahead_player_back').fadeIn(); $('#read_ahead_player').removeClass('minimize'); $('.player-icons .fa-stack').removeClass('fa-sm').addClass('fa-lg'); $('.player-icons .fa-expand').removeClass('fa-expand').addClass('fa-minus'); logReadAheadPlayerAction('read_ahead_switch_min_max','Max',''); //$('#read_ahead_player_max_min').each(function(){ // $(this).off('click'); // $(this).attr('onclick','read_ahead_minimize()'); //}); } } function saveReadAheadPosition(){ $.ajax({ type:'POST', url:'/ajax/save_user_presentation_position.php', data: { 'id':2291, 'position': currentPosition } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); } function logLTIEndPresentation(action) { if (!logToLTI) { return; } $.ajax({ type:'POST', url:'/lti/presentationEnded.php', data: { 'documentId':2291, 'userId':0, } }) } function logReadAheadPlayerAction(action,area,details){ var d = new Date(); var t = d.getTime(); action = action != undefined ? action.trim() : 'UNKNOWN'; area = area != undefined ? area.trim() : ''; details = details != undefined ? details : ''; // If we are about to show a new word, increase the number of keywords // reinforced so we can log that for the Dashboard page. if (area == 'Word') { window.keywordCount++; } $.ajax({ type:'POST', url:'/logging/logPlayerAction.php', data: { 'documentId':2291, 'userId':0, 'playerAction':action, 'playerArea':area, 'details':details, 'timestamp': t } }) .done(function(results){ }) .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); }); }