/*****************************************************************/
/*****************       Gorge Surf Shop        ******************/
/*****************************************************************/

var SiteWidth           = "800";
var _ToPrintMsg         = 'To print this page, select "Print" from the File menu of your browser.';
var _PrintFriendlyText  = 'Printer Friendly Version (Popup Window)';
var _CopyrightText      = 'All Contents Copyright &copy; 2006...2008 Gorge Surf Shop.&nbsp;&nbsp;All Rights Reserved.';

function Show_Header08( cBanner ) {
   document.write('<div align="center"> ');
   document.write('    <img src="./images/skin/gss08_top_shadow.jpg" width="820" height="20" border="" alt="">');
   document.write('<table cellpadding="0" cellspacing="0" border="0"  width="820" height="150"> ');
   document.write('<tr> ');
   Show_Left_Shadow();
   document.write('  <td width="780" height="150" background="./pix/banner/' + cBanner +'"></td> ');
   Show_Right_Shadow();
   document.write('</tr> '); 
   document.write('</table> ');
   document.write('</div> ');
}

function Show_Header( cBanner ) {
   Show_Top_Frame();
   document.write('<tr> ');
   document.write('  <td width="9" height="130" align="left" valign="top" background="./images/shadow/shadow_lft.gif">');
   document.write('       <img src="./images/spacer.gif" width="9" height="10"></td> ');
   document.write('  <td width="790" height="130" background="./pix/banner/' + cBanner +'"></td> ');
   document.write('  <td width="9" height="130" align="left" valign="top" background="./images/shadow/shadow_rt.gif">' );
   document.write('      <img src="./images/spacer.gif" width="9" height="10"></td> ');
   document.write('</tr> '); 
   document.write('</table> ');
   document.write('</div> ');
}

function Show_Top_Menu08() {
   document.write('<div align="center"> ');
   document.write('<table cellpadding="0" cellspacing="0" border="0" width="820" height="20px"> ');
   document.write('<tr>' );
   Show_Left_Shadow();
   Show_Top_Menu_Links( "780" );
   Show_Right_Shadow();
   document.write('</tr> ');
   document.write('</table>  ');  
   document.write('</div> ');
}

function Show_Top_Menu() {
   document.write('<div align="center"> ');
   document.write('<table cellpadding="0" cellspacing="0" border="0" width="818" height="20px"> ');
   document.write('<tr>' );
   document.write('   <td width="9" height="20" align="left" valign="top" background="./images/shadow/shadow_lft.gif">');
   document.write('       <img src="images/spacer.gif" width="9" height="10"><td>');
   Show_Top_Menu_Links( "800" );
   document.write('   <td width="9" height="10" align="left" valign="top" background="./images/shadow/shadow_rt.gif">');
   document.write('        <img src="./images/spacer.gif" width="9" height="10">');
   document.write('   </td>' );
   document.write('</tr> ');
   document.write('</table>  ');  
   document.write('</div> ');
}

function Show_Top_Menu_Links( cWidth ) {
   document.write('   <td> ');
   document.write('<table id="TopMenu" cellpadding="0" cellspacing="0" border="0" width="' + cWidth +'" height="20px"> ');
   document.write('<tr> ');
   document.write('  <td align="right" valign="Middle"> ');
   document.write('     <a class="TopMenu" href="index.asp"> Home </a> | ');
   document.write('     <a class="TopMenu" href="gss_shop_info.asp"> Shop-Info </a> | ');
   document.write('     <a class="TopMenu" href="gss_links.htm"> Links </a> |  ');
   document.write('     <a class="TopMenu" href="gss_services.htm"> Services </a> | ');
   document.write('     <a class="TopMenu" href="gss_gorge_events.asp"> Gorge Events </a> | ');
   document.write('     <a class="TopMenu" href="gss_wind.htm"> Wind </a> | ');
   document.write('     <a class="TopMenu" href="gss_site_index.htm"> Site Index </a> | ');
   document.write('     <a class="TopMenu" href="gss_contact.htm"> Contact </a>&nbsp;&nbsp;&nbsp; ');
   document.write('  </td>  '); 
   document.write('</tr> ');
   document.write('</table>'); 
   document.write('   </td>' );
}

