

var dList = new Array();
var nList = new Array();

// dir staging to This is a test
dList[0] = 'safety';
nList[0] = 'Keeping You Safe';

dList[1] = 'police';
nList[1] = 'University Police';

dList[2] = 'feedback';
nList[2] = 'Commendations &amp; Complaints';

dList[3] = 'education';
nList[3] = 'Education';

dList[4] = 'serving';
nList[4] = 'Serving The Community';

dList[5] = 'housing';
nList[5] = 'Community Development &amp; Housing';

dList[6] = 'civic';
nList[6] = 'Civic Scholarship';

dList[7] = 'community';
nList[7] = 'Community Life';

dList[8] = 'economic';
nList[8] = 'Economic Impact & Jobs';

dList[9] = 'health';
nList[9] = 'Health & Wellness';

dList[10] = 'programs';
nList[10] = 'View All Programs';

dList[11] = 'contact';
nList[11] = 'Contact Us';

dList[12] = 'about';
nList[12] = 'About Us';

dList[13] = 'insideout';
nList[13] = 'InsideOut';

dList[14] = 'links';
nList[14] = 'Community Links';

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);
    }
}
