// 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, 'Undergraduate Programs');
          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>' );

          if (showBS) {
            document.writeln('<p class="nav">');
              navTopic('Bachelors Degree', '');
              navItem('Major Requirements', 'bsdegree_reqts.html', true);
              navItem('Animal Industry', 'bs_animalindustry_reqts.html', true);
              navItem('Biology and Pre-vet', 'bs_prevet_reqts.html', true);
              navItem('Companion & Exotic Animals', 'bs_companionanimal_reqts.html', true);
              navItem('Production Animal Scholars', 'bs_animalscholar_reqts.html', true);
            document.writeln('<br></p>');
         }

         if (showAgTech) {
           document.writeln('<p class="nav">');
             navTopic('Ag. Tech. Certificate', 'agtech.html');
             navItem('Beef Production', 'agtech_beef.html', true);
             navItem('Dairy Management', 'agtech_dairy.html', true);
             navItem('Horse Management', 'agtech_horse.html', true);
             navItem('Swine Production', 'agtech_swine.html', true);
           document.writeln('<br></p>');
         } 

           document.writeln('<p class="nav">');
            navTopic('General Information', '');
            navItem('Clubs &amp; Teams', 'clubs.html', true);
            navItem('Internships', 'internships.html', true);
            navItem('Scholarships', 'scholarships.html', true);
            navItem('Dairy Associates', 'dairy_associates.html', true);
            navItem('Student Handbook (pdf)', '../../downloads/undergrad_handbook.pdf', true);
          document.writeln('<br></p>');

          studentServicesDropDown(subfolder);   // In file acadutils.js

          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					
      canrLink(subfolder);             // CANR logo and web site link
      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, 'Undergraduate Programs');
          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>' );

          if (showBS) {
            document.writeln('<p class="nav">');
              navTopic('Bachelors Degree', '');
              navItem('Major Requirements', 'bsdegree_reqts.html', true);
              navItem('Animal Industry', 'bs_animalindustry_reqts.html', true);
              navItem('Biology and Pre-vet', 'bs_prevet_reqts.html', true);
              navItem('Companion & Exotic Animals', 'bs_companionanimal_reqts.html', true);
              navItem('Production Animal Scholars', 'bs_animalscholar_reqts.html', true);
            document.writeln('<br></p>');
         }

         if (showAgTech) {
           document.writeln('<p class="nav">');
             navTopic('Ag. Tech. Certificate', 'agtech.html');
             navItem('Beef Production', 'agtech_beef.html', true);
             navItem('Dairy Management', 'agtech_dairy.html', true);
             navItem('Horse Management', 'agtech_horse.html', true);
             navItem('Swine Production', 'agtech_swine.html', true);
           document.writeln('<br></p>');
         } 

           document.writeln('<p class="nav">');
            navTopic('General Information', '');
            navItem('Clubs &amp; Teams', 'clubs.html', true);
            navItem('Internships', 'internships.html', true);
            navItem('Scholarships', 'scholarships.html', true);
            navItem('Dairy Associates', 'dairy_associates.html', true);
            navItem('Student Handbook (pdf)', '../../downloads/undergrad_handbook.pdf', true);
          document.writeln('<br></p>');

          studentServicesDropDown(subfolder);   // In file acadutils.js

          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					
      canrLink(subfolder);             // CANR logo and web site link
      if (showPDF) getPDF(subfolder);  // Display Acrobat reader logo and link
    document.writeln('</table>');
} // nav table2




