
//*****************************************************
// Copyright:  © 2007 M H Payet
//
// File:       libMain.js
// Language:	JavaScript
// Developer:  MHP
// Date:       Feb 2007
//
// Description:
//    Burnley Neighbourhood Centre Inc Website
//    Main library of functions.
//    To be included in all web pages.
//*****************************************************

var currentURL = location.href.toLowerCase();
var currentURLfile = getURLfile(currentURL);

//=====================================================
// Browser detection.
//=====================================================

var browserType = navigator.userAgent.toLowerCase();
var browserVer = parseFloat(navigator.appVersion);
var browserID = "";
var browserVer4plus = false;

var macOS = false;
if (browserType.indexOf('mac')!=-1) macOS = true;

// Check for non-MSIE and non-NN browsers first for JavaScript functions to
// ignore emulation of these two browsers.  Code will operate according to
// real browser ID otherwise outcome is unpredictable without
// thorough testing on these other browsers.

if (browserType.indexOf('opera') != -1) browserID = "OPERA"
else if (browserType.indexOf('webtv') != -1) browserID = "WEBTV"
else if (browserType.indexOf('msie') != -1) browserID = "MSIE"
else if (browserType.indexOf('mozilla') != -1) browserID = "NN"

// Get actual version number of MSIE browser (NN extracts this) to determine
// if > V4.0.

if ((browserID == "MSIE") && (browserVer == 4.0)) {
   var ver4 = browserType.substring(browserType.indexOf('msie'), browserType.length);

   browserVer = ver4.substring(ver4.indexOf(' '), ver4.indexOf(';'));

   // In case value returned is not a number, return 4.0 browser version again.

   if (isNaN(browserVer)) browserVer = 4.0;
}

// Check that current browser will support JavaScript code version 1.2+.
// If not, then any JavaScript 1.1- code may be executed.

if (((browserID == "MSIE") || (browserID == "NN")) && (browserVer >= 4)) {
   browserVer4plus = true;
}

//=====================================================
// Specific CSS elements
//=====================================================
                                              
document.writeln('<style type="text/css">');
document.writeln('<!--');
if (browserID == "NN") {
   document.writeln('   .itemDate, .smallerTxt, #smallerTxt, .topbotNavBar, .gallery, .pageTop {font-size: 95%}');
   document.writeln('table.details {clear: both;}');
 
   if (browserVer >= 5.0) {
      document.writeln('   .imgRightPad2     {float: right; padding-left: 5px; font-size: 100%}');
      document.writeln('   .imgLeftPad2      {float: left; padding-right: 5px; font-size: 100%}');
      document.writeln('   .pageTop, h4 a span.smallerTxt {font-size: 90%}');
      document.writeln('   ul.special, ol.special {padding-left: 0px; padding-right: 1px; margin-left: 20px}');
      document.writeln('   a.picLink {text-decoration: none;}');
   }
   else {
      document.writeln('.motto               {font-size: 79%}');
      document.writeln('.letter1             {margin-left: 10px; margin-right: 10px; background-color: #FFFFFF; border: 1px solid #CCCCCC; width: 90%}');
   }
}
else if (browserID == "MSIE") {
   document.writeln('   ul.special, ol.special {padding-left: 0px; padding-right: 1px; margin-left: 20px}');
}
else if (browserID == "OPERA") {
   document.writeln('   .itemDate, .smallerTxt, #smallerTxt, .topbotNavBar, .gallery, .pageTop {font-size: 90%}');
   document.writeln('   ul.special, ol.special {padding-left: 0px; padding-right: 1px; margin-left: 20px}');
}
document.writeln('-->');
document.writeln('</style>');

//=====================================================
// Show date modified - used in page footers.
//=====================================================

