
var dList = new Array();
var nList = new Array();

// dir staging to This is a test
dList[0] = 'acu';
nList[0] = 'Alpha configuration utility';
dList[1] = 'ad';
nList[1] = 'ad';
dList[2] = 'announce';
nList[2] = 'announce';
dList[3] = 'archive';
nList[3] = 'retired systems';
dList[4] = 'ds10';
nList[4] = 'AlphaServer DS10';
dList[5] = 'ds10l';
nList[5] = 'AlphaServer DS10L';
dList[6] = 'ds20e';
nList[6] = 'AlphaServer DS20E';
dList[7] = 'ds20l';
nList[7] = 'AlphaServer DS20L';
dList[8] = 'ds25';
nList[8] = 'AlphaServer DS25';
dList[9] = 'es40';
nList[9] = 'AlphaServer ES40';
dList[10] = 'es45';
nList[10] = 'AlphaServer ES45';
dList[11] = 'es47';
nList[11] = 'AlphaServer ES47';
dList[12] = 'es80';
nList[12] = 'AlphaServer ES80';
dList[13] = 'gs';
nList[13] = 'AlphaServer GS series';
dList[14] = 'gs1280';
nList[14] = 'AlphaServer GS1280';
dList[15] = 'gs160';
nList[15] = 'AlphaServer GS160';
dList[16] = 'gs320';
nList[16] = 'AlphaServer GS320';
dList[17] = 'gs80';
nList[17] = 'AlphaServer GS80';
dList[18] = 'linux';
nList[18] = 'Linux';
dList[19] = 'networking';
nList[19] = 'networking';
dList[20] = 'news';
nList[20] = 'news';
dList[21] = 'nextgen';
nList[21] = 'next generation AlphaServer systems';
dList[22] = 'options';
nList[22] = 'options';
dList[23] = 'performance';
nList[23] = 'performance';
dList[24] = 'products';
nList[24] = 'products';
dList[25] = 'technology';
nList[25] = 'technology';
dList[26] = 'upgrades';
nList[26] = 'upgrades';
dList[27] = 'workstations';
nList[27] = 'AlphaStation systems';
dList[28] = 'aseries';
nList[28] = 'a-series';
dList[29] = 'auseries';
nList[29] = 'au-series';
dList[30] = 'ds15';
nList[30] = 'AlphaServer DS15';
dList[31] = 'ts15';
nList[31] = 'AlphaServer TS15';


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.split('/');
    if(aURL)
    {
    var sOutput = '<a href="/alphaserver/" class="udrlinesmall">Alpha systems</a> ' ;
//	 var sOutput = '';
      var sPath = '/alphaserver/';
      for(var i = 1; i < aURL.length-1; i++)
	        {
  //      if(aURL[i].indexOf('alphaserver')!=-1)continue;
  		if(aURL[i].indexOf('workstations')!=-1) {
		nList[4] = 'AlphaStation DS10';
		nList[6] = 'AlphaStation DS20E';
		nList[8] = 'AlphaStation DS25';
		nList[9] = 'AlphaStation ES40';
		nList[11] = 'AlphaStation ES47';
		nList[30] = 'AlphaStation DS15';

		}

  		if(aURL[i].indexOf('news')!=-1) {
		nList[3] = 'archive';
		}		
  
        if(aURL[i].indexOf('.HTML')!=-1)continue;
        if(aURL[i].indexOf('.HTM')!=-1)continue;
        if(aURL[i].indexOf('.html')!=-1)continue;
        if(aURL[i].indexOf('.htm')!=-1)continue;
 				if(aURL[i].indexOf('download')!=-1 || aURL[i].indexOf('html')!=-1 ) sOutput = sOutput;
		else {
         sOutput += ' ' + sDelimiter + ' ';
//for the options folder, set the link to products/options.html		 
		if (aURL[i].indexOf('options')!=-1) {
		sPath += 'products/options.html'; }
		else{ sPath += aURL[i] + '/'; }
//for the product option folders, set the link to foldername_options.html		
		if (aURL[i-1].indexOf('options')!=-1) sPath = '/alphaserver/options/' + aURL[i] + '/' + aURL[i] + '_options.html'; 
        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)
		}
	if ( location.pathname.indexOf('workstation' ) != -1 )
		{document.write("<a href='http://www.hp.com/workstations/index.html' class='udrlinesmall'>Workstations</a> > " +sWrite); }
	else {	
      document.write("<a href='http://welcome.hp.com/country/us/en/prodserv/servers.html' class='udrlinesmall'>Servers</a> > " +sWrite);
		}
    }
}
