<!--
window.onerror = null;

function WriteTop() {
document.write('<TABLE cellSpacing="1" cellPadding="0" width="770" align=center bgColor="#D10384" border=1 class=StandardTable >');
document.write('<TR><TD>');
document.write('<TABLE class=MainContentTable border=0 >');
document.write('<TR><TD colspan=3 onmouseover="hidediv()">');
document.write('<table width="100%" cellspacing=0 cellpadding=0 ><tr>');
document.write('<td valign=top><img src="Images/WheelersWeb.jpg" width="375" height="120"></td>');
document.write('<td align="center" valign="middle">');
document.write('<img src="Images/Banners/LindenBanner.gif">');
document.write('</td>');
document.write('<br></td>');
document.write('</tr></table>');
document.write('</td></tr>');
}

var spe;
var swi;
var na;

function WriteTopAndMenus(HeaderImg) {
WriteTop();
WriteMainMenus();   //2nd row of the MainContentTable
WriteSubMenus();
WriteSearchRow();    //3rd row of the MainContentTable  - finishes off the the close row tag after the search image
//WriteEndTop();
if (verOffset=navigator.userAgent.indexOf("Firefox")==-1) 
{
spe=500;
swi=1;
na=document.all.tags("blink");
bringBackBlinky();
}

if( HeaderImg.length == 0 )
document.write('');
else
WriteContentTableHeaders(HeaderImg);
}

function WriteEndContent() {
document.write('<tr><td align=center><br /><br /><br /><br /><br /><a href="index.htm" title="Click here to return to the Cresta Wheelers home page">Back to Home Page</a></td></tr>');
WriteEndContentTables();
WriteRightCol();
WriteLastRow();
}

function WriteMainMenus() {
document.write('<TR bgcolor=#4384c5><TD colSpan="3">');
document.write('<DIV class="menuBar" style="WIDTH:771" id="MainMenu" >');
document.write('<A class="menuButton" onmouseover="hidediv()" style="WIDTH:50px;" href="index.htm">Home</A>');
document.write('<A class="menuButton" onmouseover="showdiv(\'mnuMembers\', this.offsetLeft+1)" style="WIDTH:100px" href="Membership.htm">Membership</A>');
//document.write('<A class="menuButton" onmouseover="showdiv(\'mnuCommittee\', this.offsetLeft+1)" style="WIDTH:90px" href="ClubNews.htm">Committee</A>');
document.write('<A class="menuButton" style="WIDTH:90px" href="Contacts.htm">Commitee</A>');
//document.write('<A class="menuButton"  onmouseover="showdiv(\'mnnMtb\', this.offsetLeft+1)" style="WIDTH:50px" href="MTBClubRides.htm">Mtb</A>');
document.write('<A class="menuButton" href="MTBClubRides.htm" style="WIDTH:55px" >Mtb</A>');
//document.write('<A class="menuButton"  onmouseover="showdiv(\'mnuRoad\', this.offsetLeft+1)" style="WIDTH:57px" href="">Road</A>');
document.write('<A class="menuButton"  style="WIDTH:57px" href="IanKernick.htm">Road</A>');
document.write('<A class="menuButton" style="WIDTH:100px" href="RideCaptains.htm">Club Rides</A>');
document.write('<A class="menuButton"  style="WIDTH:100px" href="CrestaCoach.htm">Cresta Coach</A>');
document.write('<A class="menuButton"  style="WIDTH:100px" href="ClubKit.htm">Cresta Shop</A>');


document.write('<A class="menuButton" onmouseover="showdiv(\'mnuAbout\', this.offsetLeft+2)" style="WIDTH:110px" href="AboutTheClub.htm">About the Club</A>');
document.write('</DIV>');
}

