//Jquery should already be loaded. //Just because IE incase the console doesn't exist (LTE IE9). var console = console ? console : { log: function () {}, info: function () {}, warn: function () {}, error: function () {} }; jQuery(function () { //WARNING: THIS METHOD WILL NOT WORK IF YOU UPGRADE JQUERY TOO FAR //if( jQuery.browser.msie || ( jQuery.browser.version=='11.0' && jQuery.browser.mozilla )/* IE 11 is weird and reporting mozilla flag?.*/ ){ if( window.document.documentMode ) { console.warn('Using Internet Explorer!'); jQuery('#play-slider-1').on('change', function () { //console.log('Changed slider 1'); navi_helper.pause_images(1); navi_helper.go_to_picture(1, jQuery(this).val() ); }); jQuery('#play-slider-2').on('change', function () { //console.log('Changed slider 2'); navi_helper.pause_images(2); navi_helper.go_to_picture(2, jQuery(this).val() ); }); }else { jQuery('#play-slider-1').on('input', function () { //console.log('Changed slider 1'); navi_helper.pause_images(1); navi_helper.go_to_picture(1, jQuery(this).val() ); }); jQuery('#play-slider-2').on('input', function () { //console.log('Changed slider 2'); navi_helper.pause_images(2); navi_helper.go_to_picture(2, jQuery(this).val() ); }); } }); var navi_helper = { current_page:0, min_page:0, max_page:14, contentSets:{ //index: content set 0:0, 1:1, 2:2, 3:2, 4:3, 5:3, //6:3, 6:7, // changed slide, changed set 7:4, 8:4, //9:4, 9: 8, //changed slide changed set 10:5, 11:5, 12:6, 13:6, 13:6, 14:6, }, picRotName: '{0}map.jpg', //use replace{} supportsTouch: (typeof Touch == "object"), contentSetInfo:{ 1: { 1:'
 
  
 
  
 
  
Although we often thinking of glaciers shrinking or falling apart as an iconic image of the impacts of climate change, it can be hard to know that global climate change is causing the changes in glaciers. That is until recently...
In December 2016, Gerard H. Roe, Marcia B. Baker and Florian Herla <'+ String.fromCharCode(97) + ' href="https://www.nature.com/articles/ngeo2863" target="_blank">published their research in Nature: Geosciences looking at 37 glaciers from around the world. They used numerical modeling and statistics, with a combination of direct measurement observations and theory, to ask the question: is anthropogenic climate change causing glaciers to retreat (aka get smaller). The answer overwhelming is yes!
For all 37 glaciers that they looked at, the same overall pattern emerges: changes in the length of the glacier can be explained by climate change.
' }, 5: { 11:' 
  
Carbon dioxide mixes throughout the atmosphere all over our globe, regardless of where it entered the atmosphere. Because of this natural mixing, we can use the long-term measurements taken at the Mauna Loa Laboratory in Hawaii as a great example what of is going on everywhere in the atmosphere.
Scientists actually calculate the global trend of the amount of carbon dioxide in the atmosphere using data from hundreds of instruments from around the world and compare the trend taken from the ground observations to data taken from satellites. This calculated global trend is almost exactly the same as the trend at Mauna Loa. Therefore, scientists are confident that you can use the data from Mauna Loa as a good “<'+ String.fromCharCode(97) + ' href="https://youtu.be/vBU14vy9mEg" target="_blank">proxy” of what is going on everywhere.
Check out this great <'+ String.fromCharCode(97) + ' href="https://youtu.be/rEbE5fcnFVs" target="_blank">animation from the Scripps Institution of Oceanography at UC San Diego of the Keeling Curve.
', 12:' 
  
