//* 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
// Name: the text you want to display onscreen
// Url:  the URL to the page for this group page or book


BagOCrumbs[0] = new Crumb("aboutus", "ABOUT US", "/aboutus/default.htm");
BagOCrumbs[1] = new Crumb("contactus", "CONTACT US", "/contactus/default.htm");
BagOCrumbs[2] = new Crumb("staff", " OUR STAFF", "/staff/default.htm");
BagOCrumbs[3] = new Crumb("advantages", "OUR ADVANTAGES", "/advantages/default.htm");
BagOCrumbs[4] = new Crumb("ask", "ASK AN INSPECTOR", "/ask/default.htm");
BagOCrumbs[5] = new Crumb("handouts", "HANDOUTS", "/handouts/default.htm");
BagOCrumbs[6] = new Crumb("permits", "ONLINE PERMITS", "/permits/default.htm");



// ... we build the path and display it

var i, x;
strConcat = " &raquo; ";
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 += " &raquo; " + document.title; 
document.write(strList);


