function breadcrumbs(){
    sURL = new String;
    bits = new Object;
    names = new Object;
    var x = 0;
    var stop = 0;
    var output = "&nbsp;<A HREF=\"/business/\">Home</A> | ";
    var skipLastBit = 0;

    sURL = location.href;
    if (sURL.substr(0,13) == 'http://author') sURL = sURL.slice(30,sURL.length);
    else sURL = sURL.slice(30,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)
          names[x] = bits[x];
          switch (bits[x]) {
            case 'General_Information':    names[x] = 'General Information'; break;
            case 'Departments':   names[x] = 'Departments'; break;
            case 'StrategicPlan':   names[x] = 'Strategic Plan'; break;
            case 'OnePurdue':   names[x] = 'OnePurdue'; break;
            case 'Policy_Procedures':  names[x] = 'Policies/Procedures'; break;
            case 'Continuation_Plan':    names[x] = 'Continuation Plan'; break;
            case 'Conducting_Business':    names[x] = 'Conducting Business'; break;
            case 'Trainee_Program':      names[x] = 'Trainee Program'; break;
            case 'Basic_Skills':        names[x] = 'Basic Skills'; break;
            case 'WebApps':     names[x] = 'Web Applications'; break;
            case 'Quick_Links':  names[x] = 'Quick Links'; break;
            case 'BPM': names[x] = 'Quarterly Staff Meeting'; break;
            default:           names[x] = bits[x]; break;
          }
          sURL = sURL.slice(chunkStart+1,sURL.length);
          if (sURL=='index.html' || sURL=='Welcome.html' || sURL=='') skipLastBit=1;
          
      }else{
        stop = 1;
      }
      x++;
    }

    for(var i in bits){
      if (!skipLastBit || i!=x-2) {
        output += '<A HREF="';
        for (y = 1; y < x - i; y++){
          output += '..//';
        }
        output += bits[i] + '/">' + names[i] + '</A> | ';
      }
    }

    document.write(output + document.title);
}
