
// 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">';

links = new Object();
links[0]  = "agulhas.html";
links[1]  = "angola.html";
links[2]  = "antilles.html";
links[3]  = "azores.html";
links[4]  = "benguela.html";
links[5]  = "brazil.html";
links[6]  = "canary.html";
links[7]  = "../caribbean/caribbean.html";
links[8]  = "east-greenland.html";
links[9]  = "east-iceland.html";
links[10] = "florida.html";
links[11] = "guiana.html";
links[12] = "guinea.html";
links[13] = "gulf-stream.html";
links[14] = "irminger.html";
links[15] = "labrador.html";
links[16] = "loop-current.html";
links[17] = "malvinas.html";
links[18] = "north-atlantic.html";
links[19] = "north-atlantic-drift.html";
links[20] = "north-brazil.html";
links[21] = "north-equatorial.html";
links[22] = "north-equatorial-cc.html";
links[23] = "norwegian.html";
links[24] = "portugal.html";
links[25] = "slope.html";
links[26] = "slope-jet.html";
links[27] = "south-atlantic.html";
links[28] = "south-equatorial.html";
links[29] = "spitsbergen.html";
links[30] = "subtropical-cc.html";
links[31] = "west-greenland.html";
links[32] = "other-currents.html";

names = new Object();
names[0]  = "Agulhas";
names[1]  = "Angola";
names[2]  = "Antilles";
names[3]  = "Azores";
names[4]  = "Benguela";
names[5]  = "Brazil";
names[6]  = "Canary";
names[7]  = "Caribbean System";
names[8]  = "East Greenland";
names[9]  = "East Iceland";
names[10] = "Florida";
names[11] = "Guiana";
names[12] = "Guinea";
names[13] = "Gulf Stream";
names[14] = "Irminger";
names[15] = "Labrador";
names[16] = "Loop Current";
names[17] = "Malvinas";
names[18] = "North Atlantic";
names[19] = "North Atlantic Drift";
names[20] = "North Brazil";
names[21] = "North Equatorial";
names[22] = "North Equatorial CC";
names[23] = "Norwegian/N Cape";
names[24] = "Portugal System";
names[25] = "Slope/Shelf Edge";
names[26] = "Slope Jet";
names[27] = "South Atlantic";
names[28] = "South Equatorial Sys";
names[29] = "Spitsbergen";
names[30] = "Subtropical CC";
names[31] = "West Greenland";
names[32] = "Other Currents";

// Start Table
document.writeln('<table width="666" align="center" border="0" ');
document.writeln('cellpadding="2" cellspacing="0" bgcolor="#FF9900" ');
document.writeln('vspace="0" 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>');

//document.writeln('<!-- start of left hand side -->');
document.writeln('<td width="20%" valign="top">');
//document.writeln('<TABLE border="0" rules="none" cellpadding="0" cellspacing="0">');
document.writeln('<TABLE border="0" rules="none">');


// Loop through the Currents
for( i = 0; i < 33; i++ ) {

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

      // every 7 start a new row
      if( (i+1)%7 == 0 && i < 30 ) {
   document.writeln('</TABLE>');
   document.writeln('</td>');
   //document.writeln('<!-- start of right hand side -->');
   document.writeln('<td width="20%" valign="top">');
// document.writeln('<TABLE border="0" rules="none" cellpadding="0" cellspacing="0">');
   document.writeln('<TABLE border="0" rules="none">');
      }

}

// End Table
document.writeln('</TABLE>');

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

document.writeln('<table width="666" align="center" border="0" cellpadding="0" cellspacing="0" vspace="0" hspace="0">');
document.writeln('<tr><td align="center">');
document.writeln('<font size="-1" color="#990000"><b>');
document.writeln('CC == Counter Current, CF == Confluence, CP == Circumpolar, SS == Subsurface, Sys == System');
document.writeln('</b></font>');
document.writeln('</td></tr>');
document.writeln('</table>');

