<!--//
/***
  breadcrumbs script customized for Lake Michigan College by Alice Kim
  
  26 February 2002  Alice Kim
                    Added entries for .edu and .net domain names
					
  4 September 2002	Alice Kim
  					Added entry for prof_pages and tech_plan directories

  27 September 2002  Alice Kim
  					Added entry for cgi-bin directory	
					
  18 November 2003	Alice Kim
  					Added entries for Foundation subfolders
					
  04 May 2004		Alice Kim	
   					Added entries for CBS subfolders
					
  10 May 2004		Alice Kim 								
  					Added entry for semester_calendars folder
					
 ***/				
    
function breadCrumbs(base, delStr, defp, cStyle, tStyle, dStyle, nl) {
    loc = window.location.toString();
    subs = loc.substr(loc.indexOf(base) + base.length + 1).split("/");
    document.write("<a href=\""+getLoc(subs.length-1)+defp+"\"class=\""+cStyle+"\">Home</a>  " + "<span class=\"" + dStyle + "\">" + delStr + "</span> ");
    a = (loc.indexOf(defp) == -1) ? 1 : 2;
    for (i = 0; i < subs.length - a; i++) {
        subs[i] = makeCaps(unescape(subs[i]));
        document.write("<a href=\"" + getLoc(subs.length - i - 2) + defp + "\" class=\"" + cStyle + "\">" + subs[i] + "</a>  " + "<span class=\"" + dStyle + "\">" + delStr + "</span> ");
    }
    if (nl == 1) {
        document.write("<br>");
    }
    document.write("<span class=\"" + tStyle + "\">" + document.title + "</span>");
}
/***
 The following section sets up the directory names and display names that the
 visitor will see in the breadcrumb trail.
 Several entries have been added to eliminate the broken names that were being displayed for the lmc.cc.mi.us, lakemichigancollege.edu, and the lakemichigancollege.net domain names
 ***/