function WriteSubMenus() {
//Membership
document.write('<DIV class="menu" id="mnuMembers" style="WIDTH: 120px;">');
document.write('<A  class="menuItem" href="Membership.htm">Membership &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A>');
document.write('<A class="menuItem" href="ClubFeesAndRates2010.htm">Fees /Rates &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A>');
//document.write('<A  class="menuItem" href="PhotoGallery2006.htm">Photo Gallery &nbsp;&nbsp;&nbsp;&nbsp;</A>');
document.write('<A class="menuItem" href="CodeOfConduct.htm">Code of conduct</A>');
//document.write('<A class="menuItem" href="SafetyIssues.htm">Safety Issues &nbsp;&nbsp;&nbsp;&nbsp;</A>');
document.write('</DIV>');

//Committe
document.write('<DIV class="menu" id="mnuCommittee" style="WIDTH:90px;">');
document.write('<A class="menuItem" href="Contacts.htm">Contact Details</A>');
document.write('</DIV>');


//Mtb
document.write('<DIV class="menu" id="mnnMtb" style="WIDTH:90px;">');
document.write('<A class="menuItem" href="MTBClubRides.htm">Mtb Rides</A>');
document.write('</DIV>');

//Road
//document.write('<DIV class="menu" id="mnuRoad" style="WIDTH:120px;">');
////document.write('<A class="menuItem" href="ClubNews2008.htm">Club News &nbsp;&nbsp;</A>');
//document.write('<A class="menuItem" href="IanKernick.htm">Ian Kernick Memorial Ride &nbsp;</A>');
////document.write('<A class="menuItem" href="GeneralNews.htm">General News</A>');
////document.write('<A class="menuItem" href="RideCaptains.htm">Ride Captains &nbsp;&nbsp;&nbsp;</A>');
////document.write('<A class="menuItem" href="Tours.htm">Tours &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A>');
////document.write('<A class="menuItem" href="RaceCalendar.htm">Race Calendar &nbsp;&nbsp;&nbsp;</A>');
////document.write('<A class="menuItem" href="RaceResults.htm">Race Results &nbsp;&nbsp;&nbsp;</A>');
////document.write('<A  class="menuItem" href="InterestingLinks.htm">Interesting Links</A>');
//document.write('</DIV>');


//Club Rides
document.write('<DIV class="menu" id="mnuClubRides" style="WIDTH:100px;">');
document.write('<A class="menuItem" href="ClubRides.htm" >Club Rides &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A>');
document.write('</DIV>');

//Cresta Coach
document.write('<DIV class="menu" id="mnuCoach" style="WIDTH:100px;">');
document.write('<A class="menuItem" href="CrestaCoach.htm" >Cresta Coach &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A>');
document.write('</DIV>');

//Cresta Shop
document.write('<DIV class="menu" id="mnuShop" style="WIDTH: 100px;">');
document.write('<A  class="menuItem" href="CrestaClassifieds.htm">Cresta Classifieds</A>');
document.write('</DIV>');

//About
document.write('<DIV class="menu" id="mnuAbout" style="WIDTH:110px;">');
document.write('<A class="menuItem" href="AboutTheClub.htm">About the club</A>');
document.write('<A class="menuItem" href="Directions.htm">Directions &nbsp;&nbsp;&nbsp;&nbsp;</A>');
document.write('</DIV>');

//document.write('<div align="center"><font color="#FFFFFF">Cresta Wheelers, Cresta, Cycling, Cycling ');
//document.write('Club, Blackheath, Club Rides, Club Events, Bicycles, Club Events</font></div>');
}



function bringBackBlinky() {

if (!(verOffset=navigator.userAgent.indexOf("Firefox"))!=-1) 
{
if (swi == 1) {
sho="visible";
swi=0;
}
else {
sho="hidden";
swi=1;
}

for(i=0;i<na.length;i++) {
na[i].style.visibility=sho;
}

setTimeout("bringBackBlinky()", spe);
}
}

function WriteSearchRow() {
document.write('</td></tr>');
//document.write('<tr><td>');
document.write('<tr><td onmouseover="hidediv()" colspan=2>');
document.write('<marquee valign=middle scrollamount="8" >');
document.write('<a href="ClubFeesAndRates2010.htm" target="_blank">');
document.write('<font color=red size=5><b> PAY YOUR SUBS BY 28th FEBRUARY TO AVOID RE-JOINING FEES</b></font>');
document.write('&nbsp; <font class=SmallBlackItalic>(Click for more info)</font></a>');
document.write('</marquee>');



document.write('</td><td onmouseover="hidediv()">');
//document.write('</td><td onmouseover="hidediv()">&nbsp;</td><td onmouseover="hidediv()">');
document.write('<form action="/cgi-sys/entropysearch.cgi" STYLE="margin: 0px; padding: 0px;">');
document.write('<table border=0 width=100% cellspacing=0 cellpadding=0 valign=top>');
document.write('<tr><td valign=bottom>&nbsp;');
document.write('<input type="text" name="query" value="" size=14>&nbsp;');

document.write('<input type="hidden" name="template" value="SearchResults.htm">');
document.write('<input type="submit" value="" class="SearchBtn" title="Click here to search this site">');
document.write('<input type="hidden" name="user" value="crestawu">');
document.write('<input type="hidden" name="basehref" value="http://www.crestawheelers.co.za"></td></tr>');
document.write('</td></tr>');
document.write('</table>');
document.write('</form>');


document.write('</TD></TR>');  //end of the search row
document.write('<TR><TD valign="top" onmouseover="hidediv()" >');

}

function WriteContentTableHeaders(HeaderImg) {
//document.write('<TABLE cellSpacing=0 cellPadding=1 width="98%" align=center border=0 ID="Table1" class=FirstTableInActualPage>');
document.write('<TABLE class=FirstTableInActualPage>');
//if( HeaderImg == 'RaceReports' )
//{
//document.write('<TR><td></td><TD align=center><img src="../Images/Headers/header_' + HeaderImg + '.gif" height="14" alt="' + HeaderImg + ' (Cresta Wheelers page header)" ></TD></TR>');//}//elsedocument.write('<TR><td></td><TD align=center><img src="Images/Headers/header_' + HeaderImg + '.gif" height="14" alt="' + HeaderImg + ' (Cresta Wheelers page header)" ></TD></TR>');document.write('<TR><td></td><TD align=center height=14>');//document.write('<table width="100%" bgcolor="#FFFFFF"  ID="Table6" height="500" class=SecondTableInActualPage>');document.write('<table class="SecondTableInActualPage">');//document.write('<table width="100%" cellpadding="1" ID="Table7" class="ThirdTableInActualPage">');document.write('<tr ><td bgcolor="#E1EBFF" >')//document.write('<table width="100%" bgcolor="#FFFFFF" ID="Table8" height=500 class=ContentTable>');
document.write('<table class=ThirdTableInActualPage>');
document.write('<tr><td valign="top" align="left">');
document.write('<table class=ContentTable border=0>');}

