// This is the "green" site

var clrBack = "#E8E6DC";

function startBody( clrWnd )
{
  if( clrWnd == "" || typeof( clrWnd ) == "undefined" )  { clrWnd = "#0A2411"; }

  document.write('<body vlink=#808080 link=#808080 alink=#808080 bgcolor='+clrBack+' style="margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:0px;">');
  document.write('');
  document.write('<table width=100% border=0 cellpadding=0 cellspacing=0>');
  document.write('<tr><td colspan=3><img src=molding.jpg width=100% height=15></td></tr>');
  document.write('<tr>');
  document.write('<td colspan=3 bgcolor='+clrBack+' align=center>');
  document.write('');
  document.write('<table border=0 cellpadding=0 cellspacing=0>');
  document.write('<tr>');
  document.write('<td width=5%>&nbsp;</td>');
  document.write('<td width=25% align=center><a href=index.html><img src=logo.gif border=0 alt=Home></a></td>');
  document.write('<td width=65% align=right><img src=ci-url.gif border=0 usemap=#ccmap></td>');
  document.write('<map name=ccmap>');
  document.write('<area alt="Clive Christian" href=http://www.clivechristian.com shape=rect coords=233,25,400,56>');
  document.write('</map>');
  document.write('<td width=5%>&nbsp;</td>');
  document.write('</tr>');
  document.write('</table>');
  document.write('');
  document.write('</td>');
  document.write('</tr>');
  document.write('<tr><td colspan=3><img src=molding.jpg width=100% height=15></td></tr>');
  document.write('');
  document.write('<tr>');
  document.write('');
  document.write('<td bgcolor='+clrBack+' width=120 height=100% valign=top>');
  document.write('');
  document.write('<table border=0 cellpadding=0 cellspacing=0>');

  document.write('<tr>');
  document.write('<td valign=top>');
  buttonStack();
  document.write('</td>');
  document.write('</tr>');

  document.write('<tr><td>&nbsp;</td></tr>');

  document.write('<tr>');
  document.write('<td align=center valign=top>');
  document.write('<a href=http://www.nkba.org><img src=nkba.jpg border=0 alt="National Kitchen and Bath Association"></a>');
  document.write('</td>');
  document.write('</tr>');

  document.write('<tr><td>&nbsp;</td></tr>');

  document.write('<tr>');
  document.write('<td align=center valign=top>');
  document.write('<a href=ts2.mpg><img src=btn-demo.jpg border=0 alt="Watch our demo for Trading Spaces"></a>');
  document.write('<br>');
  document.write('<a href=http://www.microsoft.com/windows/windowsmedia/download/default.asp><img src=get_wmp.gif border=0 alt=\"Get Windows Media Player 9.0 before you watch it\"></a>');
  document.write('</td>');
  document.write('</tr>');

  document.write('<tr><td>&nbsp;</td></tr>');

  document.write('<tr>');
  document.write('<td align=center valign=top>');
  document.write('<a href=nkba-march2004.htm><img src=btn-nkba-presentation.jpg border=0 alt="NKBA Presentation"></a>');
  document.write('</td>');
  document.write('</tr>');

  document.write('<tr><td>&nbsp;</td></tr>');

  document.write('<tr>');
  document.write('<td valign=bottom align=center>');
  document.write('<a href=mailto:info@antherium-media.com><img src=amg.jpg border=0 alt="Antherium Media Group"></a>');
  document.write('</td>');
  document.write('</tr>');
  document.write('');
  document.write('</table>');
  document.write('');
  document.write('</td>');
  document.write('');
  document.write('<td bgcolor='+clrBack+'><img src=edge.jpg height=100% width=15></td>');
  document.write('<td bgcolor='+clrWnd+' align=left valign=top width=100%>');
  document.write('<font face=arial size=2 color=white>');
}

function buttonStack()
{
  showButton( "home",		"index.html" );
  showButton( "gallery",	"gallery.htm" );
  showButton( "aboutus",	"about-us.htm" );
  showButton( "references",	"references.htm" );
  showButton( "installations",	"installations.htm" );
  showButton( "contactus",	"contact-us.htm" );
}

function showButton( name, link )
{
  document.write('<a href=' + link + ' onmouseover="document.btn' + name + '.src=\'btn-on-' + name + '.jpg\'" onmouseout="document.btn' + name + '.src=\'btn-' + name + '.jpg\'"><img name=btn' + name + ' src=btn-' + name + '.jpg border=0></a><br>');
}

function endBody()
{
  document.write('</font>');
  document.write('</td>');
  document.write('</tr>');
  document.write('<tr><td colspan=3><img src=molding.jpg width=100% height=15></td></tr>');
  document.write('<tr><td colspan=3>');
  showMenu();
  document.write('</td></tr>');
  document.write('</table>');
  document.write('</body>');
}

function showMenu()
{
  document.write('<center>');
  document.write('<font face=arial size=1>');
  document.write('<a href=index.html>Home</a> | ' );
  document.write('<a href=gallery.htm>Gallery</a> | ' );
  document.write('<a href=about-us.htm>About Us</a> | ' );
  document.write('<a href=references.htm>References</a> | ' );
  document.write('<a href=contact-us.htm>Contact Us</a> <br>' );
  document.write('<a href=installations.htm>Installations</a> | ' );
  document.write('<a href=other-pieces.htm>Other Pieces</a> | ' );
  document.write('<a href=cost.htm>What Will My Remodel Cost?</a> <br>' );
  document.write('<a href=accessories.htm>Accessories</a> ' );
  document.write('</font>');
  document.write('</center>');
}

function showGallery( type, size, max, cols )
{
   if( cols == undefined )
   {
      cols = 5;
   }

   w = 320;
   h = 240;

   if( size == "th" )
   {
      w = 100;
      h = 75;
   }

   for( n = 1; n <= max; n++ )
   {
      document.write('<a href=big-'+type+n+'.jpg><img src='+size+'-'+type+n+'.jpg width='+w+' height='+h+' border=0></a>');

      if( size == "th" && n % cols == 0 )
      {
         document.write('<br>' );
      }

      document.write('\r\n');
   }
}

function tradingSpaces()
{
   var w = 350;
   var h = 250;
   var x = ( screen.width - w ) / 2;
   var y = ( screen.height - h ) / 2;

   var pars = "resizable,screenX="+x+",screenY="+y+",left="+x+",top="+y+",width="+w+",height="+h;

   var win = window.open( "ts2.mpg","TS",pars );
}
