//* Build breadcrumb path on page for navigation

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("content", "main page", "/home.shtml");
BagOCrumbs[1] = new Crumb("breadcrumb_turkeys", "breadcrumb trails", "/breadcrumb_trails/about_breadcrumb_trails.htm");
BagOCrumbs[2] = new Crumb("breadcrumb_demo", "breadcrumb demo", "/demos/demos.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);