function showDateModified() {
   if (lastDateModified() != "") document.writeln("<span>Last modified: " + lastDateModified() + ", EST Australia.</span>");
   else  document.writeln("<span>Last modified: " + document.lastModified +  ".</span>");

   document.writeln("<span class='noPrint'>");
   document.writeln("<br>");
   createMenuLink('Privacy', 'privacy.html');
   createMenuLink('Disclaimer', 'disclaim.html');
   document.writeln("</span>");
}

//=====================================================
// Last date modified.
//=====================================================

function lastDateModified() {
   var someDate = new Date(document.lastModified);
   return someDate.toLocaleString();
}

//=====================================================
// Status messages.
//=====================================================

function statusMsg(msg) {
   window.status = msg;
   return true;
}

function defaultStatusMsg() {
   window.status = window.defaultStatus;
   return true;
}

//=====================================================
// Open new browser window
//=====================================================

function openWin(fileName, windowWidth, windowHeight, windowResize) {
   var windowAttributes;

   if (windowWidth==null) windowWidth=500;
   if (windowHeight==null) windowHeight=300;
   if (windowResize==null) windowResize="no";

   windowAttributes="'width=" + windowWidth;
   windowAttributes+=",height=" + windowHeight;
   windowAttributes+=",resizable=" + windowResize;
   windowAttributes+=",scrollbars=yes'";

   // Window name will be the filename without its extension.

   var charPos=fileName.indexOf(".");
   var windowName="";

   if (charPos != -1) windowName=fileName.substring(0, charPos);

   newWindow=window.open(fileName, windowName, eval(windowAttributes));

   // To overcome Netscape bug (in certain versions) re: preventing
   // display of document with window.open method, repeat open
   // statement.

   if (browserID == "NN") {
      newWindow=window.open(fileName, windowName, eval(windowAttributes));
   }
}

//=====================================================
// Show term info
//=====================================================

function showTermInfo() {
   // Show on every page - if no javascript then show on classes page only
   // so remember to update with same info as below there too!

var currentDate = new Date();
var currentYear = currentDate.getFullYear();                            // yyyy

//   document.writeln('<span class="smallcaps">Term 1: Jan &mdash; Mar ' + currentYear + '</span>');
//   document.writeln('<span class="smallcaps">Term 2: Apr &mdash; Jun ' + currentYear + '</span>');
   document.writeln('<span class="smallcaps">Term 3: Jul &mdash; Sep ' + currentYear + '</span>');
//   document.writeln('<span class="smallcaps">Term 4: Oct &mdash; Dec ' + currentYear + '</span>');
}

//=====================================================
// Print full address - printed in page footers.
//=====================================================

function printFullAddress() {
   document.writeln('<div class="printOnly">');
   document.writeln('<table width="100%" cellSpacing=0 cellPadding=5 border=0>');
   document.writeln('   <tr>');
   document.writeln('      <td width="30%">');
   document.writeln('         <p>92 - 94 Lord Street<br> RICHMOND  VIC  3121<br>AUSTRALIA</p>');
   document.writeln('      </td>');
   document.writeln('      <td width="70%">');
   document.writeln('         <p><strong>Ph:</strong> (03) 9428 9901&nbsp;&nbsp; <strong>Fx:</strong> (03) 9428 9553<br> <strong>Em:</strong> <a href="mailto:burnleync@yarranet.net.au">burnleync@yarranet.net.au</a><br> <strong>Web:</strong> <a href="http://www.yarranet.net.au/~burnley/">www.yarranet.net.au/~burnley</a></p>');
   document.writeln('      </td>');
   document.writeln('   </tr>');
   document.writeln('</table>');
   showTermInfo();
   document.writeln('<br></div>');
}

//=====================================================
// Show participant information
//=====================================================

