// Javascript library main page, Dept. of Animal Science, Michigan State University
// Author: Robert Kriegel, kriegelr@msu.edu

function navTable(subfolder) {
  document.writeln('<tr><td>');
    document.writeln('<table border="0" cellpadding="0" cellspacing="0" width="200">');
      navHeader(subfolder, 55, 'Our Community');
      document.writeln('<tr>'); 
      document.writeln( '<td width="10"></td>' );
      document.writeln( '<td background="' + subfolder + 'images/navbx_l.jpg"width="10">&nbsp;</td>' );
      document.writeln( '<td background="' + subfolder + 'images/navbx_body.jpg" valign="top" colspan="2" width="163"><br>' );

      document.writeln('<p class="nav">');
        navTopic('Departmental Contacts', communityfolder + 'index.html');
        navItem('Laboratories', communityfolder + 'labs.html', true);
        navItem('Farms & Centers', communityfolder + 'farms.html', true);
        navItem('Employment', subfolder + 'employment/index.html', true);
        navItem('Visitor Information', communityfolder + 'visitors.html', true);
      document.writeln('<br></p>');

      document.writeln('<p class="nav">');
        navTopic('People', '');
        navItem('Faculty', communityfolder + 'people/index.html', true);
        navItem('Retired Faculty', communityfolder + 'people/retired.html', true);
        navItem('Research Fac./Post-docs', communityfolder + 'people/other.html', true);
        navItem('Staff', communityfolder + 'people/staff.html', true);
        navItem('Graduate Students', communityfolder + 'people/grads.html', true);
        navItem('ANS Directory (pdf)', communityfolder + '../downloads/ans_contactlist.pdf', true);
      document.writeln('<br></p>');

      document.writeln('<p class="nav">');
        navTopic('Facilities', communityfolder + 'facilities/index.html');
        navItem('Anthony Hall', communityfolder + 'facilities/anthony.html', true);
        navItem('Campus Farms', communityfolder + 'facilities/farms.html', true);
      document.writeln('<br></p>');

//      document.writeln('<p class="nav">');
//        navTopic('Giving to ANS', '');
//      document.writeln('<br></p>');

      document.writeln('<p class="nav">');
        navTopic('Dept. Resources', '');
        navItem('Computer Support', communityfolder + 'computers/index.html', true);
        navItem('Electronic Forms', communityfolder + 'forms.html', true);
        navItem('Web-based Farm Training', communityfolder + 'web_farm_training.html', true);
        navItem('Emergency Procedures', communityfolder + 'emergency/index.html', true);
        navItem('CANR SAC', 'http://www.anr.msu.edu/sac/', true);
//        navItem('Laboratory Safety', '', true);
      document.writeln('<br></p>');

      document.writeln('</td>');

      document.writeln('<td  background="' + subfolder + 'images/navbx_r.jpg" width="17">&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
} // 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, 'Our Community');
      document.writeln('<tr>'); 
      document.writeln( '<td width="10"></td>' );
      document.writeln( '<td background="' + subfolder + 'images/navbx_l.jpg"width="10">&nbsp;</td>' );
      document.writeln( '<td background="' + subfolder + 'images/navbx_body.jpg" valign="top" colspan="2" width="163"><br>' );

      document.writeln('<p class="nav">');
        navTopic('Departmental Contacts', communityfolder + 'index.html');
        navItem('Laboratories', communityfolder + 'labs.html', true);
        navItem('Farms & Centers', communityfolder + 'farms.html', true);
        navItem('Employment', subfolder + 'employment/index.html', true);
        navItem('Visitor Information', communityfolder + 'visitors.html', true);
      document.writeln('<br></p>');

      document.writeln('<p class="nav">');
        navTopic('People', '');
        navItem('Faculty', communityfolder + 'people/index.html', true);
        navItem('Retired Faculty', communityfolder + 'people/retired.html', true);
        navItem('Research Fac./Post-docs', communityfolder + 'people/other.html', true);
        navItem('Staff', communityfolder + 'people/staff.html', true);
        navItem('Graduate Students', communityfolder + 'people/grads.html', true);
        navItem('ANS Directory (pdf)', communityfolder + '../downloads/ans_contactlist.pdf', true);
      document.writeln('<br></p>');

      document.writeln('<p class="nav">');
        navTopic('Facilities', communityfolder + 'facilities/index.html');
        navItem('Anthony Hall', communityfolder + 'facilities/anthony.html', true);
        navItem('Campus Farms', communityfolder + 'facilities/farms.html', true);
        navItem('Animal Event Requirements', communityfolder + 'facilities/animal_use_contract.html', true);
      document.writeln('<br></p>');

//      document.writeln('<p class="nav">');
//        navTopic('Giving to ANS', '');
//      document.writeln('<br></p>');

      document.writeln('<p class="nav">');
        navTopic('Dept. Resources', '');
        navItem('Computer Support', communityfolder + 'computers/index.html', true);
        navItem('Electronic Forms', communityfolder + 'forms.html', true);
        navItem('Web-based Farm Training', communityfolder + 'web_farm_training.html', true);
        navItem('Emergency Procedures', communityfolder + 'emergency/index.html', true);
//        navItem('CANR SAC', 'http://www.anr.msu.edu/sac/', true);  // link no longer works
//        navItem('Laboratory Safety', '', true);
      document.writeln('<br></p>');

      document.writeln('</td>');

      document.writeln('<td  background="' + subfolder + 'images/navbx_r.jpg" width="17">&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

