function currentPage () {
	var totalLinks = document.links.length;
	var currentPage = location.href;
	var links = "";
	for (i = 1; i < totalLinks; i++) {
		if (document.links[i].href == currentPage) {
			document.links[i].id = "current";
		}
	}
	if(document.getElementsByTagName) {
		var tables = document.getElementsByTagName("table");
		for(i = 0; i < tables.length; i++) {
			if(tables[i].className == "formatted") {
				var table = tables[i];
				var rows = table.getElementsByTagName("tr");  
				for(i = 0; i < rows.length; i++) {
					if(i % 2 == 0) {
						rows[i].className = "background";
					}
				}
			}
		}
	}
}
function breadcrumbs() {
	var testvar;
	var crumbsep = " &lt; ";
	var precrumb = "<span class=\"breadcrumb\">";
	var postcrumb = "</span>";
	var sectionsep = "/";
	var rootpath = "/programs/perfusion"; // Use "/" for root of domain.
	var rootname = "Perfusion";
	var ucfirst = 1; // if set to 1, makes "directory" default to "Directory"
	// var showpage = document.title; // this contains what to show as the current page in the crumb. Set to "" to show nothin
	var showpage = ""; // this contains what to show as the current page in the crumb. Set to "" to show nothing
	var objurl = new Object;
	objurl['topics'] = 'All Topics';
	// Grab the page's url and break it up into directory pieces
	var pageurl = (new String(document.location));
	var protocol = pageurl.substring(0, pageurl.indexOf("//") + 2);
	pageurl = pageurl.replace(protocol, ""); // remove protocol from pageurl
	var rooturl = pageurl.substring(0, pageurl.indexOf(rootpath) + rootpath.length); // find rooturl
	if (rooturl.charAt(rooturl.length - 1) == "/") //remove trailing slash
	{
		rooturl = rooturl.substring(0, rooturl.length - 1);
	}
	pageurl = pageurl.replace(rooturl, ""); // remove rooturl from pageurl
	if (pageurl.charAt(0) == '/') // remove beginning slash
	{
		pageurl = pageurl.substring(1, pageurl.length);
	}
	var page_ar = pageurl.split(sectionsep);
	var currenturl = protocol + rooturl;
	var allbread = precrumb + "<a href=\"" + currenturl + "\">" + rootname + "</a>" + postcrumb; // start with root
	for (i=0; i < page_ar.length-1; i++)
	{
		var displayname = "";
		currenturl += "/" + page_ar[i];
		if (objurl[page_ar[i]])
		{
			displayname = objurl[page_ar[i]];
		}
		else
		{
			if (ucfirst == 1)
			{
				displayname = page_ar[i].charAt(0).toUpperCase() + page_ar[i].substring(1);
			}
			else
			{
				displayname = page_ar[i];
			}
		}
		displayname = displayname.replace("%20", " "); // Convert underscores and %20 to spaces
		displayname = displayname.replace("_", " ");
		allbread += crumbsep + precrumb + "<a href=\"" + currenturl + "\">" + displayname + "</a>" + postcrumb;
	}
	if (showpage != "")
	{
		allbread += crumbsep + showpage;
	}
	document.write(allbread);
}