function showParticipantInfo() {
   document.writeln('<p>All enquiries welcome.</p>');
   document.writeln('<a name="acfe-note"></a>');
   document.writeln('<p><strong>ACFE Note:</strong> All ACFE-funded courses');
   document.writeln('   are charged according to the ministerial statement.');
   document.writeln('   If no cost is shown and/or you require assistance with payment');
   document.writeln('   please <a href="contact.html">contact us</a> for details.</p>');

   emailURL();

   document.writeln('<h4>Venues</h4>');
   document.writeln('<p>Classes and groups are held at <a href="contact.html">Burnley Neighbourhood Centre</a> unless advised otherwise.</p>');

   document.writeln('<h4><a name="fund-ack">Funding Acknowledgements</a></h4>');
   document.writeln('<div class="centre"><table class="bordered" width="100%" cellSpacing=0 cellPadding=5 border=0>');
   document.writeln('   <tr>');
   document.writeln('      <td class="centre" width="50%" style="background-color: #ffffff"><a href="http://www.acfe.vic.gov.au/" target="_blank"><img src="graphics/logo/acfe-logo.jpg" width="80px" height="70px" alt="Logo: Adult Community and Further Education (ACFE)." border=0></a></td>');
   document.writeln('      <td class="centre" width="50%" style="background-color: #ffffff"><a href="http://www.yarracity.vic.gov.au/" target="_blank"><img src="graphics/logo/coy-logo.jpg" width="85px" height="70px" alt="Logo: City of Yarra." border=0></a></td>');
   document.writeln('   </tr>');
   document.writeln('   <tr><td class="centre" colspan=2 style="background-color: #ffffff"><a href="http://www.education.vic.gov.au/" target="_blank"><img src="graphics/logo/deecd-logo.jpg" width="150px" height="31px" alt="Logo: Department of Human Services." border=0></a></td></tr>');
   document.writeln('   <tr><td class="centre" colspan=2 style="background-color: #ffffff"><a href="http://www.dpcd.vic.gov.au/" target="_blank"><img src="graphics/logo/dpcd-logo.jpg" width="150px" height="36px" alt="Logo: Department of Planning and Community Development." border=0></a></td></tr>');
   document.writeln('</table></div>');
}

//=====================================================
// Show top navigation bar (associated functions included below)
//=====================================================

function showACFENote() {
   document.writeln('ACFE-funded - see <a href="#acfe-note">ACFE Note</a>.');
}

//=====================================================
// Show top navigation bar (associated functions included below)
//=====================================================

function showTopNavBar() {
   // Show on every page - if no javascript then show in the main column
   // of the home page only so remember to update with same info as
   // below there too!

   document.writeln('<table class="headerTable" width="100%" cellSpacing=0 cellPadding=2 border=0><tr><td class="topbotNavBar" width="100%">');

   createMenuLink('About Us', 'aboutUs.html');
   createMenuLink('Volunteers', 'voluntr.html');
   createMenuLink('Wish List', 'wishlist.html');
   createMenuLink('Centre Hire', 'hire.html');
   createMenuLink('Links', 'links.html');
   createMenuLink('Search', 'search.html');

   document.writeln('</td></tr></table>');
}

function getURLfile(currURL) {
   // Extra filename from current URL.
   var slashPos = currURL.lastIndexOf('/');
   var hashPos = currURL.lastIndexOf('#');
   var currentFile = currURL;

   if ((slashPos != -1) && (slashPos != (currURL.length - 1))) {
      if (hashPos != -1)   currentFile = currURL.substring((slashPos + 1), hashPos);
      else                 currentFile = currURL.substring((slashPos + 1), currURL.length);
   }
   return currentFile;
}

function createMenuLink(linkDesc, linkHref) {
   // This function will only work with files in the ROOT directory.

   var linkURL = linkHref.toLowerCase();
   var linkURLfile = getURLfile(linkURL);

   // If blank redirect to Home page.

   if (currentURLfile == "")              window.location.href = "index.html";
   else {
      // If we are already on the link's page then disable link.

      if (currentURLfile == linkURLfile)  document.write('<span class="live">' + linkDesc + '</span>');
      else                                document.write('<a href="' + linkHref + '">' + linkDesc + '</a>');
   }

   // If not the last link in the top nav bar then keep showing highlighted divider.
   if ((linkHref != "search.html") && (linkHref != "disclaim.html")) document.write(' <span class="highlight">|</span> ');
}

