function startBody()
{
  document.write('<body background=satin-background.jpg bgcolor=#605070 marginheight=0 marginwidth=0 leftmargin=0 rightmargin=0 topmargin=0 bottommargin=0>');
  document.write('<table align=center cellpadding=0 cellspacing=0><tr><td>');
  document.write('<table background=backdrop.jpg align=center width=900 height=480 cellpadding=0 cellspacing=0 style="border:ridge 10px #BBAA44">');
  document.write('<tr>');
  document.write('<td valign=top>');
  document.write('<table>');
  document.write('<tr><td><img src=avlogo.gif></td></tr>');
  document.write('<tr><td align=center><script>buttonStack();</script></td></tr>');
  document.write('</table>');
  document.write('</td>');
}

function buttonStack()
{
  showButton( "home",      "index.htm" );
  showButton( "aboutus",   "aboutus.htm" );
  showButton( "gallery",   "gallery.htm" );
  showButton( "bridal",    "gallery.htm", 1 );
  showButton( "confirmation", "cgallery.htm", 1 );
  showButton( "accessories",    "accessories.htm" );
  showButton( "contactus", "contactus.htm" );
}

function showButton( name, link, hide )
{
   if( name == "gallery" )
   {
     document.write('<span onclick= "toggleGalleries()" style="cursor:pointer" onmouseover="document.btn' + name + '.src=\'btn-on-' + name + '.gif\'" onmouseout="document.btn' + name + '.src=\'btn-' + name + '.gif\'"><img name=btn' + name + ' src=btn-' + name + '.gif border=0></span><br>');
   }
   else
   {
      if( hide == 1 )
      {
        document.write('<span id=' + name + ' style="display:none"><a href=' + link + ' onmouseover="document.btn' + name + '.src=\'btn-on-' + name + '.gif\'" onmouseout="document.btn' + name + '.src=\'btn-' + name + '.gif\'"><img name=btn' + name + ' src=btn-' + name + '.gif border=0></a><br></span>');
      }
      else
      {
        document.write('<a href=' + link + ' onmouseover="document.btn' + name + '.src=\'btn-on-' + name + '.gif\'" onmouseout="document.btn' + name + '.src=\'btn-' + name + '.gif\'"><img name=btn' + name + ' src=btn-' + name + '.gif border=0></a><br>');
      }
   }
}

