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

    sURL = location.href;
    sURL = sURL.slice(30,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)
        names[x] = bits[x];
        switch (bits[x]) {
          case 'general':		names[x] = 'General Information'; break;
          case 'sponsors':		names[x] = 'Sponsors'; break;
          case 'proposals':		names[x] = 'Proposals'; break;
          case 'compliance':	names[x] = 'Compliance'; break;
          case 'accountmgmt':	names[x] = 'Account Management'; break;
          case 'contracting':	names[x] = 'Contracting'; break;
          case 'data':			names[x] = 'Data'; break;
          case 'edprogram':		names[x] = 'Educational Programs'; break;
          case 'forms':			names[x] = 'Forms'; break;
          case 'links':			names[x] = 'Links'; break;
          case 'electronicsub': names[x] = 'Electronic Submission'; break;
          case 'orgchart':		names[x] = 'Staff Organizational Charts'; break;
          case 'preaudit':		names[x] = 'Preaudit'; break;
          case 'priorapproval': names[x] = 'Prior Approval'; break;
          case 'basicskills':	names[x] = 'Basic Skills'; break;
          case 'ann_rept':		names[x] = 'Annual Report'; break;
          case 'awd_sum':		names[x] = 'Summary of Awards'; break;
          case 'awd_trends':	names[x] = 'Award Trends'; break;
          case 'exp_sum':		names[x] = 'Summary of Expenditures'; break; 
          case 'exp_trends':	names[x] = 'Expenditure Trends'; break;
          case 'highlights':	names[x] = 'Highlights'; break;
          case 'off_campusrpt':	names[x] = 'Off Campus Report'; break;
          case '1998_99':		names[x] = 'FY 1998-99'; break;
          case '1999_00':		names[x] = 'FY 1999-00'; break;
          case '2000_01':		names[x] = 'FY 2000-01'; break;
          case '2001_02':		names[x] = 'FY 2001-02'; break;
          case '2002_03':		names[x] = 'FY 2002-03'; break;
          case '2003_04':		names[x] = 'FY 2003-04'; break;
          case '2004_05':		names[x] = 'FY 2004-05'; break;
          case '2005_06':               names[x] = 'FY 2005-06'; break;
          default:				names[x] = bits[x]; break;
        }
        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 += "..//";
      }
      output += bits[i] + "/\">" + names[i] + "</A> | ";
    }

    document.write(output + document.title);
}

function FP_jumpMenu(el,frm,sel) {//v1.0
 var href=el.options[el.selectedIndex].value; if(sel) el.selectedIndex=0;
 if('_new'==frm) open(href); else eval(frm+".location='"+href+"'");
}



//To use the printSpecial function:
//	1. Add a div tag around the printable range of code:
// 		<div id=printReady>  PRINTABLE RANGE   </div>
//	2. Add a hyperlink with href="javascript:void(printSpecial())"
//
//Added 4/12/2004 by Rob Lehman, function calls added by Chris Tompkins

function printSpecial()
{
 var gAutoPrint = true;        // Flag for whether or not to automatically call the print function
 var showCustomTitle = true;   // Flag for whether or not to print a special title for printable view
 if (document.getElementById != null)
 {
  var html = '<html>\n<head>\n';
  if (document.getElementsByTagName != null)
  {
   var headTags = document.getElementsByTagName("head");
   if (headTags.length > 0) html += headTags[0].innerHTML;
  }
  html += '\n</he' + 'ad>\n<bo' + 'dy>\n';
  
  if (showCustomTitle)
  {
   html += '<table width=100% height=100% cellpadding=0 cellspacing=0 border=0>\n';
   html += ' <tr height=14 valign=top>\n';
   html += '  <td align=right>Purdue University Sponsored Program Services<br>\n';
   html += '    <a href=/coeus/>http://www.purdue.edu/coeus/</a></td>\n';
   html += ' </tr>\n';
   html += ' <tr height=* valign=top><td>\n\n';
  }

  var printReadyElem = document.getElementById("printReady");
  if (printReadyElem != null)
  {
   html += printReadyElem.innerHTML;
  }
  else
  {
   alert('Could not find the print ready section on this page.\nPlease use your browser\'s print function instead.');
   return;
  }

  if (showCustomTitle) {
    var d = new Date();
    var dateString = new String();
    dateString = (d.getMonth() * 1 + 1) + '/' + d.getDate() + '/' + d.getFullYear();
    html += '</td></tr>\n';
    html += '<tr><td>\n';
    html += '  <br><hr size=1 style=color:silver>\n';
    html += '  <a href="' + document.location + '">' + document.location + '</a><br>\n';
    html += '  ' + dateString;
    html += '</td></tr>\n';
    html += '</table>';
  }
  html += '\n</BO' + 'DY>\n</HT' + 'ML>';

  var printWin = window.open('','printSpecial','location=yes, toolbar=yes, status=yes, menubar=yes, resizable=yes, scrollbars=yes, fullscreen=no');
  printWin.document.open();
  printWin.document.write(html);
  try { //Hide icons for Adobe and Print views
    var pr1 = printWin.document.getElementById('printIcons1');
    if (pr1 != null) pr1.className='inv';
    var pr2 = printWin.document.getElementById('printIcons2');
    if (pr2 != null) pr2.className='inv';
  }catch(e){}
  printWin.document.close();
  if (gAutoPrint) printWin.print();
 }
 else
 {
  alert("Sorry, the printable view feature is only available in modern browsers.");
 }

}