//=====================================================
// Email URL to another person.
//=====================================================

function emailURL() {
   var bodyText = "I%20thought%20you%20might%20be%20interested%20in%20this%20website%20link:%20" + window.location;
   var linkRef = "mailto:?Subject=Burnley%20Neighbourhood%20Centre%20website%20link&body=" + bodyText;

   document.writeln('   <h4>Tell a family member or friend</h4>');
   document.writeln('   <p>If you are aware of someone who would be');
   document.writeln('      interested in attending one of our classes/groups,');
   document.writeln('      <a href=' + linkRef + ' onMouseOver=\"return statusMsg(\'Email the link to this page to others.\')\" onMouseOut=\"return defaultStatusMsg()\">let them know</a>!');
   document.writeln('   </p>');

}

//=====================================================
// Left column boxes and other info.
//=====================================================

function showICTLabInfo() {
   document.writeln('               <a name="ictlab"></a>');
   document.writeln('               <div class="centre" style="padding: 5px">');
   document.writeln('               <table cellSpacing=0 cellPadding=0 width="100%" border=0 style="border: 1px solid #33cccc;">');
   document.writeln('                  <tr>');
   document.writeln('                     <td class="sideBox7" id="smallerTxt" style="background-color: #b0c4de;">');
   document.writeln('                        <h4 class="centre" style="margin-top: 0px; margin-bottom: 0px; color: #000000; font-size: 110%">Public Computer<br> &amp; Internet Access</h4>');
   document.writeln('                     </td>');
   document.writeln('                  </tr>');
   document.writeln('                  <tr>');                                                 
   if (browserID == "NN")  document.writeln('<td class="sideBox7" width="160px" style="font-size: 100%; vertical-align: bottom">');
   else                    document.writeln('<td class="sideBox7" width="160px" style="font-size: 90%; vertical-align: bottom">');
   document.writeln('                        <p>Our <em>Burnley Community ICT Lab</em> is open to the public:<br><br>Monday 10:00am-12:00pm');
   document.writeln('                           Wednesday 10:00am-12:00pm');
   document.writeln('                        </p>');
   document.writeln('                        <p>Available: computer, printer');
   document.writeln('                           (black &amp; white and colour),');
   document.writeln('                           scanner, internet');
   document.writeln('                           and email access (web mail),');
   document.writeln('                           MS Office Suite 2007');
   document.writeln('                           (<em>Word</em>, <em>Excel</em>, <em>Publisher</em>, <em>Powerpoint</em>)');
   document.writeln('                        </p>');
   document.writeln('                        <p>$1.00 per hour donation,');
   document.writeln('                           extra for printing');
   document.writeln('                        </p>');
   document.writeln('                        <p>If you need to save any documents,');
   document.writeln('                           etc, please bring your own USB drive');
   document.writeln('                           (virus checking available)');
   document.writeln('                        </p>');
   document.writeln('                        <p><strong>BOOKINGS ESSENTIAL</strong><br> Please <a class="norm" href="contact.html">contact us</a> to reserve a computer</p>');
   document.writeln('                        <p><strong>See Also:</strong><br> <a href="computer.html#pct">Private Computer Tuition</a></p>');
   document.writeln('                     </td>');
   document.writeln('                  </tr>');
   document.writeln('               </table></div><br class="special2">');
}