function Show_Body_Left() {
   document.write('<div align="center"> ');
   document.write('<table cellpadding="0" cellspacing="0" border="0"  width="818" height="20px"> ');
   document.write('<tr> ');
   document.write('   <td width="9" height="10" align="left" valign="top" background="./images/shadow/shadow_lft.gif"> ');
   document.write('      <img src="./images/spacer.gif" width="9" height="10"> ');
   document.write('   </td> ');
   document.write('   <td> ');
   document.write('      <table id="Body" cellpadding="0" cellspacing="0" border="0" width="800"> ');
   document.write('      <tr> ');
   document.write('         <td bgcolor="#FFCC00" align="left" valign="top"> ');
   Show_Vert_Menu( "CoreMenu" );
   document.write('            <img src="./images/no_sales_tax.jpg" border="0" alt="No Sales Tax" valign="top" vspace="4">' );
   document.write('         </td> ');
   document.write('         <td width="26" align="left" valign="top" background="./images/shadow/vert_ruler_shdw.gif"> ');
   document.write('            <img src="./images/spacer.gif" width="26" height="10" border="0"> ');
   document.write('         </td> ');
   document.write('         <td valign="Top" align="Left" style="padding: 0px 10px 15px 0px;"> ');
}

function Show_Body_Left08() {
   document.write('<div align="center"> ');
   document.write('<table cellpadding="0" cellspacing="0" border="0"  width="820" height="20px"> ');
   document.write('<tr> ');
   Show_Left_Shadow();
   document.write('   <td> ');
   document.write('      <table id="Body" cellpadding="0" cellspacing="0" border="0" width="780"> ');
   document.write('      <tr> ');
   document.write('         <td bgcolor="#3399ff" align="left" valign="top"> ');
   Show_Vert_Menu( "CoreMenu08" );
   document.write('<img src="./images/gss_sales_tax.jpg" border="0" alt="No Sales Tax" valign="top" vspace="0">' );
   document.write('         </td> ');
   document.write('         <td class="WhiteShadow" width="14" align="left" valign="top"> ');
   document.write('            <img src="./images/spacer.gif" width="26" height="10" border="0"> ');
   document.write('         </td> ');
   document.write('         <td valign="Top" align="Left" style="padding: 0px 8px 15px 0px;"> ');
}

function Show_Vert_Menu( cStyle ) {
   document.write( '<div class="' + cStyle + '"> ');
   document.write( ' <a class="' + cStyle + '" href="gss10_sails.asp">2010 Sails</a> ');
   document.write( ' <a class="' + cStyle + '" href="gss10_boards.htm">2010 Boards</a> ');
   document.write( ' <a class="' + cStyle + '" href="gss09_sails.htm">2009 Sails </a> ');
   document.write( ' <a class="' + cStyle + '" href="gss_08_sails.htm">2008 Sails </a> ');
   document.write( ' <a class="' + cStyle + '" href="gss_08_boards.htm">2008 Boards </a> ');
   document.write( ' <a class="' + cStyle + '" href="gss_07_sails.htm">2007 Sails </a> ');
   document.write( ' <a class="' + cStyle + '" href="gss_07_boards.htm">2007 Boards </a> '); 
   document.write( ' <a class="' + cStyle + '" href="gss_masts.htm">Masts </a>');
   document.write( ' <a class="' + cStyle + '" href="gss_booms.htm">Booms </a>');
   document.write( ' <a class="' + cStyle + '" href="gss_bases.htm">Bases </a>');
   document.write( ' <a class="' + cStyle + '" href="gss_extensions.htm">Extensions </a>');
   document.write( ' <a class="' + cStyle + '" href="gss_fins.asp">Fins </a> ');
   document.write( ' <a class="' + cStyle + '" href="gss_harnesses.asp">Harnesses </a>');
   document.write( ' <a class="' + cStyle + '" href="gss_lines.asp">Harness Lines </a>');
   document.write( ' <a class="' + cStyle + '" href="gss_wetsuits.htm">Wetsuits </a>');
   document.write( ' <a class="' + cStyle + '" href="gss_footwear.htm">Footwear </a>');
   document.write( ' <a class="' + cStyle + '" href="gss_bbags.asp">Board Bags </a>');
   document.write( ' <a class="' + cStyle + '" href="gss_gbags.asp">Gear Bags </a>');
   document.write( ' <a class="' + cStyle + '" href="gss_helmets.htm">Helmets </a>');
   document.write( ' <a class="' + cStyle + '" href="gss_packs.htm">Packs/Bags </a>');
   document.write( ' <a class="' + cStyle + '" href="gss_kiting.htm">Kiting </a>');
   document.write( ' <a class="' + cStyle + '" href="gss_accessories.htm">Accessories</a>');
   document.write( ' <a class="' + cStyle + '" href="gss_kids.htm">Kids Gear </a>');
   document.write( ' <a class="' + cStyle + '2" href="gss_clearance.asp">Clearance Gear</a>');
   document.write( ' <a class="' + cStyle + '" href="gss_used_gear.asp">Used Gear </a>'); 
   document.write( '</div> ');
}

