// template.js

var NN4 = (document.layers)?true:false;
var NN6 = (!document.all && document.getElementById)?true:false;
var IE = (document.all)?true:false;

if (IE || NN6) {
  document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="msoe.css">');
} 

function createHeader(h1, h2, h3) {

  //alert("in createHeader: " + h1 + " " + h2 + " " + h3);
  thevar = '<div class="adminheader">';
  thevar += '<br>';
  thevar += '<table width="100%"><tr>';
  thevar += '<td width="175px"><a href="http://www.msoe.edu"><img border=0 src="images/nlogo2.gif"></a></td>';
  thevar += '<td>';
  thevar += '<table>';
  thevar += '<tr><td align="center" valign="center" class="msoeheader">'+h1+'</td></tr>';
  thevar += '<tr><td align="center" valign="center" class="msoeheader">'+h2+'</td></tr>';
  thevar += '<td align="center" valign="bottom" class="msoesubheader">'+h3+'</td></tr>';
  thevar += '</table>';
  thevar += '</td>';
  thevar += '</tr></table>';
  thevar += '<hr color="black" align="bottom">';
  thevar += '</div>';
  document.write(thevar);
}

function createMenu(h1, h2, h3) {

  thevar = '<div class="navigation">';
  thevar += '<div class="navigationcontent">';
  //thevar += '<a href="index.html">Home</a><br><br>';
  thevar += '<a href="index.html">Office</a><br><br>';
  thevar += '<i>Classes Fall 09:</i><br><br>';
  thevar += 'Game Development<br>';
  thevar += '&nbsp;&nbsp;<a href="se3250/index.html">SE 3250</a><br><br>';
  thevar += 'Database Systems<br>';
  thevar += '&nbsp;&nbsp;<a href="cs386/index.html">CS 386</a><br><br>';
  thevar += 'Software Req\'s<br>';
  thevar += '&nbsp;&nbsp;<a href="se3821/index.html">SE 3821</a><br><br>';

  thevar += '<i>Previous Classes:</i><br><br>';
  thevar += 'HCI<br>';
  thevar += '&nbsp;&nbsp;<a href="se3830/index.html">SE 3830</a><br><br>';
  thevar += 'Adv. Comp. Graphics<br>';
  thevar += '&nbsp;&nbsp;<a href="cs421/index.html">CS 421</a><br><br>';
  thevar += 'Software Architecture<br>';
  thevar += '&nbsp;&nbsp;<a href="se380/index.html">SE 380</a><br><br>';
  thevar += 'Artificial Intelligence<br>';
  thevar += '&nbsp;&nbsp;<a href="cs4881/index.html">CS 4881</a><br><br>';
  thevar += 'Mobile Applications<br>';
  thevar += '&nbsp;&nbsp;<a href="se4910/index.html">SE 4910</a><br><br>';

  thevar += 'Data Structures<br>';
  thevar += '&nbsp;&nbsp;<a href="cs2851/index.html">CS 2851</a><br><br>';
  thevar += 'SW Validation<br>';
  thevar += '&nbsp;&nbsp;<a href="se2831/index.html">SE 2831</a><br><br>';
  thevar += 'Algorithms<br>';
  thevar += '&nbsp;&nbsp;<a href="cs385/index.html">CS 385</a><br><br>';
  
  //thevar += '<a href="solutions.html">Samples &amp; Solutions</a><br><br>';
  //thevar += '<a href="resources.html">Resources</a><br><br>';
  thevar += '</div>';
  thevar += '</div>';
  document.write(thevar);
}

function createFooter(){
  thevar = '<table width=500 border=0><tr><td align=center>';
  thevar += '<DIV CLASS="footer">';
  thevar+= '<a href="http://people.msoe.edu/~urbain">Jay Urbain Home</a>';
  thevar+= '</DIV>';
  thevar += '</td></tr><table>';
  document.write(thevar);
}