function showKinesiologyInfo() {
   document.writeln('               <a name="kwb"></a>');
   document.writeln('            <div class="centre" style="padding: 5px">');
   document.writeln('               <table cellSpacing=0 cellPadding=0 width="100%" border=0 style="border: 1px solid #33cccc;">');
   document.writeln('                  <tr>');
   document.writeln('                     <td class="sideBox8" id="smallerTxt" style="background-color: #ff9966;">');
   document.writeln('                        <h4 class="centre" style="margin-top: 0px; margin-bottom: 0px; color: #000000; font-size: 110%">Kinesiology with Barbara</h4>');
   document.writeln('                     </td>');
   document.writeln('                  </tr>');
   document.writeln('                  <tr>');                                                 
   if (browserID == "NN")  document.writeln('                     <td class="sideBox8" width="160px" style="font-size: 100%; vertical-align: bottom">');
   else                    document.writeln('                     <td class="sideBox8" width="160px" style="font-size: 90%; vertical-align: bottom">');
   document.writeln('                        <div class="centre"><a class="norm" href="downloads/stable-life-kinesiology2008.pdf"><img src="graphics/photos/stable-life2008-thum.jpg" width=160 height=88 alt="Stable Life - View Flyer" border=0><br> View Flyer</a> (PDF, 48Kb)</div>');
   document.writeln('                        <p><em>Kinesiology</em> works with the Chi energy to bring');
   document.writeln('                           balance and harmony and may be able to help');
   document.writeln('                           if you have been experiencing long-term pain');
   document.writeln('                           and/or illness.');
   document.writeln('                        </p>');
   document.writeln('                        <p><strong>Consultations:</strong><br>');
   document.writeln('                           <em>By Appointment Only</em><br><br>');
   document.writeln('                           The Stables<br> 19 Duke Street, Richmond');
   document.writeln('                        </p>');
   document.writeln('                        <p><strong>Bookings:</strong><br> <a class="norm" href="contact.html">Contact us</a> for further information and/or to make a booking.</p>');
   document.writeln('                     </td>');
   document.writeln('                  </tr>');
   document.writeln('               </table></div><br class="special2">');
}

function showMassageInfo() {
   document.writeln('               <a name="mwb"></a>');
   document.writeln('            <div class="centre" style="padding: 5px">');
   document.writeln('               <table cellSpacing=0 cellPadding=0 width="100%" border=0 style="border: 1px solid #33cccc;">');
   document.writeln('                  <tr>');
   document.writeln('                     <td class="sideBox8" id="smallerTxt" style="background-color: #ff9966;">');
   document.writeln('                        <h4 class="centre" style="margin-top: 0px; margin-bottom: 0px; color: #000000; font-size: 110%">Massage with Barbara</h4>');
   document.writeln('                     </td>');
   document.writeln('                  </tr>');
   document.writeln('                  <tr>');                                                 
   if (browserID == "NN")  document.writeln('                     <td class="sideBox8" width="160px" style="font-size: 100%; vertical-align: bottom">');
   else                    document.writeln('                     <td class="sideBox8" width="160px" style="font-size: 90%; vertical-align: bottom">');
   document.writeln('                        <div class="centre"><a class="norm" href="downloads/massage-with-barbara-flyer2009.pdf"><img src="graphics/photos/massage-with-barbara2009-thum.jpg" width=160 height=225 alt="Massage with Barbara - View Flyer" border=0><br> View Flyer</a> (PDF, 469Kb)</div>');
   document.writeln('                        <p>In these stressful times you need to take care of yourself even more so. Why not enjoy a wonderful massage from a pair of gentle hands?</p>');
   document.writeln('                        <p>Limited appointments available.');
   document.writeln('                        </p>');
   document.writeln('                        <p><strong>Consultations:</strong><br>');
   document.writeln('                           <em>By Appointment Only</em><br><br>');
   document.writeln('                           The Stables<br> 19 Duke Street, Richmond');
   document.writeln('                        </p>');
   document.writeln('                        <p><strong>Bookings:</strong><br> <a class="norm" href="contact.html">Contact us</a> for further information and/or to make a booking.</p>');
   document.writeln('                     </td>');
   document.writeln('                  </tr>');
   document.writeln('               </table></div><br class="special2">');
}