The relationship between greenhouse gases (like carbon dioxide, methane, water vapor, etc.) in the atmosphere and air temperature is complex. While there are many things that impact air temperature on our planet, the great benefit of greenhouse gases is that they absorb some heat energy before it leaves our Earth’s system and enters space. The more greenhouse gases in the atmosphere, the more heat energy they can “trap,” and thus the warmer the air temperature on Earth becomes.
' }, 6:{ 13:' 
  
 (Photo Credit: <'+ String.fromCharCode(97) + '  href="https://commons.wikimedia.org/wiki/File:Rutgers_Stadium.jpg" target="_blank">Ruman Fuchs) 9,186 feet is long! You would need to put 25.6 football fields end-to-end to reach that distance. It is also just under a 3K road race.'
					}
				},	
				fps: 3, //show two frames every second. (1000 ms/#)
				my_timer: {
					1: null,
					2: null
				},
				dynamic_images:{ //You'll need to update if you want dynamic year and month. Currently hardcoded into feb 2015
				},
				//This module is for pictures only. (e.g. slide 4)
				pictureModule: {
					myFPS:1.5, //a picture will be shown ever ( 1000 / myFPS ) ms 
					picturePointer: {
						//index is content set
						2: {
							imgID:'#set-2-dynamo-image',
							sliderID:'#graph-slider-set-2',
							imgSet:[
								'1972','1973'
								,'1985','1986','1988','1989'
								,'1990','1991','1999'
								,'2000','2001','2003','2004','2005','2006','2007','2009'
								,'2011','2014','2015'
							],
							currentPointer:0,
							syncToGraph: false,
						},
						3: {
							imgID:'#set-3-dynamo-image',
							sliderID:'#graph-slider-set-3',
							imgSet:[
								'1972','1973'
								,'1985','1986','1988','1989'
								,'1990','1991','1999'
								,'2000','2001','2003','2004','2005','2006','2007','2009'
								,'2011','2014','2015'
							],
							currentPointer:0,
							syncToGraph: true,
						},
					},
					pictureTimer: {
						//Slide number
						2: null,
						3: null,
					},
					resetImg: function (setNum){
						console.log('Resetting Image for set `',setNum,'`');
						this.picturePointer[setNum].currentPointer = 0;
						var newSrc = navi_helper.picRotName.replace('{0}', this.picturePointer[setNum].imgSet[this.picturePointer[setNum].currentPointer] );
						jQuery(this.picturePointer[setNum].imgID).prop({
							src: 'http://polar-ice.org/wp-content/uploads/2018/02/' + newSrc
						});
						jQuery(this.picturePointer[setNum].imgID+'-title').text(
							this.picturePointer[setNum].imgSet[this.picturePointer[setNum].currentPointer]
						);
					},
					stopAll: function () {
						for(var i in this.pictureTimer) {
							if(this.pictureTimer[i]){
								this.pause(i);	
							}
							this.resetImg(i);
							/*if( this.picturePointer[i].syncToGraph ) {
								this.synchronizeGraph(i);
							}*/
						}
						return true;
					},
					play: function ( setNum ) {
						console.log('[Set: '+ setNum +'] Play');
						//let's stop whatever is going on
						this.pause(setNum);	
						if( this.pictureTimer[setNum] ) {
							console.log('Already playing...');
							return true;
						}
						this.pictureTimer[setNum] = setInterval( function () {
							//Make sure this works on other browsers.
							navi_helper.pictureModule.picturePointer[setNum].currentPointer++;
							if (
								navi_helper.pictureModule.picturePointer[setNum].currentPointer > navi_helper.pictureModule.picturePointer[setNum].imgSet.length-1
							) { 
								//If we go over to the next one, we'll stop here.
								navi_helper.pictureModule.picturePointer[setNum].currentPointer = navi_helper.pictureModule.picturePointer[setNum].imgSet.length-1;
								navi_helper.pictureModule.pause(setNum);
								return true;
							}
							var newSrc = navi_helper.picRotName.replace('{0}', navi_helper.pictureModule.picturePointer[setNum].imgSet[navi_helper.pictureModule.picturePointer[setNum].currentPointer] );
							jQuery(navi_helper.pictureModule.picturePointer[setNum].imgID).prop({
								src: './images/story2/hinter-maps/' + newSrc
							});
							jQuery(navi_helper.pictureModule.picturePointer[setNum].imgID+'-title').text(
								navi_helper.pictureModule.picturePointer[setNum].imgSet[navi_helper.pictureModule.picturePointer[setNum].currentPointer]
							);
							jQuery(navi_helper.pictureModule.picturePointer[setNum].sliderID).val(navi_helper.pictureModule.picturePointer[setNum].currentPointer);
							if( navi_helper.pictureModule.picturePointer[setNum].syncToGraph ) {
								navi_helper.pictureModule.synchronizeGraph(setNum);
							}
						}, (1000 / this.myFPS));
						//Let's now refresh
					},
					pause: function (setNum) {
						console.log('[Set: '+ setNum +'] Pause');
						if( !this.pictureTimer[setNum] ) {
							console.log('Already paused or stopped...');
						}
						clearInterval(this.pictureTimer[setNum]);
						this.pictureTimer[setNum]=null;
						/*
						if( this.pictureTimer[page_num] ) {
							clearInterval(this.pictureTimer[page_num]);
							this.pictureTimer[page_num]=null;
						}
						*/
					},
					sliderGoTo: function (setNum, value) {
						console.log('[Set: '+ setNum +'] Slider Value: {'+value+'}');
						this.pause(setNum);
						navi_helper.pictureModule.picturePointer[setNum].currentPointer = value;
						if (
							navi_helper.pictureModule.picturePointer[setNum].currentPointer > navi_helper.pictureModule.picturePointer[setNum].imgSet.length-1
						) { 
							//stop here.
							navi_helper.pictureModule.picturePointer[setNum].currentPointer = navi_helper.pictureModule.picturePointer[setNum].imgSet.length-1;
							return true;
							//navi_helper.pictureModule.picturePointer[setNum].currentPointer = 0;
						}else if (
								navi_helper.pictureModule.picturePointer[setNum].currentPointer < 0
						) { 
							navi_helper.pictureModule.picturePointer[setNum].currentPointer = 0;
							return true;
							//navi_helper.pictureModule.picturePointer[setNum].currentPointer = navi_helper.pictureModule.picturePointer[setNum].imgSet.length-1;
						}
						jQuery(navi_helper.pictureModule.picturePointer[setNum].sliderID).val(navi_helper.pictureModule.picturePointer[setNum].currentPointer);
						var newSrc = navi_helper.picRotName.replace('{0}', this.picturePointer[setNum].imgSet[this.picturePointer[setNum].currentPointer] );
						jQuery(this.picturePointer[setNum].imgID).prop({
							src: './images/story2/hinter-maps/' + newSrc
						});
						jQuery(this.picturePointer[setNum].imgID+'-title').text(
							this.picturePointer[setNum].imgSet[this.picturePointer[setNum].currentPointer]
						);
						if( navi_helper.pictureModule.picturePointer[setNum].syncToGraph ) {
							navi_helper.pictureModule.synchronizeGraph(setNum);
						}
					},
					step: function (setNum, stepUp) {
						console.log('[Set: '+ setNum +'] Step: {'+(stepUp ? 'Up' : 'Back')+'}');
						this.pause(setNum);
						if( stepUp ){
							//Next year
							navi_helper.pictureModule.picturePointer[setNum].currentPointer++;
							if (
								navi_helper.pictureModule.picturePointer[setNum].currentPointer > navi_helper.pictureModule.picturePointer[setNum].imgSet.length-1
							) { 
								//stop here.
								navi_helper.pictureModule.picturePointer[setNum].currentPointer = navi_helper.pictureModule.picturePointer[setNum].imgSet.length-1;
								return true;
								//navi_helper.pictureModule.picturePointer[setNum].currentPointer = 0;
							}
						}else{
							//previous year
							navi_helper.pictureModule.picturePointer[setNum].currentPointer--;
							if (
								navi_helper.pictureModule.picturePointer[setNum].currentPointer < 0
							) { 
								navi_helper.pictureModule.picturePointer[setNum].currentPointer = 0;
								return true;
								//navi_helper.pictureModule.picturePointer[setNum].currentPointer = navi_helper.pictureModule.picturePointer[setNum].imgSet.length-1;
							}
						}
						jQuery(navi_helper.pictureModule.picturePointer[setNum].sliderID).val(navi_helper.pictureModule.picturePointer[setNum].currentPointer);
						var newSrc = navi_helper.picRotName.replace('{0}', this.picturePointer[setNum].imgSet[this.picturePointer[setNum].currentPointer] );
						jQuery(this.picturePointer[setNum].imgID).prop({
							src: './images/story2/hinter-maps/' + newSrc
						});
						jQuery(this.picturePointer[setNum].imgID+'-title').text(
							this.picturePointer[setNum].imgSet[this.picturePointer[setNum].currentPointer]
						);
						if( navi_helper.pictureModule.picturePointer[setNum].syncToGraph ) {
							navi_helper.pictureModule.synchronizeGraph(setNum);
						}
						return true;
					},
					synchronizeGraph: function (setNum) {
						//alert(setNum);
						if( setNum == 1 || setNum == 2 || setNum == 4 || setNum == 5 ) {
							console.log('[synchronizeGraph] No graphs to synchronize in this set ('+ navi_helper.contentSets[navi_helper.current_page] +').')
						}else if( setNum == 3 ) {
							console.log('[synchronizeGraph] Synchronizing Graph to Picture Set 3');
							if( !navi_helper.chartModule.chart ) {
								console.log('Chart not initialized yet, leaving function.');
								return true;
							}
							//We can just set the data to what we have.
							var findYear = this.picturePointer[setNum].imgSet[this.picturePointer[setNum].currentPointer];
							for(var i=0;i
(Photo Credit: <'+ String.fromCharCode(97) + '  href="https://commons.wikimedia.org/wiki/File:Rutgers_Stadium.jpg" target="_blank">Ruman Fuchs) 9,186 feet is long! You would need to put 25.6 football fields end-to-end to reach that distance. It is also just under a 3K road race.'
					}
				},	
				fps: 3, //show two frames every second. (1000 ms/#)
				my_timer: {
					1: null,
					2: null
				},
				dynamic_images:{ //You'll need to update if you want dynamic year and month. Currently hardcoded into feb 2015
				},
				//This module is for pictures only. (e.g. slide 4)
				pictureModule: {
					myFPS:1.5, //a picture will be shown ever ( 1000 / myFPS ) ms 
					picturePointer: {
						//index is content set
						2: {
							imgID:'#set-2-dynamo-image',
							sliderID:'#graph-slider-set-2',
							imgSet:[
								'1972','1973'
								,'1985','1986','1988','1989'
								,'1990','1991','1999'
								,'2000','2001','2003','2004','2005','2006','2007','2009'
								,'2011','2014','2015'
							],
							currentPointer:0,
							syncToGraph: false,
						},
						3: {
							imgID:'#set-3-dynamo-image',
							sliderID:'#graph-slider-set-3',
							imgSet:[
								'1972','1973'
								,'1985','1986','1988','1989'
								,'1990','1991','1999'
								,'2000','2001','2003','2004','2005','2006','2007','2009'
								,'2011','2014','2015'
							],
							currentPointer:0,
							syncToGraph: true,
						},
					},
					pictureTimer: {
						//Slide number
						2: null,
						3: null,
					},
					resetImg: function (setNum){
						console.log('Resetting Image for set `',setNum,'`');
						this.picturePointer[setNum].currentPointer = 0;
						var newSrc = navi_helper.picRotName.replace('{0}', this.picturePointer[setNum].imgSet[this.picturePointer[setNum].currentPointer] );
						jQuery(this.picturePointer[setNum].imgID).prop({
							src: 'http://polar-ice.org/wp-content/uploads/2018/02/' + newSrc
						});
						jQuery(this.picturePointer[setNum].imgID+'-title').text(
							this.picturePointer[setNum].imgSet[this.picturePointer[setNum].currentPointer]
						);
					},
					stopAll: function () {
						for(var i in this.pictureTimer) {
							if(this.pictureTimer[i]){
								this.pause(i);	
							}
							this.resetImg(i);
							/*if( this.picturePointer[i].syncToGraph ) {
								this.synchronizeGraph(i);
							}*/
						}
						return true;
					},
					play: function ( setNum ) {
						console.log('[Set: '+ setNum +'] Play');
						//let's stop whatever is going on
						this.pause(setNum);	
						if( this.pictureTimer[setNum] ) {
							console.log('Already playing...');
							return true;
						}
						this.pictureTimer[setNum] = setInterval( function () {
							//Make sure this works on other browsers.
							navi_helper.pictureModule.picturePointer[setNum].currentPointer++;
							if (
								navi_helper.pictureModule.picturePointer[setNum].currentPointer > navi_helper.pictureModule.picturePointer[setNum].imgSet.length-1
							) { 
								//If we go over to the next one, we'll stop here.
								navi_helper.pictureModule.picturePointer[setNum].currentPointer = navi_helper.pictureModule.picturePointer[setNum].imgSet.length-1;
								navi_helper.pictureModule.pause(setNum);
								return true;
							}
							var newSrc = navi_helper.picRotName.replace('{0}', navi_helper.pictureModule.picturePointer[setNum].imgSet[navi_helper.pictureModule.picturePointer[setNum].currentPointer] );
							jQuery(navi_helper.pictureModule.picturePointer[setNum].imgID).prop({
								src: './images/story2/hinter-maps/' + newSrc
							});
							jQuery(navi_helper.pictureModule.picturePointer[setNum].imgID+'-title').text(
								navi_helper.pictureModule.picturePointer[setNum].imgSet[navi_helper.pictureModule.picturePointer[setNum].currentPointer]
							);
							jQuery(navi_helper.pictureModule.picturePointer[setNum].sliderID).val(navi_helper.pictureModule.picturePointer[setNum].currentPointer);
							if( navi_helper.pictureModule.picturePointer[setNum].syncToGraph ) {
								navi_helper.pictureModule.synchronizeGraph(setNum);
							}
						}, (1000 / this.myFPS));
						//Let's now refresh
					},
					pause: function (setNum) {
						console.log('[Set: '+ setNum +'] Pause');
						if( !this.pictureTimer[setNum] ) {
							console.log('Already paused or stopped...');
						}
						clearInterval(this.pictureTimer[setNum]);
						this.pictureTimer[setNum]=null;
						/*
						if( this.pictureTimer[page_num] ) {
							clearInterval(this.pictureTimer[page_num]);
							this.pictureTimer[page_num]=null;
						}
						*/
					},
					sliderGoTo: function (setNum, value) {
						console.log('[Set: '+ setNum +'] Slider Value: {'+value+'}');
						this.pause(setNum);
						navi_helper.pictureModule.picturePointer[setNum].currentPointer = value;
						if (
							navi_helper.pictureModule.picturePointer[setNum].currentPointer > navi_helper.pictureModule.picturePointer[setNum].imgSet.length-1
						) { 
							//stop here.
							navi_helper.pictureModule.picturePointer[setNum].currentPointer = navi_helper.pictureModule.picturePointer[setNum].imgSet.length-1;
							return true;
							//navi_helper.pictureModule.picturePointer[setNum].currentPointer = 0;
						}else if (
								navi_helper.pictureModule.picturePointer[setNum].currentPointer < 0
						) { 
							navi_helper.pictureModule.picturePointer[setNum].currentPointer = 0;
							return true;
							//navi_helper.pictureModule.picturePointer[setNum].currentPointer = navi_helper.pictureModule.picturePointer[setNum].imgSet.length-1;
						}
						jQuery(navi_helper.pictureModule.picturePointer[setNum].sliderID).val(navi_helper.pictureModule.picturePointer[setNum].currentPointer);
						var newSrc = navi_helper.picRotName.replace('{0}', this.picturePointer[setNum].imgSet[this.picturePointer[setNum].currentPointer] );
						jQuery(this.picturePointer[setNum].imgID).prop({
							src: './images/story2/hinter-maps/' + newSrc
						});
						jQuery(this.picturePointer[setNum].imgID+'-title').text(
							this.picturePointer[setNum].imgSet[this.picturePointer[setNum].currentPointer]
						);
						if( navi_helper.pictureModule.picturePointer[setNum].syncToGraph ) {
							navi_helper.pictureModule.synchronizeGraph(setNum);
						}
					},
					step: function (setNum, stepUp) {
						console.log('[Set: '+ setNum +'] Step: {'+(stepUp ? 'Up' : 'Back')+'}');
						this.pause(setNum);
						if( stepUp ){
							//Next year
							navi_helper.pictureModule.picturePointer[setNum].currentPointer++;
							if (
								navi_helper.pictureModule.picturePointer[setNum].currentPointer > navi_helper.pictureModule.picturePointer[setNum].imgSet.length-1
							) { 
								//stop here.
								navi_helper.pictureModule.picturePointer[setNum].currentPointer = navi_helper.pictureModule.picturePointer[setNum].imgSet.length-1;
								return true;
								//navi_helper.pictureModule.picturePointer[setNum].currentPointer = 0;
							}
						}else{
							//previous year
							navi_helper.pictureModule.picturePointer[setNum].currentPointer--;
							if (
								navi_helper.pictureModule.picturePointer[setNum].currentPointer < 0
							) { 
								navi_helper.pictureModule.picturePointer[setNum].currentPointer = 0;
								return true;
								//navi_helper.pictureModule.picturePointer[setNum].currentPointer = navi_helper.pictureModule.picturePointer[setNum].imgSet.length-1;
							}
						}
						jQuery(navi_helper.pictureModule.picturePointer[setNum].sliderID).val(navi_helper.pictureModule.picturePointer[setNum].currentPointer);
						var newSrc = navi_helper.picRotName.replace('{0}', this.picturePointer[setNum].imgSet[this.picturePointer[setNum].currentPointer] );
						jQuery(this.picturePointer[setNum].imgID).prop({
							src: './images/story2/hinter-maps/' + newSrc
						});
						jQuery(this.picturePointer[setNum].imgID+'-title').text(
							this.picturePointer[setNum].imgSet[this.picturePointer[setNum].currentPointer]
						);
						if( navi_helper.pictureModule.picturePointer[setNum].syncToGraph ) {
							navi_helper.pictureModule.synchronizeGraph(setNum);
						}
						return true;
					},
					synchronizeGraph: function (setNum) {
						//alert(setNum);
						if( setNum == 1 || setNum == 2 || setNum == 4 || setNum == 5 ) {
							console.log('[synchronizeGraph] No graphs to synchronize in this set ('+ navi_helper.contentSets[navi_helper.current_page] +').')
						}else if( setNum == 3 ) {
							console.log('[synchronizeGraph] Synchronizing Graph to Picture Set 3');
							if( !navi_helper.chartModule.chart ) {
								console.log('Chart not initialized yet, leaving function.');
								return true;
							}
							//We can just set the data to what we have.
							var findYear = this.picturePointer[setNum].imgSet[this.picturePointer[setNum].currentPointer];
							for(var i=0;i ').
								appendTo(target);
							}							
						}else if( create_icon.icon == 'whale' ) {
							jQuery('')
							.css({
								top: create_icon.position.top,
								left: create_icon.position.left
							}).html('  '+ create_icon.content +'').
							appendTo(target);
							for(var i in create_icon.icon_position){
								var new_pos = create_icon.icon_position[i];
								jQuery('')
								.css({
									top: new_pos.top,
									left: new_pos.left
								}).html('
').
								appendTo(target);
							}							
						}else if( create_icon.icon == 'whale' ) {
							jQuery('')
							.css({
								top: create_icon.position.top,
								left: create_icon.position.left
							}).html('  '+ create_icon.content +'').
							appendTo(target);
							for(var i in create_icon.icon_position){
								var new_pos = create_icon.icon_position[i];
								jQuery('')
								.css({
									top: new_pos.top,
									left: new_pos.left
								}).html(' ').
								appendTo(target);
							}
						}else if( create_icon.icon == 'plankton' ) {
							//Are amoebas plankton? Probably. No longer questioning it.
							jQuery('')
							.css({
								top: create_icon.position.top,
								left: create_icon.position.left
							}).html('  '+ create_icon.content +'').
							appendTo(target);
							for(var i in create_icon.icon_position){
								var new_pos = create_icon.icon_position[i];
								jQuery('')
								.css({
									top: new_pos.top,
									left: new_pos.left
								}).html('
').
								appendTo(target);
							}
						}else if( create_icon.icon == 'plankton' ) {
							//Are amoebas plankton? Probably. No longer questioning it.
							jQuery('')
							.css({
								top: create_icon.position.top,
								left: create_icon.position.left
							}).html('  '+ create_icon.content +'').
							appendTo(target);
							for(var i in create_icon.icon_position){
								var new_pos = create_icon.icon_position[i];
								jQuery('')
								.css({
									top: new_pos.top,
									left: new_pos.left
								}).html(' ').
								appendTo(target);
							}
						}
					}
					jQuery('span.marker').on('click', function() {
						var $marker = jQuery(this),
							$caption = jQuery('span.caption', $marker);
						//console.log($caption);
						if( $caption.length < 1 ) {
							if( $marker.hasClass('penguin') ) {
								jQuery('span.marker.penguin.is-clickable').trigger('click');
							}else if( $marker.hasClass('whale') ) {
								jQuery('span.marker.whale.is-clickable').trigger('click');
							}else if( $marker.hasClass('plankton') ) {
								jQuery('span.marker.plankton.is-clickable').trigger('click');
							}
						}else{
							if ($caption.is(':hidden')) {
								$caption.slideDown(300);
							} else {
								$caption.slideUp(300);
							}
						}
					});
					//Fix anchor links in the span marker click to avoid event propagation
					// and other bad behavior
					jQuery('span.marker a').on('click', function (event) {
						event.stopPropagation();
						return true;
					});
					return true;
				},
				update_image_information: function () {
					return true;
					this.pause_images(1);
					this.pause_images(2);
					if( this.current_page < 4 ) {
						jQuery('#picture-frame-1').removeClass('dual-image');
						jQuery('#picture-frame-2').removeClass('dual-image').hide();
						jQuery('#image-changer-1').prop({src: this.static_image});
						jQuery('#play-controls-1').hide();
						return true;
					}
					jQuery('#play-controls-1').show();
					jQuery('#picture-frame-1').removeClass('dual-image');
					jQuery('#picture-frame-2').removeClass('dual-image').hide();
					var my_rules = this.dynamic_images[ this.current_page ];
					if( my_rules.num_images == 1 ) {
						this.dynamic_images[ this.current_page ].frames[1].show_picture = 0;
						jQuery('#play-slider-1').val(0).prop({max:this.dynamic_images[ this.current_page ].frames[1].pictures.length-1}); 
						var pad = "00";
						var str_day = '' + this.dynamic_images[ this.current_page ].frames[1].curr_day;
						var str_hr = '' + this.dynamic_images[ this.current_page ].frames[1].curr_hr;
						jQuery('#image-changer-1').prop({
							src: this.dynamic_images[ this.current_page ].location + 
							'201502' + 
							pad.substring(0, pad.length - str_day.length) + str_day + 
							'T' +
							pad.substring(0, pad.length - str_hr.length) + str_hr + 
							'00.png'
						});//.removeClass('dual-image');
						jQuery('#picture-frame-2').css({display:'none'});
					}else{
						jQuery('#play-slider-1').val(0).prop({max:this.dynamic_images[ this.current_page ].frames[1].pictures.length-1});
						jQuery('#play-slider-2').val(0).prop({max:this.dynamic_images[ this.current_page ].frames[2].pictures.length-1});
						this.dynamic_images[ this.current_page ].frames[1].show_picture = 0;
						this.dynamic_images[ this.current_page ].frames[2].show_picture = 0;
						jQuery('#picture-frame-1').addClass('dual-image');
						jQuery('#picture-frame-2').addClass('dual-image').css({display:'inline-block'});
						var pad = "00";
						var str_day = '' + this.dynamic_images[ this.current_page ].frames[1].curr_day;
						var str_hr = '' + this.dynamic_images[ this.current_page ].frames[1].curr_hr;
						var str_day2 = '' + this.dynamic_images[ this.current_page ].frames[2].curr_day;
						var str_hr2 = '' + this.dynamic_images[ this.current_page ].frames[2].curr_hr;
						jQuery('#image-changer-1').prop({
							src: this.dynamic_images[ this.current_page ].location + 
							'201502' + 
							pad.substring(0, pad.length - str_day.length) + str_day + 
							'T' +
							pad.substring(0, pad.length - str_hr.length) + str_hr + 
							'00.png'
						});
						jQuery('#image-changer-2').prop({
							src: this.dynamic_images[ this.current_page ].location + 
							'201502' + 
							pad.substring(0, pad.length - str_day2.length) + str_day2 + 
							'T' +
							pad.substring(0, pad.length - str_hr2.length) + str_hr2 + 
							'00.png'
						});
					}
					if( this.current_page == 4 || this.current_page == 6 ){
						if( my_rules.num_images == 1 ) {
							this.play_images(1);
						}else{
							this.play_images(1);
							this.play_images(2);
						}
					}
					return true;
				},
				play_images: function (frame_id) {
					this.pause_images(frame_id);
					this.my_timer[frame_id] = setInterval( function () {
						//console.log('Image change.');
						navi_helper.forward_image_source(frame_id);
					}, ( 1000 / this.fps ) );
				},
				pause_images: function (frame_id) {
					if( this.my_timer[frame_id] !== null ) {
						clearInterval( this.my_timer[frame_id] );
						this.my_timer[frame_id] = null;
					}
				},
				step_forward: function (frame_id) {
					this.pause_images(frame_id);
					this.forward_image_source(frame_id);
				},
				step_back: function (frame_id) { 
					this.pause_images(frame_id);
					this.previous_image_source(frame_id);
				},
				go_to_picture: function (frame_id, picture_id){
					this.dynamic_images[ this.current_page ].frames[frame_id].show_picture = picture_id;
					this.show_images(frame_id);
				},
				forward_image_source: function (frame_id) {
					this.dynamic_images[ this.current_page ].frames[frame_id].show_picture++;
					if( this.dynamic_images[ this.current_page ].frames[frame_id].show_picture >= this.dynamic_images[ this.current_page ].frames[frame_id].pictures.length  ) {
						this.dynamic_images[ this.current_page ].frames[frame_id].show_picture=0;
					}
					//console.log(this.dynamic_images[ this.current_page ]);
					jQuery('#play-slider-' + frame_id).val( this.dynamic_images[ this.current_page ].frames[frame_id].show_picture ) ;
					this.show_images(frame_id);
					return true;
				},
				previous_image_source: function (frame_id) {
					this.dynamic_images[ this.current_page ].frames[frame_id].show_picture--;
					if( this.dynamic_images[ this.current_page ].frames[frame_id].show_picture < 0 ) {
						this.dynamic_images[ this.current_page ].frames[frame_id].show_picture=this.dynamic_images[ this.current_page ].frames[frame_id].pictures.length-1;
					}
					jQuery('#play-slider-' + frame_id).val( this.dynamic_images[ this.current_page ].frames[frame_id].show_picture ) ;
					this.show_images(frame_id);
					return true;
				},
				show_images: function (frame_id) {
					var my_rules = this.dynamic_images[ this.current_page ].frames[frame_id];
					var pad = "00";
					var str_day = '' + this.dynamic_images[ this.current_page ].frames[frame_id].curr_day;
					var str_hr = '' + this.dynamic_images[ this.current_page ].frames[frame_id].curr_hr;
					jQuery('#image-changer-' + frame_id).prop({
						src: this.dynamic_images[ this.current_page ].frames[frame_id].pictures[ this.dynamic_images[ this.current_page ].frames[frame_id].show_picture ]
					});
					///polar_ice/maps/justmap_new_160212/tidalcurrents_20150208T0100.png
					/*
					jQuery('#image-changer-' + frame_id).prop({
						src: this.dynamic_images[ this.current_page ].location + 
						'201502' + 
						pad.substring(0, pad.length - str_day.length) + str_day + 
						'T' +
						pad.substring(0, pad.length - str_hr.length) + str_hr + 
						'00.png'
					});
					*/
					return true;
				},
				prev_button_state: function () {
					jQuery('#mosaic-prev-button').prop({disabled: (this.current_page == this.min_page) });
					return true;
				},
				next_button_state: function () {
					jQuery('#mosaic-next-button').prop({disabled: (this.current_page == this.max_page) });
					return true;
				},
				preload_all_images: function() {
					return true;
				},
				initialize_pictures: function () {
					var my_dynamic_images = this.dynamic_images;
					for(var page in my_dynamic_images){
						var my_frames = this.dynamic_images[page].frames;
						for(var my_frame in my_frames){
							//We'll need to calculate then push (in order)
							var total_time = (this.dynamic_images[ page ].frames[my_frame].curr_day * 100) + this.dynamic_images[ page ].frames[my_frame].curr_hr;
							var end_time = (this.dynamic_images[ page ].frames[my_frame].end_day * 100) + this.dynamic_images[ page ].frames[my_frame].end_hr;
							while( total_time < end_time ) {
								this.dynamic_images[ page ].frames[my_frame].curr_hr++;
								if( this.dynamic_images[ page ].frames[my_frame].curr_hr >= 24 ) {
									this.dynamic_images[ page ].frames[my_frame].curr_day++;
									this.dynamic_images[ page ].frames[my_frame].curr_hr=0;
								}
								//e.g. day = 8 (or '08') hour = 11 (or '11'), total time = 811 or ('0811') vs end time of 2200 for day 22, hour 00
								total_time = (this.dynamic_images[ page ].frames[my_frame].curr_day * 100) + this.dynamic_images[ page ].frames[my_frame].curr_hr;
								var pad = "00";
								var str_day = '' + this.dynamic_images[ page ].frames[my_frame].curr_day;
								var str_hr = '' + this.dynamic_images[ page ].frames[my_frame].curr_hr;
								this.dynamic_images[ page ].frames[my_frame].pictures.push(
									this.dynamic_images[ page ].location + 
									'201502' + 
									pad.substring(0, pad.length - str_day.length) + str_day + 
									'T' +
									pad.substring(0, pad.length - str_hr.length) + str_hr + 
									'00.png'
								);
							}
							console.info('Page: `'+ page +'`, Frame: `'+ my_frame +'` initialized');
						}
					}
					return true;
				},loadStaticCharts: function () {
					//Loading static cahrts
					console.log('[Func(): loadStaticCharts]');
					//static-chart-3-1
					//static-chart-3-2
					Highcharts.chart('static-chart-3-1', {
				        chart: {
				        	id:'static-3-1',
				            type: 'spline',
							className: 'static-3-1',
				        },
				        plotOptions:{},
				        title: {
				            text: 'Arctic / Global Average Surface Air Temperature (C)'
				        },
				        tooltip:{
				        	useHTML:true,
				        	enabled:false
				        },
				        xAxis: {
				            title: {
				            	text: "Year"
				            },
				            type: 'linear',
				            min:1979,
				            max:2016,
							labels:{
							},
							tickInterval:5,
				        },
				        yAxis: {
				            title: {
				                text: 'Air Temperature (C)'
				            },
							labels:{
							},
							min:-17,
							max:9,
							endOnTick:false,
							startOnTick:false,
							floor: -17,
							ceiling: 9,
							tickInterval: 4
				        },
				        series: [{
				            name: 'Arctic Mean Air Temperature (C)',
				            data: (
				            		navi_helper.chartModule.seriesSets['arctic-mean']
		            		), //navi_helper.chartModule.seriesSets[3]['chart-1']
				        	color:'red'
				        },{
				            name: 'Global Mean Air Temperature (C)',
				            data: (
				            		navi_helper.chartModule.seriesSets['global-mean']
		            		), //navi_helper.chartModule.seriesSets[3]['chart-1']
				        	color:'blue'
				        }]
				    });
				},
orig_loadStaticCharts: function () {
					//Loading static cahrts
					console.log('[Func(): loadStaticCharts]');
					//static-chart-3-1
					//static-chart-3-2
					Highcharts.chart('static-chart-3-1', {
				        chart: {
				        	id:'static-3-1',
				            type: 'spline',
							className: 'static-3-1',
				        },
				        plotOptions:{},
				        title: {
				            text: 'Arctic Average Surface Air Temperature (C)'
				        },
				        tooltip:{
				        	useHTML:true,
				        	enabled:false
				        },
				        xAxis: {
				            title: {
				            	text: "Year"
				            },
				            type: 'linear',
				            min:1979,
				            max:2016,
							labels:{
							},
							tickInterval:5,
				        },
				        yAxis: {
				            title: {
				                text: 'Air Temperature (C)'
				            },
							labels:{
							},
							min:-13,
							max:-7,
							endOnTick:false,
							startOnTick:false,
							floor: -13,
							ceiling: -7,
							tickInterval:1,
				        },
				        series: [{
				            name: 'Arctic Mean Air Temperature (C)',
				            data: (
				            		navi_helper.chartModule.seriesSets['arctic-mean']
		            		), //navi_helper.chartModule.seriesSets[3]['chart-1']
				        	color:'red'
				        }]
				    });
					Highcharts.chart('static-chart-3-2', {
				        chart: {
				        	id:'static-3-2',
				            type: 'spline',
							className: 'static-3-2'
				        },
				        plotOptions:{},
				        title: {
				            text: 'Global Averages Surface Air Temperature (C)'
				        },
				        tooltip:{
				        	useHTML:true,
				        	enabled:false
				        },
				        xAxis: {
				            title: {
				            	text: "Year"
				            },
				            type: 'linear',
				            min:1979,
				            max:2016,
							labels:{
							},
							tickInterval:5,
				        },
				        yAxis: {
				            title: {
				                text: 'Air Temperature (C)'
				            },
							labels:{
							},
							min:3,
							max:7,
							endOnTick:false,
							startOnTick:false,
							floor: 3,
							ceiling: 7,
							tickInterval:1,
				        },
				        series: [{
				            name: 'Air Temperature (C)',
				            data: (
				            		navi_helper.chartModule.seriesSets['global-mean']
		            		), //navi_helper.chartModule.seriesSets[3]['chart-1']
				        	color:'red'
				        }]
				    });
				}
			};
			//There might be a conflict with the shorthand Dollar sign ($), so we'll just use jQuery instead
			
			jQuery.get('https://polar-ice.org/wp-content/uploads/2020/08/story_4_eng.html.txt', function(data) {
			console.log('THE DATA: ', data);
			
				var myHTML = data.replace(/REPLACE_OPEN_ANGLE_BRACKET/g, '<');
				
				myHTML = myHTML.replace(/REPLACE_CLOSE_ANGLE_BRACKET/g, '>');
				jQuery('#story-4-div').html(myHTML);
				
				console.log('HTML Loaded. Loading other items.');
				jQuery('#mosaic-prev-button').prop({disabled:true});
				jQuery('#mosaic-next-button').prop({disabled:false});
				jQuery('button','#mosaic-button-nav').on('click', function () {
					navi_helper.go_to_page( jQuery(this).data('page-id') );
				});
				//We're going to remove the #sidebar for now and make #main width 100%
				jQuery('#sidebar').hide();
				jQuery('#main').css({width:'100%'});
				jQuery('.ext-page').on('click', function () {
					console.log(jQuery(this).data('extpage') );
					jQuery('.standard-set').hide();
					jQuery('#' + jQuery(this).data('extpage') ).show();
				});
				navi_helper.chartModule.initializeGraphs();
				navi_helper.initializeButtons();
				navi_helper.loadStaticCharts();
				navi_helper.go_to_page(0);
				jQuery('span.hover-box').on('click', function () {
					jQuery(this).slideUp();
				})
				jQuery('span.hover-box-img').on('click', function () {
					jQuery(this).slideUp();
				});
				
				
			}, 'text');
').
								appendTo(target);
							}
						}
					}
					jQuery('span.marker').on('click', function() {
						var $marker = jQuery(this),
							$caption = jQuery('span.caption', $marker);
						//console.log($caption);
						if( $caption.length < 1 ) {
							if( $marker.hasClass('penguin') ) {
								jQuery('span.marker.penguin.is-clickable').trigger('click');
							}else if( $marker.hasClass('whale') ) {
								jQuery('span.marker.whale.is-clickable').trigger('click');
							}else if( $marker.hasClass('plankton') ) {
								jQuery('span.marker.plankton.is-clickable').trigger('click');
							}
						}else{
							if ($caption.is(':hidden')) {
								$caption.slideDown(300);
							} else {
								$caption.slideUp(300);
							}
						}
					});
					//Fix anchor links in the span marker click to avoid event propagation
					// and other bad behavior
					jQuery('span.marker a').on('click', function (event) {
						event.stopPropagation();
						return true;
					});
					return true;
				},
				update_image_information: function () {
					return true;
					this.pause_images(1);
					this.pause_images(2);
					if( this.current_page < 4 ) {
						jQuery('#picture-frame-1').removeClass('dual-image');
						jQuery('#picture-frame-2').removeClass('dual-image').hide();
						jQuery('#image-changer-1').prop({src: this.static_image});
						jQuery('#play-controls-1').hide();
						return true;
					}
					jQuery('#play-controls-1').show();
					jQuery('#picture-frame-1').removeClass('dual-image');
					jQuery('#picture-frame-2').removeClass('dual-image').hide();
					var my_rules = this.dynamic_images[ this.current_page ];
					if( my_rules.num_images == 1 ) {
						this.dynamic_images[ this.current_page ].frames[1].show_picture = 0;
						jQuery('#play-slider-1').val(0).prop({max:this.dynamic_images[ this.current_page ].frames[1].pictures.length-1}); 
						var pad = "00";
						var str_day = '' + this.dynamic_images[ this.current_page ].frames[1].curr_day;
						var str_hr = '' + this.dynamic_images[ this.current_page ].frames[1].curr_hr;
						jQuery('#image-changer-1').prop({
							src: this.dynamic_images[ this.current_page ].location + 
							'201502' + 
							pad.substring(0, pad.length - str_day.length) + str_day + 
							'T' +
							pad.substring(0, pad.length - str_hr.length) + str_hr + 
							'00.png'
						});//.removeClass('dual-image');
						jQuery('#picture-frame-2').css({display:'none'});
					}else{
						jQuery('#play-slider-1').val(0).prop({max:this.dynamic_images[ this.current_page ].frames[1].pictures.length-1});
						jQuery('#play-slider-2').val(0).prop({max:this.dynamic_images[ this.current_page ].frames[2].pictures.length-1});
						this.dynamic_images[ this.current_page ].frames[1].show_picture = 0;
						this.dynamic_images[ this.current_page ].frames[2].show_picture = 0;
						jQuery('#picture-frame-1').addClass('dual-image');
						jQuery('#picture-frame-2').addClass('dual-image').css({display:'inline-block'});
						var pad = "00";
						var str_day = '' + this.dynamic_images[ this.current_page ].frames[1].curr_day;
						var str_hr = '' + this.dynamic_images[ this.current_page ].frames[1].curr_hr;
						var str_day2 = '' + this.dynamic_images[ this.current_page ].frames[2].curr_day;
						var str_hr2 = '' + this.dynamic_images[ this.current_page ].frames[2].curr_hr;
						jQuery('#image-changer-1').prop({
							src: this.dynamic_images[ this.current_page ].location + 
							'201502' + 
							pad.substring(0, pad.length - str_day.length) + str_day + 
							'T' +
							pad.substring(0, pad.length - str_hr.length) + str_hr + 
							'00.png'
						});
						jQuery('#image-changer-2').prop({
							src: this.dynamic_images[ this.current_page ].location + 
							'201502' + 
							pad.substring(0, pad.length - str_day2.length) + str_day2 + 
							'T' +
							pad.substring(0, pad.length - str_hr2.length) + str_hr2 + 
							'00.png'
						});
					}
					if( this.current_page == 4 || this.current_page == 6 ){
						if( my_rules.num_images == 1 ) {
							this.play_images(1);
						}else{
							this.play_images(1);
							this.play_images(2);
						}
					}
					return true;
				},
				play_images: function (frame_id) {
					this.pause_images(frame_id);
					this.my_timer[frame_id] = setInterval( function () {
						//console.log('Image change.');
						navi_helper.forward_image_source(frame_id);
					}, ( 1000 / this.fps ) );
				},
				pause_images: function (frame_id) {
					if( this.my_timer[frame_id] !== null ) {
						clearInterval( this.my_timer[frame_id] );
						this.my_timer[frame_id] = null;
					}
				},
				step_forward: function (frame_id) {
					this.pause_images(frame_id);
					this.forward_image_source(frame_id);
				},
				step_back: function (frame_id) { 
					this.pause_images(frame_id);
					this.previous_image_source(frame_id);
				},
				go_to_picture: function (frame_id, picture_id){
					this.dynamic_images[ this.current_page ].frames[frame_id].show_picture = picture_id;
					this.show_images(frame_id);
				},
				forward_image_source: function (frame_id) {
					this.dynamic_images[ this.current_page ].frames[frame_id].show_picture++;
					if( this.dynamic_images[ this.current_page ].frames[frame_id].show_picture >= this.dynamic_images[ this.current_page ].frames[frame_id].pictures.length  ) {
						this.dynamic_images[ this.current_page ].frames[frame_id].show_picture=0;
					}
					//console.log(this.dynamic_images[ this.current_page ]);
					jQuery('#play-slider-' + frame_id).val( this.dynamic_images[ this.current_page ].frames[frame_id].show_picture ) ;
					this.show_images(frame_id);
					return true;
				},
				previous_image_source: function (frame_id) {
					this.dynamic_images[ this.current_page ].frames[frame_id].show_picture--;
					if( this.dynamic_images[ this.current_page ].frames[frame_id].show_picture < 0 ) {
						this.dynamic_images[ this.current_page ].frames[frame_id].show_picture=this.dynamic_images[ this.current_page ].frames[frame_id].pictures.length-1;
					}
					jQuery('#play-slider-' + frame_id).val( this.dynamic_images[ this.current_page ].frames[frame_id].show_picture ) ;
					this.show_images(frame_id);
					return true;
				},
				show_images: function (frame_id) {
					var my_rules = this.dynamic_images[ this.current_page ].frames[frame_id];
					var pad = "00";
					var str_day = '' + this.dynamic_images[ this.current_page ].frames[frame_id].curr_day;
					var str_hr = '' + this.dynamic_images[ this.current_page ].frames[frame_id].curr_hr;
					jQuery('#image-changer-' + frame_id).prop({
						src: this.dynamic_images[ this.current_page ].frames[frame_id].pictures[ this.dynamic_images[ this.current_page ].frames[frame_id].show_picture ]
					});
					///polar_ice/maps/justmap_new_160212/tidalcurrents_20150208T0100.png
					/*
					jQuery('#image-changer-' + frame_id).prop({
						src: this.dynamic_images[ this.current_page ].location + 
						'201502' + 
						pad.substring(0, pad.length - str_day.length) + str_day + 
						'T' +
						pad.substring(0, pad.length - str_hr.length) + str_hr + 
						'00.png'
					});
					*/
					return true;
				},
				prev_button_state: function () {
					jQuery('#mosaic-prev-button').prop({disabled: (this.current_page == this.min_page) });
					return true;
				},
				next_button_state: function () {
					jQuery('#mosaic-next-button').prop({disabled: (this.current_page == this.max_page) });
					return true;
				},
				preload_all_images: function() {
					return true;
				},
				initialize_pictures: function () {
					var my_dynamic_images = this.dynamic_images;
					for(var page in my_dynamic_images){
						var my_frames = this.dynamic_images[page].frames;
						for(var my_frame in my_frames){
							//We'll need to calculate then push (in order)
							var total_time = (this.dynamic_images[ page ].frames[my_frame].curr_day * 100) + this.dynamic_images[ page ].frames[my_frame].curr_hr;
							var end_time = (this.dynamic_images[ page ].frames[my_frame].end_day * 100) + this.dynamic_images[ page ].frames[my_frame].end_hr;
							while( total_time < end_time ) {
								this.dynamic_images[ page ].frames[my_frame].curr_hr++;
								if( this.dynamic_images[ page ].frames[my_frame].curr_hr >= 24 ) {
									this.dynamic_images[ page ].frames[my_frame].curr_day++;
									this.dynamic_images[ page ].frames[my_frame].curr_hr=0;
								}
								//e.g. day = 8 (or '08') hour = 11 (or '11'), total time = 811 or ('0811') vs end time of 2200 for day 22, hour 00
								total_time = (this.dynamic_images[ page ].frames[my_frame].curr_day * 100) + this.dynamic_images[ page ].frames[my_frame].curr_hr;
								var pad = "00";
								var str_day = '' + this.dynamic_images[ page ].frames[my_frame].curr_day;
								var str_hr = '' + this.dynamic_images[ page ].frames[my_frame].curr_hr;
								this.dynamic_images[ page ].frames[my_frame].pictures.push(
									this.dynamic_images[ page ].location + 
									'201502' + 
									pad.substring(0, pad.length - str_day.length) + str_day + 
									'T' +
									pad.substring(0, pad.length - str_hr.length) + str_hr + 
									'00.png'
								);
							}
							console.info('Page: `'+ page +'`, Frame: `'+ my_frame +'` initialized');
						}
					}
					return true;
				},loadStaticCharts: function () {
					//Loading static cahrts
					console.log('[Func(): loadStaticCharts]');
					//static-chart-3-1
					//static-chart-3-2
					Highcharts.chart('static-chart-3-1', {
				        chart: {
				        	id:'static-3-1',
				            type: 'spline',
							className: 'static-3-1',
				        },
				        plotOptions:{},
				        title: {
				            text: 'Arctic / Global Average Surface Air Temperature (C)'
				        },
				        tooltip:{
				        	useHTML:true,
				        	enabled:false
				        },
				        xAxis: {
				            title: {
				            	text: "Year"
				            },
				            type: 'linear',
				            min:1979,
				            max:2016,
							labels:{
							},
							tickInterval:5,
				        },
				        yAxis: {
				            title: {
				                text: 'Air Temperature (C)'
				            },
							labels:{
							},
							min:-17,
							max:9,
							endOnTick:false,
							startOnTick:false,
							floor: -17,
							ceiling: 9,
							tickInterval: 4
				        },
				        series: [{
				            name: 'Arctic Mean Air Temperature (C)',
				            data: (
				            		navi_helper.chartModule.seriesSets['arctic-mean']
		            		), //navi_helper.chartModule.seriesSets[3]['chart-1']
				        	color:'red'
				        },{
				            name: 'Global Mean Air Temperature (C)',
				            data: (
				            		navi_helper.chartModule.seriesSets['global-mean']
		            		), //navi_helper.chartModule.seriesSets[3]['chart-1']
				        	color:'blue'
				        }]
				    });
				},