function WriteMTBRouteHeader(DateImg) {
document.write('<tr><td><img src="Images/' + DateImg + '.gif" alt="Cresta Wheelers Cycling Club Mtb Saturday Ride" /></td></tr> ');
}

//function LinkMTBRoute(DateImg, PageName) {
function LinkMTBRoute(DateImg) {
window.open("MTBSaturdayRides.htm");
//window.open("MTBSaturdayRides.htm", "Mtb ride Saturday","", "fsdfs")
  }
  
function WriteEndContentTables() {
document.write('</table>');
document.write('</td></tr></table>');document.write('</td></tr></table>');document.write('</td></tr></table>');
}



function RideStartTime(RideMonth) {
if (RideMonth == 'JAN' ) {document.write('06h30');} //Jan start time is 06h00
if (RideMonth == 'FEB' ) {document.write('06h30');} //feb start time is 06h00
if (RideMonth == 'MAR' ) {document.write('06h30');} //mar start time is 06h00
if (RideMonth == 'APR' ) {document.write('06h30');} //April start time is 06h30
if (RideMonth == 'MAY' ) {document.write('06h30');} //may start time is 06h30
if (RideMonth == 'JUN' ) {document.write('06h30');} //june start time is 07h00
if (RideMonth == 'JUL' ) {document.write('06h30');} //july start time is 07h00
if (RideMonth == 'AUG' ) {document.write('06h30');} //Aug start time is 07h00
if (RideMonth == 'SEP' ) {document.write('06h30');} //Sept start time is 06h30
if (RideMonth == 'OCT' ) {document.write('06h30');} //Oct start time is 06h00
if (RideMonth == 'NOV' ) {document.write('06h30');} //Nov start time is 06h00
if (RideMonth == 'DEC' ) {document.write('06h30');} //Dec start time is 06h00

}

function RideStartTimeDGroup(RideMonth) {
if (RideMonth == 'JAN' ) {document.write('06h30');} 
if (RideMonth == 'FEB' ) {document.write('06h30');} 
if (RideMonth == 'MAR' ) {document.write('06h30');} 
if (RideMonth == 'APR' ) {document.write('06h30');} 
if (RideMonth == 'MAY' ) {document.write('06h30');} 
if (RideMonth == 'JUN' ) {document.write('06h30');} 
if (RideMonth == 'JUL' ) {document.write('06h30');} 
if (RideMonth == 'AUG' ) {document.write('06h30');} 
if (RideMonth == 'SEP' ) {document.write('06h30');} 
if (RideMonth == 'OCT' ) {document.write('06h30');} 
if (RideMonth == 'NOV' ) {document.write('06h30');} 
if (RideMonth == 'DEC' ) {document.write('06h30');} 

}

function EasyRidersStartTime(RideMonth) {
if (RideMonth == 'AUG' ) {document.write('08h00');} //Aug start time is 08h00
if (RideMonth == 'SEP' ) {document.write('07h30');} //Sept start time is 07h30
if (RideMonth == 'OCT' ) {document.write('07h00');} //Oct start time is 07h00
if (RideMonth == 'NOV' ) {document.write('07h00');} //Nov start time is 07h00
if (RideMonth == 'DEC' ) {document.write('07h00');} //Dec start time is 07h00
}

