// JavaScript Functions used in the DePaul ECT 270 web site

// used at the bottom of every page
function footer()
{
document.writeln("<hr>");
document.writeln("Last Updated : " + document.lastModified);
document.writeln("Copyright 2003 Kent Archie");
} // footer

// print the nav and title table
// the level value tells how many levels up
// to the place where the links are
function navup(level)
{
   var prepath="";
   title="CIS 270 - Object Oriented Programming 1";
   for(i=0; i<level; i++) {
   	prepath += "../";
   }
   document.writeln('<center>');
   document.writeln('<table border cellspacing="5" cellpadding="3">');
   document.writeln('<tr>');
   document.writeln('<th colspan=8 style="font-size:14"> ' + title);
   document.writeln('</th>\n</tr>\n<tr>');
   document.writeln('<td><a href="' + prepath + 'sched.html">Schedule</a></td>');
   document.writeln('<td><a href="' + prepath + 'asgs/index.html">Assignments</a></td>');
   document.writeln('<td><a href="' + prepath + 'notes/index.html">Notes</a></td>');
   document.writeln('<td><a href="' + prepath + 'examples/index.html">Examples</a></td>');
   document.writeln('<td><a href="' + prepath + 'syll.html">Syllabus</a></td>');
   document.writeln('<td><a href="' + prepath + 'links.html">Links</a></td>');
   document.writeln('<td><a href="' + prepath + 'index.html">News</a></td>');
   document.writeln('<td><a href="' + prepath + 'bcard.html">Instructor</a></td>');
   document.writeln('</tr>\n</table>\n</center>\n<hr>');
} // navup

// print the nav and title table in  the footer
// the level value tells how many levels up
// to the place where the links are
function navdown(level)
{
   var prepath="";
   for(i=0; i<level; i++) {
   	prepath += "../";
   }
   document.writeln('<hr><center>');
   document.writeln('<table><tr>');
   document.writeln('<td><a href="' + prepath + 'sched.html">Schedule</a>|</td>');
   document.writeln('<td><a href="' + prepath + 'asgs/index.html">Assignments</a>|</td>');
   document.writeln('<td><a href="' + prepath + 'notes/index.html">Notes</a>|</td>');
   document.writeln('<td><a href="' + prepath + 'examples/index.html">Examples</a>|</td>');
   document.writeln('<td><a href="' + prepath + 'syll.html">Syllabus</a>|</td>');
   document.writeln('<td><a href="' + prepath + 'links.html">Links</a>|</td>');
   document.writeln('<td><a href="' + prepath + 'index.html">News</a>|</td>');
   document.writeln('<td><a href="' + prepath + 'bcard.html">Instructor</a>|</td>');
   document.writeln('</tr>\n</table>\n</center>');
} // navdown