orig_loadStaticCharts: function () {
					//Loading static cahrts
					console.log('[Func(): loadStaticCharts]');
					//static-chart-3-1
					//static-chart-3-2
					Highcharts.chart('static-chart-3-1', {
				        chart: {
				        	id:'static-3-1',
				            type: 'spline',
							className: 'static-3-1',
				        },
				        plotOptions:{},
				        title: {
				            text: 'Arctic Average Surface Air Temperature (C)'
				        },
				        tooltip:{
				        	useHTML:true,
				        	enabled:false
				        },
				        xAxis: {
				            title: {
				            	text: "Year"
				            },
				            type: 'linear',
				            min:1979,
				            max:2016,
							labels:{
							},
							tickInterval:5,
				        },
				        yAxis: {
				            title: {
				                text: 'Air Temperature (C)'
				            },
							labels:{
							},
							min:-13,
							max:-7,
							endOnTick:false,
							startOnTick:false,
							floor: -13,
							ceiling: -7,
							tickInterval:1,
				        },
				        series: [{
				            name: 'Arctic Mean Air Temperature (C)',
				            data: (
				            		navi_helper.chartModule.seriesSets['arctic-mean']
		            		), //navi_helper.chartModule.seriesSets[3]['chart-1']
				        	color:'red'
				        }]
				    });
					Highcharts.chart('static-chart-3-2', {
				        chart: {
				        	id:'static-3-2',
				            type: 'spline',
							className: 'static-3-2'
				        },
				        plotOptions:{},
				        title: {
				            text: 'Global Averages Surface Air Temperature (C)'
				        },
				        tooltip:{
				        	useHTML:true,
				        	enabled:false
				        },
				        xAxis: {
				            title: {
				            	text: "Year"
				            },
				            type: 'linear',
				            min:1979,
				            max:2016,
							labels:{
							},
							tickInterval:5,
				        },
				        yAxis: {
				            title: {
				                text: 'Air Temperature (C)'
				            },
							labels:{
							},
							min:3,
							max:7,
							endOnTick:false,
							startOnTick:false,
							floor: 3,
							ceiling: 7,
							tickInterval:1,
				        },
				        series: [{
				            name: 'Air Temperature (C)',
				            data: (
				            		navi_helper.chartModule.seriesSets['global-mean']
		            		), //navi_helper.chartModule.seriesSets[3]['chart-1']
				        	color:'red'
				        }]
				    });
				}
			};
			//There might be a conflict with the shorthand Dollar sign ($), so we'll just use jQuery instead
			
			jQuery.get('https://polar-ice.org/wp-content/uploads/2020/08/story_4_eng.html.txt', function(data) {
			console.log('THE DATA: ', data);
			
				var myHTML = data.replace(/REPLACE_OPEN_ANGLE_BRACKET/g, '<');
				
				myHTML = myHTML.replace(/REPLACE_CLOSE_ANGLE_BRACKET/g, '>');
				jQuery('#story-4-div').html(myHTML);
				
				console.log('HTML Loaded. Loading other items.');
				jQuery('#mosaic-prev-button').prop({disabled:true});
				jQuery('#mosaic-next-button').prop({disabled:false});
				jQuery('button','#mosaic-button-nav').on('click', function () {
					navi_helper.go_to_page( jQuery(this).data('page-id') );
				});
				//We're going to remove the #sidebar for now and make #main width 100%
				jQuery('#sidebar').hide();
				jQuery('#main').css({width:'100%'});
				jQuery('.ext-page').on('click', function () {
					console.log(jQuery(this).data('extpage') );
					jQuery('.standard-set').hide();
					jQuery('#' + jQuery(this).data('extpage') ).show();
				});
				navi_helper.chartModule.initializeGraphs();
				navi_helper.initializeButtons();
				navi_helper.loadStaticCharts();
				navi_helper.go_to_page(0);
				jQuery('span.hover-box').on('click', function () {
					jQuery(this).slideUp();
				})
				jQuery('span.hover-box-img').on('click', function () {
					jQuery(this).slideUp();
				});
				
				
			}, 'text');