
   bits = new Object;
   hash = new Object;

   hash['about'] = "About the Department";
   hash['advisory'] = "State Advisory Council";
   hash['admin'] = "Administration";
   hash['ada'] = "Alcohol & Drug Abuse";
   hash['atr'] = "Access To Recovery";
   hash['audit'] = "Audit Services";
   hash['albany'] = "Albany Regional Office";
   hash['autism'] = "Office of Autism Services";
   hash['cbm'] = "Center for Behavioral Medicine";
   hash['careback'] = "Caregiver Background Screening";
   hash['chiefclinicaldirector'] = "Chief Clinical Director";
   hash['childsoffice'] = "Children's Office";
   hash['cimor'] = "CIMOR";
   hash['commission'] = "Mental Health Commission";
   hash['cottonwood'] = "Cottonwood Residential Treatment Center";
   hash['cmro'] = "Central Missouri Regional Office";
   hash['consfam'] = "Consumers & Families";
   hash['constituentservices'] = "Constituent Services";
   hash['countylinks'] = "Data Maps";
   hash['conference'] = "Conferences";
   hash['contact'] = "Contact Information / Facilities";
   hash['dd'] = "Developmental Disabilities";
   hash['deafsvcs'] = "Deaf & Multicultural Support Services ";
   hash['depdir'] = "Deputy Director";
   hash['directives'] = "Directives & Regulations";
   hash['director'] = "Director's Office";
   hash['diroffice'] = "Director's Office";
   hash['disaster'] = "Disaster Services";
   hash['dors'] = "Department Operating Regulations";
   hash['emailnotification'] = "Email Notifications";
   hash['error'] = "Error";
   hash['facilities'] = "Regional Offices";
   hash['features'] = "Features";
   hash['fulton'] = "Fulton State Hospital";
   hash['gencounsel'] = "General Counsel";
   hash['hannibal'] = "Hannibal Regional Office";
   hash['hcph'] = "Hawthorn Children's Psychiatric Hospital";
   hash['health'] = "Health & Safety";
   hash['helpinfo'] = "How & Where to Get Help";
   hash['housing'] = "Housing Team";
   hash['hr'] = "Human Resources";
   hash['initiatives'] = "Initiatives";
   hash['itsd'] = "Information Technology Services Division";
   hash['jobs'] = "Job Opportunities";
   hash['joplin'] = "Joplin Regional Office";
   hash['kcro'] = "Kansas City Regional Office";
   hash['kirksville'] = "Kirksville Regional Office";
   hash['lc'] = "Licensure & Certification";
   hash['legis'] = "Legislative Liaison";
   hash['manuals'] = "Manuals, Publications & Reports";
   hash['mentalillness'] = "Mental Illness";
   hash['mobhew'] = "Missouri Behavioral Health Epidemiology Workgroup";
   hash['mpc'] = "Metropolitan St. Louis Psychiatric Center";
   hash['news'] = "News Releases";
   hash['nmprc'] = "   Northwest Missouri Psychiatric Rehabilitation Center";
   hash['nurses'] = "Quality Management Registered Nurses";
   hash['online'] = "Online Services";
   hash['opla'] = "Public & Legislative Affairs";
   hash['org'] = "Organization";
   hash['poplarbluff'] = "Poplar Bluff Regional Office";
   hash['progs'] = "Programs & Services";
   hash['provider'] = "Information for Providers";
   hash['pubs'] = "Publications";
   hash['qa'] = "Quality Assurance Unit";
   hash['rolla'] = "Rolla Regional Office";
   hash['rpts'] = "Reports & Statistics";
   hash['satop'] = "Substance Abuse Traffic Offender Program";
   hash['sikeston'] = "Sikeston Regional Office";
   hash['slprc'] = "St. Louis Psychiatric Rehabilitation Center";
   hash['slro'] = "St. Louis Regional Office";
   hash['smmhc'] = "   Southeast Missouri Mental Health Center";
   hash['sorts'] = "Sex Offender Rehabilitation and Treatment Services";
   hash['spectopics'] = "Special Topics";
   hash['springfield'] = "Springfield Regional Office";
   hash['swmprc'] = "Southwest Missouri Psychiatric Rehabilitation Center";
   hash['suicide'] = "Suicide Prevention";
   hash['transformation'] = "Transformation";
   hash['traumainit'] = "Trauma Initiative ";
   hash['transition'] = "Transition";
   hash['waiver'] = "Home & Community Based Waivers ";
   hash['waitlist'] = "Waiting List Information";
   
   
   var ndx = 0;
   var eof = 0;
   
   var output = "<a href=\"/\">Home</a>";

   url = location.href.replace(/http[s]?:\/+|file:\/+/i,'')
   begin = url.indexOf("/");
   url = url.slice(begin+1,url.length);

   while(!eof) {
     
     begin = url.indexOf("/");

     if (begin != -1) {
       bits[ndx] = url.slice(0, begin)
       url = url.slice(begin+1, url.length);
     } else {
       eof = 1;
     }
     ndx++;
   
   }

   for(var path in bits) {
     output += "&nbsp;&#187;&nbsp; <a href=\"";
     
     for(y=1 ; y < ndx-path ; y++) {
       output += "../";
     }

     if (!hash[bits[path].toLowerCase()])
       hash[bits[path].toLowerCase()] = bits[path];

     output += bits[path] + "/\">" + hash[bits[path].toLowerCase()] + "</a> ";

   }

   if (document.getElementById("breadcrumbs") != null)
     document.getElementById("breadcrumbs").innerHTML = output;


