// Javascript library main page, Dept. of Animal Science, Michigan State University
// Author: Robert Kriegel, kriegelr@msu.edu

function navPeople() {
var outstring;
  outstring = '&nbsp;&nbsp;&nbsp;&nbsp;';
//  outstring += '<span class="nav">People</span>: ';
//  outstring += '<a class="nav" href=subfolder+"community/people/index.html">People</a>: ';
  outstring += '<a class="nav" href="community/people/index.html">Faculty</a>, ';
  outstring += '<a class="nav" href="community/people/staff.html">Staff</a>, ';
  outstring += '<a class="nav" href="community/people/grads.html">Grads</a>';
  outstring += '<br>' 
  document.writeln(outstring);	
} // nav people

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, 30, 'Home');
          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('Welcome', '');
            navItem('Dr. Karen Plaut, Chair', subfolder + 'welcome.html', true);
            navItem('Department Overview', subfolder + 'overview.html', true);
            navItem('Give to Animal Science', subfolder + 'donations/index.html', true);
          document.writeln('<br></p>');

        document.writeln('<p class="nav">');
            navTopic('Visitor Information', subfolder + 'community/visitors.html');
          document.writeln('<br></p>');

          document.writeln('<p class="nav">');
            navTopic('Educational Opportunities', subfolder + 'academics/index.html');
            navItem('Prospective Students', subfolder + 'academics/recruiting/index.html', true);
            navItem('Undergraduates', subfolder + 'academics/index.html', true);
            navItem('Graduate Students', subfolder + 'academics/grad/index.html', true);
//            navItem('Undergrad Interships', subfolder + 'academics/undergrad/internships.html', true);
          document.writeln('<br></p>');

        document.writeln('<p class="nav">');
            navTopic('Our Community', subfolder + 'community/index.html');
            navPeople();
            navItem('Facilities', subfolder + 'community/facilities/index.html', true);
            navItem('Animal Event Requirements', subfolder + 'community/facilities/animal_use_contract.html', true);
            navItem('Computer Support', subfolder + 'community/computers/index.html', true);
            navItem('Employment', subfolder + 'employment/index.html', true);
          document.writeln('<br></p>');

          document.writeln('<p class="nav">');
            navTopic('News &amp; Events', subfolder + 'news/index.html');
            navItem('MSU Pavilion Events', 'http://www.msu.edu/~pavilion/events.htm', true);
            navItem('Youth Extension Events', 'http://www.canr.msu.edu/anscikids/events.html', true);
          document.writeln('<br></p>');

          document.writeln('<p class="nav">');
            quickLinks();
          document.writeln('</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					
      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, 30, 'Home');
        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('Welcome', '');
          navItem('Dr. Karen Plaut, Chair', subfolder + 'welcome.html', true);
          navItem('Department Overview', subfolder + 'overview.html', true);
        document.writeln('<br></p>');

       document.writeln('<p class="nav">');
          navTopic('Visitor Information', subfolder + 'community/visitors.html');
        document.writeln('<br></p>');

        document.writeln('<p class="nav">');
          navTopic('Educational Opportunities', subfolder + 'academics/index.html');
          navItem('Prospective Students', subfolder + 'academics/recruiting/index.html', true);
          navItem('Undergraduates', subfolder + 'academics/index.html', true);
          navItem('Graduate Students', subfolder + 'academics/grad/index.html', true);
//          navItem('Undergrad Interships', subfolder + 'academics/undergrad/internships.html', true);
        document.writeln('<br></p>');

        document.writeln('<p class="nav">');
          navTopic('Our Community', subfolder + 'community/index.html');
          navPeople();
          navItem('Facilities', subfolder + 'community/facilities/index.html', true);
          navItem('Animal Event Requirements', subfolder + 'community/facilities/animal_use_contract.html', true);
          navItem('Computer Support', subfolder + 'community/computers/index.html', true);
          navItem('Employment', subfolder + 'employment/index.html', true);
        document.writeln('<br></p>');

        document.writeln('<p class="nav">');
          navTopic('Give to Animal Science', subfolder + 'donations/index.html');
        document.writeln('<br></p>');

        document.writeln('<p class="nav">');
          navTopic('News &amp; Events', subfolder + 'news/index.html');
          navItem('MSU Pavilion Events', 'http://www.msu.edu/~pavilion/events.htm', true);
          navItem('Youth Extension Events', 'http://www.canr.msu.edu/anscikids/events.html', true);
        document.writeln('<br></p>');

        document.writeln('<p class="nav">');
          quickLinks();
        document.writeln('</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					
    canrLink(subfolder);             // CANR logo and web site link
    if (showPDF) getPDF(subfolder);  // Display Acrobat reader logo and link
  document.writeln('</table>');
} // nav table2

