document.writeln('<BODY TEXT="#CCCCCC" BGCOLOR="#000000" LINK="#339933" VLINK="#339933" ALINK="#339933">');
document.writeln('<CENTER>');
document.writeln('<TABLE BGCOLOR="#990000" BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=750>');
document.writeln('<TR>');
document.writeln('   <TD ALIGN=CENTER VALIGN=MIDDLE><IMG BORDER=0 WIDTH=750 HEIGHT=100 SRC="graphics/header.gif"></TD>');
document.writeln('</TR>');
document.writeln('<TR>');
document.writeln('   <TD ALIGN=CENTER VALIGN=MIDDLE BGCOLOR="#000000"><IMG BORDER=0 WIDTH=750 HEIGHT=6 SRC="graphics/cleardot.gif"></TD>');
document.writeln('</TR>');
document.writeln('<TR>');
document.writeln('   <TD ALIGN=CENTER VALIGN=MIDDLE>');
document.writeln('      <TABLE BORDER=0 CELLPADDING=7 CELLSPACING=2 WIDTH=750>');
document.writeln('      <TR BGCOLOR="#222222">');
document.writeln('         <TD ALIGN=CENTER VALIGN=MIDDLE><A');
document.writeln('            HREF="index.htm"><IMG BORDER=0 WIDTH=140 HEIGHT=30 SRC="graphics/home.gif"></A><IMG BORDER=0 WIDTH=8 HEIGHT=30 SRC="graphics/cleardot.gif"><A');
document.writeln('            HREF="info.htm"><IMG BORDER=0 WIDTH=140 HEIGHT=30 SRC="graphics/info.gif"></A><IMG BORDER=0 WIDTH=8 HEIGHT=30 SRC="graphics/cleardot.gif"><A');
document.writeln('            HREF="other.htm"><IMG BORDER=0 WIDTH=140 HEIGHT=30 SRC="graphics/other.gif"></A><IMG BORDER=0 WIDTH=8 HEIGHT=30 SRC="graphics/cleardot.gif"><A');
document.writeln('            HREF="archives.htm"><IMG BORDER=0 WIDTH=140 HEIGHT=30 SRC="graphics/archives.gif"></A><IMG BORDER=0 WIDTH=8 HEIGHT=30 SRC="graphics/cleardot.gif"><A');
document.writeln('            HREF="links.htm"><IMG BORDER=0 WIDTH=140 HEIGHT=30 SRC="graphics/links.gif"></A></TD>');
document.writeln('      </TR>');
document.writeln('      <TR BGCOLOR="#222222">');
document.writeln('         <TD ALIGN=CENTER VALIGN=TOP>');
document.writeln('            <FONT FACE="ARIAL" COLOR="#339933" SIZE=3><BR><B><U>' + rallyDate + " " + rallyYear + " - " + rallyName + ", " + rallyLocation + '</U></B><BR>&nbsp;</FONT>');
document.writeln('            <TABLE BGCOLOR="#222222" BORDER=0 CELLPADDING=0 CELLSPACING=0>');
document.writeln('            <TR>');
document.writeln('               <TD ALIGN=LEFT VALIGN=MIDDLE>');
document.writeln('                  <FONT FACE="ARIAL" COLOR="#CCCCCC" SIZE=2><UL>');
document.writeln('                  <LI>This is just a selection of ' + photosDisplayed + ' photographs from a total of ' + photosTotal + ' taken at this event.');
if (tonylarge=="YES") {
   document.writeln('                  <LI>Visit <A HREF="http://www.tonylarge.net"><B>www.tonylarge.net</B></A> to see all the photos and to purchase Prints or Digital Images.');
} else {
   document.writeln('                  <LI>See the \'More Info\' page for information about non-displayed photos, or to purchase Prints or Digital Images.');
}
document.writeln('                  <LI>Thumbnail photos are arranged in numerical car number order, NOT necessarily rally running order.');
document.writeln('                  <LI>Hover mouse pointer over thumbnail photos for car numbers.');
document.writeln('                  <LI>Click on a thumbnail to see a larger photograph.</UL></FONT>');
document.writeln('               </TD>');
document.writeln('            </TR>');
document.writeln('            </TABLE>');
document.writeln('            <TABLE BGCOLOR="#222222" BORDER=0 CELLPADDING=0 CELLSPACING=9>');
if (camera=="Olympus") {
   thumbW = 80;
   thumbH = 60;
} else {
   thumbW = 81;
   thumbH = 54;
}
columnCount = 0;
for (i=0; i<photosDisplayed; i++) {
   if (columnCount==0) {
      document.writeln('            <TR>');
   }
   document.writeln('               <TD ALIGN=CENTER VALIGN=MIDDLE><A HREF="javascript:showPhoto(' + i + ');"><IMG BORDER=0 WIDTH=' + thumbW + ' HEIGHT=' + thumbH + ' SRC="rallying/' + rallyYear + '/' + rallyFolder + '/thumbs/' + photo[i] + '.jpg" TITLE="' + title[i] + '"></A></TD>');
   columnCount++;
   if (columnCount==8) {
      document.writeln('            </TR>');
      columnCount = 0;
   }
}
if (columnCount>0 && columnCount<8) {
   for (i=columnCount; i<8; i++) {
      document.writeln('               <TD ALIGN=CENTER VALIGN=MIDDLE>&nbsp;</TD>');
   }
   document.writeln('            </TR>');
}
document.writeln('            </TABLE>');
document.writeln('         </TD>');
document.writeln('      </TR>');
document.writeln('      <TR BGCOLOR="#222222">');
document.writeln('         <TD ALIGN=CENTER VALIGN=MIDDLE><FONT FACE="ARIAL" COLOR="#CCCCCC" SIZE=3><B>These pages and photographs &copy; Simon Clarke</B></FONT></TD>');
document.writeln('      </TR>');
document.writeln('      </TABLE>');
document.writeln('   </TD>');
document.writeln('</TR>');
document.writeln('</TABLE>');
document.writeln('</CENTER>');
document.writeln('</BODY>');
