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

// Top Level
dList[0] = 'buying';
nList[0] = 'Buying Real Estate';
dList[1] = 'selling';
nList[1] = 'Selling Real Estate';
dList[2] = 'relocation';
nList[2] = 'Relocation Services';
dList[3] = 'communities';
nList[3] = 'Communities';
dList[4] = 'mortgage-center';
nList[4] = 'Mortgage Center';
dList[5] = 'blog';
nList[5] = 'Blog';
dList[6] = 'business-directory';
nList[6] = 'Business Directory';
dList[7] = 'referrals';
nList[7] = 'Referrals';
dList[8] = 'contact';
nList[8] = 'Contact <abbr>REAC</abbr>';
dList[9] = 'buyers-guide';
nList[9] = 'Buyers Guide';
dList[10] = 'sellers-guide';
nList[10] = 'Sellers Guide';
dList[11] = 'mortgage-process';
nList[11] = 'The Mortgage Process';
dList[12] = 'about';
nList[12] = 'About Us';
dList[13] = 'areas';
nList[13] = 'Areas Serviced';
dList[14] = 'cgi-bin';
nList[14] = 'Listing Search';
dList[15] = 'hl';
nList[15] = 'Real Estate Action Center';
dList[16] = 'clientservices';
nList[16] = 'Client Services';
dList[17] = 'virtual-open-houses';
nList[17] = 'Virtual Open Houses';


function breadcrumbs(sClass)
{
    var sClass='youareherelink';
	var sDelimiter='<span class="access">&gt;</span>';
	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="/" class="youareherelink"><abbr title="Real Estate Action Center">REAC</abbr></a> ' + sDelimiter + ' ';
      var sPath = '/';
      for(var i = 0; i < aURL.length; i++)
      {
        if(aURL[i].indexOf('.html')!=-1 || aURL[i].length < 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 + ' ';
      }
	  var doctitle = document.title.split('|');
      sOutput += doctitle[0];
      document.write(sOutput);
    }
}