<!-- This script generates random images with captions and links on intro page. -->
<!-- Created by Steve McClung: Geosciences, Oregon State University -->
<!-- Begin

/*
This script called from intro page as <SCRIPT language="JavaScript" SRC="random_img.js"></SCRIPT> 

Instructions for script:
1. Try to keep text at 40 words or less for optimal layout.
2. Change "totalImgs" value if needed, to reflect actual number of possible images in folder. 
3. Images named "feature1.jpg", "feature2.jpg", etc. (use photoshop file to generate correct size)
4. Only single quotes allowed in text.
5. If no URL link, please use "#".

*/

var totalImgs = 10;

images = new Array;
images[1] = new Image();
images[1].src = "images/feature1.jpg";
images[1].txt = "GIScience includes questions of data structures, analysis, accuracy, meaning, cognition, visualization, and many more.";

images[2] = new Image();
images[2].src = "images/feature2.jpg";
images[2].txt = "This ASTER image, acquired on May 2, 2000 over the North Patagonia Ice Sheet shows a large glacier, covered with crevasses. A semi-circular terminal moraine indicates that the glacier was once more extensive than at present. Other glacial features can be seen using ASTER imagery. To see more, click on photo. ";
images[2].url = "http://asterweb.jpl.nasa.gov/gallery/gallery.htm?name=Patagonia";

images[3] = new Image();
images[3].src = "images/feature3.jpg";
images[3].txt = "This ASTER image of Mt St Helens, WA. was acquired on August 8, 2000.  As a result of the 18 May 1980 eruption,  the mountain's elevation decreased from 2,950 meters to 2,549 meters.";
images[3].url = "http://asterweb.jpl.nasa.gov/gallery/gallery.htm?name=Helens";

images[4] = new Image();
images[4].src = "images/feature4.jpg";
images[4].txt = "Colored Height and Shaded Relief, Kamchatka Peninsula. The Shuttle Radar Topography Mission (SRTM), launched on February 11, 2000, is  designed to collect three-dimensional measurements of the Earth's surface.";
images[4].url = "http://photojournal.jpl.nasa.gov/mission/SRTM?start=50";

images[5] = new Image();
images[5].src = "images/feature5.jpg";
images[5].txt = "Scalable Vector Graphics for interactive online maps. This map was created using ArcMap and exported to a text-based format (SVG) for  web interactivity. To learn more about interactive multimedia cartography, click on the image above.";
images[5].url = "http://www.webmapper.net/maps/";

images[6] = new Image();
images[6].src = "images/feature6.jpg";
images[6].txt = "The relationships between volcanic, hydrothermal, and tectonic processes at seafloor-spreading centers.";
images[6].url = "http://dusk.geo.orst.edu/research.html";

images[7] = new Image();
images[7].src = "images/feature7.jpg";
images[7].txt = "Processing, production, visualization, and interpretation of seafloor maps based on multibeam bathymetry, sidescan sonar, towed camera imagery, and submersible observations.";
images[7].url = "http://dusk.geo.orst.edu/research.html";

images[8] = new Image();
images[8].src = "images/feature8.jpg";
images[8].txt = "PRISM is a climate mapping tool developed by OSU geoscientists that uses point data and a DEM to generate gridded estimates of monthly and event-based climatic parameters. Contact: Dr. Chris Daly, OSU Geosciences and Spatial Climate Service.";
images[8].url = "http://www.ocs.orst.edu/prism/prism_new.html";

images[9] = new Image();
images[9].src = "images/feature9.jpg";
images[9].txt = "ASTER's broad spectral coverage and high  spectral resolution are ideally suited for monitoring dynamic environmental conditions caused  by natural and human-induced factors. In this image, Baghdad is shown covered in plumes of burning oil from pipelines.";
images[9].url = "http://asterweb.jpl.nasa.gov/gallery/gallery.htm?name=Baghdad";

images[10] = new Image();
images[10].src = "images/feature10.jpg";
images[10].txt = "High-resolution multibeam bathymetry was used to create this representation of offshore San Diego. Pulses of sound are emitted from a boat or a 'fish' (a device towed behind a boat). The time it takes for the pulses to reach the seafloor and return are used to calculate distances or water depths.";
images[10].url = "http://marine.rutgers.edu/cool/";

var p = Math.round(Math.random()*totalImgs);
if (p == 0) { p = 1; }

//  End -->