

var dList = new Array();
var nList = new Array();

// dir staging to This is a test
dList[0] = 'about';
nList[0] = 'About Us';

dList[1] = 'accounting';
nList[1] = 'Accounting';

dList[2] = 'payroll';
nList[2] = 'Payroll';

dList[3] = 'award';
nList[3] = 'Sponsored Award Accounting';

dList[4] = 'purchasing';
nList[4] = 'Central Purchasing &amp; Payment';

dList[5] = 'reporting';
nList[5] = 'Financial &amp; Tax Reporting';

dList[6] = 'service';
nList[6] = 'Customer Service';



function breadcrumbs(sClass, sDelimiter)
{
    if(!sDelimiter) sDelimiter = '/';
    var sURL = (location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
        sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
    var aURL = sURL.split('/');
    if(aURL)
    {
      var sOutput = '<a href="/">Home</a> ' + sDelimiter + ' ';
      var sPath = '/';
      for(var i = 0; i < aURL.length; i++)
      {
        if(aURL[i].indexOf('.shtml')!=-1)continue;
        sPath += aURL[i] + '/';
        for(var s = 0; s < dList.length; s++)if(aURL[i]==dList[s])aURL[i]=nList[s];        
        sOutput += '<a href="' + sPath + '"';
        if(sClass) sOutput += ' class="' + sClass +'"';
        sOutput += '>' + aURL[i] + '</a>';
        sOutput += ' ' + sDelimiter + ' ';
      }
      sOutput += document.title;
      document.write(sOutput);
    }
}
