<!--
window.onerror = null;

var spe;
var swi;
var na;

function WriteTopAndMenus(HeaderImgOrPageName) {
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( HeaderImgOrPageName.length == 0 )
document.write('');
//elseif (HeaderImgOrPageName.length == 'home' )
else
WriteContentTableHeaders(HeaderImgOrPageName);
}

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 cellpadding=0 cellspacing=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>');
}

function WriteEndContent() {
document.write('<tr><td align=center><br /><br /><br /><br /><br /><a href="http://www.crestawheelers.co.za/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:106px;" href="http://www.crestawheelers.co.za/index.htm">Home</A>');
document.write('<A class="menuButton" onmouseover="showdiv(\'mnuMembers\', this.offsetLeft, 156)" style="WIDTH:120px" href="http://www.crestawheelers.co.za/Membership.htm">Membership</A>');
document.write('<A class="menuButton" style="WIDTH:107px" href="http://www.crestawheelers.co.za/Contacts.htm">Commitee</A>');
document.write('<A class="menuButton" href="http://www.crestawheelers.co.za/Photos.htm" style="WIDTH:107px" >Photos</A>');
document.write('<A class="menuButton" style="WIDTH:107px" href="http://www.crestawheelers.co.za/ClubRides.htm">Club Rides</A>');
document.write('<A class="menuButton"  style="WIDTH:107px" href="http://www.crestawheelers.co.za/ClubKit.htm">Cresta Kit</A>');
document.write('<A class="menuButton" onmouseover="showdiv(\'mnuAbout\', this.offsetLeft, 156)" style="WIDTH:110px" href="http://www.crestawheelers.co.za/AboutTheClub.htm">About the Club</A>');
document.write('</DIV>');
}

function WriteSubMenus() {
//Membership
document.write('<DIV class="menu" id="mnuMembers" style="WIDTH: 121px;">');
document.write('<A  class="menuItem" href="http://www.crestawheelers.co.za/Membership.htm">Membership &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A>');
document.write('<A  class="menuItem" href="https://www.crestawheelers.co.za/MembershipApplication.htm">Apply Online&nbsp;&nbsp;&nbsp;</A>');
document.write('<A class="menuItem" href="http://www.crestawheelers.co.za/ClubFeesAndRates2010.htm">Fees /Rates &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A>');
document.write('<A class="menuItem" href="http://www.crestawheelers.co.za/CodeOfConduct.htm">Code of conduct</A>');
document.write('</DIV>');

//About
document.write('<DIV class="menu" id="mnuAbout" style="WIDTH:113px;">');
document.write('<A class="menuItem" href="http://www.crestawheelers.co.za/AboutTheClub.htm">About the Club</A>');
document.write('<A class="menuItem" href="http://www.crestawheelers.co.za/Directions.htm">Directions &nbsp;&nbsp;&nbsp;&nbsp;</A>');
document.write('</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 colspan=3><table width=100% border=0>');
document.write('<tr><td width=73% onmouseover="hidediv()" colspan=2>');
document.write('<marquee valign=middle scrollamount="8" >');
document.write('<a href="http://www.crestawheelers.co.za/ClubFeesAndRates2010.htm" >');
document.write('<font color=red size=5><b> PAY YOUR SUBS DURING JULY 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 width=27% 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></table>');  //end of the search row
document.write('<TR><TD valign="top" onmouseover="hidediv()" >');

}

