var dList = new Array();
var nList = new Array();
// dir staging to This is a test
dList[0] = 'about';
nList[0] = 'About Us';
dList[1] = 'announcements';
nList[1] = 'Announcements';
dList[2] = 'architecture';
nList[2] = 'Architecture, Organ & Carillon';
dList[3] = 'choir';
nList[3] = 'Choirs, Organ & Carillon';
dList[4] = 'contact';
nList[4] = 'Contact Us';
dList[5] = 'events';
nList[5] = 'Events';






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 + ' ';
      }
      
      document.write(sOutput);
    }
}
