<!--// 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] = 'entlab';
nList[0] = 'Entomology';
dList[1] = 'pres';
nList[1] = 'Presentations';
dList[2] = 'diaprep';
nList[2] = 'Diaprepes abbreviatus';
dList[3] = 'facts2k';
nList[3] = 'Diaprepes Management';
dList[4] = 'scouting';
nList[4] = 'Scouting';
dList[5] = 'citrus';
nList[5] = 'Citrus';
dList[6] = 'veg';
nList[6] = 'Vegetables';
dList[7] = 'whitefly';
nList[7] = 'Silverleaf Whitefly';
dList[8] = 'programs';
nList[8] = 'Programs';
dList[9] = 'projects';
nList[9] = 'Projects';
dList[10] = 'pubs';
nList[10] = 'Publications';
dList[11] = 'abstract';
nList[11] = 'Abstract';
dList[12] = 'arthro';
nList[12] = 'Arthropod';
dList[13] = 'book';
nList[13] = 'Book Chapters';
dList[14] = 'ext';
nList[14] = 'Extension';
dList[15] = 'mention';
nList[15] = 'Mentioned';
dList[16] = 'nonrefer';
nList[16] = 'Non-Refered';
dList[17] = 'refer';
nList[17] = 'Refered';
dList[18] = 'sta_rpts';
nList[18] = 'Station Reports';
dList[19] = 'trade';
nList[19] = 'Trade';
dList[20] = 'staff';
nList[20] = 'Staff';
dList[21] = 'tedders';
nList[21] = 'Tedder Traps';
dList[22] = 'bemisia';
nList[22] = 'Bemisia';
dList[23] = 'grant';
nList[23] = 'Grants';


// 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.indexOf('Scouting Citrus for Pests') != -1){
       sOutput += 'Current Page'
    }else if(document.title.length <= 30) {
       sOutput += document.title
    }else{
      sOutput += 'Current Page'
     }
document.write(sOutput)
    }
}
// End Breadcrumb -->