function WriteRightCol() {
document.write('<td width=0 background="images/separator.gif" ></TD>');  //This is the dotted vertical line between the 2nd and third columns 
document.write('<td valign=top align=center bgcolor="#ffffff">');
        document.write('<TABLE class=MainContentTable border=0 >');
                document.write('<TR><TD valign=top align=center> ');
                document.write('<img src="Images/Headers/header_ClubRidesRaces.gif" height="14"><br><IMG height=3 src="Images/spacer.gif" width=1>');
 
                        document.write('<TABLE class=FirstTableInActualPage onmouseover="hidediv()" cellpadding=1>');


//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowPink>Sun 16 Mar</td>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowPink>');
//document.write('<a href="BilldixonMemorialRide2008.htm" title="Click here to read the details for the Bill Dixon Memorial Ride">');
//document.write('<img src="Images/BlackI.gif" border=0></a>&nbsp;<b>Bill Dixon Memorial Ride</b><br>From Panarama Centre</td></tr>'); 

//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowYellow>');
//document.write('<a href="" >');
//document.write('Sat 05 July</a></td>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowYellow>');
//document.write('<a href="" title=""><img src="Images/BlackI.gif" border=0>');
//document.write('&nbsp;<b>Tour de France - Stage 1</b><br>197.5kms (Flat Stage)</a></td></tr>'); 

//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowBlack>');
//document.write('<a href="" title="Details on the club ROAD ride coming soon" >');
//document.write('Sun 20 July</a></td>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowBlack>');
//document.write('<a href="" title="" title="Details on the club ROAD ride coming soon" ><img src="Images/BlackI.gif" border=0>');
//document.write('&nbsp;<b>Club ROAD Ride</b><br> in the spirit of The Tour</a></td></tr>'); 

//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLightGreen>');
//document.write('<a href="TreasureHunt.htm" title="Click here for details...">');
//document.write('Sun 03 Aug</a></td>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLightGreen>');
//document.write('<a href="TreasureHunt.htm" title="Click here for details...">');
//document.write('<img src="Images/BlackI.gif" border=0>&nbsp;<b>Club Treasure Hunt</b><br>Approx 65km</a></td></tr>'); 

//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLightPink>');
//document.write('<a href="ClubChampionships.htm" title="Details on the Club champs...">');
//document.write('Sun 28 Sept</a></td>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLightPink>');
//document.write('<a href="ClubChampionships.htm" title="Details on the Club champs...">');
//document.write('<img src="Images/BlackI.gif" border=0>&nbsp;<b>Club "Hill Climb" Champs </b><br>Details TBA</a></td></tr>'); 

//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLimeGreen>');
//document.write('<a title="The start time of Sunday club rides during October is 6am for groups A to D and 7am for group E">');
//document.write('<img src=\'Images/Times.png\' border=0></td>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLimeGreen>');
//document.write('<a title="The start time of Sunday club rides during October is 6am for groups A to D and 7am for group E">');
//document.write('<img src="Images/BlackI.gif" border=0>');
//document.write('&nbsp;<b>OCT Club Ride start times</b><br>A,B,C & D @ <b>06h00</b> / E @ 07h00</td></tr>'); 


//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLightPink>');
//document.write('<a href="ClubChampionships.htm" title="Click for details on the Cradle via Kromdraai Club Championships route details...">');
//document.write('Sun 26 Oct</a></td>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLightPink>');
//document.write('<a href="ClubChampionships.htm" title="Click for details on the Cradle via Kromdraai Club Championships route details...">');
//document.write('<img src="Images/BlackI.gif" border=0>&nbsp;<b>Club Championships </b><br>Cradle (via Kromdraai)</a></td></tr>'); 

//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLightPink>');
//document.write('<a href="EasyRiders.htm?M=OCT" title="Click here to have Easy Riders explained...">');
//document.write('Sun 26 Oct</a></td>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLightPink>');
//document.write('<a href="EasyRiders.htm?M=OCT" title="Click here to have Easy Riders explained...">');
//document.write('<img src="Images/BlackI.gif" border=0>&nbsp;<b>Join the "Easy Riders"</b><br>Easy ride through the Suburbs</a></td></tr>'); 


//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLimeGreen>');
//document.write('<a title="The start time of Sunday club rides during December is 6am for groups A to D and 7am for group E">');
//document.write('<img src=\'Images/Times.png\' border=0></a></td>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLimeGreen>');
//document.write('<a title="The start time of Sunday club rides during December is 6am for groups A to D and 7am for group E">');
//document.write('<img src="Images/BlackI.gif" border=0>');
//document.write('&nbsp;<b>DEC Club Ride start times</b><br>A,B,C & D @ <b>06h00</b> / E @ 07h00</a></td></tr>'); 


//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLightPink>');
//document.write('<a href="EasyRiders.htm?M=DEC" title="Click here to have Easy Riders explained...">');
//document.write('Sun 14 Dec</a></td>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLightPink>');
//document.write('<a href="EasyRiders.htm?M=DEC" title="Click here to have Easy Riders explained...">');
//document.write('<img src="Images/BlackI.gif" border=0>&nbsp;<b>Join the "Easy Riders"</b><br>Easy ride through the Suburbs</a></td></tr>'); 

//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLimeGreen>');
//document.write('<a title="The start time of Sunday club rides during January is 6am for groups A to D and 7am for group E">');
//document.write('<img src=\'Images/Times.png\' border=0></a></td>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLimeGreen>');
//document.write('<a title="The start time of Sunday club rides during January is 6am for groups A to D and 7am for group E">');
//document.write('<img src="Images/BlackI.gif" border=0>');
//document.write('&nbsp;<b>JAN Club Ride start times</b><br>A,B,C & D @ <b>06h00</b> / E @ 07h00</a></td></tr>'); 

//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLimeGreen>');
//document.write('<a title="The start time of Sunday club rides during February is 6am for groups A to D and 7am for group E">');
//document.write('<img src=\'Images/Times.png\' border=0></a></td>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLimeGreen>');
//document.write('<a title="The start time of Sunday club rides during February is 6am for groups A to D and 7am for group E">');
//document.write('<img src="Images/BlackI.gif" border=0>');
//document.write('&nbsp;<b>FEB Club Ride start times</b><br>A,B,C & D @ <b>06h00</b> / E @ 07h00</a></td></tr>'); 


//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLimeGreen>');
//document.write('<a title="The start time of Sunday club rides during March is 7am for groups A to D and 7:30am for group E">');
//document.write('<img src=\'Images/Times.png\' border=0></a></td>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLimeGreen>');
//document.write('<a title="The start time of Sunday club rides during March is 7am for groups A to D and 7:30am for group E">');
//document.write('<img src="Images/BlackI.gif" border=0>');
//document.write('&nbsp;<b>MARCH Club Ride start times</b><br>A,B,C & D @ <b>07h00</b> / E @ 07h30</a></td></tr>'); 

 
//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLimeGreen>');
//document.write('<a title="The start time of Sunday club rides during April is 7:00am for groups A to D and 7:30am for group E">');
//document.write('<img src=\'Images/Times.png\' border=0></a></td>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLimeGreen>');
//document.write('<a title="The start time of Sunday club rides during April is 7:00am for groups A to D and 7:30am for group E">');
//document.write('<img src="Images/BlackI.gif" border=0>');
//document.write('&nbsp;<b>APR Club Ride start times</b><br>A,B,C & D @ <b>07h00</b> / E @ 07h30</a></td></tr>'); 

//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLimeGreen>');
//document.write('<a title="The start time of Sunday club rides during May is 7:00am for groups A to D and 7:30am for group E">');
//document.write('<img src=\'Images/Times.png\' border=0></a></td>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLimeGreen>');
//document.write('<a title="The start time of Sunday club rides during May is 7:00am for groups A to D and 7:30am for group E">');
//document.write('<img src="Images/BlackI.gif" border=0>');
//document.write('&nbsp;<b>MAY Club Ride start times</b><br>A,B,C & D @ <b>07h00</b> / E @ 07h30</a></td></tr>'); 

//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowKhaki>');
//document.write('<a href="MTBClubRideNorthernFarms.htm" title="Click here for MTB Club Ride details...">');
//document.write('Sat 20 June</a></td>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowKhaki>');
//document.write('<a href="MTBClubRideNorthernFarms.htm" title="Click here for MTB Club Ride details...">');
//document.write('<img src="Images/BlackI.gif" title="Meet inside Northern Farm at 7am, at the entrance to the tuck shop and facilities - so be sure to have your own entry card" border=0>&nbsp;<b>Social Mtb Ride </b><br> Northern Farm @ 07h00</a></td></tr>'); 

//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLimeGreen>');
//document.write('<a title="The start time of Sunday club rides during July is 7:00am for groups A to C and 8:00am for groups D and E">');
//document.write('<img src=\'Images/Times.png\' border=0></a></td>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLimeGreen>');
//document.write('<a title="The start time of Sunday club rides during July is 7:00am for groups A to C and 8:00am for groups D and E">');
//document.write('<img src="Images/BlackI.gif" border=0>');
//document.write('&nbsp;<b>JULY Club Ride start times</b><br>A,B & C @ <b>07h00</b>/ D & E @ 08h00</a></td></tr>'); 


//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowKhaki>');
//document.write('<a href="MTBClubRides.htm" title="Click here for MTB Club Ride details...">');
//document.write('Sat 25 July</td>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowKhaki>');
//document.write('<a href="MTBClubRides.htm" title="Click here for MTB Club Ride details...">');
//document.write('<img src="Images/BlackI.gif" border=0>&nbsp;<b>Social Mtb Ride (The Spruit)</b><br> CANCELLED</td></tr>'); 

//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLightPink>');
//document.write('<a href="Route(HillsOfTheWest).htm?M=JUL" title="Click for Hills of the West route details...">');
//document.write('Sun 26 July</td></a>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLightPink>');
//document.write('<a href="Route(HillsOfTheWest).htm?M=JUL" title="Click for Hills of the West route details...">');
//document.write('<img src="Images/BlackI.gif" border=0>&nbsp;<b>Club road Ride </b>from <br>Teak Place - Hills of the West</a></td></tr>'); 

//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLimeGreen>');
//document.write('<a title="The start time of Sunday club rides during August is 7:00am for groups A to C and 8:00am for groups D and E">');
//document.write('<img src=\'Images/Times.png\' border=0></a></td>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLimeGreen>');
//document.write('<a title="The start time of Sunday club rides during August is 7:00am for groups A to C and 8:00am for groups D and E">');
//document.write('<img src="Images/BlackI.gif" border=0>');
//document.write('&nbsp;<b>AUGUST Ride start times</b><br>A,B & C @ <b>07h00</b>/ D & E @ 08h00</a></td></tr>'); 


//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowKhaki>');
//document.write('<a href="MTBClubRides.htm" title="Click here for MTB Club Ride details...">');
//document.write('Sat 22 August</a></td>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowKhaki>');
//document.write('<a href="MTBClubRides.htm" title="Click here for MTB Club Ride details...">');
//document.write('<img src="Images/BlackI.gif" border=0>&nbsp;<b>Social Mtb Ride (The Spruit)</b><br> All Welcome! CU @ 07h30</a></td></tr>'); 

//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLimeGreen>');
//document.write('<a title="The start time of Sunday club rides during Septmeber is 6:30am for groups A to C and 7:30am for groups D and E">');
//document.write('<img src=\'Images/Times.png\' border=0></a></td>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLimeGreen>');
//document.write('<a title="The start time of Sunday club rides during September is 6:30am for groups A to C and 7:30am for groups D and E">');
//document.write('<img src="Images/BlackI.gif" border=0>');
//document.write('&nbsp;<b>SEPT Ride start times</b><br>A,B, C & D @ <b>06h30</b></a></td></tr>'); 

document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLimeGreen>');
document.write('<a title="The start time of Sunday club rides is 6:30am for all groups, A thru to E">');
document.write('<img src=\'Images/Times.png\' border=0></a></td>');
document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLimeGreen>');
document.write('<a title="The start time of Sunday club ridesis 6:30am for all groups, A thru to E">');
document.write('<img src="Images/BlackI.gif" border=0>');
document.write('&nbsp;<b>ALL Ride start times</b><br>for all groups is <b>06h30</b></a></td></tr>'); 

//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowBlue>');
//document.write('<a href="http://www.cyclechallenge.co.za/" target="_blank" ');
//document.write('title="Click to see more information on the 94.7 Cycle Challenge 2009..." >');
//document.write('Sun 15 Nov</a></td>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowBlue>'); 
//document.write('<a href="http://www.cyclechallenge.co.za/" target="_blank" ');
//document.write('title="Click to see more information on the 94.7 Cycle Challenge 2009..." >');
//document.write('<img src="Images/BlackI.gif" border=0>&nbsp;<b>94.7 Cycle Challenge</b><br>approx 95kms</a></td></tr>');

//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLightPink>'); 
//document.write('<a href="" title="Details and map coming soon..">');
//document.write('Sun 22 Nov</td></a>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLightPink>');
//document.write('<a href="" title="Details and map coming soon..">');
//document.write('<img src="Images/BlackI.gif" border=0>&nbsp;<b>Club Champs Time Trial</b><br>Teak Place (Cradle of Humankind)</a></td></tr>');

//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLightGreen>');
//document.write('<a href="Directions.htm" title="Click for directions to the Cresta Wheelers Club House">');
//document.write('Sat 28 November</a></td>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLightGreen><img src="images/Holly.gif">');
//document.write('<a href="Directions.htm" title="Click for directions to the Cresta Wheelers Club House"><img src="Images/BlackI.gif" border=0>');
//document.write('&nbsp;<b>Inaugural Awards & Xmas dinner Dance</b><br>Contact <a href="mailto:petera@joburg.org.za">Peter Ahmad</a> for tickets</a></td></tr>');

//document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowDarkerBlue>');
//document.write('<a href="IanKernick.htm" class=ForthcomingAttractionsHref ');
//document.write('title="Click to see more information on the Ian Kernick Memorial Ride 2009...">');
//document.write('Sun 06 Dec</a></td>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowDarkerBlue>'); 
//document.write('<a href="IanKernick.htm" class=ForthcomingAttractionsHref ');
//document.write('title="Click to see more information on the Ian Kernick Memorial Ride 2009...">');
//document.write('<img src="Images/BlackI.gif" border=0><b>Ian Kernick Memorial Ride</b><br>200km (Not a race!)</a></td></tr>');

document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLightPink>');
document.write('<a href="Route(Maropeng).htm?M=JAN" title="Click for details on the Cradle via Maropeng route details...">');
document.write('Sun 17 Jan</td>');
document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLightPink>');
document.write('<a href="Route(Maropeng).htm?M=JAN" title="Click for details on the Cradle via Maropeng route details...">');
document.write('<img src="Images/BlackI.gif" border=0>&nbsp;<b>Club road Ride</b><br>Maropeng</td></tr>'); 

document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLightPink>'); 
document.write('<a href="Route(Leratong).htm?M=JAN" title="Click here for Leratong route details...">');
document.write('Sun 24 January</td></a>');
document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLightPink>');
document.write('<a href="Route(Leratong).htm?M=JAN" title="Click for Leratong route details...">');
document.write('<img src="Images/BlackI.gif" border=0>&nbsp;<b>Club Ride</b><br>Leratong</a></td></tr>'); 

document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowRed>');
document.write('<a href="Directions.htm" title="Click for directions to the Cresta Wheelers Club House">');
document.write('Tue 26 January</a></td>');
document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowRed>');
document.write('<a href="Directions.htm" title="Click for directions to the Cresta Wheelers Club House"><img src="Images/BlackI.gif" border=0>');
document.write('&nbsp;<b>Club Social @ Marks Park</b><br>All Welcome! 18h30 onwards</a></td></tr>'); 

document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLightPink>'); 
document.write('<a href="Route(Irene).htm?M=JAN" title="Click here for Irene route details...">');
document.write('Sun 31 January</td></a>');
document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLightPink>');
document.write('<a href="Route(Irene).htm?M=JAN" title="Click for Irene route details...">');
document.write('<img src="Images/BlackI.gif" border=0>&nbsp;<b>Club Ride</b><br>Irene</a></td></tr>'); 


document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLightPink>'); 
document.write('<a href="Route(South).htm?M=FEB" title="Click here for South route details...">');
document.write('Sun 07 February</td></a>');
document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLightPink>');
document.write('<a href="Route(South).htm?M=FEB" title="Click for South route details...">');
document.write('<img src="Images/BlackI.gif" border=0>&nbsp;<b>Club Ride</b><br>South</a></td></tr>'); 

document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLightPink>'); 
document.write('<a href="Route(Kromdraai).htm?M=FEB" title="Click here for Kromdraai route details...">');
document.write('Sun 14 February</td></a>');
document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLightPink>');
document.write('<a href="Route(Kromdraai).htm?M=FEB" title="Click for Kromdraai route details...">');
document.write('<img src="Images/BlackI.gif" border=0>&nbsp;<b>Club Ride</b><br>Kromdraai</a></td></tr>');


document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLightPink>');
document.write('<a href="Route(KrugersdorpHill).htm?M=FEB" title="Click here for the Randfontein route via K\'dorp hill details..."  >');
document.write('Sun 21 February</a></td>');
document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLightPink>');
document.write('<a href="Route(KrugersdorpHill).htm?M=FEB" title="Click here for the Randfontein route via K\'dorp hill details..."  >');
document.write('<img src="Images/BlackI.gif" border=0>&nbsp;<b>Club road Ride</b><br>Randfontein (via K\'dorp hill)</a></td></tr>'); 

document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowRed>');
document.write('<a href="Directions.htm" title="Click for directions to the Cresta Wheelers Club House">');
document.write('Tue 23 February</a></td>');
document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowRed>');
document.write('<a href="Directions.htm" title="Click for directions to the Cresta Wheelers Club House"><img src="Images/BlackI.gif" border=0>');
document.write('&nbsp;<b>Club Social @ Marks Park</b><br>All Welcome! 18h30 onwards</a></td></tr>');

document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLightPink>'); 
document.write('<a href="Route(Chloorkop).htm?M=FEB" title="Click for details on the Chloorkop / Modderfontein route details...">');
document.write('Sun 28 February</td></a>');
document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLightPink>');
document.write('<a href="Route(Chloorkop).htm?M=FEB" title="Click for Chloorkop / Modderfontein route details...">');
document.write('<img src="Images/BlackI.gif" border=0>&nbsp;<b>Club road Ride</b><br>Chloorkop / Modderfontein</a></td></tr>'); 


document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLightPink>');
document.write('<a href="Route(Maropeng).htm?M=MAR" title="Click for details on the Cradle via Maropeng route details...">');
document.write('Sun 07 March</td>');
document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLightPink>');
document.write('<a href="Route(Maropeng).htm?M=MAR" title="Click for details on the Cradle via Maropeng route details...">');
document.write('<img src="Images/BlackI.gif" border=0>&nbsp;<b>Club road Ride</b><br>Maropeng</td></tr>'); 


document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowBlue>');
document.write('<a href="http://www.cycletour.co.za/" target="_blank" ');
document.write('title="Click to see more information on the Cape ARGUS PnP Cycle...">');
document.write('Sun 14 March</a></td>');
document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowBlue>'); 
document.write('<a href="http://www.cycletour.co.za/" target="_blank" ');
document.write('title="Click to see more information on the Cape ARGUS PnP Cycle...">');
document.write('<img src="Images/BlackI.gif" border=0><b>Cape ARGUS PnP Cycle tour</b><br>108kms</a></td></tr>');

document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowRed>');
document.write('<a href="Directions.htm" title="Click for directions to the Cresta Wheelers Club House">');
document.write('Tue 30 March</a></td>');
document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowRed>');
document.write('<a href="Directions.htm" title="Click for directions to the Cresta Wheelers Club House"><img src="Images/BlackI.gif" border=0>');
document.write('&nbsp;<b>Club Social @ Marks Park</b><br>All Welcome! 18h30 onwards</a></td></tr>'); 

document.write('</table>');

document.write('<br/ ><br /></td>');

document.write('</table>');
}

