
var dList = new Array();
var nList = new Array();

// dir staging to This is a test

dList[0] = 'servers';
nList[0] = 'HP 9000 servers';
dList[1] = 'cgblades';
nList[1] = 'CGblades';
dList[2] = 'carrier-grade bladesystem'; 
nList[2] = 'Carrier-Grade Bladesystem'; 
dList[3] = 'carrier_grade';
nList[3] = 'Carrier-Grade'; 
dList[4] = 'products';
nList[4] = 'Products'; 
nList[5] = 'Enclosure';
dList[6] = 'bl-460c';
nList[6] = 'BL-460C';
dList[7] = 'amc-expansion';
nList[7] = 'AMC-Expansion';

 

function breadcrumbs(sClass, sDelimiter)
{
    sClass= 'udrlinesmall';
	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.toLowerCase().split('/');
    if(aURL)
    {
  var sOutput = '<a href="http://welcome.hp.com/country/us/en/prodserv/servers.html" class="udrlinesmall">Servers</a>' ;
// 	 var sOutput = '';
      var sPath = '/products1/servers/';
      for(var i = 2; i < aURL.length-1; i++)
	        {
        if(aURL[i].toUpperCase().indexOf('.HTML')!=-1)continue;
        if(aURL[i].toUpperCase().indexOf('.HTM')!=-1)continue;
        sOutput += ' ' + sDelimiter + ' ';
        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>';
      }
	if( sOutput.substring(sOutput.length-1, sOutput.length-1) == '>')
		{
	      var sWrite = sOutput.substring(0,sOutput.length-1)
		}
		else
		{
	      var sWrite = sOutput.substring(0,sOutput.length)
		}
      document.write(sWrite);
    }
}
