
var dList = new Array();
var nList = new Array();

// dir staging to This is a test

dList[0] = 'case_studies';
nList[0] = 'Case Studies';
dList[1] = 'entry_level';
nList[1] = 'Entry Level';
dList[2] = 'mid_range';
nList[2] = 'Mid Range';
dList[3] = 'scalableservers';
nList[3] = 'Scalable Servers';
dList[4] = 'superdome';
nList[4] = 'Superdome';
 

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> > <a href="/products1/servers/HP9000_family_overview.html" class="udrlinesmall">HP 9000 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;
	if(aURL[i].toUpperCase().indexOf('SCALABLESERVERS') == -1)
		{
        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>';
		}
		else
		{
        sPath += aURL[i] + '/';
		}
      }
	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);
    }
}