function WriteLastRow() {
document.write('<TR><TD colSpan="4"><BR><BR></TD></TR>');
document.write('<TR align="center" bgcolor="#FEC7EA"><TD valign=bottom class="text_white_small" colSpan="4">');
document.write('<b>Copyright <img src="Images/C.gif" border=0></b></td></tr>');
document.write('</TABLE></TD></TR></TABLE>');
}


//function WriteCalendar() {
//document.write('<table width="100%" border=1>');
//document.write('<tr><td width=10></td><td>');
//document.write('<script type="text/javascript">');//var todaydate=new Date();
//var curmonth=todaydate.getMonth()+1;//var curyear=todaydate.getFullYear();//document.write(buildCal(curmonth ,curyear, "main", "month", "daysofweek", "days", 1) );//document.write('</script>');
//document.write('</td><td width=10></td></tr></table>');
//}


//initialise all variables
var olddiv = 0;   //this will become a reference to the object that is being shown or was last shown
                  //in all cases, the object that is shown/hidden will be a <div ..> element

function getRefToDivNest( divID, oDoc ) {
	if( !oDoc ) { oDoc = document; }
	if( document.layers ) {
		if( oDoc.layers[divID] ) { return oDoc.layers[divID]; } else {
			for( var x = 0, y; !y && x < oDoc.layers.length; x++ ) {
				y = getRefToDivNest(divID,oDoc.layers[x].document); }
			return y; } }
	if( document.getElementById ) { return document.getElementById(divID); }
	if( document.all ) { return document.all[divID]; }
	return document[divID];
}

