var dList = new Array('graduate',
					  'dualm_ud',
					  'ms_aec',
					  'ms_cd',
					  'ms_ddf',
					  'ms_gis',
					  'ms_hd',
					  'ms_hpb',
					  'ms_ud',
					  'phd_arch',
					  	'ddc',
						'ebd',
						'hpb',
						'history',
						'ocp',
						'aec',
					'urbandesign',
						'modern_arch'
					  	);
var nList = new Array('Graduate Programs',
					  'Dual Masters Degree: Urban Design',
					  'MS/Arch: A/E/C Integration',
					  'MS/Arch: Classical Design',
					  'MS/Arch: Digital Design and Fabrication',
					  'MS/Arch: Geographic Information Systems',
					  'MS/Arch: Health and Design',
					  'MS/Arch: High Performance Buildings',
					  'MS/Arch: Urban Design',
					  'PhD/Architecture',
					  	'Design Computation',
						'Evidence Based Design',
						'High Performance Building',
						'History',
						'Organizational &amp; Cognitive Performance',
						'A/E/C Integration',
					'Urban Design',
						'Modern Architecture + Modern City'
					  	);


function breadcrumbs(sClass, sDelimiter)
{
    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="http://www.gatech.edu" class="bcrumblink"><acronym title="Georgia Tech">GT</acronym></a>&nbsp;&gt; <a class="bcrumblink" href="/"><acronym title="College of Architecture">CoA</acronym></a> ' + sDelimiter + ' ';
      var sPath = '/';
      for(var i = 0; i < aURL.length - 1; i++)
      {
        if(aURL[i].indexOf('.html')!=-1)continue;
        sPath += aURL[i] + '/';
        for(var s = 0; s < dList.length; s++)if(aURL[i]==dList[s])aURL[i]=nList[s];        
        sOutput += '<a class="bcrumblink" href="' + sPath + 'index.php"';
        if(sClass) sOutput += ' class="' + sClass +'"';
        sOutput += '>' + aURL[i] + '</a>';
        sOutput += ' ' + sDelimiter + ' ';
      }
      document.write(sOutput);
    }
}
