// 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, 30, 'Facilities');
      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('Overview', communityfolder + 'index.html');
      document.writeln('<br></p>');

      document.writeln('<p class="nav">');
        navTopic('Animal Event Requirements', communityfolder + 'animal_use_contract.html');
      document.writeln('<br></p>');

      document.writeln('<p class="nav">');
        navTopic('Anthony Hall', 'anthony.html');
        navItem('Meat Science Lab', 'http://www.msu.edu/unit/fshn/facilities/meat.html', true);
        navItem('Dairy Store', 'http://dairystore.msu.edu/', true);
      document.writeln('<br></p>');

      document.writeln('<p class="nav">');
        navTopic('MSU Pavilion', 'http://www.pavilion.msu.edu');
      document.writeln('<br></p>');

      document.writeln('<p class="nav">');
        navTopic('On Campus Research &amp; Teaching Centers', 'farms.html');
        navItem('Air Quality', 'http://animalagteam.msu.edu/AboutUs/MSUFacultyandStaff/WendyPowers/AnimalAirQualityReserachFacility/tabid/252/Default.aspx', true);
        navItem('Beef Cattle', 'beef_bcrtc.html', true);
        navItem('Purebred Beef Cow-Calf', 'beef_cowcalf.html', true);
        navItem('Dairy Cattle', 'dairy_farm.html', true);
        navItem('Horse', 'http://www.msuarabians.com/index.html', true);
        navItem('Poultry', 'poultry_farm.html', true);
        navItem('Sheep', 'sheep_farm.html', true);
        navItem('Swine', 'swine_farm.html', true);
      document.writeln('<br></p>');

      document.writeln('<p class="nav">');
        navTopic('MSU Feed Mill', 'feed_mill.html');
      document.writeln('<br></p>');

      document.writeln('<p class="nav">');
        navTopic('Off Campus Facilities', '');
        navItem('Chatham Exp. Station', 'http://www.maes.msu.edu/upes/', true);
        navItem('Kellogg Dairy Center', 'http://www.kbs.msu.edu/Research_Facilities/Farm/Dairy/Index.htm', true);
        navItem('Lake City Exp. Station', 'http://www.maes.msu.edu/lakecity/', true);
      document.writeln('</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 (showMAES) maesLink(subfolder);  // MAES logo and web site link
  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, 30, 'Facilities');
      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('Overview', communityfolder + 'index.html');
      document.writeln('<br></p>');

      document.writeln('<p class="nav">');
        navTopic('Animal Event Requirements', communityfolder + 'animal_use_contract.html');
      document.writeln('<br></p>');

      document.writeln('<p class="nav">');
        navTopic('Anthony Hall', 'anthony.html');
        navItem('Meat Science Lab', 'http://www.msu.edu/unit/fshn/facilities/meat.html', true);
        navItem('Dairy Store', 'http://dairystore.msu.edu/', true);
      document.writeln('<br></p>');

      document.writeln('<p class="nav">');
        navTopic('MSU Pavilion', 'http://www.pavilion.msu.edu');
      document.writeln('<br></p>');

      document.writeln('<p class="nav">');
        navTopic('On Campus Research &amp; Teaching Centers', 'farms.html');
        navItem('Animal Air Quality', 'http://animalagteam.msu.edu/AboutUs/MSUFacultyandStaff/WendyPowers/AnimalAirQualityReserachFacility/tabid/252/Default.aspx', true);
        navItem('Beef Cattle', 'beef_bcrtc.html', true);
        navItem('Purebred Beef Cow-Calf', 'beef_cowcalf.html', true);
        navItem('Dairy Cattle', 'dairy_farm.html', true);
        navItem('Horse', 'http://www.msuarabians.com/index.html', true);
        navItem('Poultry', 'poultry_farm.html', true);
        navItem('Sheep', 'sheep_farm.html', true);
        navItem('Swine', 'swine_farm.html', true);
      document.writeln('<br></p>');

      document.writeln('<p class="nav">');
        navTopic('MSU Feed Mill', 'feed_mill.html');
      document.writeln('<br></p>');

      document.writeln('<p class="nav">');
        navTopic('Off Campus Facilities', '');
        navItem('Chatham Exp. Station', 'http://www.maes.msu.edu/upes/', true);
        navItem('Kellogg Dairy Center', 'http://www.kbs.msu.edu/Research_Facilities/Farm/Dairy/Index.htm', true);
        navItem('Lake City Exp. Station', 'http://www.maes.msu.edu/lakecity/', true);
      document.writeln('</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 (showMAES) maesLink(subfolder);  // MAES logo and web site link
  if (showPDF) getPDF(subfolder);     // Display Acrobat reader logo and link
  document.writeln('</table>');
} // nav table2