function showdiv(thisdiv, LeftPos) {
	//this function shows the div
	hidediv(); //first, hide the last one
	//Convert the name of the div into a reference to it. Basically, get a reference to the object
	olddiv = getRefToDivNest(thisdiv);
	if( !olddiv ) {
		//Nothing found. This browser is not compliant with any!
		notifyFail();
		return;
	}
	//Make the object visible
	if( olddiv.style ) {
		//DOM compliant
		olddiv.style.visibility = 'visible';
		olddiv.style.left=LeftPos;
	} else {
		if( olddiv.visibility ) {
			//Netscape and old versions of Mozilla compliant
			olddiv.visibility = 'show';
		} else {
			//Nothing found, no known way of changing the style
			notifyFail();
			return;
		}
	}
	divshown = 1;
}

function hidediv() {
	if( olddiv ) {
		if( olddiv.style ) {
			//DOM compliant
			olddiv.style.visibility = 'hidden';
		} else {
			//Netscape and old versions of Mozilla compliant
			olddiv.visibility = 'hide';
		}
		//No need for else notifyFail()
		//If it was going to fail, it would have failed while it was being shown
	}
	olddiv = false;
}

function notifyFail() {
	//oops, I guess nothing works in this browser
	if( window.myalternative ) {
		if( window.confirm( "You are having problems displaying some components of this page.\n"+
			"\nWould you like to try the other page design?" ) ) { location.href = myalternative; }
	} else {
		window.alert( "You are having problems displaying some components of this page.\n\n"+
			"Sorry, but there is not yet an alternative page." );
	}
}


