/* Location.js */
/* provides location path mapping of current location within website */
/*   */

var path = "";
var href = document.location.href;
var s = href.split("/"); 
for (var i=2;i<(s.length-1);i++) {
  sublocation = s[i]; 
  sublocation = sublocation.toLowerCase();
  switch (sublocation) {
	case "www.mcps.k12.md.us":  
		sublocation = "MCPS"; break;
	case "c:":  
		sublocation = "MCPS"; break;

	case "schools":  
		sublocation = "Schools"; break;
	case "loiedermanms":  
		sublocation = "Loiederman MS"; break;
	case "contact":  
		sublocation = "Contact"; break;
	case "current":  
		sublocation = "Current Students"; break;
	case "about":  
		sublocation = "About"; break;
	case "partnerships":  
		sublocation = "Partnerships"; break;
	case "ptsa":  
		sublocation = "PTSA"; break;
	case "sitemap":  
		sublocation = "Sitemap"; break;
	case "staff":  
		sublocation = "Administration & Staff"; break;

	default: sublocation = s[i];
   	}
path+="<A HREF=\""+href.substring(0,href.indexOf(s[i])+s[i].length)+"/\">"+sublocation+"</A>";
if (i != s.length-2) {path +=" &raquo; "; }
   }
var url = '<span class="breadcrumb" style="visibility:hidden">You are here... ' + path + '</span>';
document.writeln(url);
