function breadcrumbs(){
  sURL = new String;
  bits = new Object;
  var x = 0;
  var stop = 0;
  var output = "<a href=\"/\">Home</a>  >  ";
  sURL = location.href;
  sURL = sURL.slice(8,sURL.length);
  chunkStart = sURL.indexOf("/");
  sURL = sURL.slice(chunkStart+1,sURL.length);
  while(!stop){
    chunkStart = sURL.indexOf("/");
    if (chunkStart != -1){
      bits[x] = sURL.slice(0,chunkStart);
      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 += "../";
    }
    var formattedbit = bits[i];
    formattedbit = bits[i].toString().charAt(0).toUpperCase() + bits[i].toString().substring(1,bits[i].toString().length);
    output += bits[i] + "/\">" + formattedbit + "</a>  >  ";

  }

  document.write(output + document.title);

}


var scRunning=false;
    function toSentenceCase(target){

// This script de-capitalizes proper nouns so only run it if it's obvious
// that you need to.  If you do want the script to run no matter what,
// changing tooManyCaps to a 1 should do it.
        var tooManyCaps = 20;

        var re = new RegExp("([^a-z]{" + tooManyCaps + ",})");
        var m;
        var compileString = "";

// if there are too many caps (i.e., a series of non-lowercase chars), then
// convert to sentence case
        if (target.match(re) != null || scRunning){

// continue to sentence case if used runtime
            scRunning = false;

// make the whole thing little then capitalize the first character.
            target = target.toLowerCase();
            target = target.substr(0,1).toUpperCase() + target.substring(1, target.length);

// this regex matches the end of a sentence or a new line, followed by 0 or more
// white space chars and one and only one lower case character.
            re = new RegExp("([\\.\\?!\\r\\n]+[\\s]*)([a-z]{1,1})");

// for each match, replace the last char with its ucase version
            while (m = re.exec(target)){
                target = target.substr(0, m.index) 
                  + m[1] + m[2].toUpperCase() 
                  + target.substr(m.index + m[0].length);
            }

// this regex matches I words (i.e., I, I'd, I'll, etc.) to recapitalize them.
// It just seemed like the right thing to do.
            re = new RegExp("([^\\w]i([^\\w]|'))");

// for each match, recap the i
            while (m = re.exec(target)){
                compileString += target.substr(0, m.index) + m[1].toUpperCase();
                target = target.substr(m.index + m[1].length);
            }
        }
        return compileString + target;
    }