function menuInit(menu) {
	var itemList, spanList;
	var textEl, arrowEl;
	var itemWidth;
	var w, dw;
	var i, j;
	// Find the width of a menu item.
	itemList = menu.getElementsByTagName("A");
	if (itemList.length > 0)
		itemWidth = itemList[0].offsetWidth;
	else
		return;
	// Fix IE hover problem by setting an explicit width on first item of
	// the menu.

	if (browser.isIE) {
		w = itemList[0].offsetWidth;
		itemList[0].style.width = w + "px";
			dw = itemList[0].offsetWidth - w;
		w -= dw;
		itemList[0].style.width = w + "px";
	}

	// Mark menu as initialized.
	menu.isInitialized = true;
}

function SizedFoto(img, h, w) {
 if (window.screen) {
    var WinLeft = ((screen.availWidth - 10) - w) / 2;
    var WinTop = ((screen.availHeight-10) -h) / 2;
    }
    else
    {
    var WinLeft =10;
    var WinTop = 10;
    }
window.open(img, "LargeImage", "height="+h+", width="+w+",left="+WinLeft+", top="+WinTop+",toolbar=no,menubar=no,resizable,scrollbars=yes");
  }

function FillWhiteSpace(YCoOrd){
alert('YCoOrd:' + YCoOrd);
document.write('<tr><td><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br></td></tr>');
}

