function breadcrumbs(){
  sURL = new String;
  bits = new Object;
  var aTitle = "";
  var myDir = "";
  var x = 0;
  var stop = 0;
  // adding a little styling to this bread crumb stuff  07-23-2008 kmf
  var output = "<div style=\"font-size:0.800em\"><a href=\"/\">Home</a>  >  ";
  sURL = location.href;
  sURL = sURL.slice(8,sURL.length);
  
  //document.write(location.href + "<br />" + sURL + "<br />" );
  
  chunkStart = sURL.indexOf("/");
  sURL = sURL.slice(chunkStart+1,sURL.length)
  
  //document.write(sURL + "<br />" );
  
  while(!stop){
    chunkStart = sURL.indexOf("/");
    if (chunkStart != -1){
      bits[x] = sURL.slice(0,chunkStart)
      sURL = sURL.slice(chunkStart+1,sURL.length);
    }else{
      stop = 1;
    }
    x++;
  }
  for(var i in bits){
    output += "<a href=\"";
    for(y=1;y<x-i;y++){
      output += "../";
    }
    
    //  *************************************
    //  ADDING A NEW DIRECTORY
    //  *************************************
    //  when adding a new directory, you must add an else if statement to this selection
    //  for the new directory
    //  the first line is...
    //  *** else if(bits[i] == "new"){ **** -->  where 'new' is the name of the directory
    //  the second line is...
    //  *** myDir = "New"; ***  -->  'New' is a name given that will display in the breadcrumbs
    //  the third line is...
    //  *** } ***  -->  nothing needs to be done here
    if(bits[i] == "sng"){
    	myDir = "Scholarships & Grants";
    }else if(bits[i] == "loans"){
    	myDir = "Loans";
    }else if(bits[i] == "portal"){
    	myDir = "Portal";
    }else if(bits[i] == "aboutus"){
    	myDir = "About Us";
    }else if(bits[i] == "schools"){
    	myDir = "Schools";
	}else if(bits[i] == "links"){
    	myDir = "Helpful Links";
    }else if(bits[i] == "cbf"){
    	myDir = "CollegeBoundfund";
    }else if(bits[i] == "finlit"){
        myDir = "Financial Literacy";
	}else if(bits[i] == "accessibility"){
    	myDir = "Accessibility Policy";
    }else if(bits[i] == "template001"){
    	myDir = "Template001";
    }else if(bits[i] == "template002"){
    	myDir = "Template002";
    }else if(bits[i] == "template003"){
    	myDir = "Template003";
    }else if(bits[i] == "template004"){
    	myDir = "Template004";
    }else if(bits[i] == "template005"){
    	myDir = "Template005";
    }else if(bits[i] == "template006"){
    	myDir = "Template006";
    }else if(bits[i] == "template007"){
    	myDir = "Template007";
    }else if(bits[i] == "template008"){
    	myDir = "Template008";
    }else if(bits[i] == "template009"){
    	myDir = "Template009";
    }else if(bits[i] == "template010"){
    	myDir = "Template010";
   	}else if(bits[i] == "template011"){
    	myDir = "Template011";
    }else if(bits[i] == "template012"){
    	myDir = "Template012";
	}else if(bits[i] == "template013"){
    	myDir = "Template013";
	}else if(bits[i] == "template014"){
    	myDir = "Template014";
	}else if(bits[i] == "template015"){
    	myDir = "Template015";
    }else if(bits[i] == "howto"){
    	myDir = "HowTo";
    }else if(bits[i] == "policy"){
    	myDir = "Policy";
    }else if(bits[i] == "test"){
    	myDir = "Test DWT";
	}else if(bits[i] == "004inner"){
    	myDir = "004inner";
    }
    
    // output += bits[i] + "/\">" + bits[i] + "</a>  >  ";
    output +=  bits[i] + "/\">" + myDir + "</a>  >  ";
  }
  // the directories are named in a manner to keep them simple but it hurts in the breadcrumb department
  // I would like to set up a switch that takes in the directory name and displays something meaningful
  // this will help with confusion with the breadcrumbs
  
  
  // extract the Rhode Island Higher Education Assistance Authority from every title that it appears on
  // that would be too long to put in breadcrumbs
  aTitle = myTitle();
  document.write(output + aTitle + "</div>");
}

function myTitle(){
	
	var myBread = "";
	myBread = document.title.replace("Rhode Island Higher Education Assistance Authority:","");;
	
	return myBread;
}


