var menubase;

function menuitem(item,title) {
  menuitem2(item, item+'.html', title);
}

function menuitem2(item, link, title) {
  document.write('<li><a id="',item,'" href="',menubase+link,'" title="',
		 title, '">', item, '</a> </li> ');
}

function menuitem3(item, label1, label2, link, title) {
  document.write('<li><a id="',item,'" href="', menubase+link, '" title="',
		 title, '"><table><tr><td>', label1, '<tr><td>', label2, 
		 '</table></a> </li> ');
}

function navbar1(lmenubase)
{
  menubase = lmenubase;
  document.write('<div align=right><a href="toc.html">Site map</a></div>');
  document.write('<div class=navbar><ul>');
  menuitem2('Home','index.html','WRF Home Page');
  menuitem('Directory_Info',
	   'Email, postal address, telephone, fax, GPS coords, driving to RPI from Mass');
  menuitem('Bio','Summary bio, Long resume, 2-page printable bio');
  menuitem2('Research','Research/index.html','Past &amp; current; Software; Students');
  menuitem('Misc_Notes','General miscellany (not research related)');
  menuitem2('Teaching &amp; Student Advice','Teaching/index.html','Courses taught; Philosophy; Advice to students');
  document.write('</ul></div><br clear=all>');
}

function research_navbar(lmenubase)
{
  menubase = lmenubase;
  document.write('<div align=right><a href="'+menubase+'../toc.html">Site map</a></div>');
  document.write('<div class=navbar><ul>');
  menuitem3('Summary', 'Summary',' ', 'index.html','Summary');
  menuitem3('Geometry_Apps','Geometry',' ','Geom_Apps.html','Applications - Geometry');
  menuitem3('Cartography_Apps','Cartography',' ','Carto_Apps.html','Applications - Cartography');
  menuitem3('Misc','Misc',' ','Misc_Research.html','Miscellany');
  menuitem3('Future','Future',' ','Future.html','Future plans, available projects');
  menuitem3('Student_Collaborators','Student','Collaborators','Student_Collaborators.html','Masters and PhD advisees');
  menuitem3('Data','Data',' ','Data/index.html','Datasets used in this research');
  menuitem3('Short_Notes','Short','Notes','Short_Notes/index.html','Rotations, quaternions, rational approx, point in polyhedron testing, etc');
  document.write('</ul></div><br clear=all>');
}

function cg_navbar(lmenubase)
{
  menubase = lmenubase;
  /*  document.write('<div align=right><a href="'+menubase+'../toc.html">Site map</a></div>'); */
  document.write('<div class=navbar><ul>');
  menuitem2('Course_home','index.html','Computer Graphics ECSE-4750 home page');
  menuitem('Lectures','Lectures');
  menuitem('Labs','Labs');
  menuitem('Homeworks','Homeworks');
  menuitem('Syllabus','Staff, grades, etc');
  menuitem('Staff','Prof, TAs');
  menuitem('Famous_alumni','Famous Graphics-related RPI grads');

  document.write('</ul></div><br clear=all>');
}

function cgf05_navbar(lmenubase)
{
  menubase = lmenubase;
  /*  document.write('<div align=right><a href="'+menubase+'../toc.html">Site map</a></div>'); */
  document.write('<div class=navbar><ul>');
  menuitem2('Course_home','index.html','Computer Graphics ECSE-4750 home page');
  menuitem('Calendar','Calendar');
  menuitem('Syllabus','Staff, grades, etc');
  menuitem('Staff','Prof, TAs');
  menuitem('Famous_alumni','Famous Graphics-related RPI grads');

  document.write('</ul></div><br clear=all>');
}

function cg_s06_navbar(lmenubase)
{
  menubase = lmenubase;
  /*  document.write('<div align=right><a href="'+menubase+'../toc.html">Site map</a></div>'); */
  document.write('<div class=navbar><ul>');
  menuitem2('Course_home','index.html','Advanced Computer Graphics ECSE-6800 home page');
  menuitem('Calendar','Calendar');
  menuitem('Syllabus','Staff, grades, etc');

  document.write('</ul></div><br clear=all>');
}

function foot()
{
  document.write('<br clear=all><br>');
  document.write('<div class="foot">');
document.write('Copyright &#169; 1994-2006, \
<a href="http://wrfranklin.org/">W Randolph Franklin (WRF)</a> \
You may use my material for non-profit research and education, \
provided that you credit me, and link back to my home page. \
</em>');
 document.write('</div>');
 document.write('<span class=foot2>'+document.URL + ", &nbsp; &nbsp; &nbsp; &nbsp;   ");
 document.write( document.lastModified+'</span>');
  }
