function sidebar (code) {

// code indicates level two group 
// 0 = People
// 1 = Faculty
// 2 = Students
// 3 = Alumni
// 4 = Staff
// 5 = Contacts
// 6 = Links


// remove table structure for sitemap calls
  var key = true;
  if (code == 10) {
    key = false;
    code = 0;
   }

  if (key) {
    document.write ("<table width=700 cellpadding=2 cellspacing=0 border=0>")
    document.write ("<tr><td width=120 valign=top>")
   }
  document.write ("<span style='font-size:12.0pt;mso-bidi-font-size:10.0pt'><font size=3>")
  document.write ("<table border=1 cellpadding=2 cellspacing=0 bordercolor='#ffffff' width=120>")



// ### PhD Home

  document.write ("<tr><td width=120 height=25 bgcolor='#313063' >")
  document.write ("<font color='#FFFFFF' size=1 face='MS Sans Serif'>")
  document.write ("<a style='color: #FFFFFF' href='index.htm'>PhD HOME</a></td></tr>")


// ### PhD PEOPLE

  if (code == 0) { 
     document.write ("<tr><td width=120 height=25 bgcolor='#CE6508'>")
  } else {
     document.write ("<tr><td width=120 height=25 bgcolor='#313063' >")
  }
  document.write ("<font color='#FFFFFF' size=1 face='MS Sans Serif'>")
  document.write ("<a style='color: #FFFFFF' href='people.htm'>PEOPLE</a></td></tr>")


// ### PhD Faculty

  if (code == 1) { 
     document.write ("<tr><td width=120 height=25 bgcolor='#CE6508'>")
  } else {
     document.write ("<tr><td width=120 height=25 bgcolor='#313063' >")
  }
  document.write ("<font color='#FFFFFF' size=1 face='MS Sans Serif'>")
  document.write ("<a style='color: #FFFFFF' href='faculty.asp'>Faculty</a></td></tr>")


// ### PhD Students

  if (code == 2) { 
     document.write ("<tr><td width=120 height=25 bgcolor='#CE6508'>")
  } else {
     document.write ("<tr><td width=120 height=25 bgcolor='#313063' >")
  }
  document.write ("<font color='#FFFFFF' size=1 face='MS Sans Serif'>")
  document.write ("<a style='color: #FFFFFF' href='students.asp'>PhD Students</a></td></tr>")

 
// ### PhD ALUMNI

  if (code == 3) { 
     document.write ("<tr><td width=120 height=25 bgcolor='#CE6508'>")
  } else {
     document.write ("<tr><td width=120 height=25 bgcolor='#313063' >")
  }
  document.write ("<font color='#FFFFFF' size=1 face='MS Sans Serif'>")
  document.write ("<a style='color: #FFFFFF' href='alumni.asp'>PhD Alumni</a></td></tr>")


// ### PhD STAFF

  if (code == 4) { 
     document.write ("<tr><td width=120 height=25 bgcolor='#CE6508'>")
  } else {
     document.write ("<tr><td width=120 height=25 bgcolor='#313063' >")
  }
  document.write ("<font color='#FFFFFF' size=1 face='MS Sans Serif'>")
  document.write ("<a style='color: #FFFFFF' href='staff.htm'>Staff</a></td></tr>")


// ### PhD CONTACTS

  if (code == 5) { 
     document.write ("<tr><td width=120 height=25 bgcolor='#CE6508'>")
  } else {
     document.write ("<tr><td width=120 height=25 bgcolor='#313063' >")
  }
  document.write ("<font color='#FFFFFF' size=1 face='MS Sans Serif'>")
  document.write ("<a style='color: #FFFFFF' href='contacts.htm'>Contacts</a></td></tr>")



// ### PhD LINKS

  if (code == 6) { 
     document.write ("<tr><td width=120 height=25 bgcolor='#CE6508'>")
  } else {
     document.write ("<tr><td width=120 height=25 bgcolor='#313063' >")
  }
  document.write ("<font color='#FFFFFF' size=1 face='MS Sans Serif'>")
  document.write ("<a style='color: #FFFFFF' href='links.htm'>Links</a></td></tr>")



// ### END

 document.write ("</table></span>")
  if (key) {
    if (code == 0) {
        document.write ("</td><td width=385 valign=top>")
    } else {
        document.write ("</td><td width=580 valign=top>")
    }
  }
}