// -----------------------------------------------------------------------------
// KVC Layout Formatting Blocks v1.00
// Last Revised: 08/30/2003 by R. Hoshino
// -----------------------------------------------------------------------------
var last_updated = '3/24/2009';

// -----------------------------------------------------------------------------
// Inserts a horizontal line of 10 pixels high
// -----------------------------------------------------------------------------
function horz_line_10()
{
  document.write('<table width="100%" height="10" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>');
}

// -----------------------------------------------------------------------------
// Inserts page header (KVC logo, dynamic menu, body tag, table start, etc...)
// -----------------------------------------------------------------------------
function page_header()
{
  document.write('<body background="/images/background.gif" text="#000000" leftmargin="15" topmargin="15" marginwidth="15" marginheight="15">');
  horz_line_10();
  document.write('<table width="750" border="0" align="center" cellpadding="10" cellspacing="0" bgcolor="#FFFFFF"><tr><td>');
  document.write('    <table cellpadding="0" cellspacing="0" border="0" bgcolor="#003366" width="100%" align="center"><tr><td>');
  document.write('        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1"><tr height="72"><td><img src="/images/kvc_header.jpg" width="730" height="72" border="0"></td></tr></table>');
  document.write('        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td class="menu-style">');
  document.write('            <script> with(milonic=new menuname("Main Menu")){');
  document.write('            style=menuStyle;');
  document.write('            alwaysvisible=1;');
  document.write('            orientation="horizontal";');
  document.write('            position="relative";');
  document.write('            aI("text=Home;url=/index.html;status=Back To Home Page;");');
  document.write('            aI("text=KVC Activities;url=/activities.htm;showmenu=Activities;");');
  document.write('            aI("text=Events Calendar;url=/events.htm;showmenu=Events;");');
  document.write('            aI("text=Photo Gallery;url=/photos.htm;showmenu=Photos;");');
  document.write('            aI("text=Club Information;url=/info.htm;showmenu=Info;");');
  document.write('            aI("text=Resources;url=/resources.htm;showmenu=Resources;");');
  document.write('            }');
  document.write('            drawMenus();');
  document.write('            </script>');
  document.write('            </td></tr>');
  document.write('        </table>');
  document.write('    </td></tr></table>');

  horz_line_10();
}

// -----------------------------------------------------------------------------
// Inserts page footer (bottom bar, counter, last updated date, body tag, 
// table end, etc)
// -----------------------------------------------------------------------------
function page_footer()
{
  document.write('    <table cellpadding="0" cellspacing="0" border="0" bgcolor="#003366" width="100%" align="center"><tr><td>');
  document.write('        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" background="/images/kvc_plain_bar.jpg"><tr height="25">');
  document.write('            <td width="70" align="left" valign="middle">&nbsp;<!-- <A HREF="http://www.digits.com"><IMG SRC="http://counter.digits.com/wc/-d/4/-z/-c/17/-b/336699/Kingston_Velo_Club" ALIGN=middle WIDTH=60 HEIGHT=20 ALT="Total Number of Visitors Since 08/20/2003" class="counter"></A> --> </td>'); 
  document.write('            <td width="610" align="center" valign="middle" class="copyright">Copyright &copy; 2003-2009 Kingston Velo Club. All Rights Reserved.</td>'); 
  document.write('            <td width="70" align="right" valign="middle" class="lastupdated">' + last_updated + '&nbsp;</td>'); 
  document.write('        </tr></table>');
  document.write('    </td></tr></table>');
  document.write('</td></tr></table>');
  horz_line_10();
  document.write('</body>');
}

// -----------------------------------------------------------------------------
// Inserts main page table start
// -----------------------------------------------------------------------------
function page_begin()
{
  document.write('<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td valign="top">');
}

// -----------------------------------------------------------------------------
// Inserts main page table end
// -----------------------------------------------------------------------------
function page_end()
{
  document.write('</td></tr></table>');
}

// -----------------------------------------------------------------------------
// Inserts main block start with background
// -----------------------------------------------------------------------------
function block_begin()
{
  document.write('<table cellpadding="0" cellspacing="0" border="0" bgcolor="#003366" width="100%" align="center"><tr><td>');
  document.write('    <table cellpadding="0" cellspacing="1" border="0" width="100%">');
}

// -----------------------------------------------------------------------------
// Inserts main block end
// -----------------------------------------------------------------------------
function block_end()
{
  document.write('    </table>');
  document.write('</td></tr></table>');
  horz_line_10();
}

