var dList = new Array('3d_model',
					  'imagine',
					  'about',
					  'classwork',
					  		'ifm',
					  		'ipds',
					  'contact',
					  'game_engine',
					  'gateway',
					  'portfolio',
					  		'campus',
					  		'ga_aquarium',
					  		'nascar',
					  		'piedmont_park',
							'ptree_corridor',
							'tech_square'
					  	);
var nList = new Array('3D Model',
					  'Imagine',
					  'About Us',
					  'Classwork',
					  		'Integrated Facilites Management',
					  		'Integrated Project Delivery Systems ',
					  'Contact Us',
					  'Game Engine',
					  'Content Bank',
					  'Portfolio',
					  		'Georgia Tech Campus',
					  		'Georgia Aquarium',
					  		'NASCAR Museum',
					  		'Piedmont Park',
							'Peachtree Corridor',
							'Technology Square'
					  	);


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);
    }
}
