// Define
td1 = '<td valign="middle" bgcolor="#FF9900">';
td2 = '<td valign="middle">';
img = '<img src="arrow.gif" border="0" vspace="0" hspace="0">';
font1 = '<font face="Arial,Helvetica,sans-serif" size="-2" color="#330033">';
font2 = '<font face="Arial,Helvetica,sans-serif" size="-2" color="#FFFFFF">';

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

links = new Object();
links[0] = "index.html";
links[1] = "swordfish.html";
links[2] = "billfish-larvae.html";
links[3] = "bathymetry.html";
links[4] = "ts-profiles.html";
links[5] = "links.html";

names = new Object();
names[0]  = "SFO Home";
names[1]  = "Swordfish Pop-Up Tags";
names[2]  = "Billfish Larvae";
names[3]  = "Bathymetry";
names[4]  = "Temperature and Salinity Profiles";
names[5]  = "Links";

// Start Table
document.writeln('<table width="666" align="center" border="0" ');
document.writeln('cellpadding="2" cellspacing="0" bgcolor="#FF9900" ');
document.writeln('vspace="5" hspace="0">');
document.writeln('<tr><td valign="top">');
document.writeln('<table width="662" align="center" border="0" ');
document.writeln('cellpadding="0" cellspacing="0" bgcolor="#990000">');
document.writeln('<tr>');

// Loop through the SFO
for( i = 0; i < 6; i++ ) {

      if( headerState2 == names[i] ) {
   document.writeln(td1,'&nbsp',img); }
 else {
   document.writeln(td2,'&nbsp',img); }
      if( headerState2 == names[i] && headerLink2 == "On" ) {
   document.writeln('<a href="',x,links[i],'">'); }
 else if( headerState2 != names[i] ) {
   document.writeln('<a href="',x,links[i],'">'); }
      if( headerState2 == names[i] && headerLink2 == "Off" ) {
   document.writeln(font1,'<b>',names[i],'</b></font></td>'); }
 else if( headerState2 == names[i] && headerLink2 == "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>');

