<!--  randomImage.js
//
//  Created by Bruce R. Johnson for USGS MRP, 3/2008

//  Enter number of images to select from (note: image must have a width of 250 pixels):

NumberOfImages = 27;

var captions = new Array();

//  Enter image captions by copying following lines:

captions[1] = 'North America magnetic anomaly map.';
captions[2] = 'Geophysical techniques pioneered at the USGS allow the identification of mineral resource deposits not visible at the surface; here, USGS scientists, along with colleagues from the Navy Research Laboratory and the Afghan Geological Survey, launched a gravity, magnetic, photography and synthetic aperture radar survey for Afghanistan from a P3 aircraft.';
captions[3] = 'Information collection supported by the Mineral Resources Program used to compiled net import reliance for selected nonfuel minerals materials for 2008 in the United States.';
captions[4] = 'Collection of water and microbiota samples as part of a mineral environmental assessment of an historic gold mining area of California.';
captions[5] = 'USGS scientist collecting geochemical samples near abandoned copper mines in Vermont.';
captions[6] = 'Seismic and gravity profiles are examples of geophysical techniques developed to support mineral resource assessments; here they are being used to identify subsurface voids in an area known to be underlain by limestone and karst in Virginia.';
captions[7] = 'USGS geologist A.H. Brooks examining a section of gold-bearing gravels and sands along Sweetwater Creek, Alaska, in 1900.';
captions[8] = 'Mineral Commodity Summaries are published on an annual basis.';
captions[9] = 'Results of recent mineral environmental studies, such as this one in Red Mountain Creek, Colorado, provide information to State and Federal land management agencies. ';
captions[10] = 'Bingham Canyon porphyry copper deposit, Utah. The pit is about 3 kilometers across and has produced nearly 12 million tons of copper since it opened in 1904. ';
captions[11] = 'U.S. raw nonfuel mineral materials put into use annually, 1900-2006.';
captions[12] = 'USGS scientists in route to collect soil samples in forest burn areas, Brant Lake, Minnesota.';
captions[13] = 'Recently released Quantitative mineral resource assessment of copper, molybdenum, gold, and silver in undiscovered porphyry copper deposits in the Andes Mountains of South America.';
captions[14] = 'USGS scientists collect samples as part of investigation of the effects of bedrock geochemistry and hydrothermal alteration on benthic fauna in central Colorado.';
captions[15] = 'Sample of simulated lunar regolith (soil) created to support NASA’s plans for future lunar exploration and construction of a permanent installation. ';
captions[16] = 'Laser-ablation inductively-coupled-plasma mass-spectrometry is a powerful and versatile technique for in situ sampling of solid materials for major and trace element analysis.';
captions[17] = 'USGS scientist collects sample of caliche in New Mexico; recent study indicates caliche generally shows higher perchlorate contents than most soils.';
captions[18] = 'Collection of water sample as part of a mineral environmental study in southwestern Alaska.';
captions[19] = 'USGS scientist maps an outcrop in the Taylor Mountains quadrangle, Alaska, as part of a large study to understand the geologic framework and mineral resource potential of the region.';
captions[20] = 'USGS scientist collects data to determine regional geochemical baselines as part of a mineral resource assessment in southwestern Alaska.';
captions[21] = 'Sedimentary rocks are examined by USGS scientist in southwestern Alaska as part of a regional mineral resource assessment.';
captions[22] = 'USGS scientist measures section of natural aggregates; more than 90% of asphalt pavements and 80% of concrete used in buildings and roads is composed of natural aggregates.';
captions[23] = 'Successful management of ecosystems containing historical mine wastes requires understanding of processes that are responsible for the distribution, concentration, and bioavailability of potentially toxic elements.';
captions[24] = 'Recently completed studies of Big Bend National Park provide new information to the National Park Service.';
captions[25] = 'Exploration for new deposits of mineral resources, such as at Pebble in southwest Alaska, commonly utilizes the basic geologic, geochemical, and geophysical data collected and published by the Mineral Resources Program. ';
captions[26] = 'Recent USGS study to determine whether concealed deposits can be detected at surface, to better understand the processes of metal migration, and to test and develop methods for assessing mineral resources in similar concealed terrains.';
captions[27] = 'Results and highlights from detailed, interdisciplinary studies that include investigations in both mining-affected areas and mineralized but unmined areas.';


//  DO NOT MAKE CHANGES BELOW THIS LINE!!!
// *******************************************

//  Image tags:

IStart = '<a href="images/HomePage/orig/image_';
IMid = '.jpg" target="_blank"> <img src="images/HomePage/image_';
IEnd1 = '.jpg" border="0" alt="';
IEnd2 = '" width="250" /> </a> <br />';

//  Caption tags:

CStart = '<span class="projectImageCaption">';
CEnd = '</span>';

function insertImage() {
  var rnum = Math.ceil(Math.random() * NumberOfImages);
  document.write(IStart + rnum + IMid + rnum + IEnd1 + captions[rnum] + IEnd2);
  document.write(CStart + captions[rnum] + CEnd);
}

//-->