function buildCal(m, y, cM, cH, cDW, cD, brdr){
var mn=['January','February','March','April','May','June','July','August','September','October','November','December'];
var dim=[31,0,31,30,31,30,31,31,30,31,30,31];

var oD = new Date(y, m-1, 1); //replaced line to fix date bug when current day is 31st
oD.od=oD.getDay()+1; //replaced line to fix date bug when current day is 31st

var todaydate=new Date() //added
var scanfortoday=(y==todaydate.getFullYear() && m==todaydate.getMonth()+1)? todaydate.getDate() : 0 //added

dim[1]=(((oD.getFullYear()%100!=0)&&(oD.getFullYear()%4==0))||(oD.getFullYear()%400==0))?29:28;
var t='<div class="'+cM+'"><table class="'+cM+'" cols="7" cellpadding="0" border="'+brdr+'" cellspacing="0"><tr align="center">';
t+='<td colspan="7" align="center" class="'+cH+'">'+mn[m-1]+' - '+y+'</td></tr><tr align="center">';
for(s=0;s<7;s++)t+='<td class="'+cDW+'">'+"SMTWTFS".substr(s,1)+'</td>';
t+='</tr><tr align="center">';
for(i=1;i<=42;i++){
var x=((i-oD.od>=0)&&(i-oD.od<dim[m-1]))? i-oD.od+1 : '&nbsp;';
if (x==scanfortoday) //added
x='<span id="today">'+x+'</span>' //added
t+='<td class="'+cD+'">'+x+'</td>';
if(((i)%7==0)&&(i<36))t+='</tr><tr align="center">';
}
return t+='</tr></table></div>';
}



//--><!]]>






