function convertWords (a) {
	for (i = 0; i < a.length; i++) {
		if (a[i] != "" || null) {
			a[i] = a[i].replace(/.html/, "");
			a[i] = a[i].replace(/.htm/, "");
			a[i] = a[i].replace(/.cfm/, "");
			a[i] = a[i].replace(/.asp/, "");
			a[i] = a[i].replace(/.idq/, "");
			a[i] = a[i].replace(/_/g, " ");
			a[i] = a[i].replace(/-/g, " & ");
		}
	}
	return a;
}
function capWords (a) {
	 var aWordsTemp = new Array();
	 var aLettersTemp = new Array();
	 for (i = 0; i < a.length; i++) {
	 	if (a[i] != "" || null) {
		 	aWordsTemp = a[i].split(" ");
				for (j = 0; j < aWordsTemp.length; j++) {
					aLettersTemp = aWordsTemp[j].split("");
					aLettersTemp[0] = aLettersTemp[0].toUpperCase();
					aWordsTemp[j] = aLettersTemp.join("");
				}
			a[i] = aWordsTemp.join(" ");
		}
	}
	return a;
}
function writeCrumbs() {
	var out = "";
	out += "<a href=\"/irb/\">Home</a> &gt; ";
	var sPathTemp = "/irb/";
	var iLimit = 0;
	var p = window.location.pathname;
	p = unescape(p);
	var aPath = p.split("/");
	var aNames = p.split("/");
	aNames = convertWords(aNames);
	aNames = capWords(aNames);
	var q = aPath[aPath.length - 1];
	if ((q == "index.html") || (q == "index.cfm") || (q == null) || (q == "")) {
		iLimit = aPath.length - 2;
	} else {
		iLimit = aPath.length - 1;
	}
	for (i = 2; i < iLimit; i++) {
		sPathTemp += aPath[i] + "/";
		out += "<a href=\"";
		out += sPathTemp + "\">";
		out += aNames[i] + "</a> &gt; ";
	}
	out += aNames[iLimit];
	document.write(out);
}