function makeCaps(a) {
     switch (a) {
     /***
	  To create a newly mapped name for a directory, add the following :
	  
	  case "XXXX"; <---directory name
	  aBack="YYYY"; <---name you want displayed instead of the 'real' directory name
	  break;
	  
	  The first several entries eliminate the broken names that are displayed for the various
	  domain names that redirect to the LMC website
	  ***/
	  
     case "cd.com": 
     aBack="";
     break;
	  
     case "bs.org": 
     aBack="";
     break;
	  
     case "cc.mi.us": 
     aBack="";
     break;
	  
     case "lakemichigancollege.edu": 
     aBack="";
     break;
	  
     case "ichigancollege.edu": 
     aBack="";
     break;
	  	  
     case "michigancollege.edu": 
     aBack="";
     break;

     case "gancollege.edu": 
     aBack="";
     break;
	  
     case "Edu": 
     aBack="";
     break;
	  
     case ".Edu": 
     aBack="";
     break;
	  
     case "edu": 
     aBack="";
     break;
	  
     case "ichigancollege.net": 
     aBack="";
     break;

     case "gancollege.net": 
     aBack="";
     break;

     case ".us": 
     aBack="";
     break;

     case "s": 
     aBack="In the News";
     break;

     case "alumni": 
     aBack="Alumni Services";
     break;
	  
     case "athletics": 
     aBack="Athletics";
     break;
	  
     case "Arts-Sciences": 
     aBack="Arts &amp; Sciences";
     break;
	  
     case "calendar": 
     aBack="Calendar";
     break;
	  
     case "semester_calendars": 
     aBack="Semester Calendars";
     break;
	  
     case "campuses": 
     aBack="Campus Locations";
     break;

     case "puses": 
     aBack="Campus Locations";
     break;

     case "bertrand": 
     aBack="Bertrand Crossing";
     break;
	  
     case "mtec": 
     aBack="M-TEC";
     break;
	  
     case "napier": 
     aBack="Napier Ave";
     break;
	  
     case "cbs": 
     aBack="Community & Business Services";
     break;
	  
     case "bit": 
     aBack="Business & Industry Training";
     break;
	  
     case "ce": 
     aBack="Continuing Education";
     break;
	  
     case "ckids2004": 
     aBack="Campus Kids 2004";
     break;
	  
     case "schedule": 
     aBack="Class Schedule";
     break;
	  
     case "sbcs": 
     aBack="Small Busi. Development Ctr";
     break;
	  
     case "cgi-bin": 
     aBack="";
     break;

     case "web-mail": 
     aBack="";
     break;
	  
     case "confsvcs": 
     aBack="Mendel Ctr Conference Svcs";
     break;
	  
     case "dept":
     aBack="Academic Depts";
     break;

     case "t":
     aBack="Academic Depts";
     break;

     case "distance_learning": 
     aBack="Distance Learning";
     break;
	  
     case "Internet": 
     aBack="Internet Delivery Courses";
     break;
	  
     case "Traditional": 
     aBack="Traditional";
     break;
	  
     case "Two-Way": 
     aBack="Interactive Classrooms";
     break;
	  
     case "finaid": 
     aBack="Financial Aid";
     break;
	  
     case "hr": 
     aBack="Human Resources";
     break;
	  
     case "iap": 
     aBack="IAP";
     break;
	   
     case "foundation": 
     aBack="Foundation";
     break;
	  
     case "PremierePartners": 
     aBack="Premiere Partners";
     break;
	  
     case "SpecialEvents": 
     aBack="Special Events";
     break;
	  
     case "WaysofGiving": 
     aBack="Ways of Giving";
     break;
	  
     case "grants": 
     aBack="Grants";
     break;
	  
     case "research": 
     aBack="Research";
     break;
	  
     case "it": 
     aBack="Information Technology";
     break;
	  
     case "tech_plan": 
     aBack="LMC IT Technology Plan";
     break;
	  
     case "lib": 
     aBack="William Hessel Library";
     break;
	  
     case "help": 
     aBack="Help";
     break;
	  
     case "new_book": 
     aBack="New Books";
     break;
	  
     case "New_Items": 
     aBack="New Items";
     break;
	  
     case "services_policies": 
     aBack="Library Services & Policies";
     break;
	  
     case "subjects": 
     aBack="Resources";
     break;
	  
     case "title_list": 
     aBack="Journals";
     break;
	  
     case "liberal": 
     aBack="Arts & Sciences";
     break;

     case "bio": 
     aBack="Biology";
     break;

     case "pics": 
     aBack="Pictures";
     break;
	  
     case "Mendel": 
     aBack="Mendel Center";
     break;
	  
     case "Mainstage": 
     aBack="Mendel Mainstage";
     break;
	  
     case "news": 
     aBack="In the News";
     break;
	  
     case "occu":
     aBack="Occupational Studies";
     break;

     case "cis": 
     aBack="Computer &amp; Information Systems";
     break;
	  
     case "healthsci": 
     aBack="Health Sciences";
     break;
	  
     case "policies": 
     aBack="LMC Policies";
     break;
	  
     case "pe": 
     aBack="Phys.Ed/Wellness";
     break;
	  
     case "apprenticetraining": 
     aBack="Apprentice Training";
     break;
	  
     case "program-text": 
     aBack="Programs of Study";
     break;
	  
     case "prof_pages": 
     aBack="Professional Webpages";
     break;
	  
     case "southhaven": 
     aBack="South Haven";
     break;
	  
     case "ss": 
     aBack="Student Services";
     break;
	  
     case "career_svcs": 
     aBack="Academic & Career Services";
     break;
	  
     case "eoc": 
     aBack="Educational Opportunity Ctr";
     break;
	  
     case "student_life": 
     aBack="Student Life";
     break;
	  
     case "student_support": 
     aBack="Student Support Svcs";
     break;

     case "AcademicSupport": 
     aBack="Academic Support";
     break;
	  
     case "upward_bound": 
     aBack="Upward Bound";
     break;
	  
     case "tlc": 
     aBack="Teaching & Learning Center";
     break;
	  
     case "neatstuff": 
     aBack="Neat Stuff";
     break;
	  
     case "vr": 
     aBack="Virtual Tours";
     break;
	  
     default:

     g=a.split(' ');
     for (l=0;l<g.length;l++)
     g[l]=g[l].toUpperCase().slice(0,1)+g[l].slice(1);
     aBack=g.join(" ");
     break;
     }
     return aBack;

}
			

function getLoc(c) {
    var d = "";
    if (c > 0) {
        for (k = 0; k < c; k++) {
            d = d + "../";
        }
    }
    return d;
}
//-->
