
var dList = new Array();
var nList = new Array();

// dir staging to This is a test

dList[0] = 'clusters';
nList[0] = 'Clusters';
dList[1] = 'systems';
nList[1] = 'Systems';
dList[2] = 'buying';
nList[2] = 'Buying';
dList[3] = 'clusterpack_v2';
nList[3] = 'ClusterPack V2';
dList[4] = 'support';
nList[4] = 'Support';
dList[5] = 'products';
nList[5] = 'Products';
dList[6] = 'grid';
nList[6] = 'Grid';
dList[7] = 'cast';
nList[7] = 'CAST';
dList[8] = 'basic_research';
nList[8] = 'Basic Research';
dList[9] = 'gis';
nList[9] = 'GIS';
dList[10] = 'life_sciences';
nList[10] = 'Life Sciences';
dList[11] = 'materials_science';
nList[11] = 'Materials Science';
dList[12] = 'news';
nList[12] = 'News';
dList[13] = 'software';
nList[13] = 'Software';
dList[14] = 'tools';
nList[14] = 'Tools';
dList[15] = 'tutorials';
nList[15] = 'Tutorials';
dList[16] = 'operating';
nList[16] = 'operating system software';
dList[17] = 'ucp';
nList[17] = 'UCP';
 

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="/techservers/" class="udrlinesmall">HPC</a>' ;
// 	 var sOutput = '';
      var sPath = '/techservers/';
      for(var i = 1; i < aURL.length-1; i++)
	        {
   
  
        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;
        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);
    }
}