function Show_Body_Right() {
   document.write('         </td>' );
   document.write('      </tr>' );
   document.write('      </table>' );
   document.write('   </td>' );
   document.write('   <td width="9" height="10" align="left" valign="top" background="./images/shadow/shadow_rt.gif">');
   document.write('       <img src="./images/spacer.gif" width="9" height="10" border="0">' );
   document.write('   </td>' );
   document.write('</tr>' );
   document.write('</table>' );   
   document.write('</div>' );
}

function Show_Body_Right08() {
   document.write('         </td>' );
   document.write('      </tr>' );
   document.write('      </table>' );
   document.write('   </td>' );
   Show_Right_Shadow();
   document.write('</tr>' );
   document.write('</table>' );   
   document.write('</div>' );
}

function Show_Footer( cLeft ) {
  if (cLeft==null) { cLeft=""; }

   document.write('<div align="center">' );
   document.write('<table cellpadding="0" cellspacing="0" border="0" width="818">' );
   document.write('<tr>' );
   document.write('   <td width="9" height="10" align="left" valign="top" background="./images/shadow/shadow_lft.gif">' );
   document.write('      <img src="./images/spacer.gif" width="9" height="10">' );
   document.write('   </td>' );

   Show_Footer_Middle( cLeft, "800" );

   document.write('   <td width="9" height="10" align="left" valign="top" background="./images/shadow/shadow_rt.gif">' );
   document.write('      <img src="./images/spacer.gif" width="9" height="10">' );
   document.write('   </td>' );
   document.write('</tr>' );
   document.write('</table>' );   
   document.write('</div>' );
   Show_Bottom_Frame();
}

function Show_Footer08( cLeft ) {

   if (cLeft==null) { cLeft=""; }
   document.write('<div align="center">' );
   document.write('<table cellpadding="0" cellspacing="0" border="0" width="820" height="70">' );
   document.write('<tr>' );
   Show_Left_Shadow();
   Show_Footer_Middle( cLeft, "780" );
   Show_Right_Shadow();
   document.write('</tr> '); 
   document.write('</table>' );  
   document.write('    <img src="./images/skin/gss08_bottom_shadow.jpg" width="820" height="20" border="" alt="">'); 
   document.write('</div>' );

}

function Show_Left_Shadow() {
   document.write('<td class="LeftShadow" width="20" align="left" align="top"> ');
   document.write('<img src="./images/spacer.gif" alt="" border="0">' );
   document.write('</td> ');
}

function Show_Right_Shadow() {
   document.write('<td class="RightShadow" width="20" align="left" align="top"> ');
   document.write('<img src="./images/spacer.gif" alt="" border="0">' );
   document.write('</td> ');
}

function Show_Footer_Middle( cLeft, cWidth ) {
   document.write('<td valign="top" bgcolor="#333333">' );
   document.write('  <table id="Footer" cellpadding="0" cellspacing="0" border="0" width="' + cWidth +'">' );
   document.write('  <tr>' );
   document.write('   <td>' );
   document.write('      <div class="FootAddress">' );
   document.write('          13 Oak Street&nbsp;&nbsp;&#x2022;&nbsp;&nbsp;' );
   document.write('          Hood River&nbsp;&nbsp;&#x2022;&nbsp;&nbsp;OR&nbsp;&nbsp;&#x2022;&nbsp;&nbsp;97031-2312' );
   document.write('          &nbsp;&nbsp;&#x2022;&nbsp;&nbsp;800.957.4978&nbsp;&nbsp;&#x2022;&nbsp;&nbsp;' );
   document.write('          541.386.1699&nbsp;&nbsp;&#x2022;&nbsp;&nbsp;' );
   document.write('          <a class="FootLinks" href="mailto:info@gorgesurfshop.com">info@gorgesurfshop.com</a>' );
   document.write('       </div>' );
   document.write('       <hr align="center" noshade size="1" color="#ffCC00" width="86%">' );
   document.write('       <div class="Copyright">' + _CopyrightText + '</div>' );
   document.write('    </td>' );
   document.write('  </tr>' );
   document.write('  </table>' );

   document.write('  <table id="Footer" cellpadding="0" cellspacing="0" border="0" width="' + cWidth +'">' );
   document.write('      <tr>' );
   document.write('         <td>' );
   document.write('            <div style="color: #666666; text-align: left; font-weight: bold; font-size: 10px;">' );
   document.write('                &nbsp;&nbsp;' + cLeft +'' );
   document.write('            </div>' );
   document.write('         </td>' );
   document.write('         <td><div style="color: #666666; text-align: right; font-weight: bold; font-size: 10px;"> Web Design by Royn Bartholdi &nbsp;&nbsp;</div> </td>' );
   document.write('      </tr>' );
   document.write('  </table>' );
   document.write('</td>' );
}