// -----------------------------------------------------------------------------
// Inserts main block title start
// -----------------------------------------------------------------------------
function block_title_begin()
{
  document.write('<tr><td width="100%" bgcolor="#C6DBFF" background="/images/kvc_plain_bar.jpg" class="block-header">');
}

// -----------------------------------------------------------------------------
// Inserts main block title end
// -----------------------------------------------------------------------------
function block_title_end()
{
  document.write('</td></tr>');
}

// -----------------------------------------------------------------------------
// Inserts main subblock start with background
// -----------------------------------------------------------------------------
function subblock_bg_begin()
{
  document.write('<tr><td width="100%" bgcolor="#C6DBFF" class="subblock-text">');
  document.write('<table cellpadding="0" cellspacing="0" border="0" bgcolor="#003366" width="100%" align="center">');
}

// -----------------------------------------------------------------------------
// Inserts main subblock end
// -----------------------------------------------------------------------------
function subblock_bg_end()
{
  document.write('</table>');
  document.write('</td></tr>');
}

// -----------------------------------------------------------------------------
// Inserts subblock start
// -----------------------------------------------------------------------------
function subblock_begin()
{
  document.write('<tr><td>');
  document.write('<table cellpadding="0" cellspacing="1" border="0" width="100%">');
}

// -----------------------------------------------------------------------------
// Inserts subblock end
// -----------------------------------------------------------------------------
function subblock_end()
{
  document.write('</table>');
  document.write('</td></tr>');
}

// -----------------------------------------------------------------------------
// Inserts subblock title start
// -----------------------------------------------------------------------------
function subblock_title_begin()
{
  document.write('<tr><td background="/images/kvc_plain_bar.jpg" height="22" class="subblock-header">');
}

// -----------------------------------------------------------------------------
// Inserts subblock title start (Red background)
// -----------------------------------------------------------------------------
function subblock_title_2_begin()
{
  document.write('<tr><td background="/images/kvc_red_bar.jpg" height="22" class="subblock-header">');
}

// -----------------------------------------------------------------------------
// Inserts subblock title end
// -----------------------------------------------------------------------------
function subblock_title_end()
{
  document.write('</td></tr>');
}

// -----------------------------------------------------------------------------
// Inserts subblock table start
// -----------------------------------------------------------------------------
function subblock_table_begin()
{
  document.write('<tr><td>');
  document.write('<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">');
}

// -----------------------------------------------------------------------------
// Inserts subblock table end
// -----------------------------------------------------------------------------
function subblock_table_end()
{
  document.write('</table>');
  document.write('</td></tr>');
}

// -----------------------------------------------------------------------------
// Inserts subblock table ride departure
// -----------------------------------------------------------------------------
function subblock_table_ride_dept()
{
  document.write('<tr>');
  document.write('<td bgcolor="#FFFFFF" width="3%"><div align="center"><img src="/images/bullet.gif" width="8" height="8"></div></td>');
  document.write('<td bgcolor="#FFFFFF" width="17%" class="small_text_bold">Departure Time</td>');
  document.write('<td bgcolor="#FFFFFF" width="55%" class="small_text" valign="middle">');
}

// -----------------------------------------------------------------------------
// Inserts subblock table ride departure
// -----------------------------------------------------------------------------
function subblock_table_ride_dates()
{
  document.write('<tr>');
  document.write('<td bgcolor="#FFFFFF" width="3%"><div align="center"><img src="/images/bullet.gif" width="8" height="8"></div></td>');
  document.write('<td bgcolor="#FFFFFF" width="17%" class="small_text_bold">Tour Dates:</td>');
  document.write('<td bgcolor="#FFFFFF" width="55%" class="small_text" valign="middle">');
}

// -----------------------------------------------------------------------------
// Inserts subblock table ride map start
// -----------------------------------------------------------------------------
function subblock_table_ride_map_start()
{
  document.write('</td>');
  document.write('<td bgcolor="#003366" rowspan="5"><img height=1 src="/images/blank_space.gif" width=1></td>');
  document.write('<td width="25%" rowspan="3" valign="top" bgcolor="#8CAAE7"><div align="center">');
}