function endBody()
{
  document.write('</tr>');
  document.write('</table>');


  document.write('<table border=0 cellspacing=0 cellpadding=0><tr>');

 
  document.write('<td valign=top>');
  document.write('<table cellpadding="0" cellspacing="0" width="124"><tr><td width="124" style="padding:0 !important; margin:0 !important" valign="bottom"><a title="2010 Bride\'s Choice Awards - Wedding Photographers, Wedding Cakes, Wedding Venues & More " href="http://www.weddingwire.com/brides-choice-awards?utm_source=BCA%2BBadge&utm_medium=Badge&utm_campaign=BCA%2BBadge" style="padding:0 !important; margin:0 !important"><img border="0" src="http://static.weddingwire.com/static/images/badges/BCA-2010/BCA-logo-top.gif" alt="2010 Bride\'s Choice Awards - Wedding Photographers, Wedding Cakes, Wedding Venues & More " style="display: block !important;padding:0 !important; margin:0 !important" /></a></td></tr><tr><td width="124" style="padding:0 !important; margin:0 !important" valign="top"><a href="http://www.weddingwire.com?utm_source=BCA%2BBadge&utm_medium=Badge&utm_campaign=BCA%2BBadge" title="Weddings, Wedding Planning, Wedding Websites, Wedding Checklists " style="padding:0 !important; margin:0 !important"><img border="0" src="http://static.weddingwire.com/static/images/badges/BCA-2010/BCA-logo-bottom.gif" alt="Weddings, Wedding Planning, Wedding Websites, Wedding Checklists" style="display: block !important;padding:0 !important; margin:0 !important" /></a></td></tr></table>');
  document.write('</td>');

  document.write('<td valign=top>&nbsp;&nbsp;</td>');
  document.write('<td valign=top>');
  document.write('<a href="http://www.mypartyplanner.com" title="Party Planning"><img border=0 src="mypartyplanner.jpg"></a>');
  document.write('</td>');

  document.write('<td valign=top>&nbsp;&nbsp;</td>');
  document.write('<td valign=top>');
  document.write('<a href="http://www.onewed.com/vendor/1801458"><img border=0 src="onewed.jpg"></a>');
  document.write('</td>');

  document.write('<td valign=top>&nbsp;&nbsp;</td>');
  document.write('<td valign=top>');
  document.write('<a target="_new" href="http://www.weddingwire.com/ArtisticVeilDesignStudioLLC">');
  document.write('<img width=64 border=0 src="ww.jpg" ');
  document.write('alt="Artistic Veil Design Studio, LLC Reviews &amp; Ratings | Wedding Dress & Attire | ');
  document.write('Florida - Tampa, St. Petersburg, Sarasota, and surrounding areas"></a>');
  document.write('</td>');

 
  document.write('<td valign=top>&nbsp;&nbsp;</td>');
  document.write('<td valign=top>');
  document.write('<a href="http://www.projectwedding.com/" title="Project Wedding vendor reviews | Wedding Dresses, Wedding Photographers, Wedding Songs, Wedding Ideas, Bridal Showers" target="_blank"><img border=0 height=75 src="http://www.projectwedding.com/images/tile/pw180x150.gif" alt="Project Wedding vendor reviews | Wedding Dresses, Wedding Photographers, Wedding Songs, Wedding Ideas, Bridal Showers" title="Project Wedding vendor reviews | Wedding Dresses, Wedding Photographers, Wedding Songs, Wedding Ideas, Bridal Showers" /></a>');
  document.write('</td>');

  document.write('<td valign=top>&nbsp;&nbsp;</td>');
  document.write('<td valign=top>');
  document.write('<table border=0 cellpadding=0 cellspacing=0 bgcolor=white>');
  document.write('<tr><td><a href="http://www.alltimefavorites.com/" title="One source for all your event planning needs" target="_blank"><img border=0 src="alltimefavorites.jpg" alt="Project Wedding vendor reviews | Wedding Dresses, Wedding Photographers, Wedding Songs, Wedding Ideas, Bridal Showers" title="One source for all your event planning needs" /></a></td></tr>');
  document.write('<tr><td align=center><a href="http://www.weddingdressesgowns.com/" title="Wedding dresses and gowns" target="_blank"><span style="color:#B93D93;font-family:arial;font-size:6pt;text-decoration:none">Wedding Dresses and Gowns</span></a></td></tr>');
  document.write('</table>');
  document.write('<br><a href="http://www.startupnation.com/profile/artisticveil"><img src="startupnation.gif" alt="View my profile at StartupNation.com" border="0" /></a>');

  document.write('</td>');


  document.write('<td valign=top>&nbsp;&nbsp;</td>');
  document.write('<td valign=top>');
  document.write('<div id="twstable1" style="background-color:white;border:1px solid #000000;width: 120px; text-align:center;background-color:#FFFFFF; color:#000000;line-height:115%;font-size:12px;padding:5px 0; font-family: Arial, Helvetica, sans-serif;"> <a style="color:#00008B" href="http://www.topweddingsites.com/Florida/"><img src="teamwedding.gif" border="0" alt="wedding planning" title="wedding planning" /></a></div>');
  document.write('</td>');

  document.write('<td valign=top>&nbsp;&nbsp;</td>');
  document.write('<td valign=top><img src=usa.gif></td>');

  document.write('</tr></table>');

  document.write('</td></tr></table>');
  document.write('</body>');
}

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 toggleGalleries()
{
   g1 = document.getElementById("bridal");
   g2 = document.getElementById("confirmation");

   if( g1.style.display == "none" )
   {
      g1.style.display = "inline";
      g2.style.display = "inline";
   }
   else
   {
      g1.style.display = "none";
      g2.style.display = "none";
   }
}