function Show_Top_Frame() {
   document.write('<div align="center"> ');
   document.write('<table cellpadding="0" cellspacing="0" border="0"  width="818" height="139"> ');
   document.write('<tr> ');
   document.write('  <td width="9" height="9" align="left" valign="top"><img src="./images/shadow/shadow_tl.gif" width="9" height="9"></td>');
   document.write('  <td width="800" height="9" align="left" valign="top" background="./images/shadow/shadow_top.gif"><img src="./images/spacer.gif" width="736" height="9"></td>');
   document.write('  <td width="9" height="9" align="left" valign="top"><img src="./images/shadow/shadow_tr.gif" width="9" height="9"></td> ');
   document.write('</tr> ');
}

function Show_Bottom_Frame() {
   document.write('<div align="center">' );
   document.write('<table cellpadding="0" cellspacing="0" border="0" width="818">' );
   document.write('<tr>' );
   document.write('   <td width="9" height="9" align="left" valign="top"><img src="./images/shadow/shadow_bl.gif" width="9" height="9"></td>' );
   document.write('   <td width="800" height="9" align="left" valign="top" background="./images/shadow/shadow_btm.gif">' );
   document.write('     <img src="./images/spacer.gif" width="736" height="9"></td>' );
   document.write('   <td width="9" height="9" align="left" valign="top"><img src="./images/shadow/shadow_br.gif" width="9" height="9"></td>' );
   document.write('</tr>' );
   document.write('</table>' );  
}

function Show_Bottom_Frame() {
   document.write('<div align="center">' );
   document.write('<table cellpadding="0" cellspacing="0" border="0" width="818">' );
   document.write('<tr>' );
   document.write('   <td width="9" height="9" align="left" valign="top"><img src="./images/shadow/shadow_bl.gif" width="9" height="9"></td>' );
   document.write('   <td width="800" height="9" align="left" valign="top" background="./images/shadow/shadow_btm.gif">' );
   document.write('     <img src="./images/spacer.gif" width="736" height="9"></td>' );
   document.write('   <td width="9" height="9" align="left" valign="top"><img src="./images/shadow/shadow_br.gif" width="9" height="9"></td>' );
   document.write('</tr>' );
   document.write('</table>' );  
}


function Show_Post_Footer() {}

function Bread_Crumbs( aNavMenu, aNavUrl ) { 
   document.write( '<div class="Crumbs"><a class="Crumb" href="index.asp">Home</a>&nbsp;&#187;&nbsp;'); 
   NavString( aNavMenu, aNavUrl ); 
   document.write( aNavMenu[aNavMenu.length-1] );
   document.write( '</div>' );
}

function NavString( aMenu, aUrl ) {
   var s = "";
   var ss = "";
   for (x=0;x<aMenu.length-1;x++) {
      s = "";
      ss = ""; 
      if (aMenu[x] != "") {
         if ((aUrl!= null)&&(aUrl[x]!="")) {  
            s = '<a class="Crumb" href="' + aUrl[x] +'">';
         }
         s = s + aMenu[x];
         if ((aUrl!= null)&&(aUrl!="")) { s = s + '</a>'; } 
         document.write( s );
         ss = ((aMenu.length>1) && (x!=aMenu.length-1)) ? '<span style="color:#333333">&nbsp;&#187&nbsp;</span>' : '&nbsp;';
         document.write( ss );
      }
   }
}
 
function Launch_Scotty_Window( cText ) {
    document.write( '<a class="Scotty" href="gss_scott_talk.htm" '+
                    'onclick="window.open(&#39;gss_scott_talk.htm&#39;,&#39;&#39;,&#39;height=600,width=630,menubar=no,toolbar=no,scrollbars=no,resizable=no&#39;);return false" target="_new">' );
    document.write( cText + '</a>' )
}

function RandomPicture( nMax, cPath ) {
   var ran_number = Math.round( Math.random() * ( nMax-1) ); 
   var cNum       = ran_number + 1;
   if (cNum < 10)  { cNum = "0" + cNum; } 
   if (cNum < 100) { cNum = "0" + cNum; }
   document.write( '<img src="' + cPath + cNum + '.jpg" border="0" alt="Gorge Surf Shop Home Picture ' + cNum +'">' );
}

