/*
Copyright Justin Whitford 2001.
  http://www.whitford.id.au/
Perpetual, non-exclusive license to use this code is granted
on the condition that this notice is left in tact.
*/
  function breadcrumbs(){
    sURL = new String;
    bits = new Object;
//Added by FFC to capitalize bread crumbs
	bits1 = new Object;
//End of added
	var x = 0;
    var stop = 0;
    var output = "<A HREF=\"/\">NEHCBA Home</A>";

    sURL = location.href;
    sURL = sURL.slice(8,sURL.length);
    chunkStart = sURL.indexOf("/");
    sURL = sURL.slice(chunkStart+1,sURL.length)
//Added by FFC to capitalize bread crumb
	sURL1 = sURL.slice(0,1).toUpperCase() + sURL.slice(1);
//End of added

    while(!stop){
      chunkStart = sURL.indexOf("/");
      if (chunkStart != -1){
        bits[x] = sURL.slice(0,chunkStart)
//Added by FFC to capitalize bread crumb
		bits1[x] = sURL1.slice(0,chunkStart)
//End of added
		sURL = sURL.slice(chunkStart+1,sURL.length);
      }else{
        stop = 1;
      }
      x++;
    }

    for(var i in bits){
      output += " | <A HREF=\"";
      for(y=1;y<x-i;y++){
        output += "../";

      }
//Changed by FFC - bits to bits1 below to capitalize bread crumb
		output += bits[i] + "/\">" + bits1[i] + "</A>";	 
    }
document.write(output);
 }
