 function setBreadcrumbs(thisPage) {
  var thisBC = getCookie(thisPage);
  var lastBC = getCookie('lastBC');
  var newBC = '';
  var fullBC = '';

  if(lastBC) // check to see if we can show breadcrumb that relates to last viewed section
  { 
   var bcDiv = "divPath" + lastBC;
   if(document.getElementById(bcDiv))
   { bcDiv = "divPath" + defaultBC;
     document.getElementById(bcDiv).className = "alt_path";
     bcDiv = "divPath" + lastBC;
     document.getElementById(bcDiv).className = "main_path"; 
     
     newBC = lastBC;
   }
   else
   { // can't find relevant BC based on previous page view
    lastBC = '';
   }
  }
  if((!lastBC) && (thisBC)) //show the BC nav shown LAST time the user viewed the page.
  {
   var bcDiv = "divPath" + thisBC;
   if(document.getElementById(bcDiv))
   { bcDiv = "divPath" + defaultBC;
     document.getElementById(bcDiv).className = "alt_path"; 
     bcDiv = "divPath" + thisBC;
     document.getElementById(bcDiv).className = "main_path"; 
     newBC = thisBC;
   }
  }

  if(!newBC) // breadcrumb not set. Set to the default.
  {
   newBC = defaultBC;
  }

  fullBC = newBC + "_" + thisPage;

 var now = new Date();
 fixDate(now);
 now.setTime(now.getTime() + 1000 * 60 * 60 * 48);
 setCookie(thisPage, newBC, now);
 setCookie('lastBC', fullBC, now);

 }