function Show_News_Bottom() {
    document.write( '<table width="640px" height="10px" cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff">' );
    document.write( '<tr bgcolor="#ffffff">' );
    document.write( '<td height="10" width="300" valign="top">' );
    document.write( '<img src="./images/specials_bot_left.gif" border="0" align="top" width="300" height="10">' );
    document.write( '</td>' );
    document.write( '<td height="10" width="306" bgcolor="#eeeeee" valign="top">' );
    document.write( '<img src="./images/spacer.gif" border="0" alt="" align="top">' );
    document.write( '</td>' );
    document.write( '<td height="10" width="34" valign="top">' );
    document.write( '<img src="./images/specials_bot_right.gif" border="0" align="top" width="34" height="10">' );
    document.write( '</td>' );
    document.write( '</tr>' );
    document.write( '</table>' );
}

/*********************************************/
/**************   Grey Box   *****************/
/*********************************************/

function Grey_Boxer() {

   this.Show_Top = function Show_Top() {
       document.write( '<table cellpadding="0" cellspacing="0" border="0" bgcolor="#e6e6e6">' );
       document.write( '<tr>' );
       document.write( '<td width="10" height="10" valign="top" background="./images/corners/box_grey_tl.gif">' );
       document.write( '<spacer height="10" width="10" type="block">' );
       document.write( '</td>' );
       document.write( '<td height="10" background="./images/corners/box_grey_t.gif">' );
       document.write( '<spacer height="10" width="10" type="block">' );
       document.write( '</td>' );
       document.write( '<td width="10" height="10" background="./images/corners/box_grey_tr.gif">' );
       document.write( '<spacer height="10" width="10" type="block">' );
       document.write( '</td>' );
       document.write( '</tr>' );
    }

   this.Show_Bottom = function Show_Bottom() {
       document.write( '<tr>' );
       document.write( '<td width="10" height="10" valign="bottom" background="./images/corners/box_grey_bl.gif">' );
       document.write( '<spacer height="10" width="10" type="block">' );
       document.write( '</td>' );
       document.write( '<td height="10">' );
       document.write( '<spacer height="10" width="10" type="block">' );
       document.write( '</td>' );
       document.write( '<td width="10" height="10"  valign="bottom" background="./images/corners/box_grey_br.gif">' );
       document.write( '<spacer height="10" width="10" type="block">' );
       document.write( '</td>' );
       document.write( '</tr>' );
       document.write( '</table>' );
    } 

   this.Show_Left = function Show_Bottom() {
       document.write( '<tr>' ); 
       document.write( '<td width="10" background="./images/corners/box_grey_l.gif">' );
       document.write( '<spacer height="10" width="10" type="block"></td>' );
       document.write( '<td valign="top" bgcolor="#000000"> ' );
   }

   this.Show_Right = function Show_Right() {
      document.write( '</td>' );
      document.write( '<td width="10"><spacer height="10" width="10" type="block"></td>' );
      document.write( '</tr> ' );
   }

}

Grey_Box = new Grey_Boxer();

function  Show_Spec_Table( cWidth, aGrid ) { Show_Matrix( cWidth, aGrid ); }

function Show_Matrix( cWidth, aGrid ) {
 
   Grey_Box.Show_Top();
   Grey_Box.Show_Left();

   document.write( '<table width="' + cWidth +'px" cellpadding="0" cellspacing="0" border="0" bgcolor="#e6e6e6" align="right"> ' );

   document.write( '<tr style="font-weight: 900; text-decoration: underline; text-align:left;" >' );
   for (var j=0;j<aGrid[0].length;j++) { document.write( '<th>' + aGrid[0][j] +'</th>' ); }
   document.write( '</tr>' );
        
   for (var i=1;i<aGrid.length;i++) {
      document.write( '<tr style="color: ' + GridColor(i) +';  text-align:left;vertical-align:top;" >' );
      for (var j=0;j<aGrid[i].length;j++) { document.write( '<td>' +aGrid[i][j]+ '</td>' ); }
      document.write( '</tr>' );
   }
   document.write( '</table>' );

   Grey_Box.Show_Right();
   Grey_Box.Show_Bottom();

   function GridColor(i) { if ((i==1)||(i==3)||(i==5)||(i==7)||(i==9)||(i==11)||(i==13)) {
         return("#330099") } else { return("#009933"); }
   }

}      

function Show_Features( cTitle, aFeatures ) { Show_List( cTitle, aFeatures ); }