// -----------------------------------------------------------------------------
// Inserts subblock table ride start
// -----------------------------------------------------------------------------
function subblock_table_ride_start()
{
  document.write('<img src="/images/map_start.jpg" width="162" height="24" class="maps"></A></div></td>');
  document.write('</tr><tr>');
  document.write('<td bgcolor="#DCE9F0" width="3%"><div align="center"><img src="/images/bullet.gif" width="8" height="8"></div></td>');
  document.write('<td bgcolor="#DCE9F0" class="small_text_bold" width="17%">Start/End Location</td>');
  document.write('<td bgcolor="#DCE9F0" class="small_text" width="55%">');
}

// -----------------------------------------------------------------------------
// Inserts subblock table ride distance
// -----------------------------------------------------------------------------
function subblock_table_ride_distance()
{
  document.write('</td></tr><tr>');
  document.write('<td bgcolor="#FFFFFF" width="3%"><div align="center"><img src="/images/bullet.gif" width="8" height="8"></div></td>');
  document.write('<td bgcolor="#FFFFFF" width="17%" class="small_text_bold">Trip Distance</td>');
  document.write('<td bgcolor="#FFFFFF" width="55%" class="small_text" valign="middle">');
}

// -----------------------------------------------------------------------------
// Inserts subblock table ride distance
// -----------------------------------------------------------------------------
function subblock_table_ride_rating()
{
  document.write('</td></tr><tr>');
  document.write('<td bgcolor="#DCE9F0" width="3%"><div align="center"><img src="/images/bullet.gif" width="8" height="8"></div></td>');
  document.write('<td bgcolor="#DCE9F0" width="17%" class="small_text_bold">Rating</td>');
  document.write('<td bgcolor="#DCE9F0" width="55%" class="small_text" valign="middle">');
}

// -----------------------------------------------------------------------------
// Inserts subblock table ride map route
// -----------------------------------------------------------------------------
function subblock_table_ride_map_route()
{
  document.write('</td>');
  document.write('<td width="25%" rowspan="2" valign="top" bgcolor="#8CAAE7"><div align="center">');
}

// -----------------------------------------------------------------------------
// Inserts subblock table ride leaders
// -----------------------------------------------------------------------------
function subblock_table_ride_leaders()
{
  document.write('<img src="/images/blank_space.gif" width="162" height="24" class="maps"></A></div></td>');
  document.write('</tr><tr>');
  document.write('<td bgcolor="#FFFFFF" width="3%"><div align="center"><img src="/images/bullet.gif" width="8" height="8"></div></td>');
  document.write('<td bgcolor="#FFFFFF" class="small_text_bold" width="17%">Trip Leaders</td>');
  document.write('<td bgcolor="#FFFFFF" class="small_text" width="55%">');
}
// -----------------------------------------------------------------------------
// Inserts subblock table ride leaders with no route map
// -----------------------------------------------------------------------------
function subblock_table_ride_leaders_noroute()
{
  document.write('<img src="/img/layout/spacer.gif" width="162" height="24" class="maps"></div></td>');
  document.write('</tr><tr>');
  document.write('<td bgcolor="#DCE9F0" width="3%"><div align="center"><img src="/images/bullet.gif" width="8" height="8"></div></td>');
  document.write('<td bgcolor="#DCE9F0" class="small_text_bold" width="17%">Trip Leaders</td>');
  document.write('<td bgcolor="#DCE9F0" class="small_text" width="55%">');
}

// -----------------------------------------------------------------------------
// Inserts subblock table ride end
// -----------------------------------------------------------------------------
function subblock_table_ride_end()
{
  document.write('</td></tr>');
}

// -----------------------------------------------------------------------------
// Inserts subblock table post date
// -----------------------------------------------------------------------------
function subblock_table_post_date()
{
  document.write('<tr>');
  document.write('<td bgcolor="#DCE9F0" width="3%"><div align="center"><img src="/images/bullet.gif" width="8" height="8"></div></td>');
  document.write('<td bgcolor="#DCE9F0" class="small_text_bold" width="15%">Posted Date</td>');
  document.write('<td bgcolor="#DCE9F0" class="small_text" width="25%">');
}

// -----------------------------------------------------------------------------
// Inserts subblock table post by
// -----------------------------------------------------------------------------
function subblock_table_post_by()
{
  document.write('</td>');
  document.write('<td bgcolor="#DCE9F0" width="7%"><img src="/images/blank_space.gif" width="10" height="1"></td>');
  document.write('<td bgcolor="#DCE9F0" width="3%"><div align="center"><img src="/images/bullet.gif" width="8" height="8"></div></td>');
  document.write('<td bgcolor="#DCE9F0" class="small_text_bold" width="13%">Posted By</td>');
  document.write('<td bgcolor="#DCE9F0" class="small_text" width="34%">');
}

