<!--// Begin Pull Down Menu
function urlSelector(form){
var selectedUrl = form.site.options[form.site.selectedIndex].value
window.location.href = selectedUrl
}
// End Pull Down Menu -->
<!-- // Begin Popup
function newWindow(url, name) {
window.open(url, 'name', 'resizable,width=600,height=420,left=5,top=5')
}
// End Pop up -->

<!--// Begin Breadcrumb

var dList = new Array();
var nList = new Array();

// Begin custom directory titles
// Root directories
dList[0] = 'plant';
nList[0] = 'Plant Pathology';
dList[1] = 'clinic';
nList[1] = 'Diagnostic Clinic';
dList[2] = 'diseases';
nList[2] = 'Diseases';
dList[3] = 'docs';
nList[3] = 'Documents';
dList[4] = 'pres';
nList[4] = 'Presentations';
dList[5] = 'staff';
nList[5] = 'Staff';
dList[6] = 'current';
nList[6] = 'Diseases';
dList[7] = 'pubs';
nList[7] = 'Publications';
dList[8] = 'online';
nList[8] = 'Online';
dList[9] = 'admin';
nList[9] = 'Admin';
dList[10] = 'user';
nList[10] = 'User';
dList[11] = 'ext';
nList[11] = 'Extension';
dList[12] = 'late_blight';
nList[12] = 'Late Blight Info';
dList[12] = 'pcapsici';
nList[12] = 'Phytophthora capsici Symposium';

// End custom directory titles

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="/index.htm">Home</a> ' + sDelimiter + ' ';
      var sPath = '/';
      for(var i = 0; i < aURL.length; i++)
      {
        if(aURL[i].indexOf('.htm')!=-1 || 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];
// Added 'index.htm' to sOutput to clean up unwanted tiers (/'s) when previous tier points to current page
        sOutput += '<a href="' + sPath + 'index.htm' + '"';
        //if(sClass) sOutput += ' class="' + sClass +'"';
// Made conditional to fix double // bug that occurs when paths to directories don't end with '/'
          if(sOutput.indexOf('//') == -1){
          sOutput += '>' + aURL[i] + '</a>';
          sOutput += ' ' + sDelimiter + ' ';
          }
        }
// See if there is enough room to write the page title or just Current Page
    if(document.title.length <= 30) {
       sOutput += document.title
    }else{
      sOutput += 'Current Page'
     }
document.write(sOutput)
    }
}
// End Breadcrumb -->