function Show_List( cTitle, aList ) {
   document.write( '<div class="Features">' );
   document.write( '<div style="padding: 0px 0px 4px 0px;"><span class="PrLabel1">' + cTitle + ':</span></div>' );
   document.write( '<table class="Features" cellpadding="0" cellspacing="0" border="0">' );
   for (var i=0; i<aList.length; i++) {
      document.write( '<tr><td valign="top" style="color:Black;">&nbsp;&nbsp;&nbsp;&nbsp;&#8226;&nbsp;</td>' );
      document.write( '<td class="Features">' );
      if (aList[i][0]!="") {
         document.write( '<span style="color:darkgreen"><b>' + aList[i][0] + '</b></span>&nbsp;-&nbsp;'  );
      }
      document.write( aList[i][1]  );
      document.write( '</td></tr>' );
   }
   document.write( '</table>' );
   document.write( '</div>' );
}

function Show_Clickable_Text() {
   document.write( '<div style="font-size: 8px;" class="prices">' );
   document.write( 'Click IMAGE for larger view' );
   document.write( '<img src="./images/magnifier.gif" width="21" height="18" border="0" hspace="1">' );
   document.write( '</div>' );
}

/******************************************************/
/*****************  Product PopUp       ***************/
/******************************************************/

function Show_Used_Gear_PopUp_Window() {
    var cHtml = "gss_used_popup.asp";
    MovePopUp = window.open( cHtml, "PrintPopUp", "history=no,toolbar=no,location=no,"+
               "border=0,directories=no,status=no,menubar=no,"+
               "scrollbars=yes,resizable=no,width=700" );
   if (window.focus) { PrintPopUp.focus() }
}

function Show_Clerance_PopUp_Window() {
    var cHtml = "gss_clearance_popup.asp";
    MovePopUp = window.open( cHtml, "PrintPopUp", "history=no,toolbar=no,location=no,"+
               "border=0,directories=no,status=no,menubar=no,"+
               "scrollbars=yes,resizable=no,width=700" );
   if (window.focus) { PrintPopUp.focus() }
}

function Launch_Product_PopUp( cFile, cText, cWidth, cHeight ) {
   var cHtml = "gss_product_popup.html?p1=" + cFile + "&p2=" + cText +" " ;
   window.open( cHtml, "ProductPopUpWindow", "history=no,toolbar=no,location=no,"+
                   "border=0,directories=no,status=no,menubar=no,"+
                   "scrollbars=no,resizable=no,width=" + cWidth + ",height=" + cHeight );
   ProductPopUpWindow.focus();
}

var p1  = "";       /* Image File With Path      */
var p2  = "";       /* Image Text                */

function ProductPopUpObject() {

   this.Launch = function Launch() {
      ReadParameters();
      ShowHeader();
      document.write( '<center><img src="' + p1 + '"></center><br>' );
   }

   function ShowHeader() {
      document.write( '<table cellpadding="0" cellspacing="0" width="100%"><tr>' );
      document.write( '<td align="left" valign="top"> www.gorgesurfshop.com </td>' );
      document.write( '<td><b>' + p2 + '</b></td>' );
      document.write( '<td align="right">' );
      document.write( '<a href="javascript:window.close();">' );
      document.write( '<img src="./images/closewindow.gif" border="0"></a></td>' );
      document.write( '</tr></table>' );
   }

   function ReadParameters() {
      var ParamStr  = window.location.href.split("?");
      var params    = new Array();     

      if (ParamStr[1]) {
         var pairs= ParamStr[1].split("&")
         for (var i=0; i<pairs.length; i++) {
            nameVal = pairs[i].split('=');
            params[nameVal[0]] = nameVal[1];
         } 
         p1  = unescape(params["p1"]?params["p1"]:"");
         p2  = unescape(params["p2"]?params["p2"]:"");
        /* ShowParameters(); */
      }
   }

   function ShowParameters() {
      if(p1||p2||p3||p4)document.write("Parameters detected:");
      if(p1) document.write("<BR>P1="+p1);
      if(p2) document.write("<BR>P2="+p2);
   }

}
var Product_PopUp = new ProductPopUpObject();

/******************************************************/
/*******************       Calendar      **************/
/******************************************************/

function Show_Calendar_Jan08() { Show_Calendar( "January 2008", 3, 31, 5 );  }
function Show_Calendar_Feb08() { Show_Calendar( "February 2008", 6, 29, 5 );  }
function Show_Calendar_Mar08() { Show_Calendar( "March 2008", 7, 31, 6 );  }
function Show_Calendar_Apr08() { Show_Calendar( "April 2008", 3, 30, 5 );  }
function Show_Calendar_May08() { Show_Calendar( "May 2008", 5, 31, 5 );  }
function Show_Calendar_Jun08() { Show_Calendar( "June 2008", 1, 30, 5 );  }
function Show_Calendar_Jul08() { Show_Calendar( "July 2008", 3, 31, 5 );  }
function Show_Calendar_Aug08() { Show_Calendar( "August 2008", 6, 31, 6 );  }
function Show_Calendar_Sep08() { Show_Calendar( "September 2008", 2, 30, 5 );  }
function Show_Calendar_Oct08() { Show_Calendar( "October 2008", 4, 31, 5 );  }
function Show_Calendar_Nov08() { Show_Calendar( "November 2008", 7, 30, 5 );  }
function Show_Calendar_Dec08() { Show_Calendar( "December 2008", 2, 31, 5 );  }