function showPrivateComputerTuitionInfo() {
   document.writeln('            <a name="pct"></a>');
   document.writeln('            <div class="centre" style="padding: 5px">');
   document.writeln('               <table cellSpacing=0 cellPadding=0 width="100%" border=0 style="border: 1px solid #33cccc;">');
   document.writeln('                  <tr>');
   document.writeln('                     <td class="sideBox7" id="smallerTxt" style="background-color: #b0c4de;">');
   document.writeln('                        <h4 class="centre" style="margin-top: 0px; margin-bottom: 0px; color: #000000; font-size: 110%">Private Computer Tuition</h4>');
   document.writeln('                     </td>');
   document.writeln('                  </tr>');
   document.writeln('                  <tr>');                                                 
   if (browserID == "NN")  document.writeln('                     <td class="sideBox7" width="160px" style="font-size: 100%; vertical-align: bottom">');
   else                    document.writeln('                     <td class="sideBox7" width="160px" style="font-size: 90%; vertical-align: bottom">');
   document.writeln('                        <div class="centre"><a class="norm" href="downloads/private-computer-tuition2008.pdf"><img src="graphics/photos/private-computer-tuition2008-thum.jpg" width=160 height=226 alt="Private Computer Tuition - View Flyer" border=0><br> View Flyer</a> (PDF, 54Kb)</div>');
   document.writeln('                        <p>Keep up-to-date for work, family and/or friends.  See flyer for full details of how you can have personal, one-to-one tuition from our IT trainer.');
   document.writeln('                        <p><strong>Sessions:</strong><br>');
   document.writeln('                           Weekdays, 9:00am - 4:00pm (subject to trainer availability)<br> <em>Bookings essential</em><br><br> <a class="norm" href="contact.html">Contact us</a> for further information and/or to make a booking');
   document.writeln('                        </p>');
   document.writeln('                     </td>');
   document.writeln('                  </tr>');
   document.writeln('               </table></div><br class="special2">');
}

function showCommGymInfo() {
   document.writeln('               <a name="commgym"></a>');
   document.writeln('            <div class="centre" style="padding: 5px">');
   document.writeln('               <table cellSpacing=0 cellPadding=0 width="100%" border=0 style="border: 1px solid #33cccc;">');
   document.writeln('                  <tr>');
   document.writeln('                     <td class="sideBox1" id="smallerTxt">');
   document.writeln('                        <h4 class="centre" style="margin-top: 0px; margin-bottom: 0px; color: #000000; font-size: 110%">Community Gym Memberships</h4>');
   document.writeln('                     </td>');
   document.writeln('                  </tr>');
   document.writeln('                  <tr>');                                                 
   if (browserID == "NN")  document.writeln('                     <td class="sideBox6" width="160px" style="font-size: 100%; vertical-align: bottom">');
   else                    document.writeln('                     <td class="sideBox6" width="160px" style="font-size: 90%; vertical-align: bottom">');
   document.writeln('                        <div class="centre"><img src="graphics/photos/comm-gym-memberships-thum.jpg" width=160 height=116 alt="Community Gym Memberships" border=0></div>');
   document.writeln('                        <p>If you have a health care card you can access Yarra Leisure Centres at low cost for swimming, spa, gym, group fitness classes and play golf.</p>');
   document.writeln('                        <p><strong>Cost:</strong> $25 for 3 months</p>');
   document.writeln('                        <p><a class="norm" href="contact.html">Contact us</a> for further details and to register.</p>');
   document.writeln('                     </td>');
   document.writeln('                  </tr>');
   document.writeln('               </table></div><br class="special2">');
}

