//* Build breadcrumb path on page for navigation
//* Copyright 2004, 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 folder the file is n
// Name: the text you want to display onscreen
// Url:  the URL to the parent page for this directory or book


BagOCrumbs[0] = new Crumb("board", "Fire Board", "http://www.esterofire.org/board/index.htm");
BagOCrumbs[1] = new Crumb("minutes", "Minutes", "http://www.esterofire.org/board/minutes/index.htm");
BagOCrumbs[2] = new Crumb("fire-codes", "Fire Codes", "http://www.esterofire.org/fire-codes/index.htm");
BagOCrumbs[3] = new Crumb("about", "About EFR", "http://www.esterofire.org/about/index.htm");
BagOCrumbs[4] = new Crumb("releases", "Press Releases", "http://www.esterofire.org/about/releases/index.htm");
BagOCrumbs[5] = new Crumb("safety-info", "Safety Info and Public Education", "http://www.esterofire.org/safety-info/index.htm");
BagOCrumbs[6] = new Crumb("education", "Public Education", "http://www.esterofire.org/safety-info/index.htm");
BagOCrumbs[7] = new Crumb("encyclopedia", "Safety Encyclopedia", "http://www.esterofire.org/safety-info/encyclopedia.htm")
BagOCrumbs[8] = new Crumb("ember", "Ember's Place", "http://www.esterofire.org/ember/index.htm")
// ... we build the path and display it

var i, x;
strConcat = " > ";
strUrl = document.location.href;
strList = "<a href='http://www.esterofire.org'>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;
		}

	}

}
strList += " > " + document.title; 
document.write(strList);