function Show_Calendar( cMonth, nStart, nDays, nRows ) {
   document.write( '<div class="Calendar_Month">' ); 
   document.write( '<table border="0" bgcolor="#333333" cellspacing="1" cellpadding="2">' );
   document.write( '<tr>' );
   document.write( '<th align=center colspan=7 bgcolor="#3868a0"><span class="Calendar_Title">' + cMonth +'</span></th>' );
   document.write( '</tr>' );
   document.write( '<tr>' );
   document.write( '<th bgcolor="#3868a0"><span class="Calendar">S</span></th>' );
   document.write( '<th bgcolor="#3868a0"><span class="Calendar">M</span></th>' );
   document.write( '<th bgcolor="#3868a0"><span class="Calendar">Tu</span></th>' );
   document.write( '<th bgcolor="#3868a0"><span class="Calendar">W</span></th>' );
   document.write( '<th bgcolor="#3868a0"><span class="Calendar">Th</span></th>' );
   document.write( '<th bgcolor="#3868a0"><span class="Calendar">Fri</span></th>' );
   document.write( '<th bgcolor="#3868a0"><span class="Calendar">Sat</span></th>' );
   document.write( '</tr>' );

   var nCounter = 0;
   var nDate    = 0;

   for (var i=0;i<nRows;i++)  {
      document.write( '<tr>' );
      for (var j=0;j<7;j++) { 
          document.write( '<td bgcolor="#3868a0">' );
          nCounter++;
          if ((nCounter>=nStart)&&(nDate<nDays)) { 
             nDate++; 
             document.write( nDate );
          } else document.write( '&nbsp;&nbsp;' );
          document.write( '</td>' ); 
      }
      document.write( '<tr>' );
   }
   document.write( '</table>' );
   document.write( '</div><br>' );
}

function Show_Month_Section( c1, c2, aList ) {
   document.write( '<hr width="98%" size="1" noshade align="left">' );
   document.write( '<table border="0" width="100%" cellspacing="0" cellpadding="0">' );
   document.write( '<tr>' );
   document.write( '   <td valign="top" align="left">' );
   document.write( '      <div class="PageTitle2">' + c1 +'</div>' );	

   for (var i=0;i<aList.length;i++)  {
      document.write( '      <div style="padding: 0px 0px 8px 0px;">');
      document.write( '         <span class="Cal_Date">' + aList[i][0] + '</span>' );
      document.write( '         <span class="Cal_Cell">' + aList[i][1] + '</span>' );
      document.write( '      </div>' );
   }

   document.write( '    </td>' );
   document.write( '    <td valign="center" align="right">' );
   document.write( '       <div class="Calendar">' );  
   eval( c2 );         
   document.write( '       </div>' );
   document.write( '   </td>' );
   document.write( ' </tr>' );
   document.write( ' </table>' );
}