function WriteContentTableHeaders(HeaderImgOrPageName) {
//document.write('<TABLE cellSpacing=0 cellPadding=1 width="98%" align=center border=0 ID="Table1" class=FirstTableInActualPage>');
document.write('<TABLE class=FirstTableInActualPage>');
//if( HeaderImgOrPageName == 'home' )
//{
//document.write('<TR><td></td><TD align=center><img src="../Images/Headers/header_' + HeaderImgOrPageName + '.gif" height="14" alt="' + HeaderImgOrPageName + ' (Cresta Wheelers page header)" ></TD></TR>');
//}
//else
document.write('<TR><td></td><TD align=center><img src="Images/Headers/header_' + HeaderImgOrPageName + '.gif" height="14" alt="' + HeaderImgOrPageName + ' (Cresta Wheelers page header)" ></TD></TR>');
document.write('<TR><td></td><TD align=center height=14>');
document.write('<table class="SecondTableInActualPage">');
document.write('<tr ><td bgcolor="#E1EBFF" >');
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("http://www.crestawheelers.co.za/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('07h00');} //April start time is 06h30
if (RideMonth == 'MAY' ) {document.write('07h00');} //may start time is 06h30
if (RideMonth == 'JUN' ) {document.write('07h00');} //june start time is 07h00
if (RideMonth == 'JUL' ) {document.write('07h00');} //july start time is 07h00
if (RideMonth == 'AUG' ) {document.write('07h00');} //Aug start time is 07h00
if (RideMonth == 'SEP' ) {document.write('07h00');} //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('07h00');} 
if (RideMonth == 'MAY' ) {document.write('07h00');} 
if (RideMonth == 'JUN' ) {document.write('07h00');} 
if (RideMonth == 'JUL' ) {document.write('07h00');} 
if (RideMonth == 'AUG' ) {document.write('07h00');} 
if (RideMonth == 'SEP' ) {document.write('07h00');} 
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('07h00');} //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(PageName) {
document.write('<td width=0 ></TD>');  //This is the dotted vertical line between the 2nd and third columns
//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> ');
                
     
                if (PageName=='home')
                    document.write('<img src="Images/Headers/header_ClubRidesEvents.gif" ><br><IMG height=3 src="Images/spacer.gif" width=1>');
                else
                    document.write('<img src="Images/Headers/header_ClubRidesAndEvents.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=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="As of 1st April the start time of Sunday club rides is 7:00am 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="As of 1st April the start time of Sunday club rides is 7:00am 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 now <b>07h00</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=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=ForthcomingAttractionsTableRowLightPink>'); 
//document.write('<a href="Route(Irene).htm?M=MAR" title="Click here for Irene route details...">');
//document.write('Sun 28 March</td></a>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLightPink>');
//document.write('<a href="Route(Irene).htm?M=MAR" 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(Kromdraai).htm?M=MAY" title="Click here for Kromdraai route details...">');
//document.write('Sun 23 May</td></a>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLightPink>');
//document.write('<a href="Route(Kromdraai).htm?M=MAY" 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('');
// 
//document.write('<td width=19% valign=top class=ForthcomingAttractionsTableRowLightPink ');
//document.write('title="Click for details on the Cradle via Maropeng route details..." onClick="window.location=\'http://www.crestawheelers.co.za/Route(Maropeng).htm?M=JUN\'" Style="cursor:pointer">');
//document.write('Sun 27 June</td></a>');
//document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLightPink ');
//document.write('title="Click for details on the Cradle via Maropeng route details..." onClick="window.location=\'http://www.crestawheelers.co.za/Route(Maropeng).htm?M=JUN\'" Style="cursor:pointer">');
//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('onClick="window.location=\'http://www.crestawheelers.co.za/Route(HillsOfTheWest).htm?M=JUL\'" title="Click for Hills of the West route details..." Style="cursor:pointer">');
document.write('Sun 25 July</td>');
document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLightPink ');
document.write('onClick="window.location=\'http://www.crestawheelers.co.za/Route(HillsOfTheWest).htm?M=JUL\'" title="Click for Hills of the West route details..." Style="cursor:pointer">');
document.write('<img src="Images/BlackI.gif" border=0>&nbsp;<b>Club road Ride </b>from <br>Teak Place - Hills of the West</td></tr>');

document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowRed ');
document.write('onClick="window.location=\'http://www.crestawheelers.co.za/Directions.htm\'" title="Click for directions to the Cresta Wheelers Club House" Style="cursor:pointer">');
document.write('Tue 27 July</td>');
document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowRed ');
document.write('onClick="window.location=\'http://www.crestawheelers.co.za/Directions.htm\'" title="Click for directions to the Cresta Wheelers Club House" Style="cursor:pointer">');
document.write('&nbsp;<b>Club Social @ Marks Park</b><br>All Welcome! 18h30 onwards</td></tr>');

document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLightPink ');
document.write('onClick="window.location=\'http://www.crestawheelers.co.za/Route(Leratong).htm?M=AUG\'" title="Click for Leratong route details..." Style="cursor:pointer">');
document.write('Sun 01 August</td></a>');
document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLightPink ');
document.write('onClick="window.location=\'http://www.crestawheelers.co.za/Route(Leratong).htm?M=AUG\'" title="Click for Leratong route details..." Style="cursor:pointer">');
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=ForthcomingAttractionsTableRowLightPink '); 
document.write('onClick="window.location=\'http://www.crestawheelers.co.za/Route(Chloorkop).htm?M=AUG\'" title="Click for details on the Chloorkop / Modderfontein route details..." Style="cursor:pointer">');
document.write('Sun 08 August</td>');
document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLightPink ');
document.write('onClick="window.location=\'http://www.crestawheelers.co.za/Route(Chloorkop).htm?M=AUG\'" title="Click for details on the Chloorkop / Modderfontein route details..." Style="cursor:pointer">');
document.write('<img src="Images/BlackI.gif" border=0>&nbsp;<b>Club road Ride</b><br>Chloorkop / Modderfontein</td></tr>');

document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLightPink '); 
document.write('onClick="window.location=\'http://www.crestawheelers.co.za/Route(HillBilly).htm?M=AUG\'" title="Click here for Hill Billy route details..." Style="cursor:pointer">');
document.write('Sun 15 August</td>');
document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLightPink ');
document.write('onClick="window.location=\'http://www.crestawheelers.co.za/Route(HillBilly).htm?M=AUG\'" title="Click here for Hill Billy route details..." Style="cursor:pointer">');
document.write('<img src="Images/BlackI.gif" border=0>&nbsp;<b>Club Ride</b><br>Hill Billy Route</td></tr>');


document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLightPink '); 
document.write('onClick="window.location=\'http://www.crestawheelers.co.za/Route(South).htm?M=AUG\'" title="Click here for South route details..." Style="cursor:pointer">');
document.write('Sun 22 August</td>');
document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLightPink ');
document.write('onClick="window.location=\'http://www.crestawheelers.co.za/Route(South).htm?M=AUG\'" title="Click here for South route details..." Style="cursor:pointer">');
document.write('<img src="Images/BlackI.gif" border=0>&nbsp;<b>Club Ride</b><br>South</td></tr>'); 


document.write('<tr><td width=19% valign=top class=ForthcomingAttractionsTableRowLightPink ');
document.write('onClick="window.location=\'http://www.crestawheelers.co.za/Route(KrugersdorpHill).htm?M=AUG\'" title="Click here for Randfontein route via K\'dorp hill route details..." Style="cursor:pointer">');
document.write('Sun 29 August</a></td>');
document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowLightPink ');
document.write('onClick="window.location=\'http://www.crestawheelers.co.za/Route(KrugersdorpHill).htm?M=AUG\'" title="Click here for Randfontein route via K\'dorp hill route details..." Style="cursor:pointer">');
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('onClick="window.location=\'http://www.crestawheelers.co.za/Directions.htm\'" title="Click for directions to the Cresta Wheelers Club House"  Style="cursor:pointer">');
document.write('Tue 31 August</td>');
document.write('<td width=81% valign=top class=ForthcomingAttractionsTableRowRed ');
document.write('onClick="window.location=\'http://www.crestawheelers.co.za/Directions.htm\'" title="Click for directions to the Cresta Wheelers Club House"  Style="cursor:pointer">');
document.write('&nbsp;<b>Club Social @ Marks Park</b><br>All Welcome! 18h30 onwards</td></tr>');

                
document.write('</table>');

document.write('</td>');

document.write('</table>');

document.write('<font style="" class=SmallBlackItalic>Click on a ride to view its description</font>');
}

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> Cresta Wheelers</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, TopPos) {
	//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';
                //        alert('TopPos:' + TopPos);                
		olddiv.style.left=LeftPos;
                olddiv.style.top=TopPos;
	} else {
		if( olddiv.visibility ) {
			//Netscape and old versions of Mozilla compliant
			olddiv.visibility = 'show';
                        olddiv.style.left=LeftPos;
                        olddiv.style.top=TopPos;                        
		} 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>';
}



//--><!]]>






