function printTopLayout()
  {
   document.write('<table cellspacing="0" cellpadding="0" border="0">');
   document.write(' <tr>');
   document.write('   <td width="160" valign="top">');
   printMenu();
   document.write('                                </td>');
   document.write('   <td width="15" valign="top"></td>');
   document.write('   <td width="500" valign="top">');
   document.write('    <table>');
   document.write('     <tr>');
   document.write('       <td valign="middle">');
   printHeader();
   document.write('       </td>');
   document.write('     </tr>');
   document.write('     <tr valign="top">');
   document.write('       <td valign="top" width="500" align="left">');
   
  }

function printBottomLayout()
  {
    document.write('</div>');
	document.write('<p align="center"><br />');
	document.write('  <a href= /></a><br />');
	document.write('       <img src="home/frame_btm.gif" border="0" valign="bottom" /><br />');
	document.write('      </td>');
    document.write('    </tr>');
    document.write('   </table>');
    
    document.write('  </td>');
    document.write('  <td width="15" valign="top"></td>');
    document.write('  <td valign="top">');
    printRightCol();
    document.write('  </td>');
    document.write(' </tr>');
    document.write('</table>');
    
  }
  

function printMenu()
  {
   document.write('<div align="center">');
   document.write('<img src="menu/logo2.jpg" height="120" border="0" />');
   document.write('</div>');
   document.write('<img src="menu/menu_top.gif" border="0" />');
   document.write('<div class="menu" align="center">');
   document.write('<table cellpadding="0" cellspacing="0" border="0">');
   document.write('  <tr><td><a href="index.html"><img src="menu/home_off.gif" border="0" onmouseover="this.src=\'menu/home_on.gif\';" onmouseout="this.src=\'menu/home_off.gif\';"></a></tr></td>');
   document.write('  <tr><td><a href="inspiration.html"><img src="menu/inspiration_off.gif" border="0" onmouseover="this.src=\'menu/inspiration_on.gif\';" onmouseout="this.src=\'menu/inspiration_off.gif\';"></a></tr></td>');  
   document.write('  <tr><td><a href="movies.html"><img src="menu/movies_off.gif" border="0" onmouseover="this.src=\'menu/movies_on.gif\';" onmouseout="this.src=\'menu/movies_off.gif\';"></a></tr></td>'); 
   document.write('  <tr><td><a href="news.html"><img src="menu/news_off.gif" border="0" onmouseover="this.src=\'menu/news_on.gif\';" onmouseout="this.src=\'menu/news_off.gif\';"></a></tr></td>');   document.write('  <tr><td><a href="railjam.html"><img src="menu/railjam_off.gif" border="0" onmouseover="this.src=\'menu/railjam_on.gif\';" onmouseout="this.src=\'menu/railjam_off.gif\';"></a></tr></td>');
   document.write('  <tr><td><a href="involved.html"><img src="menu/involved_off.gif" border="0" onmouseover="this.src=\'menu/involved_on.gif\';" onmouseout="this.src=\'menu/involved_off.gif\';"></a></tr></td>');
   document.write('  <tr><td><a href="riders.html"><img src="menu/riders_off.gif" border="0" onmouseover="this.src=\'menu/riders_on.gif\';" onmouseout="this.src=\'menu/riders_off.gif\';"></a></tr></td>');
   document.write('  <tr><td><a href="gallery.html"><img src="menu/gallery_off.gif" border="0" onmouseover="this.src=\'menu/gallery_on.gif\';" onmouseout="this.src=\'menu/gallery_off.gif\';"></a></tr></td>');
   document.write('  <tr><td><a href="tips.html"><img src="menu/tips_off.gif" border="0" onmouseover="this.src=\'menu/tips_on.gif\';" onmouseout="this.src=\'menu/tips_off.gif\';"></a></tr></td>');
   document.write('  <tr><td><a href="plans.html"><img src="menu/plans_off.gif" border="0" onmouseover="this.src=\'menu/plans_on.gif\';" onmouseout="this.src=\'menu/plans_off.gif\';"></a></tr></td>');
   document.write('  <tr><td><a href="stickers.html"><img src="menu/stickers_off.gif" border="0" onmouseover="this.src=\'menu/stickers_on.gif\';" onmouseout="this.src=\'menu/stickers_off.gif\';"></a></tr></td>');
   document.write('  <tr><td><a href="media.html"><img src="menu/media_off.gif" border="0" onmouseover="this.src=\'menu/media_on.gif\';" onmouseout="this.src=\'menu/media_off.gif\';"></a></tr></td>');
   document.write('  <tr><td><a href="contact.html"><img src="menu/contact_off.gif" border="0" onmouseover="this.src=\'menu/contact_on.gif\';" onmouseout="this.src=\'menu/contact_off.gif\';"></a></tr></td>');
   document.write(' </table>');
   document.write('<div class="image"><a href="http://www.oakley.co.uk" target="_blank"><img src="header/oakley.jpg" border="0" /></a></div>');
   document.write('<div class="image"><a href="http://www.vans.co.uk" target="_blank"><img src="header/vans.jpg" border="0" /></a></div>');
   document.write('<div class="image"><a href="http://www.avalaan.com" target="_blank"><img src="header/Avalaan.jpg" border="0" /></a></div>');
   document.write('<div class="image"><a href="http://www.lesettes.com/" target="_blank"><img src="header/lesettes.jpg" border="0" /></a></div>');   
   document.write('<div class="image"><a href="http://www.snowboardclub.co.uk" target="_blank"><img src="header/scuk.jpg" border="0" /></a></div>');
   document.write('<div class="image"><a href="http://www.inchclothing.co.uk" target="_blank"><img src="header/inch_logo.jpg" border="0" /></a></div>');
   document.write('</div>');
   document.write('<img src="menu/menu_btm.gif" border="0" />');
   document.write('<br /> ');
  }
  