/******************************************************/
/*****************  Miscellaneous       ***************/
/******************************************************/

      SailPic1 = new Image();
      SailPic1.src = "./pix/gaastra/2008/gss_sails_gaastra08_manic1.jpg";
      SailPic2 = new Image();
      SailPic2.src = "./pix/gaastra/2008/gss_sails_gaastra08_manic2.jpg";
      SailPic3 = new Image();
      SailPic3.src = "./pix/gaastra/2008/gss_sails_gaastra08_manic3.jpg";
      SailPic4 = new Image();
      SailPic4.src = "./pix/gaastra/2008/gss_sails_gaastra08_manic4.jpg";
      SailPic5 = new Image();
      SailPic5.src = "./pix/gaastra/2008/gss_sails_gaastra08_manic5.jpg";
      SailPic6 = new Image();
      SailPic6.src = "./pix/gaastra/2008/gss_sails_gaastra08_manic6.jpg";
      SailPic7 = new Image();
      SailPic7.src = "./pix/gaastra/2008/gss_sails_gaastra08_manic8.jpg";

      SailPic1_on = new Image();
      SailPic1_on.src  = "./pix/gaastra/2008/gss_sails_gaastra08_manic1_xsm_on.jpg";
      SailPic1_off = new Image();
      SailPic1_off.src = "./pix/gaastra/2008/gss_sails_gaastra08_manic1_xsm.jpg";

      SailPic2_on = new Image();
      SailPic2_on.src  = "./pix/gaastra/2008/gss_sails_gaastra08_manic2_xsm_on.jpg";
      SailPic2_off = new Image();
      SailPic2_off.src = "./pix/gaastra/2008/gss_sails_gaastra08_manic2_xsm.jpg";

      SailPic3_on = new Image();
      SailPic3_on.src  = "./pix/gaastra/2008/gss_sails_gaastra08_manic3_xsm_on.jpg";
      SailPic3_off = new Image();
      SailPic3_off.src = "./pix/gaastra/2008/gss_sails_gaastra08_manic3_xsm.jpg";

      SailPic4_on = new Image();
      SailPic4_on.src  = "./pix/gaastra/2008/gss_sails_gaastra08_manic4_xsm_on.jpg";
      SailPic4_off = new Image();
      SailPic4_off.src = "./pix/gaastra/2008/gss_sails_gaastra08_manic4_xsm.jpg";

      SailPic5_on = new Image();
      SailPic5_on.src  = "./pix/gaastra/2008/gss_sails_gaastra08_manic5_xsm_on.jpg";
      SailPic5_off = new Image();
      SailPic5_off.src = "./pix/gaastra/2008/gss_sails_gaastra08_manic5_xsm.jpg";

      SailPic6_on = new Image();
      SailPic6_on.src  = "./pix/gaastra/2008/gss_sails_gaastra08_manic6_xsm_on.jpg";
      SailPic6_off = new Image();
      SailPic6_off.src = "./pix/gaastra/2008/gss_sails_gaastra08_manic6_xsm.jpg";

      SailPic7_on = new Image();
      SailPic7_on.src  = "./pix/gaastra/2008/gss_sails_gaastra08_manic8_xsm_on.jpg";
      SailPic7_off = new Image();
      SailPic7_off.src = "./pix/gaastra/2008/gss_sails_gaastra08_manic8_xsm.jpg";

      function ChangeSailButtonOn(n)
      {
        eval( "document.images['SailPic" + n + "Button'].src= SailPic" + n +"_on.src;" );
        return true;
      }

      function ChangeSailButtonOff(n)
      {
        eval( "document.images['SailPic" + n +"Button'].src= SailPic" + n + "_off.src;" );
        return true;
      }

      function ChangeSailPic(n) { 
         eval( "document.images['SailPic'].src=SailPic" + n +".src;" );      
      }

function ShowSailColorWays( cRoot, nCount, aColors ) { 
   ShowColorWays( cRoot, nCount, aColors, "60", "" )  
}

function ShowBoardColorWays( cRoot, nCount, aColors, cHeader ) {  
   ShowColorWays( cRoot, nCount, aColors, "60", cHeader );  
}

function ShowTabouColorWays( cRoot, nCount, aColors, cHeader ) {  
   ShowColorWays( cRoot, nCount, aColors, "48", cHeader );  
}

function ShowColorWays( cRoot, nCount, aColors, cWidth, cHeader ) {

   var cThumb = SailPic7_off.src;
            document.write( '<table cellpadding="1" cellspacing="0" border="0">' );
            document.write( '<tr><td colspan="' + nCount + '">' + cHeader + '</td></tr>' );
            document.write( '<tr>' ); 
            for (x=1;x<=nCount;x++) {
                   cThumb = eval( "SailPic" + x +"_off.src;" );
                   document.write( '<td width="' + cWidth +'" align="center">' );
                   document.write( '<a href="javascript:ChangeSailPic(&#039;' + x +'&#039;);" ' );
                   document.write( 'onMouseOver="return ChangeSailButtonOn(&#039;' + x +'&#039;)" ' );
                   document.write( 'onMouseOut= "return ChangeSailButtonOff(&#039;' + x +'&#039;)">' );
                   document.write( '<img name="SailPic'+ x +'Button" ');  
                   document.write( 'src="' + cThumb +'" ' );
                   document.write( 'alt="" border="0"></a>' ); 
                   document.write( '</td>' );
            }
            document.write( '</tr><tr>' );
               for (x=1;x<=nCount;x++) { 
                   document.write( '<td align="center" valign="top" width="' + cWidth +'">' );
                   document.write( '<span class="PrData1">' + aColors[x-1] + '</span>' );
                   document.write( '</td>' );
            }
            document.write( '</tr>' );
            document.write( '</table>' );

}


/*****************************************************************/
/**********************   End of File   **************************/
/*****************************************************************/