var dList = new Array();
var nList = new Array();

// dir staging to This is a test
dList[0] = 'about';
dList[1] = 'newsletters';
dList[2] = 'resources';
dList[3] = 'interact';
dList[4] = 'cinlawlib';
dList[5] = 'cle';
dList[6] = 'intra';
dList[7] = 'policies';
dList[8] = 'cases';
dList[9] = 'guides';
dList[10] = '01';
dList[11] = '02';
dList[12] = '03';
dList[13] = '04';
dList[14] = '05';
dList[15] = '06';
dList[16] = '07';
dList[17] = '08';
dList[18] = '09';
dList[19] = '10';
dList[20] = '11';
dList[21] = '12';
dList[22] = 'hb66';
dList[23] = 'press';

nList[0] = 'About the Library';
nList[1] = 'Library Newsletters';
nList[2] = 'Legal Resources';
nList[3] = 'Interact';
nList[4] = 'Home';
nList[5] = 'Continuing Legal Education';
nList[6] = 'Intranet';
nList[7] = 'Library Policies';
nList[8] = 'Case Law Updates';
nList[9] = 'Legal Guides';
nList[10] = 'January';
nList[11] = 'February';
nList[12] = 'March';
nList[13] = 'April';
nList[14] = 'May';
nList[15] = 'June';
nList[16] = 'July';
nList[17] = 'August';
nList[18] = 'September';
nList[19] = 'October';
nList[20] = 'November';
nList[21] = 'December';
nList[22] = 'HB66 Law Library Funding Attacked';
nList[23] = 'News Releases';

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 aSTR = (document.title);
    var aDOC = (aSTR.substring(35,999));
    var aURL = sURL.split('/');
    if(aURL)
    {
      var sOutput = '<span class="crumbs">You are here: <a href="/cinlawlib/" class="crumbs">Home</a> ' + sDelimiter;
      var sPath = '/cinlawlib/';
      for(var i = 1; i < aURL.length; i++)
      {
//        if(aURL[i]=!'')continue;
        if(aURL[i].indexOf('.html')!=-1)continue;
        if(aURL[i].indexOf('.htm')!=-1)continue;
	if(aURL[i].indexOf('.asp')!=-1)continue;
        sPath += aURL[i] + '/';
        for(var s = 0; s < dList.length; s++)if(aURL[i]==dList[s])aURL[i]=nList[s];        
        sOutput += ' <a href="' + sPath + '"  class="crumbs"';
        if(sClass) sOutput += ' class="' + sClass +'"';
        sOutput += '>' + aURL[i] + '</a> ' + sDelimiter;
      }
//      sOutput += document.title;
      sOutput += ' ' + aDOC + '</span>';
      document.write(sOutput);
    }
}

	function get_cookie ( cookie_name )	{
		var results = document.cookie.match ( cookie_name + '=(.*?)(;|$)' );
		if ( results )
		    return ( unescape ( results[1] ) );
		else
		return null;
	}