

function buildLid()
{
document.write(
  '<table cellspacing=0 cellpadding=0 width="100%">'
+ '    <tr>'
+ '      <td align="left" valign="Top">'
+ '		<img src=images/leftcorner.gif alt="Pianophobia" hspace=0 vspace=0 align=left>'
+ '		</td>'
+ '		<td align=center valign="Top"><a href="index.shtml"><img  src=images/pianophobiawhite.gif alt="Pianophobia" hspace=0 vspace=0 align=center border=0 alt="Pianophobia Main Page"></a></td>'
+ '      <td align="right" valign="Top">'
+ '		<img src=images/rightcorner.gif alt="Pianophobia" hspace=0 vspace=0 align=right>'
+ '		</td>'
+ '		</tr>'
+ '<tr>'
+ '<td ><div style="color: #ffffff; font-style: italic; font-weight: bold; font-size: 14pt;"><center>The Piano <br>Resource</center></div></td>'
+ '<td style="background-image: url(images/keyboard3.gif);"><img  src=images/keyboard3.gif alt="Pianophobia" hspace=0 vspace=0 align=left></td>'
+ '<td><div style="color: #ffffff; font-style: italic; font-weight: bold; font-size: 14pt;"><center>Since<br>2001</center></div></td>'
+ '</tr>'
+ '</table>'
);
}

function buildMenuItem(currentlyAt,theUrl,theItem)
{
  var s = '<tr>';
  if(currentlyAt == theItem)
	 {
		s += '<td  class="alreadyThere" style="background-image:url(images/arrow.gif); background-repeat:no-repeat; background-position: center right;";> ';
		s += theItem;
		s += '</td></tr>';
	 }
  else
	 {
		s += '<td>';
		s += '<a href="';
		s += theUrl;
		s += '">';
		s += theItem;
		s += '</a></td></tr>';
	 }
  return s;
}

function buildMenu(currentlyAt)
{
  var s = '<div class="keymen"><table  cellspacing=0 cellpadding=3 class="keymen" border=2>';
  s += buildMenuItem(currentlyAt,"index.shtml","Home");
  s += buildMenuItem(currentlyAt,"technical.html","Technical");
  s += buildMenuItem(currentlyAt,"history.html","History");
  s += buildMenuItem(currentlyAt,"manufacturers.html","Manufacturers");
  s += buildMenuItem(currentlyAt,"learn.html","Learning to Play");
  s += buildMenuItem(currentlyAt,"books.html","Books");
  s += buildMenuItem(currentlyAt,"players.html","Player Pianos");
  s += buildMenuItem(currentlyAt,"business.html","Business");
  s += buildMenuItem(currentlyAt,"performers.html","Performers and Recordings");
  s += buildMenuItem(currentlyAt,"misc.html","Miscellaneous");
  s += buildMenuItem(currentlyAt,"fear.html","Why do we fear pianos?");
  s += '</table></div>'
  document.write(s);
}

function buildTop()
{
  buildLid();
}

function buildBottom()
{
  document.write(
  '  <div style="color: #ffffff; font-size: 10pt;"><center>'
+ 'Copyright 2001, 2002, 2003 by Robert Eccardt - Send comments, questions, suggestions, etc. to  <a style="color: #ffffff;" href="mailto:rob@pianophobia.com">Rob@Pianophobia.com </a><br>&nbsp'
+ '</center></div>'
  );
}