// -----------------------------------------------------------------------------
// Inserts subblock table post end
// -----------------------------------------------------------------------------
function subblock_table_post_end()
{
  document.write('</td></tr>');
}

// -----------------------------------------------------------------------------
// Inserts subblock table route address
// -----------------------------------------------------------------------------
function subblock_table_route_address()
{
  document.write('<tr>');
  document.write('<td bgcolor="#FFFFFF" width="3%"><div align="center"><img src="/images/bullet.gif" width="8" height="8"></div></td>');
  document.write('<td bgcolor="#FFFFFF" width="17%" class="small_text_bold">Location Address</td>');
  document.write('<td bgcolor="#FFFFFF" width="55%" class="small_text" valign="middle">');
}

// -----------------------------------------------------------------------------
// Inserts subblock table route map start
// -----------------------------------------------------------------------------
function subblock_table_route_map_start()
{
  document.write('</td>');
  document.write('<td bgcolor="#003366" rowSpan="2"><img height=1 src="/images/blank_space.gif" width=1></td>');
  document.write('<td width="25%" height="26" rowspan="2" valign="top" bgcolor="#8CAAE7"><div align="center">');
}

// -----------------------------------------------------------------------------
// Inserts subblock table route meeting area
// -----------------------------------------------------------------------------
function subblock_table_route_meet()
{
  document.write('<img src="/images/map_start.jpg" width="162" height="24" class="maps"></A></div></td>');
  document.write('</tr><tr>');
  document.write('<td bgcolor="#DCE9F0" width="3%"><div align="center"><img src="/images/bullet.gif" width="8" height="8"></div></td>');
  document.write('<td bgcolor="#DCE9F0" class="small_text_bold" width="17%">Meeting Location</td>');
  document.write('<td bgcolor="#DCE9F0" class="small_text" width="55%">');
}

// -----------------------------------------------------------------------------
// Inserts subblock table route distance
// -----------------------------------------------------------------------------
function subblock_table_route_distance()
{
  document.write('<tr>');
  document.write('<td bgcolor="#FFFFFF" width="3%"><div align="center"><img src="/images/bullet.gif" width="8" height="8"></div></td>');
  document.write('<td bgcolor="#FFFFFF" width="17%" class="small_text_bold">Distance</td>');
  document.write('<td bgcolor="#FFFFFF" width="55%" class="small_text" valign="middle">');
}

// -----------------------------------------------------------------------------
// Inserts subblock table route map start
// -----------------------------------------------------------------------------
function subblock_table_route_map_route()
{
  document.write('</td>');
  document.write('<td bgcolor="#003366" rowSpan="2"><img height=1 src="/images/blank_space.gif" width=1></td>');
  document.write('<td width="25%" height="26" rowspan="2" valign="bottom" bgcolor="#8CAAE7"><div align="center">');
}

// -----------------------------------------------------------------------------
// Inserts subblock table route start
// -----------------------------------------------------------------------------
function subblock_table_route_difficulty()
{
  document.write('<img src="/images/map_route.jpg" width="162" height="24" class="maps"></A></div></td>');
  document.write('</tr><tr>');
  document.write('<td bgcolor="#DCE9F0" width="3%"><div align="center"><img src="/images/bullet.gif" width="8" height="8"></div></td>');
  document.write('<td bgcolor="#DCE9F0" class="small_text_bold" width="17%">Difficulty</td>');
  document.write('<td bgcolor="#DCE9F0" class="small_text" width="55%">');
}

// -----------------------------------------------------------------------------
// Inserts subblock table route end
// -----------------------------------------------------------------------------
function subblock_table_route_end()
{
  document.write('</td></tr>');
}

// -----------------------------------------------------------------------------
// Inserts subblock table member phone number
// -----------------------------------------------------------------------------
function subblock_table_member_phone()
{
  document.write('<tr>');
  document.write('<td bgcolor="#FFFFFF" width="3%"><div align="center"><img src="/images/bullet.gif" width="8" height="8"></div></td>');
  document.write('<td bgcolor="#FFFFFF" width="17%" class="small_text_bold">Phone Number</td>');
  document.write('<td bgcolor="#FFFFFF" width="55%" class="small_text" valign="middle">');
}

