var dList = new Array('bc',
					  'about_us',
					  'cobra',
					  'courses',
					  'graduate',
					  		'ifm',
					  		'ipds',
							'rcd',
					  'news',
					  'phd',
					  'photos',
					  'research',
					  'resources',
					  		'alumni',
					  		'students',
					  'undergrad'
					  	);
var nList = new Array('Building Construction',
					  'About Us',
					  'COBRA 2007',
					  'Courses',
					  'Graduate Studies',
					  		'Integrated Facility Management',
					  		'Integrated Project Delivery Systems ',
							'Residential Construction Development',
					  'News + Events',
					  'PhD Studies',
					  'Photo Gallery',
					  'Research',
					  'Resources',
					  		'For Alumni',
					  		'For Current Students',
					  'Undergraduate Studies'
					  	);


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);
    }
}
