function breadCrumbs () {
	var sURL     = window.location.href;
	var sURLen   = sURL.length;
	var aURL     = new Array();
	var aURLoc   = new Array();
	var aURLen   = 0;
	var letter   = '';
	var word     = '';
	var output   = '';
	var theend   = 'index.htm';
	var begin    = 'nassauboces.org';
	var begin_w  = 'www.nassauboces.org';
	var now      = (theend != '') ? 0 : 1;
	var sl       = '/';

	for (i=0; i < sURLen; i++) {
		justbeforeme = sURLen - i;
		fromme       = justbeforeme - 1;
		letter       = sURL.substring(fromme,justbeforeme);

		if (letter != sl) word = letter + word;
		if (((letter == sl) || (i == sURLen-1)) && (word != '')) {
			aURL[aURLen]   = word;
			aURLoc[aURLen] = sURL.substring(0,justbeforeme) + word;
			word = '';
			aURLen++;
		}
	}

	document.write('<a class="navCrumbs" href="' + aURLoc[aURLen-2] + '">Home</a>' + '<span class="sansSmall">' + ' &gt; ' + '</span>');

	for (i=aURLen-1; i > 0; i--) {
		word = aURL[i];
		loc  = aURLoc[i];
		if (word == theend) now = 0;
		if (now  == 1) {
			word = makeCaps(word);
			output = output + '<a class="navCrumbs" href="' + loc + sl + '">' + word + '</a>' + '<span class="sansSmall">' + ' &gt; ' + '</span>';
		}
		if ((word == begin) || (word == begin_w))  now = 1;
	}
	document.write(output + '<span class="sansSmall">' + document.title + '</span>');
}


function makeCaps(a) {
  if (a == "cte") return "CTE";
  if (a == "aces") return "ACES";
  g = a.split("_");
  for (l = 0; l < g.length; l++) {
    g[l] = g[l].toUpperCase().slice(0, 1) + g[l].slice(1);
  }
  return g.join(" ");
}