function printHeader()
  {
   document.write('<div align="center">');
   document.write('<img src="header/header.gif" height="130" border="0" />');
   document.write('</div>');
  }
  
function printRightCol()
  {
   document.write('<img src="menu/logo.jpg" height="120" border="0" /><br />');
   document.write('<img src="menu/menu_top.gif" border="0" />');
   document.write('<div class="menu" align="center">');
   document.write('<table cellpadding="0" cellspacing="0" border="0">');
   document.write('<div class="image"><a href="http://www.matrixred.co.uk/gnar/snowballs.mpg" target="_blank"><img src="header/snowballsmovie.jpg" border="0" /></a></div>');
   document.write('<div class="image"><a href="http://www.nikitaclothing.com" target="_blank"><img src="header/nikitasnow.jpg" border="0" /></a></div>');   
   document.write('<div class="image"><a href="http://www.ruroc.com" target="_blank"><img src="header/ruroc.jpg" border="0" /></a></div>');
   document.write('<div class="image"><a href="http://www.powderroom.net" target="_blank"><img src="header/powderroom.jpg" border="0" /></a></div>');
   document.write('<div class="image"><a href="http://www.concretelawn.co.uk" target="_blank"><img src="header/concretelawn.jpg" border="0" /></a></div>');
   document.write('<div class="image"><a href="http://www.blueskin.com" target="_blank"><img src="header/bluebleskin.jpg" border="0" /></a></div>');
   document.write('<img src="menu/menu_btm.gif" border="0" /><br />');
   //document.write('<b style="font-size: 10px;">Sponsored by:</b><br />');
   //document.write('<a href="http://www.snowboard.com" target="_blank"><img src="gallery/snowboardcom.jpg" border="0" /></a>');

  }
  
function openImg(image)
  {
    var theWindow = window.open("image.html", "_blank", "width=500,height=500,toolbars=no,scrollbars=yes");
    theWindow.write('<img src="gallery/"'+image+'" >');
    var theImage = theWindow.getElementById('image');
    theImage.src = "gallery/"+image;
    
  }