/* 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("pd", "Projects", "/pd/index.asp");
BagOCrumbs[1] = new Crumb("employment", "Employment", "/employment/emp_general.asp");
BagOCrumbs[2] = new Crumb("realestate", "Real Estate", "/realestate/re_about.asp");
BagOCrumbs[3] = new Crumb("projectlist", "Listings", "/pd/projectlist/");
BagOCrumbs[4] = new Crumb("wcontrol", "Data", "/eng/edhd/wcontrol/wcmain.asp");
BagOCrumbs[5] = new Crumb("edhd", "Water Control", "/eng/edhd/watercon.asp");
BagOCrumbs[6] = new Crumb("aboutus", "About Us", "/aboutus/abt_mission.asp");
BagOCrumbs[7] = new Crumb("hps2", "Risk Reduction", "/hps2/index.asp");
BagOCrumbs[8] = new Crumb("od", "Navigation", "/od/navigation.asp");
BagOCrumbs[9] = new Crumb("eeo", "Equal Opportunity Office", "/eeo/index.asp");
BagOCrumbs[10] = new Crumb("pao", "Public Affairs", "/pao/index.asp");
BagOCrumbs[11] = new Crumb("news", "News Releases", "/news/articles.asp");
BagOCrumbs[12] = new Crumb("eng", "Engineering", "/eng/eng.asp");
BagOCrumbs[13] = new Crumb("videos", "Videos", "/pao/videos/pao_videos.asp");
BagOCrumbs[14] = new Crumb("civilworks", "Civil Works", "/civilworks/cw_over.asp");
BagOCrumbs[15] = new Crumb("regulatory", "Regulatory", "/ops/regulatory/index.asp");
BagOCrumbs[16] = new Crumb("safety", "Safety", "/safety/index.asp");
BagOCrumbs[17] = new Crumb("bcarre", "Miss. River Flood Control", "/bcarre/missriver.asp");
BagOCrumbs[18] = new Crumb("recreation", "Recreation", "/recreation/index.asp");
BagOCrumbs[19] = new Crumb("ebs", "Contracting", "/ebs/index.asp");
BagOCrumbs[20] = new Crumb("ops", "Operations", "/ops/operations.asp");
BagOCrumbs[21] = new Crumb("sms", "Salinity Monitoring", "/ops/sms/index.asp");
BagOCrumbs[22] = new Crumb("ci", "Channel Improvement & Stabilization", "/eng/ci/index.asp");
BagOCrumbs[23] = new Crumb("sb", "Small Business", "/sb/smallbiz_main.asp");
BagOCrumbs[24] = new Crumb("s-57", "IENC", "/eng/s-57/index.asp");
BagOCrumbs[25] = new Crumb("environmental", "Environmental", "/environmental/priorities.asp");
BagOCrumbs[25] = new Crumb("environmental", "Environmental", "/environmental/priorities.asp");
BagOCrumbs[26] = new Crumb("ed", "Engineering", "/eng/eng.asp");
BagOCrumbs[27] = new Crumb("edss", "Survey Section", "/ed/edss/index.asp");
BagOCrumbs[28] = new Crumb("oc", "Office of Counsel", "/oc/oc_main.asp");
BagOCrumbs[29] = new Crumb("edsd", "Maps & Data", "/eng/index.asp");
BagOCrumbs[30] = new Crumb("atchafalaya", "Atchafalaya Basin", "/atchafalaya/default_ras.asp");
BagOCrumbs[31] = new Crumb("cd", "Construction", "/cd/constructionaboutus.asp")
BagOCrumbs[32] = new Crumb("atch", "Maps & Data", "/eng/index.asp")
BagOCrumbs[33] = new Crumb("IMO", "District Library", "/IMO/imo_general.asp")
// ... 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='/index.asp'>Team New Orleans 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);

