
// Define
td1 = '<td id="td1" nowrap>';
td2 = '<td id="td2" nowrap>';
img = '<img src="arrow.gif">';
font1 = '<font id="font1">';
font2 = '<font id="font2">';

      if( headerLevel == 0 ) {
   x = ""; }
 else if( headerLevel == 1 ) {
   x = "../"; }
 else if( headerLevel == 2 ) {
   x = "../../"; }
 else if( headerLevel == 3 ) {
   x = "../../../"; }

links = new Object();
//links[0] = "atlantic-schematics.html";
//links[1] = "atlantic-arrows.html";
//links[2] = "atlantic-maps.html";
//links[3] = "atlantic-videos.html";
links[0] = basin + "-schematics.html";
links[1] = basin + "-arrows.html";
links[2] = basin + "-maps.html";
links[3] = basin + "-videos.html";
links[4] = "search_abs.cgi";
links[5] = "../sfo/index.html";
links[6] = "../guestbook/guestbook.html";
names = new Object();
names[0] = "Schematic flow diagrams";
names[1] = "Name/Location";
names[2] = "Maps";
names[3] = "Animations";
names[4] = "Text Search";
names[5] = "South Florida Outreach";
names[6] = "Guest Book";

// Start Table
document.writeln('<table id="table1" align="center"><tr><td valign="top">');
document.writeln('<table id="table2" align="center"><tr>');

// The 5 Rows in the Header
for( i = 0; i < 7; i++ ) {

      if( headerState == names[i] ) {
   document.writeln(td1,'&nbsp;',img); }
 else {
   document.writeln(td2,'&nbsp;',img); }
      if( headerState == names[i] && headerLink == "On" ) {
   document.writeln('<a href="',x,links[i],'">'); }
 else if( headerState != names[i] ) {
   document.writeln('<a href="',x,links[i],'">'); }
      if( headerState == names[i] && headerLink == "Off" ) {
   document.writeln(font1,'<b>',names[i],'</b></font></td>'); }
 else if( headerState == names[i] && headerLink == "On" ) {
   document.writeln(font1,'<b>',names[i],'</b></font></a></td>'); }
 else {
   document.writeln(font2,'<b>',names[i],'</b></font></a></td>'); }

}

// End Table
document.writeln('</tr>');
document.writeln('</table>');
document.writeln('</td></tr>');
document.writeln('</table>');

