//* 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("eca", "ECA", "/eca/");
BagOCrumbs[1] = new Crumb("Issues", "Topics", "/issues/");
BagOCrumbs[2] = new Crumb("edrc", "EDRC", "/edrc/");
BagOCrumbs[3] = new Crumb("ecpp", "ECPP", "/ecpp/");
BagOCrumbs[4] = new Crumb("eccl", "ECCL", "/eccl/");
BagOCrumbs[5] = new Crumb("Developers", "Developers", "/Developers/");
BagOCrumbs[6] = new Crumb("Introduction", "Introduction", "/Introduction/");
BagOCrumbs[7] = new Crumb("minutes", "ECCL Minutes", "/eccl/minutes/")
BagOCrumbs[8] = new Crumb("EDR", "Estero Development Reports", "/eccl/EDR/")
BagOCrumbs[9] = new Crumb("minutes_edrc", "EDRC Minutes", "/edrc/minutes_edrc/meetings.htm")
BagOCrumbs[10] = new Crumb("agendas", "Agendas", "/edrc/minutes_edrc/meetings.htm")
BagOCrumbs[11] = new Crumb("communities", "Residential Communities", "/eccl/communities/")
BagOCrumbs[12] = new Crumb("EsteroLife", "Estero Life", "/EsteroLife/")
BagOCrumbs[13] = new Crumb("aboutestero", "About Estero", "/aboutestero/")
BagOCrumbs[14] = new Crumb("gecac", "Arts Estero", "/gecac/")
BagOCrumbs[15] = new Crumb("ecif", "Estero Community Improvement Foundation", "/eccl/ecif/")
BagOCrumbs[16] = new Crumb("new", "Hot News", "/new/")
BagOCrumbs[17] = new Crumb("growth", "Growth", "/EsteroLife/growth/")
BagOCrumbs[18] = new Crumb("flow-chart", "Builder's Checklist", "/flow-chart/index.htm")
// ... we build the path and display it

var i, x;
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;
		}

	}

}
strList += " > " + document.title; 
document.write(strList);


