//* 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[2] = new Crumb("breadcrumb_demo", "breadcrumb demo", "/demos/demos.htm");
BagOCrumbs[0] = new Crumb("home_files", "General Information", "/home_files/index.shtml");
BagOCrumbs[1] = new Crumb("about_files", "About UIIA", "/about_files/index.shtml");
BagOCrumbs[2] = new Crumb("ep_files", "Equipment Providers", "/ep_files/index.shtml");
BagOCrumbs[3] = new Crumb("mc_files", "Motor Carriers", "/mc_files/index.shtml");
BagOCrumbs[4] = new Crumb("insurer_files", "Insurers", "/insurer_files/index.shtml");
BagOCrumbs[5] = new Crumb("other_files", "Other Information Services", "/other_files/index.shtml");
BagOCrumbs[6] = new Crumb("http://www.intermodal.org/leg_reg_files/", "Legislation & Regulation","http://www.intermodal.org/leg_reg_files/index.shtml");
BagOCrumbs[7] = new Crumb("legal_files", "IANA/UIIA Legal Policies", "/legal_files/index.shtml");
BagOCrumbs[8] = new Crumb("links_files", "Links", "/links_files/index.shtml");
BagOCrumbs[9] = new Crumb("sitemap_files", "Sitemap", "/index.shtml");
BagOCrumbs[10] = new Crumb("userguide", "Users Guides", "http://www.uiia.org/userguide/index.php");
BagOCrumbs[11] = new Crumb("userguide", "Users Guides", "http://www.uiia.org/userguide/mc/mchelp_1.php");
BagOCrumbs[12] = new Crumb("userguide", "Users Guides", "http://www.uiia.org/userguide/ia/iahelp_1.php");
BagOCrumbs[13] = new Crumb("userguide", "Users Guides", "http://www.uiia.org/userguide/idd/iddhelp_1.php");
BagOCrumbs[14] = new Crumb("userguide", "Users Guides", "http://www.uiia.org/userguide/iddn/iddnhelp_1.php");
BagOCrumbs[15] = new Crumb("userguide", "Users Guides", "http://www.uiia.org/userguide/subs/subshelp_1.php");
/*BagOCrumbs[16] = new Crumb("userguide", "Users Guides", "http://www.uiia.org/userguide/index.php");*/

// ... we build the path and display it

var i, x;
strConcat = "&nbsp;>>&nbsp;";
strUrl = document.location.href;
strList = "<a href='/'>UIIA 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 += "&nbsp;>>&nbsp;" + document.title; 
document.write(strList);

