function menuDescr(stat, h_link, title, text, new_i, current, complete) {
  this.stat = stat;
  this.h_link = h_link;
  this.title = title;
  this.text = text;
  this.new_i = new_i;
  this.current = current;
  this.complete = complete;
};

var itemTop = new Array();

function topMenu(){
  document.writeln("<table cellpadding=1 cellspacing=2 border=0 width=100%>");
  document.writeln("<tr><td> <strong>S</strong>atellite <strong>A</strong>rchive <strong>B</strong>rowse & <strong>R</strong>etrieval help system</td></tr>")
  document.writeln("<tr><td bgcolor=#dddddd align=right>");
  document.writeln("<a class=podmenu href='http://sabr.ngdc.noaa.gov' title='http://sabr.ngdc.noaa.gov' target='_blank'>SABR on-line</a><font>");


  for (var k=0; k<itemTop.length; k++) {
    if (itemTop[k].stat=="menu2"){
      document.write("<font><b> | </b></font><font class=menu title='"+itemTop[k].title+"'>"+itemTop[k].text+"</font>");
    }
    if (itemTop[k].stat=="menu1"){
      document.write("<font><b> | </b></font><a class=podmenu href='"+itemTop[k].h_link+"' title='"+itemTop[k].title+"'>"+itemTop[k].text+"</a>");
    }
    if (itemTop[k].stat=="menu3"){
      document.write("<font><b> | </b></font>");
      if (itemTop[k].h_link != "")
           document.write("<a class=podmenu href='"+itemTop[k].h_link+"' title='"+itemTop[k].title+"'>");
      else
           document.write("<font class=podmenu title='"+itemTop[k].title+"'>");
      document.write(" "+itemTop[k].text+" ");
      if (itemTop[k].new_i)
        document.write("<font color=Red><nobr><b> !!</b></nobr></font>");
      if (itemTop[k].h_link != "")      
           document.write("</a>");
      else
           document.write("</font>");
    }
  }
  document.writeln("&nbsp;&nbsp;&nbsp;");
  document.writeln("</td></tr></table>");
};


