
<!-- Paste this code into an external JavaScript file named: breadcrumbs.js  -->

/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Copperfield Publishing :: http://www.copperfieldpub.com/ */

function Crumb(Path, Name, Url) {
 	this.Path	= Path;
 	this.Name	= Name;
 	this.Url	= Url;
}

BagOCrumbs = new Array();

// add new directories here.  the format:
// Path: the name of the directory
// Name: the text you want to display onscreen
// Url:  the URL to the page for this group page or book

BagOCrumbs[0] = new Crumb("surrogate_sediment", "Suspended Sediment Surrogate Technology", "http://id.water.usgs.gov/projects/surrogate_sediment/index.html");
BagOCrumbs[1] = new Crumb("projects", "Studies in Idaho", "http://id.water.usgs.gov/projects/index.html");
BagOCrumbs[2] = new Crumb("water_data", "Data for Idaho", "http://id.water.usgs.gov/water_data/index.html");
BagOCrumbs[3] = new Crumb("biology", "Aquatic Biology", "http://id.water.usgs.gov/water_data/biology/index.html");
BagOCrumbs[4] = new Crumb("surfacewater", "Surface Water", "http://id.water.usgs.gov/water_data/surfacewater/index.html");
BagOCrumbs[5] = new Crumb("water_use", "Water Use", "http://id.water.usgs.gov/water_data/water_use/index.html");
BagOCrumbs[6] = new Crumb("waterquality", "Water Quality & Aquatic Biology", "http://id.water.usgs.gov/water_data/waterquality/index.html");
BagOCrumbs[7] = new Crumb("groundwater", "Ground Water", "http://id.water.usgs.gov/water_data/groundwater/index.html");
BagOCrumbs[8] = new Crumb("geospatial", "Geospatial Information", "http://id.water.usgs.gov/water_data/geospatial/index.html");
BagOCrumbs[9] = new Crumb("boiseriver", "Boise River Cross Sections", "http://id.water.usgs.gov/projects/boiseriver/index.html");
BagOCrumbs[10] = new Crumb("cda", "Coeur d' Alene Lake Water Budget Development", "http://id.water.usgs.gov/projects/cda/index.html");
BagOCrumbs[11] = new Crumb("cda_qw", "Coeur d' Alene Basin Water-Quality Monitoring", "http://id.water.usgs.gov/projects/cda_qw/index.html");
BagOCrumbs[12] = new Crumb("duck_valley", "Duck Valley Biological Integrity", "http://id.water.usgs.gov/projects/duck_valley/index.html");
BagOCrumbs[13] = new Crumb("INL", "USGS INL Project Office", "http://id.water.usgs.gov/projects/INL/index.html");
BagOCrumbs[14] = new Crumb("kootxsections", "Kootenai River Study", "http://id.water.usgs.gov/projects/kootxsections/index.html");
BagOCrumbs[15] = new Crumb("lwr_boise", "Water-Quality and Biological Trends, Lower Boise River", "http://id.water.usgs.gov/projects/lwr_boise/index.html");
BagOCrumbs[16] = new Crumb("mdarsenic", "Data for Sedimentary Aquifer Materials, Southwestern Idaho", "http://id.water.usgs.gov/projects/mdarsenic/index.html");
BagOCrumbs[17] = new Crumb("salmon_streamflow", "Instream Flow of Upper Salmon River Basin Streams", "http://id.water.usgs.gov/projects/salmon_streamflow/index.html");
BagOCrumbs[18] = new Crumb("wood_river_valley", "Ground-Water Resources of the Wood River Valley", "http://id.water.usgs.gov/projects/wood_river_valley/index.html");
BagOCrumbs[19] = new Crumb("payette_lake_water_quality", "Payette Lake Water Quality", "http://id.water.usgs.gov/projects/payette_lake_water_quality/index.html");
BagOCrumbs[20] = new Crumb("perennial_model", "Modeling Idaho's Perennial Streams", "http://id.water.usgs.gov/projects/perennial_model/index.html");
BagOCrumbs[21] = new Crumb("ContinuousWaterQuality", "Continuous Water Quality Monitoring", "http://id.water.usgs.gov/projects/ContinuousWaterQuality/index.html");
BagOCrumbs[22] = new Crumb("2007", "2007-Biennial", "http://id.water.usgs.gov/projects/duck_valley/2007/index.html");
BagOCrumbs[23] = new Crumb("2008", "2008", "http://id.water.usgs.gov/projects/duck_valley/2008/index.html");
BagOCrumbs[24] = new Crumb("usnk_nawqa", "NAWQA: Upper Snake River Basin", "http://id.water.usgs.gov/projects/usnk_nawqa/index.html");
BagOCrumbs[25] = new Crumb("neet", "Nutrient Enrichment", "http://id.water.usgs.gov/projects/usnk_nawqa/neet/index.html");
BagOCrumbs[26] = new Crumb("gw", "Groundwater", "http://id.water.usgs.gov/projects/usnk_nawqa/gw/index.html");
BagOCrumbs[27] = new Crumb("multi_discipline", "Interdisciplinary", "http://id.water.usgs.gov/projects/usnk_nawqa/multi_discipline/index.html");
BagOCrumbs[28] = new Crumb("SWTrends", "Surface Water Trends", "http://id.water.usgs.gov/projects/usnk_nawqa/SWTrends/index.html");
BagOCrumbs[29] = new Crumb("nrok_nawqa", "Northern Rockies Intermontane Basins NAWQA", "http://id.water.usgs.gov/projects/nrok_nawqa/index.html");
BagOCrumbs[30] = new Crumb("sparrow_nawqa", "SPARROW NAWQA", "http://id.water.usgs.gov/projects/sparrow_nawqa/index.html");



// ... we build the path and display it

var i, x;
// the character below displays between the directories; you can change it if you like.
strConcat = " > ";
strUrl = document.location.href;
strList = "<a href='/'>Home</a>";
strDebug = "";
aryDirs = strUrl.split("/");
for (x=0; x < aryDirs.length; x++) {
	 for(i = 0; i < BagOCrumbs.length; i++) {
			 if (BagOCrumbs[i].Path.toLowerCase() == aryDirs[x].toLowerCase()) {
	                      strList += strConcat + "<a href='" + BagOCrumbs[i].Url + "'>" + BagOCrumbs[i].Name + "</a>";
			 i = BagOCrumbs.length;
		}
}
}

// comment out the next line to eliminate the display of the document's title
// the character below displays between the directory and the document's title; you can change it if you like.

//strList += " > " + document.title;
document.write(strList);

