function breadcrumbs(){
var path = location.pathname;
var bitsarray = path.split("/"); 		//Split the path and put it into an array
var x=0;
var i=0;
var j=0;
var output = "&nbsp; <a href=\"";		//Start building the output string

//If the directory is a program then need to flag to put a link to the program directory...
var progflag = 0;
x = bitsarray.length-2;
switch(bitsarray[x]){
	case "accounting": progflag = 1; break;
	case "beit": progflag = 1; break;
	case "busadm": progflag = 1; break;
	case "finance": progflag = 1; break;
	case "finsvcs": progflag = 1; break;
	case "insurance": progflag = 1; break;
	case "management": progflag = 1; break;
	case "marketing": progflag = 1; break;
	case "mis": progflag = 1; break;
	case "motorsports": progflag = 1; break;
	case "oma": progflag = 1; break;
}


for (i=1;i<bitsarray.length;i++){
	output = output + "../";
}

output = output + "\">ISU Home</a>";

for (i=1;i<bitsarray.length-1;i++){		//Work on each element in the array
	switch(bitsarray[i]){			//and change it to a more readable form		
		case "beit": bitsarray[i] = bitsarray[i].toUpperCase(); break;
		case "busadm": bitsarray[i] = "Business Administration"; break;
		case "busdev": bitsarray[i] = "COB Home"; break;
		case "cec": bitsarray[i] = "Center for Student Professional Development"; break;
		case "facstaff": bitsarray[i] = "Faculty &amp; Staff"; break;
		case "finsvcs": bitsarray[i] = "Financial Services"; break;
		case "getinvolved": bitsarray[i] = "Get Involved"; break;
		case "mba": bitsarray[i] = bitsarray[i].toUpperCase(); break;
		case "mis": bitsarray[i] = bitsarray[i].toUpperCase(); break;
		case "oma": bitsarray[i] = bitsarray[i].toUpperCase(); break;
		case "spring2008": bitsarray[i] = "Spring 2008"; break;
		default: bitsarray[i] = bitsarray[i].substr(0,1).toUpperCase() + bitsarray[i].substr(1);
	}
	output = output + " > <a href=\"";
	x = bitsarray.length - 2;
	if (i < x){
		x=bitsarray.length-i-1;
		for (j=1;j<x;j++){		//Work through each directory path to the page
			output = output + "../";
		}
	}

//If the directory is a program then need to put a link to the program directory before the final directory...
if (progflag==1 && i==bitsarray.length-2){
output = output + "../programs\">Undergraduate</a> > <a href=\"../programs/information.htm\">Programs</a> > <a href=\"";

}
output = output + "./\">" + bitsarray[i] + "</a>";
}
document.write("<div style='background-color: #99ff66; padding: 3px;'>");
document.write(output + "</div>");
}

function alphaButtons(){
var count;
var strs;
/* 65 = ASCII value for A, 90 = ASCII value for Z */
for (count = 65; count<=90; count++)
	{
		strs = count.toString();
		values = '&#' + strs;
		document.write('<input type="button" value=" ' + values + ' " style="font-weight:bold; width:20px; border-style:none; background-color:#0047b6; color:white"; onclick=document.location.href="#' + values + '">');

	}
}