// -----------------------------------------------------------------------------
// Inserts subblock table member photo
// -----------------------------------------------------------------------------
function subblock_table_member_photo()
{
  document.write('</td>');
  document.write('<td bgcolor="#003366" rowSpan="6"><img height=1 src="/images/blank_space.gif" width=1></td>');
  document.write('<td width="25%" rowspan="6" valign="top" bgcolor="#8CAAE7"><div align="center">');
}

// -----------------------------------------------------------------------------
// Inserts subblock table member e-mail
// -----------------------------------------------------------------------------
function subblock_table_member_email()
{
  document.write('</div></td>');
  document.write('</tr><tr>');
  document.write('<td bgcolor="#DCE9F0" width="3%"><div align="center"><img src="/images/bullet.gif" width="8" height="8"></div></td>');
  document.write('<td bgcolor="#DCE9F0" class="small_text_bold" width="17%">E-Mail Address</td>');
  document.write('<td bgcolor="#DCE9F0" class="small_text" width="55%" valign="middle">');
}

// -----------------------------------------------------------------------------
// Inserts subblock table member bike
// -----------------------------------------------------------------------------
function subblock_table_member_bike()
{
  document.write('</td></tr><tr>');
  document.write('<td bgcolor="#FFFFFF" width="3%"><div align="center"><img src="/images/bullet.gif" width="8" height="8"></div></td>');
  document.write('<td bgcolor="#FFFFFF" width="17%" class="small_text_bold">Bike</td>');
  document.write('<td bgcolor="#FFFFFF" width="55%" class="small_text" valign="middle">');
}

// -----------------------------------------------------------------------------
// Inserts subblock table member occupation
// -----------------------------------------------------------------------------
function subblock_table_member_occupation()
{
  document.write('</td></tr><tr>');
  document.write('<td bgcolor="#DCE9F0" width="3%"><div align="center"><img src="/images/bullet.gif" width="8" height="8"></div></td>');
  document.write('<td bgcolor="#DCE9F0" class="small_text_bold" width="17%">Occupation</td>');
  document.write('<td bgcolor="#DCE9F0" class="small_text" width="55%">');
}

// -----------------------------------------------------------------------------
// Inserts subblock table member sports
// -----------------------------------------------------------------------------
function subblock_table_member_sports()
{
  document.write('</td></tr><tr>');
  document.write('<td bgcolor="#FFFFFF" width="3%"><div align="center"><img src="/images/bullet.gif" width="8" height="8"></div></td>');
  document.write('<td bgcolor="#FFFFFF" width="17%" class="small_text_bold">Other Sports</td>');
  document.write('<td bgcolor="#FFFFFF" width="55%" class="small_text" valign="middle">');
}

// -----------------------------------------------------------------------------
// Inserts subblock table member hobbies
// -----------------------------------------------------------------------------
function subblock_table_member_hobbies()
{
  document.write('</td></tr><tr>');
  document.write('<td bgcolor="#DCE9F0" width="3%"><div align="center"><img src="/images/bullet.gif" width="8" height="8"></div></td>');
  document.write('<td bgcolor="#DCE9F0" class="small_text_bold" width="17%">Hobbies</td>');
  document.write('<td bgcolor="#DCE9F0" class="small_text" width="55%">');
}

// -----------------------------------------------------------------------------
// Inserts subblock table member end
// -----------------------------------------------------------------------------
function subblock_table_member_end()
{
  document.write('</td></tr>');
}

// -----------------------------------------------------------------------------
// Inserts subblock spacer
// -----------------------------------------------------------------------------
function subblock_spacer()
{
  document.write('<tr height="10"><td width="100%" bgcolor="#C6DBFF"><img src="/images/blank_space.gif" width="1" height="10"></td></tr>');
}

// -----------------------------------------------------------------------------
// Inserts subblock text start
// -----------------------------------------------------------------------------
function subblock_text_begin()
{
  document.write('<tr><td>');
  document.write('<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">');
  document.write('<tr><td class="block-text">');
}

// -----------------------------------------------------------------------------
// Inserts subblock text end
// -----------------------------------------------------------------------------
function subblock_text_end()
{
  document.write('</td></tr>');
  document.write('</table>');
  document.write('</td></tr>');
}

// -----------------------------------------------------------------------------
// Opens a new window
// -----------------------------------------------------------------------------
function winOpen(pathname)
{
  newWin = window.open(pathname,"features","width=750,height=550,scrollbars=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=no,dependent=yes");
}

window.title = document.title;
