   function firstFocus() {
   // Sets the focus to a designated control object. All templates name the search box,
   // but some pages may also have a firstControl object that will override this.
   // This function is called from the body onload event.

	try{document.getElementById('searchBox').focus();} catch(e) {}
	try{document.getElementById('firstControl').focus();} catch(e) {}
   }


  function breadcrumbs(){
    sURL = new String;
    bits = new Object;
    names = new Object;
    var x = 0;
    var stop = 0;
    var output = "<A HREF=\"/apsac/\">APSAC home</A> | ";

    var skipLastBit = 0;

    sURL = location.href;
    if (sURL.substr(0,13) == 'http://author') sURL = sURL.slice(30,sURL.length);
    else sURL = sURL.slice(23,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 'About': 				names[x] = 'About'; break;
            case 'Feedback':            names[x] = 'Feedback'; break;
            case 'FLI':        			names[x] = 'Financial Learning Initiative'; break;
            case 'Links':  				names[x] = 'Links'; break;
            case 'Meetings':         	names[x] = 'Meetings'; break;
            case 'Members':           	names[x] = 'Members'; break;
            case 'Subcommittees':       names[x] = 'Subcommittees'; break;
            case 'Update':            	names[x] = 'Update'; break;
            default:                    names[x] = bits[x]; break;
          }
          sURL = sURL.slice(chunkStart+1,sURL.length);
          if (sURL=='index.html' || sURL=='Welcome.html' || sURL=='') skipLastBit=1;
          
      }else{
        stop = 1;
      }
      x++;
    }

    for(var i in bits){
      if (!skipLastBit || i!=x-2) {
        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())"

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>APSAC Home<br>\n';
   html += ' <a href=/apsac/>http://www.purdue.edu/apsac/</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);
  printWin.document.close();
  if (gAutoPrint) printWin.print();
 }
 else
 {
  alert('Sorry, the printable view feature is not available for this browser.\nPlease use your browser\'s print function instead.');
 }
}