function showOraFitnessInfo() {
   document.writeln('               <a name="ora"></a>');
   document.writeln('            <div class="centre" style="padding: 5px">');
   document.writeln('               <table cellSpacing=0 cellPadding=0 width="100%" border=0 style="border: 1px solid #33cccc;">');
   document.writeln('                  <tr>');
   document.writeln('                     <td class="sideBox8" id="smallerTxt" style="background-color: #ff9966;">');
   document.writeln('                        <h4 class="centre" style="margin-top: 0px; margin-bottom: 0px; color: #000000; font-size: 110%">Mums and Bubs<br> Get in shape and<br> feel fantastic!</h4>');
   document.writeln('                     </td>');
   document.writeln('                  </tr>');
   document.writeln('                  <tr>');                                                 
   if (browserID == "NN")  document.writeln('                     <td class="sideBox2" width="160px" style="font-size: 100%; vertical-align: bottom">');
   else                    document.writeln('                     <td class="sideBox2" width="160px" style="font-size: 90%; vertical-align: bottom">');
   document.writeln('                        <div class="centre"><a class="norm" href="downloads/ora-fitness-flyer2010.pdf"><img src="graphics/photos/ora-fitness-flyer2010-thum.jpg" width=160 height=230 alt="Ora\'s Mums and Bubs - View Flyer" border=0><br> View Flyer</a> (PDF, 505Kb)</div>');


   document.writeln('                        <p>Feel and look fabulous with Ora\'s <em>Mums and Bubs</em> program.  The perfect results-oriented group fitness option for busy mums.  BYO bub... nanny service is provided!  We make exercise for mums achievable and fun.</p>');
   document.writeln('                        <ul class="special"><li>Get back into shape and increase your energy levels.</li><li>Exercise while bub is being entertained.</li><li>Get results and not break the budget.</li><li>Train indoors to escape the cold.</li><li>Meet new friends</li><li>All offered locally at:<br> The Stables<br> 19 Duke Street, Richmond</li></ul>');
   document.writeln('                        <p>Download the flyer above for more details and to book.</p>');
   document.writeln('                     </td>');
   document.writeln('                  </tr>');
   document.writeln('               </table></div><br class="special2">');
}

function showServicesInfo() {
   document.writeln('            <a name="services"></a>');
   document.writeln('            <div class="centre" style="padding: 5px">');
   document.writeln('               <table cellSpacing=0 cellPadding=0 width="100%" border=0 style="border: 1px dashed #33cccc;">');
   document.writeln('                  <tr>');
   document.writeln('                     <td class="sideBox4" id="smallerTxt">');
   document.writeln('                        <h4 class="centre" style="margin-top: 0px; margin-bottom: 0px; color: #000000; font-size: 110%">Other Services</h4>');
   document.writeln('                     </td>');
   document.writeln('                  </tr>');
   document.writeln('                  <tr>');                                                 
   if (browserID == "NN")  document.writeln('                     <td class="sideBox4" width="160px" style="font-size: 100%; vertical-align: bottom">');
   else                    document.writeln('                     <td class="sideBox4" width="160px" style="font-size: 90%; vertical-align: bottom">');
   document.writeln('                        <ul class="special">');
   document.writeln('                           <li><a class="norm" href="health.html#kwb">Kinesiology with Barbara</a></li>');
   document.writeln('                           <li><a class="norm" href="health.html#mwb">Massage with Barbara</a></li>');
   document.writeln('                           <li><a class="norm" href="computer.html#pct">Private Computer Tuition</a></li>');
   document.writeln('                        </ul>');
   document.writeln('                     </td>');
   document.writeln('                  </tr>');
   document.writeln('               </table></div><br class="special2">');

}

