/* This script detects whether or not the visitor is using Netscape v4 */
/* and if so adjusts the page by delivering an extra style sheet       */
var uaLayers = (typeof(document.layers) != "undefined");
if (uaLayers)
{
/* As far as I know only NS4 supports layers, but we'll do a further   */
/* couple of checks to be sure                                         */
   var ua = navigator.userAgent.toLowerCase();
   var uaMajor = parseInt(navigator.appVersion);
   var isNS = ((ua.indexOf('mozilla') != -1) && (ua.indexOf('spoofer') == -1) &&
     (ua.indexOf('compatible') == -1));
   var isNS4 = (isNS && (uaMajor == 4));
/* For Navigator v4 this additional style sheet fixes a few 'features' */
   if (isNS4)
      document.write('<link rel="StyleSheet" href="bccstyle_ns4.css" type="text/css">');
}

/* This function provides a means of writing a 'mail to' style anchor  */
/* without exposing the underlying address to spam harvesters          */
function writeMAdd(tag, left, right, desc)
{
  var toAddr, hrefType, outputHTML;
  hrefType = "ma";
  toAddr = left + '@' + right;
  hrefType = hrefType + "il";
  if (tag != "")
    outputHTML = '<' + tag + '>email: ';
  else
    outputHTML = '';
  outputHTML = outputHTML + '<a href="' + hrefType + 'to:' + toAddr + '">'
  if (desc != "")
    outputHTML = outputHTML + desc;
  else
    outputHTML = outputHTML + toAddr;
  if (tag != "")
    outputHTML = outputHTML + '</a></' + tag + '>';
  else
    outputHTML = outputHTML + '</a>';
  document.writeln(outputHTML);
  return;
}

/* This function provides a shorthand link to the table key page */
function openKey(which)
{
  window.open('keys_plain.html#' + which,'Add','width=400,height=400,top=50,left=50,scrollbars=1,resizable=1,status=1');
}

/* This box documents the modification history of this routine */
/*********************************************************************/
/*                                                                   */
/*  Version   Time     Date      Who                                 */
/*  1.00.00  11:28  27-Apr-2002  Steve Pitts                         */
/*        >  Original version                                        */
/*  1.00.01  10:00  28-Apr-2002  Steve Pitts                         */
/*        >  Changed to only write an extra style sheet for NS4 so   */
/*        >  that we can include a normal style-sheet into the base  */
/*        >  HTML that will work for non-Javascript enabled browsers */
/*  1.01.00  11:25  12-Mar-2004  Steve Pitts                         */
/*        >  Added function to create mail address links             */
/*  1.01.01  21:10  14-Mar-2004  Steve Pitts                         */
/*        >  Tweaked mail address creation function so that it       */
/*        >  works for pages other than the club officers            */
/*  1.01.02  00:38  31-Aug-2008  Steve Pitts                         */
/*        >  Added function to open a table keys window              */
/*                                                                   */
/*********************************************************************/
/* end of modification history */
