function footer(type) {
  d = new Date(document.lastModified);
  y = d.getYear();
  if (y < 2000) y = y + 2000;
  monName = new Array ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
  
  switch(type) {
    case 'focd':
      document.write('<TABLE WIDTH="100%"><TR><TD VALIGN="TOP"><SMALL>&copy; <A HREF="http://www.gruts.com/darwin/misc/richard.php" TITLE="About Richard Carter">Richard Carter</A><BR><A HREF="ma' +'ilto:darwin' + '&#64;' + 'gruts.com" TITLE="email Richard">darwin' + '&#64;' + 'gruts.com<\A><BR><A HREF="http://www.gruts.com/darwin/" TITLE="Friends of Charles Darwin home page">www.gruts.com/darwin/</A><BR></SMALL></TD><TD VALIGN="TOP" ALIGN="RIGHT"><SMALL><SPAN CLASS="noprint"><BR><A HREF="/utils/tell-a-friend.php" TITLE="Send an email to a friend about this page">Recommend this page to a friend</A></SPAN></SMALL></TD></TR></TABLE>');
      break;
    case 'jd':
      document.write('<DIV>&copy; <A HREF="http://www.gruts.com/julian-date/about-jd.htm" TITLE="About Julian Date">Julian Date</A></DIV><DIV><A HREF="ma' +'ilto:julian.date' + '&#64;' + 'gruts.com" TITLE="email Mr Date">julian.date' + '&#64;' + 'gruts.com<\A></DIV><DIV><A HREF="http://www.gruts.com/julian-date/index.htm" TITLE="Julian Date\'s home page">www.gruts.com/julian-date/</A></DIV><DIV><SPAN CLASS="noprint"><A HREF="/utils/tell-a-friend.php" TITLE="Send an email to a friend about this page">Recommend this page to a friend</A></SPAN></DIV>');
      break;
    case 'nc':
      document.write('<TABLE WIDTH="100%"><TR><TD VALIGN="TOP"><SMALL>&copy; <A HREF="http://www.nellcarr.com/" TITLE="Nell Carr homepage">www.nellcarr.com</A></SMALL></TD><TD VALIGN="TOP" ALIGN="RIGHT"><A HREF="/utils/tell-a-friend.php" TITLE="Send an email to a friend about this page">Recommend this page to a friend</A></SMALL></TD></TR></TABLE>');
      break;
    case 'no-refer':
      document.write('<DIV>&copy; <A HREF="http://www.gruts.com/richard/" TITLE="About Richard Carter">Richard Carter</A><BR /><A HREF="http://www.gruts.com/" TITLE="Gruts Home Page">www.gruts.com</A><BR></SMALL></TD><TD VALIGN="TOP" ALIGN="RIGHT"></DIV>');
      break;
    case 'focd2':
      document.write('<div>&copy; <a href="http://www.gruts.com/darwin/misc/richard.php" title="About Richard Carter">Richard Carter</A><br /><a href="ma' +'ilto:darwin' + '&#64;' + 'gruts.com" title="email Richard">darwin' + '&#64;' + 'gruts.com<\A><br /><a href="http://www.gruts.com/darwin/" title="Friends of Charles Darwin Home Page">www.gruts.com/darwin/</a><span class="noprint"><br /><a href="/utils/tell-a-friend.php" title="Send an email to a friend about this page">Recommend this page to a friend</a></span></div>');
      break;
    case 'focd3':
      document.write('<div>The Friends of Charles Darwin<br /><a href="http://www.gruts.com/darwin/" title="Friends of Charles Darwin Home Page">www.gruts.com/darwin/</a><br /><a href="ma' +'ilto:darwin' + '&#64;' + 'gruts.com" title="email Richard Carter">darwin' + '&#64;' + 'gruts.com<\a><span class="noprint"><br /><a href="/utils/tell-a-friend.php" title="Send an email to a friend about this page">Recommend this page to a friend</a></span></div>');
      break;
    default:
      document.write('<div>&copy; <a href="http://www.gruts.com/richard/index.php" title="About Richard Carter">Richard Carter</a><br /><a href="http://www.gruts.com/" title="Gruts Home Page">www.gruts.com</a><div class="noprint"><a href="/utils/tell-a-friend.php" title="Send an email to a friend about this page">Recommend this page to a friend</a></div></div>');
  }
}


function banner(type, pathhome) {
  switch(type) {
    case 'gruts-home':
      document.write('&nbsp;');
      break;
    case 'gruts':
      document.write('&nbsp;');
      break;
    case 'darwin-home':
      document.write('&nbsp;');
      break;
    case 'darwin':
      document.write('&nbsp;');
      break;
    case 'jd-thing':
      document.write('&nbsp;');
      break;
    default:
      break;
  }
}

function menu(type) {
  switch(type) {
    case 'jd-thing':
      document.write('<DIV CLASS="navbox"><DIV CLASS="navboxheader">Now Here\'s a Thing</DIV><DIV><A HREF="/julian-date/thing/current/index.htm">Current</A></DIV><DIV><A HREF="/julian-date/archive/index.htm">Archive</A></DIV></DIV><DIV CLASS="navbox"><DIV CLASS="navboxheader">Julian Date</DIV><DIV><A HREF="/julian-date/index.htm" TITLE="Home Page of Julian Date, Man of Letters">Home</A></DIV><DIV><A HREF="/julian-date//corresp/index.htm" TITLE="The Correspondence of Julian Date">Correspondence</A></DIV><DIV><A HREF="/julian-date/datelines/contents/home.htm" TITLE="Datelines - The journalistic writings of Julian Date">Datelines</A></DIV><DIV><A HREF="/julian-date/faq/index.htm" TITLE="Questions frequently asked of Julian Date">FAQ</A></DIV></DIV><DIV CLASS="navbox"><DIV CLASS="navboxheader">Gruts</DIV><DIV><A HREF="/">Gruts Home Page</A></DIV><DIV><A HREF="/darwin/">The Friends of Charles Darwin</A></DIV></DIV>');
      break;     
    default:
      break;
  }
}


function email(user, domain, text, title) {
  if (title == null) {title = 'Send email';}
  if (text == null) text = user + '&#64;' + domain;
  document.write('<a href="ma' +'ilto:' + user + '&#64;' + domain + '" title="' + title + '">' + text + '<\a>');
}

function escapeframe() {
  if (self != top) {
    if (document.images)
      top.location.replace(window.location.href);
    else
      top.location.href = window.location.href;
  }
}