function showCentreHireInfo() {
   var bkgExt = "background-position: 0% 50%; background-color: #ffffff; background-repeat: repeat-x;";
   var bkgPic = "background-image: url(graphics/bkg/bkg00001.jpg); " + bkgExt;

   if (((browserID == "MSIE") || (browserID == "NN")) && (browserVer4plus)) {
      // Random pics.
      var bkgImg = Math.floor(7 * Math.random() + 1);

      if ((bkgImg < 1) || (bkgImg > 7)) bkgImg = 1;
      bkgPic = "background-image: url(graphics/bkg/bkg0000" + bkgImg + ".jpg); " + bkgExt;
   }

   showFacebookLink();

   document.writeln('            <a name="hire"></a>');
   document.writeln('            <div class="centre" style="padding: 5px">');
   document.writeln('               <table cellSpacing=0 cellPadding=0 width="100%" border=0 style="border: 1px solid #33cccc;">');
   document.writeln('                  <tr>');
   document.writeln('                     <td class="sideBox2" id="smallerTxt" style="background-color: #ffff99;">');
   document.writeln('                        <h4 class="centre" style="margin-top: 0px; margin-bottom: 0px; color: #000000; font-size: 110%">Centre Available for Hire</h4>');
   document.writeln('                     </td>');
   document.writeln('                  </tr>');
   document.writeln('                  <tr>');
   document.writeln('                     <td style="' + bkgPic + '">');
   document.writeln('                        <img src="graphics/spacer01.gif" width=140 height=60 alt="" border=0>');
   document.writeln('                     </td>');
   document.writeln('                  </tr>');
   document.writeln('                  <tr>');                                                 
   if (browserID == "NN")  document.writeln('                     <td class="sideBox2" width="160px" style="font-size: 100%; vertical-align: bottom">');
   else                    document.writeln('                     <td class="sideBox2" width="160px" style="font-size: 90%; vertical-align: bottom">');
   document.writeln('                        <p>BNC is a great venue</strong> for family and');
   document.writeln('                           community get-togethers</em>, BBQs, birthday parties');
   document.writeln('                           and meetings for your club or business. See');
   document.writeln('                           <a class="norm" href="hire.html">Centre Hire</a>');
   document.writeln('                           for further details.');
   document.writeln('                        </p>');
   document.writeln('                     </td>');
   document.writeln('                  </tr>');
   document.writeln('               </table></div><br class="special2">');

}

function showFacebookLink() {
   document.writeln('            <a name="facebook"></a>');
   document.writeln('            <div class="centre" style="padding: 0px"><a class="norm" href="http://www.facebook.com/group.php?gid=394977052526"><img src="graphics/logo/facebook-badge.gif" width=144 height=44 alt="Visit our Facebook site." border=0></a></div><br class="special2">');
}

function showStratPlan() {
   document.writeln('               <a name="stratplan"></a>');
   document.writeln('            <div class="centre" style="padding: 5px">');
   document.writeln('               <table cellSpacing=0 cellPadding=0 width="100%" border=0 style="border: 1px solid #33cccc;">');
   document.writeln('                  <tr>');
   document.writeln('                     <td class="sideBox8" id="smallerTxt" style="background-color: #ff9966;">');
   document.writeln('                        <h4 class="centre" style="margin-top: 0px; margin-bottom: 0px; color: #000000; font-size: 110%">Strategic Plan 2008 - 2011</h4>');
   document.writeln('                     </td>');
   document.writeln('                  </tr>');
   document.writeln('                  <tr>');                                                 
   if (browserID == "NN")  document.writeln('                     <td class="sideBox8" width="160px" style="font-size: 100%; vertical-align: bottom">');
   else                    document.writeln('                     <td class="sideBox8" width="160px" style="font-size: 90%; vertical-align: bottom">');
   document.writeln('                        <div class="centre"><a class="norm" href="downloads/strategic-plan2008-2011.pdf"><img src="graphics/photos/strategic-plan2008-2011-thum.jpg" width=160 height=121 alt="View our Strategic Plan" border=0><br>View Plan</a> (PDF, 46Kb)</div>');
   document.writeln('                     </td>');
   document.writeln('                  </tr>');
   document.writeln('               </table></div><br class="special2">');
}

//=====================================================
//
//=====================================================
