function printHead() {
  document.write('<div id="header">');
  document.write('  <a href="/LSD/"><img src="/LSD/img/lsd.png" alt="LSD Logo" height="140" class="logo"/></a>');
  document.write('  <h1><span id="L">L</span>attice <span id="S">S</span>trong <span id="D">D</span>ynamics Collaboration</h1>');
  document.write('  <div id="header-bottom">');
  document.write('    <ul>');
  document.write('      <li><a href="/LSD/">LSD home</a> | </li>');
  document.write('      <li><a href="/LSD/members.html">Membership</a> | </li>');
  document.write('      <li><a href="/LSD/publications.html">Publications</a> | </li>');
  document.write('      <li><a href="/LSD/workshop/">Workshop</a> | </li>');
  document.write('      <li><a href="/LSD/private/">Internal pages</a></li>');
  document.write('    </ul>');
  document.write('  </div>');
  document.write('</div>');

  return false;
}

function printSide(page) {
  document.write('<div id="sidebar">');
  document.write('  <h2><a href="/LSD/members.html">Membership</a></h2>');
  document.write('  <h2><a href="/LSD/publications.html">Publications</a></h2>');
  document.write('  <h2>Current projects</h2>');
  document.write('  <h3>Strong LHC Physics</h3>');

//  if (page == 'dwf') {
    document.write('  <ul>');
    document.write('    <li><p><a href="/LSD/dwf/index.html">News and updates</a></p></li>');
    document.write('  </ul>');
//  }

  document.write('  <h3>S parameter</h3>');

//  if (page == 's-param') {
    document.write('  <ul>');
    document.write('    <li><p><a href="/LSD/s-param/index.html">News and updates</a></p></li>');
    document.write('    <li><p><a href="/LSD/s-param/overview.html">Project overview</a></p></li>');
//    document.write('    <li><p><a href="/LSD/s-param/notes.html">Notes and whitepapers</a></p></li>');
    document.write('  </ul>');
//  }

  document.write('  <h3>10-flavor Yang-Mills</h3>');

//  if (page == '10f') {
    document.write('  <ul>');
    document.write('    <li><p><a href="/LSD/10f/index.html">News and updates</a></p></li>');
    document.write('    <li><p><a href="/LSD/10f/overview.html">Project overview</a></p></li>');
    document.write('    <li><p><a href="/LSD/10f/simulation.html">Simulation details</a></p></li>');
    document.write('    <li><p><a href="/LSD/10f/results.html">Results and analysis</a></p></li>');
    document.write('    <li><p><a href="/LSD/10f/notes.html">Notes and whitepapers</a></p></li>');
    document.write('  </ul>');
//  }

  document.write('  <h2>Workshops</h2>');
  document.write('  <ul>');
  document.write('  <li><p><a href="/LSD/workshop/index.html">Boston MA, Nov. 2009</a></p></li>');
  document.write('  <li><p><a href="/LSD/workshop08/index.html">Livermore CA, May 2008</a></p></li>');
  document.write('  </ul>');

  document.write('  <h2>External links</h2>');
  document.write('  <ul>');
  document.write('    <li><p><a href="http://www.usqcd.org/">USQCD Collaboration</a></p></li>');
  document.write('    <li><p><a href="http://www.usqcd.org/fnal">FNAL Lattice QCD Portal</a></p></li>');
  document.write('    <li><p><a href="http://www.usqcd.org/ildg">International Lattice Data Grid</a></p></li>');
  document.write('  </ul>');
  document.write('</div>');

  return false;
}

function printFoot() {
  document.write('<div class="footer">');
  document.write('  <p id="footText">Copyright 2008-2010 -- all rights reserved.</p>');
  document.write('  <a href="http://jigsaw.w3.org/css-validator/"><img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!" class = "footTag" /></a>');
  document.write('  <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Strict" class="footTag" height="31" width="88" /></a>');
  document.write('  <p id="footText">This material is based upon work supported by the National Science Foundation under Grant No. 0801068.  Any opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of the National Science Foundation.</p>');
  document.write('</div>');

  // Hmm.  Need this to make wrapper go all the way through the footer
  document.write('<div class="footer"></div>');

  return false;
}

