function baCrumbs() {
	document.write("<p class=\"crumbs\"><a href=\"/decide/index.html\">Decide if Teaching is For You</a></p>");
}

function crumbs() {
	n = "01.html";
	loc = window.location.toString();
	subs = loc.split("/");
	c = new Array();
		c[0] = subs[subs.length-2];
		c[1] = subs[subs.length-1];
		c[2] = c[1].slice(0,2);
		c[3] = c[1].slice(2,4) * 1;
	o = c[2] + n;
	f = nameFolder(c[0]);
	
	if(c[3] != 1) {
		h = nameFile(c[2]);
	}
	
	if((c[1] == "index.html") || (f == "")) {
		return false;
	}
	
	if((c[3] != 1) && (h != "")) {
		document.write("<p class=\"crumbs\"><a href=\"index.html\">" + f + "</a> : <a href=\"" + o + "\">" + h + "</a></p>");
	}
	else {
		document.write("<p class=\"crumbs\"><a href=\"index.html\">" + f + "</a></p>");
	}
	return true;
	
}

// -----

function nameFolder() {
	switch (c[0]) {
	case "about":
		fs = "About Us";
		break;
	case "career":
		fs = "Career Events";
		break;
	case "contact":
		fs = "Contact Us";
		break;
	case "decide":
		fs = "Decide if Teaching is for You";
		break;
	case "financial":
		fs = "Find Financial Aid";
		break;
	case "job":
		fs = "Find a Teaching Job";
		break;
	case "links":
		fs = "Useful Links";
		break;
	case "partners":
		fs = "CalTeach Partners";
		break;
	case "places":
		fs = "Check Out Schools and Places";
		break;
	case "plan":
		fs = "Make and Follow Your Plan";
		break;
	case "prep":
		fs = "Find the Right Preparation Program";
		break;
	case "questions":
		fs = "Common Questions";
		break;
	case "recruit":
		fs = "Teacher Recruitment Centers";
		break;
	case "require":
		fs = "Understand the Requirements";
		break;
	case "resources":
		fs = "Resources";
		break;
	case "site":
		fs = "Site Index";
		break;
	case "talk":
		fs = "Talk to TEACH California";
		break;
	case "terms":
		fs = "Terms of Service";
		break;
	case "youth":
		fs = "For Youth";
		break;
	default:
		fs = "";
		break;
	}
	return fs;
}

// -----

function nameFile() {
switch(c[2]) {
// decide
	case "aa":
		hs = "Types of Teaching";
		break;
	case "ab":
		hs = "Ask a Teacher: Virtual Interviews";
		break;
	case "ac":
		hs = "Students and Teachers on Teaching";
		break;
	case "ad":
		hs = "Try Being a Teacher";
		break;
	case "ae":
		hs = "Salaries and Benefits";
		break;
	case "af":
		hs = "Incentives and Financial Aid";
		break;
	case "ag":
		hs = "Would You Make a Good Teacher";
		break;
	case "ah":
		hs = "Los beneficios de ensenar";
		break;
// require
	case "ba":
		hs = "The Basics";
		break;
	case "bb":
		hs = "For Elementary";
		break;
	case "bc":
		hs = "For Secondary";
		break;
	case "bd":
		hs = "For Special Education";
		break;
	case "be":
		hs = "For People with Experience";
		break;
// plan
	case "ca":
		hs = "High School Student";
		break;
	case "cb":
		hs = "College Student";
		break;
	case "cc":
		hs = "Have a B.A.";
		break;
	case "cd":
		hs = "In a Teacher Prep Program Now";
		break;
	case "ce":
		hs = "Changing Careers";
		break;
	case "cf":
		hs = "Credential/Teaching Outside California";
		break;
	case "cg":
		hs = "Education/Teaching Outside the U.S.";
		break;
	case "ch":
		hs = "Former California Teacher";
		break;
// prep
	case "da":
		hs = "How to Find the Right Program";
		break;
	case "db":
		hs = "Search All of California";
		break;
	case "dc":
		hs = "Search California by County";
		break;
	case "dd":
		hs = "Search California by Region";
		break;
	case "de":
		hs = "Search California by Zip Code";
		break;
	case "df":
		hs = "Search California by Keyword";
		break;
// financial
	case "ea":
		hs = "What is Financial Aid";
		break;
	case "eb":
		hs = "What are the Types of Financial Aid";
		break;
	case "ec":
		hs = "Who Qualifies for Financial Aid";
		break;
	case "ed":
		hs = "What is the Application Process";
		break;
	case "ee":
		hs = "Sources of Financial Aid";
		break;
	case "ef":
		hs = "If You Are From Outside California";
		break;
// places
	case "fa":
		hs = "Where in California Do You Want to Teach";
		break;
	case "fb":
		hs = "See Great California Places";
		break;
	case "fc":
		hs = "Find California School Rankings";
		break;
	case "fd":
		hs = "Find a California School District";
		break;
// job
	case "ga":
		hs = "How to Find a Job";
		break;
	case "gb":
		hs = "Where are the Jobs";
		break;
	case "gc":
		hs = "Search for Jobs Online";
		break;
	case "gd":
		hs = "Contact a Teacher Recruitment Center";
		break;
	case "ge":
		hs = "Resume Maker";
		break;
// career
	case "ia":
		hs = "Find Nearby Job Fairs and Conferences";
		break;
// youth
	case "ja":
		hs = "CalTeach for Youth Site";
		break;
	case "jb":
		hs = "Clubs, Programs and Events";
		break;	
// resources
	case "sa":
		hs = "Resources and Information";
		break;
	case "sc":
		hs = "Event Information";
		break;
	case "sd":
		hs = "Program Information";
		break;		
// questions
	case "ma":
		hs = "Answers to Common Questions";
		break;
	case "mb":
		hs = "Glossary of Terms";
		break;
// links
	case "na":
		hs = "Credentials";
		break;
	case "nb":
		hs = "Preparation Programs";
		break;
	case "nc":
		hs = "Resources for Teachers";
		break;
	case "nd":
		hs = "Jobs";
		break;
// about
	case "oa":
		hs = "History, Mission and Goals";
		break;
	case "ob":
		hs = "Partners and Sponsors";
		break;
	case "oc":
		hs = "Newsletter";
		break;
	case "od":
		hs = "Related Programs";
		break;
	default:
		hs = "";
		break;
		}
	return hs;
}
