<!--       ***This part picks images***
var caption="test caption #1";
var image="";
var alternate="";
var banners=0;
function writeCaption() {
document.getElementById('captionBox').innerHTML = 'This image shows the sea ice minimum for 16 September 2008.  The magenta line indicates the long-term median from 1979 to 2000. The data set used to create this image was the AMSR-E/Aqua Daily L3 12.5 km Brightness Temperature, Sea Ice Concentration, & Snow Depth Polar Grids. Image courtesy of NSIDC and Google Earth&trade;.<br><br><br><br><br><br>';
   }
function cycle() {
  if (++banners > 4) banners=1; 
    loadcaptions();
	loadbanners();
	urlswitch();
	loadalts();
	document.banner1.src = image;
	document.banner1.alt = alternate;
    window.setTimeout('cycle();',18000); 
  }
function loadcaptions() {
   if (banners==1)
      {
      document.getElementById('captionBox').innerHTML = 'This image shows the sea ice minimum for 16 September 2008.  The magenta line indicates the long-term median from 1979 to 2000. The data set used to create this image was the AMSR-E/Aqua Daily L3 12.5 km Brightness Temperature, Sea Ice Concentration, & Snow Depth Polar Grids. Image courtesy of NSIDC and Google Earth&trade;.<br><br><br><br><br><br>';
      }
   if (banners==2)
      {
	  document.getElementById('captionBox').innerHTML = 'Image of Arctic sea ice on 10 March 2008 when the sea ice reached the annual maximum extent of 15.21 million square kilometers (5.87 million square miles). Data sets used to create this image are the AMSR-E/Aqua Daily L3 12.5 km Brightness Temperatures, Sea Ice Concentration, & Snow Depth Polar Grids and the AMSR-E/Aqua Daily L3 6.25 km 89 GHz Brightness Temperature Polar Grids. Image courtesy of the NASA/Goddard Space Flight Center Scientific Visualization Studio.<br><br><br>';
      }
   if (banners==3)
      {
      document.getElementById('captionBox').innerHTML = 'Sea surface temperature in the Gulf of Mexico on 01 August 2008. These blended microwave- and infrared-wavelength data were taken by the AMSR-E and MODIS instruments aboard the Aqua satellite, and the TMI instrument aboard the TRMM satellite. The AMSR-E data sets used were the AMSR-E/Aqua L2B and L3 Ocean Products, specifically Sea Surface Temperature data. Image courtesy of the NASA/Goddard Space Flight Center Scientific Visualization Studio.<br><br><br>';
      }
   if (banners==4)
      {
      document.getElementById('captionBox').innerHTML = 'This image shows the flow of the Jakobshavn Glacier in 2000, along with changes in the calving front of the glacier between 2001 and 2006. The glacier remained stable from 1950-1997, but has doubled its recession speed from the 1850-1950 era. This blended product was taken by the Aqua/AMSR-E, the ICESat/GLAS, the Landsat-7/ETM+, and the Terra/MODIS platforms and instruments. Image courtesy of the NASA/Goddard Space Flight Center Scientific Visualization Studio.<br><br><br>';

	  }
	}
function loadbanners() {
   if (banners==1)
      {
      image="/data/amsre/images/slideshow/sea_ice_max08_plot.jpg";
      }
   if (banners==2)
      {
      image="/data/amsre/images/slideshow/NP_seaIce_max_2008.18073.jpg";
      }
   if (banners==3)
      {
      image="/data/amsre/images/slideshow/sst20080801_still.jpg";
      }
   if (banners==4)
      {
      image="/data/amsre/images/slideshow/Greenland_still.8182.jpg"
	  }
	}

//-->

<!--       ***This part picks links***
var link = "/data/virtual_globes/"
function urlswitch() {
   if (banners==1)
      {
      link = "/data/virtual_globes/";
      }
   if (banners==2)
      {
      link = "http://svs.gsfc.nasa.gov/vis/a000000/a003500/a003561/index.html";
      }
   if (banners==3)
      {
      link = "http://svs.gsfc.nasa.gov/vis/a000000/a003500/a003532/index.html";
      }
   if (banners==4)
      {
      link = "http://svs.gsfc.nasa.gov/vis/a000000/a003400/a003467/index.html";
      }
return link;
}
//-->

<!--		***This part cycles through 'alt' altributes on the images
function loadalts() {
   if (banners==1)
      {
      alternate = "16 September 2008 Sea Ice minimum";
      }
   if (banners==2)
      {
      alternate = "10 March 2008 yearly arctic sea ice maximum";
      }
   if (banners==3)
      {
      alternate = "Sea Surface temperature, Gulf of Mexico, 01 August 2008";
      }
   if (banners==4)
      {
      alternate = "Greenland elevation change from 2003-2006";
      }
}
//-->