//Date: 10/30/2006
//Andy Patel

  function breadcrumbs(){
    sURL = new String;
    bits = new Object;
	last = new String;
	sTitle = new String;
    var x = 0;
    var stop = 0;
    var output = "";//"<A HREF=\"/\">Home</A> > ";

    sURL = location.href;
    sURL = sURL.slice(8,sURL.length);
    chunkStart = sURL.indexOf("/");
    sURL = sURL.slice(chunkStart+1,sURL.length)

    while(!stop){
      chunkStart = sURL.indexOf("/");
      if (chunkStart != -1){
        bits[x] = sURL.slice(0,chunkStart)
        sURL = sURL.slice(chunkStart+1,sURL.length);
		last = bits[x];
      }else{
        stop = 1;
      }
      x++;
    }
//if(x > 1){
    for(var i in bits){
	//for(var j = 0; j < 10; j++){
		//sTitle = bits[i].replace("_", " ");
		//sTitle = bits[i].replace(" ", " ");
		//sTitle = bits[i].replace("%20", " ");
	//}
		sTitle = bits[i];
		temp = new String;
		temp = sTitle;
		for(var i1 = 0; i1 < temp.length; i1++)
		{
			if(i1 == 0)
			{
				sTitle = temp.charAt(i1).toUpperCase();
			}
			else if(temp.charAt(i1).match("_") || (temp.charAt(i1).match("%") && temp.charAt(i1+1).match("2") && temp.charAt(i1+2).match("0")))
			{
				if(! temp.charAt(i1).match("_")){i1++;i1++;}
				sTitle += " ";
			}
			else if(temp.charAt(i1-1).match("_"))
			{
				sTitle += temp.charAt(i1).toUpperCase();
			}
			else
			{
				sTitle += temp.charAt(i1);
			}
		}
      output += "<A HREF=\"";
      for(y=1;y<x-i;y++){
        output += "../";
      }
      output += bits[i] + "/index.shtml\">" + sTitle + "</A> > ";
    }
	
	    output = " > " + output + document.title.replace(last,"");
//}
	document.write(output);
}
function modified(){
	document.write(document.lastModified);
}

function define(t, b, w, h) {
	with (window.open("","","menubars=no,location=no,toolbars=no,scrollbars=yes,resizable=yes,width="+w+",height="+h+",top=50,left=50").document)
	{
		open();
				write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html lang="en"><head><title>'+t+'</title><meta http-equiv="author" content="Michael Ware, Steve Hawks, Andy Patel, Sam Sieg"></head><body><p style="font-size :small;font-family: Verdana, Arial, Helvetica, sans-serif;color:#a64429;font-weight: bold;font-size:x-large;line-height:1.0em;">'+t+'</p><p>'+b+"</p><p align='center'><a class='links' href='javascript:window.close()'>Close this window</a></p>");
		close();
   }
}
