function PreLoad() {
  if (document.images) {
    pl0 = new Image();
    pl0.src = "http://www4.bfn.org/Images/main/whome.gif";
    pl1 = new Image();
    pl1.src = "http://www4.bfn.org/images/main/waboutus.gif";
    pl2 = new Image();
    pl2.src = "http://www4.bfn.org/images/main/wwhatsnew.gif";
    pl3 = new Image();
    pl3.src = "http://www4.bfn.org/images/main/wlocreg.gif";
    pl4 = new Image();
    pl4.src = "http://www4.bfn.org/images/main/wgovres.gif";
    pl5 = new Image();
    pl5.src = "http://www4.bfn.org/images/main/wcommunity.gif";
    pl6 = new Image();
    pl6.src = "http://www4.bfn.org/images/main/wuserpgs.gif";
    pl7 = new Image();
    pl7.src = "http://www4.bfn.org/images/main/wacapply.gif";
    pl8 = new Image();
    pl8.src = "http://www4.bfn.org/images/main/wsearch.gif";
  }
}
function msOver(img, ref) {
  if(! document.images) { return ; }
  document.images[img].src = ref;
}
function bfngreet() {
  bfndow = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
  bfnmoy = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
  bfndate = new Date();
  document.write(bfndow[bfndate.getDay()] + " ");
  document.write(bfnmoy[bfndate.getMonth()] + " ");
  document.write(bfndate.getDate() + ", ");
  if (bfndate.getYear() > 1000) { document.write(bfndate.getYear());
  } else {
    if (bfndate.getYear() > 90 && bfndate.getYear() < 100) {
      document.write("19" + bfndate.getYear());
    } else {
      if (bfndate.getYear() > 99)         
        document.write(bfndate.getYear() + 1900);       
      }
    }
    document.writeln("</font>");
}
function Jump(QuickJump) {
  idx = QuickJump.selectedIndex
  if (idx != 0) {
    window.location = QuickJump.options[idx].value
    QuickJump.selectedIndex
  }
}
function Area(AreaJump) {
  idx = AreaJump.selectedIndex
  if (idx != 0) {
    window.location = AreaJump.options[idx].value
    AreaJump.selectedIndex
  }
}
function numdaysTil (YR, MON, DAY, MIN, SEC)  {
  then = Date.UTC(YR, MON, DAY, MIN, SEC);
  today = new Date();
  Year = today.getYear();
  Year = Year - 100;
  Month = today.getMonth();
  Day = today.getDate();
  Hour = today.getHours();
  Minute = today.getMinutes();
  Second = today.getSeconds();
  now = Date.UTC(Year, Month, Day, Hour, Minute, Second);
  elapse = Math.abs(Math.floor ((then - now)/60000));
  NumDays = Math.floor (elapse / (24 * 60));
  if (NumDays > 0) { Until = NumDays; 
  } else { Until = " "; }
  NumHours = Math.floor ((elapse - (NumDays * 24 * 60)) / 60);
  return(Until);
}

function bookMark (txt,url,who) {
  // (C) 2000 www.CodeLifter.com
  // http://www.codelifter.com
  // Free for all users, but leave in this  header
  var txt, url, who;
  // message to show in non-IE browsers
  if (txt == null) { txt = 'Bookmark This Page!' }
  // url you wish to have bookmarked
  if (url == null) { url = 'http://www4.bfn.org' }
  // caption to appear with bookmark
  if (who == null) { who = 'Buffalo Free-net' }
  // do not edit below this line
  // ===========================
  var ver = navigator.appName
  var num = parseInt(navigator.appVersion)
  if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) {
    document.write('<A HREF="javascript:window.external.AddFavorite(url,who);" ');
    document.write('onMouseOver=" window.status=')
    document.write("txt; return true ")
    document.write('"onMouseOut=" window.status=')
    document.write("' '; return true ")
    document.write('">'+ txt + '</a>')
  } else {
    txt += "  (Ctrl+D)"
    document.write(txt)
  }
}

