<!--       ***This part picks images***
var caption="";
var image="";
var alternate="";
var banners=0;
function writeCaption() {
document.getElementById('captionBox').innerHTML = 'This image was derived from the MODIS/Terra Snow Cover Daily L3 Global 0.05Deg CMG (MOD10C1), Version 4 data set.  To create this image, the 500 m pixels that lie within a 0.05 degree resolution Climate Modeling Grid (CMG) pixel are binned to determine surface features.  Image courtesy of NSIDC.';
   }
function cycle() {
  if (++banners > 3) banners=1; 
    loadcaptions();
	loadbanners();
	urlswitch();
	loadalts();
	document.banner1.src = image;
	document.banner1.alt = alternate;
    window.setTimeout('cycle();',10000); 
  }
function loadcaptions() {
   if (banners==1)
      {
      document.getElementById('captionBox').innerHTML = 'This image was derived from the MODIS/Terra Snow Cover Daily L3 Global 0.05Deg CMG (MOD10C1), Version 4 data set.  To create this image, the 500 m pixels that lie within a 0.05 degree resolution Climate Modeling Grid (CMG) pixel are binned to determine surface features.  Image courtesy of NSIDC.';
      }
   if (banners==2)
      {
	  document.getElementById('captionBox').innerHTML = 'This sample Folded - Time Series Graph of MOD09A1 Band 1 Surface Reflectance data from Swiss Camp, Greenland for the period 10 May to 15 November, for the years 2000 - 2007, was created from the MODIS Interactive Subsetting Tool (MIST). Points are mean with standard deviations for error bars.  Image courtesy of NSIDC.<br>'
      }
   if (banners==3)
      {
      document.getElementById('captionBox').innerHTML = 'Lake Michigan, South. The true color image (left) is derived from Level-1B calibrated radiances data while the false color ice cover image (right) is derived from the MODIS/Terra Snow Cover Daily L3 Global 500m Grid MOD10A1, Version 4 data set.  Image courtesy of NSIDC.<br><br>';
      }
	}
function loadbanners() {
   if (banners==1)
      {
      image="/data/modis/images/slideshow/mod10c1.030403.snow.global.gif";
      }
   if (banners==2)
      {
      image="/data/modis/images/slideshow/overview_swiss_folded.gif";
      }
   if (banners==3)
      {
      image="/data/modis/images/slideshow/mod10a1.030903.lakeice.jpg";
      }
	}

//-->

<!--       ***This part picks links***
var link = "/data/modis/gallery/global_daily_snow.html"
function urlswitch() {
   if (banners==1)
      {
      link = "/data/modis/gallery/global_daily_snow.html";
      }
   if (banners==2)
      {
      link = "/data/mist/index.html";
      }
   if (banners==3)
      {
      link = "/data/modis/gallery/greatlakes_ice.html";
      }

return link;
}
//-->

<!--		***This part cycles through 'alt' altributes on the images
function loadalts() {
   if (banners==1)
      {
      alternate = "Global Daily Snow Extent in 0.05 Deg Climate Modeler's Grid";
      }
   if (banners==2)
      {
      alternate = "The MODIS Interactive Subsetting Tool (MIST) provides subsets of certain Version 5 (V005) MODIS products";
      }
   if (banners==3)
      {
      alternate = "Lake Michigan South true color and ice cover images";
      }
}
//-->

