// Javascript library for academics section, Dept. of Animal Science, Michigan State University
// Author: Robert Kriegel, kriegelr@msu.edu

function navTable(subfolder) {
  document.writeln('<td width="200" valign="top">');
    document.writeln('<table border="0" cellpadding="0" cellspacing="0" width="200">');
      document.writeln('<tr><td>');
        document.writeln('<table border="0" cellpadding="0" cellspacing="0" width="200">');
          navHeader(subfolder, 55, 'Dairy Memorial Scholarships');
          document.writeln('<tr>'); 
          document.writeln( '<td width="10"></td>' );
          document.writeln( '<td background="' + subfolder + 'images/navbx_l.jpg" width="10" alt="">&nbsp;</td>' );
          document.writeln( '<td background="' + subfolder + 'images/navbx_body.jpg" valign="top" colspan="2" width="163" alt=""><br>' );

          document.writeln('<p class="nav">');
          navTopic('Introduction', 'index.html#top');
          document.writeln('<br></p>');
          navTopic('The Goal', 'index.html#goal');
          document.writeln('<br></p>');
          navTopic('Endowment Benefits', 'index.html#benefits');
          document.writeln('<br></p>');
          navTopic('Why Invest?', 'index.html#invest');
          document.writeln('<br></p>');
          navTopic('Donor Recognition', 'index.html#recognition');
          document.writeln('<br></p>');
          document.writeln('<p class="nav">');

          navTopic('Documents', '');
            navItem('2008 Newsletter (pdf)', 'newsletter2008.pdf', true);
            navItem('Donor Form (pdf)', 'dairy_donors_form.pdf', true);
            navItem('Application form (Excel)', 'MDMSFform.xls', true);
          document.writeln('<br></p>');

          document.writeln('<p class="nav">');
            navTopic('Coordinator', '');
            navItem('Dr. Miriam Weber Nielsen', 'mailto:msw@msu.edu', true);
            navItem('1250E Anthony Hall', '', true);
            navItem('Dept. of Animal Science', '', true);
            navItem('Michigan State University', '', true);
            navItem('East Lansing, MI  48824', '', true);
            navItem('Phone: (517) 432-5443', '', true);
            navItem('Fax: (517) 353-1699', '', true);
          document.writeln('<br></p>');

          document.writeln('</td>');

          document.writeln('<td  background="' + subfolder + 'images/navbx_r.jpg" width="17" alt="">&nbsp;</td>');
        document.writeln('</tr>');
        navFooter(subfolder); 
      document.writeln('</table>');
      document.writeln('</td></tr>');

      ansOffice();                     // Departmental Office contact information					
      if (showPDF) getPDF(subfolder);  // Display Acrobat reader logo and link
    document.writeln('</table>');
  document.writeln('</td>');

  document.writeln('<td width="10"></td>');     // Vertical spacing before main content
} // nav table



function navTable2(subfolder) {
    document.writeln('<table border="0" cellpadding="0" cellspacing="0" width="200">');
      document.writeln('<tr><td>');
        document.writeln('<table border="0" cellpadding="0" cellspacing="0" width="200">');
          navHeader(subfolder, 55, 'Dairy Memorial Scholarships');
          document.writeln('<tr>'); 
          document.writeln( '<td width="10"></td>' );
          document.writeln( '<td background="' + subfolder + 'images/navbx_l.jpg" width="10" alt="">&nbsp;</td>' );
          document.writeln( '<td background="' + subfolder + 'images/navbx_body.jpg" valign="top" colspan="2" width="163" alt=""><br>' );

          document.writeln('<p class="nav">');
          navTopic('Introduction', 'index.html#top');
          document.writeln('<br></p>');
          navTopic('The Goal', 'index.html#goal');
          document.writeln('<br></p>');
          navTopic('Endowment Benefits', 'index.html#benefits');
          document.writeln('<br></p>');
          navTopic('Why Invest?', 'index.html#invest');
          document.writeln('<br></p>');
          navTopic('Donor Recognition', 'index.html#recognition');
          document.writeln('<br></p>');
          document.writeln('<p class="nav">');

          navTopic('Documents', '');
            navItem('2008 Newsletter (pdf)', 'newsletter2008.pdf', true);
            navItem('Donor Form (pdf)', 'dairy_donors_form.pdf', true);
            navItem('Application form (Excel)', 'MDMSFform.xls', true);
          document.writeln('<br></p>');

          document.writeln('<p class="nav">');
            navTopic('Coordinator', '');
            navItem('Dr. Miriam Weber Nielsen', 'mailto:msw@msu.edu', true);
            navItem('1250E Anthony Hall', '', true);
            navItem('Dept. of Animal Science', '', true);
            navItem('Michigan State University', '', true);
            navItem('East Lansing, MI  48824', '', true);
            navItem('Phone: (517) 432-5443', '', true);
            navItem('Fax: (517) 353-1699', '', true);
          document.writeln('<br></p>');

          document.writeln('</td>');

          document.writeln('<td  background="' + subfolder + 'images/navbx_r.jpg" width="17" alt="">&nbsp;</td>');
        document.writeln('</tr>');
        navFooter(subfolder); 
      document.writeln('</table>');
      document.writeln('</td></tr>');

      ansOffice();                     // Departmental Office contact information					
      if (showPDF) getPDF(subfolder);  // Display Acrobat reader logo and link
    document.writeln('</table>');
} // nav table2



