
function menustate(cell, flg) {
    if (flg==true) {
      cell.style.color='#800000';
      cell.style.backgroundColor='#c0c0c0';
    } else {
      cell.style.color='#ffffff';
      cell.style.backgroundColor="#000000";
    }
}



var menudef={style:"menu", state: "menustate", click: "menulink", left: "0px", top: "0px", width:"200px"};

var menubar={id: "root", name: "Root"};
menubar.item=new Array();

var home={id: "home", name: "Help"};
home.item=new Array();

var info={id: "info", name: "Information"};
info.item=new Array();

var rt={id: "rt", name: "Real-Time Data"};
rt.item=new Array();

var archive={id: "archive", name: "Data Archive"};
archive.item=new Array();

var process={id: "process", name: "Data Processing"};
process.item=new Array();

var resource={id: "resource", name: "Resources"};
resource.item=new Array();

/* Home sub-menu */

var menuitem={id: "home.data", name: "Home Page", href: "/index.html"};
home.item.push(menuitem);

/* Information sub-menu */



var fov={id: "info.fov", name: "Location of Radars"};
fov.item=new Array();

var menuitem={id: "info.fov.north", name: "Northern Hemisphere", 
              href: "/fov/north.html"};
fov.item.push(menuitem);

var menuitem={id: "info.fov.south", name: "Southern Hemisphere", 
              href: "/fov/south.html"};
fov.item.push(menuitem);

info.item.push(fov);

var inventory={id: "info.inventory", name: "Data Inventory"};
inventory.item=new Array();

var menuitem={id: "info.inventory.north", name: "Northern Hemisphere",
              href: "/inventory/north.html"};
inventory.item.push(menuitem);
var menuitem={id: "info.inventory.south", name: "Southern Hemisphere",
              href: "/inventory/south.html"};
inventory.item.push(menuitem);

info.item.push(inventory);

var menuitem={id: "info.data", name: "Getting Data", href: "/data/index.html"};
info.item.push(menuitem);

var database={id: "info.database", name: "Databases"};
database.item=new Array();

var menuitem={id: "info.database.directory", name: "Personnel Directory", 
              href: "/database/directory/index.html"};
database.item.push(menuitem);

var menuitem={id: "info.database.publication", name: "Publication List", 
              href: "/database/publication/index.html"};
database.item.push(menuitem);

var menuitem={id: "info.database.thesis", name: "Dissertations and Theses", 
              href: "/database/thesis/index.html"};
database.item.push(menuitem);

info.item.push(database);

/* Real-Time sub-menu */

var cnvmap={id: "rt.cnvmap", name: "Global Convection Maps"};
cnvmap.item=new Array();

var menuitem={id: "rt.cnvmap.ge", name: "Google Maps", 
              href: "/rt/cnvmap-ge/index.html"};
cnvmap.item.push(menuitem);

var menuitem={id: "rt.cnvmap.standard", name: "Standard", 
              href: "/rt/cnvmap/index.html"};
cnvmap.item.push(menuitem);

var menuitem={id: "rt.cnvmap.movie", name: "Movie", 
              href: "/rt/movie/index.html"};
cnvmap.item.push(menuitem);

rt.item.push(cnvmap);

var menuitem={id: "rt.java", name: "Real-time Display", 
              href: "/rt/java/index.html"};
rt.item.push(menuitem);

var menuitem={id: "rt.status", name: "Connection Status", 
              href: "/rt/status.html"};
rt.item.push(menuitem);

/* Data Archive sub-menu */

var cnvmap={id: "archive.cnvmap", name: "Global Convection Maps"};
cnvmap.item=new Array();

var menuitem={id: "archive.cnvmap.north", name: "Northern Hemisphere", 
              href: "/archive/cnvmap.north.html"};
cnvmap.item.push(menuitem);
var menuitem={id: "archive.cnvmap.south", name: "Southern Hemisphere", 
              href: "/archive/cnvmap.south.html"};
cnvmap.item.push(menuitem);

archive.item.push(cnvmap);



var movie={id: "archive.movie", name: "Global Convection Movies"};
movie.item=new Array();

var menuitem={id: "archive.movie.north", name: "Northern Hemisphere", 
              href: "/archive/cnvmap-movie.north.html"};
movie.item.push(menuitem);
var menuitem={id: "archive.movie.south", name: "Southern Hemisphere", 
              href: "/archive/cnvmap-movie.south.html"};
movie.item.push(menuitem);

archive.item.push(movie);



var time={id: "archive.time", name: "Time Series"};
time.item=new Array();

var menuitem={id: "archive.time.north", name: "Northern Hemisphere", 
              href: "/archive/time.north.html"};
time.item.push(menuitem);
var menuitem={id: "archive.time.south", name: "Southern Hemisphere", 
              href: "/archive/time.south.html"};
time.item.push(menuitem);

archive.item.push(time);


var field={id: "archive.field", name: "Field of View"};
field.item=new Array();

var menuitem={id: "archive.field.north", name: "Northern Hemisphere", 
              href: "/archive/field.north.html"};
field.item.push(menuitem);
var menuitem={id: "archive.field.south", name: "Southern Hemisphere", 
              href: "/archive/field.south.html"};
field.item.push(menuitem);

archive.item.push(field);




/* Data Processing sub-menu */

var log={id: "process.log", name: "Logs"};
log.item=new Array();

var menuitem={id: "process.log.bks", name: "Blackstone (bks)",
              href: "/report/txt/bks"};
log.item.push(menuitem);

var menuitem={id: "process.log.fhe", name: "Fort Hayes East(fhe)",
              href: "/report/txt/fhe"};
log.item.push(menuitem);

var menuitem={id: "process.log.fhw", name: "Fort Hayes West (fhw)",
              href: "/report/txt/fhw"};
log.item.push(menuitem);

var menuitem={id: "process.log.fir", name: "Falkland Islands (fir)",
              href: "/report/txt/fir"};
log.item.push(menuitem);

var menuitem={id: "process.log.gbr", name: "Goose Bay(gbr)",
              href: "/report/txt/gbr"};
log.item.push(menuitem);

var menuitem={id: "process.log.han", name: "Hankasalmi (han)",
              href: "/report/txt/han"};
log.item.push(menuitem);

var menuitem={id: "process.log.hok", name: "Hokkaido (hok)",
              href: "/report/txt/hok"};
log.item.push(menuitem);

var menuitem={id: "process.log.inv", name: "Inuvik (inv)",
              href: "/report/txt/inv"};
log.item.push(menuitem);

var menuitem={id: "process.log.kap", name: "Kapuskasing (kap)",
              href: "/report/txt/kap"};
log.item.push(menuitem);

var menuitem={id: "process.log.kod", name: "Kodiak (kod)",
              href: "/report/txt/kod"};
log.item.push(menuitem);

var menuitem={id: "process.log.ksr", name: "King Salmon (ksr)",
              href: "/report/txt/ksr"};
log.item.push(menuitem);

var menuitem={id: "process.log.pgr", name: "Prince George (pgr)",
              href: "/report/txt/pgr"};
log.item.push(menuitem);

var menuitem={id: "process.log.pyk", name: "Pykkvibaer (pyk)",
              href: "/report/txt/pyk"};
log.item.push(menuitem);

var menuitem={id: "process.log.rkn", name: "Rankin (rkn)",
              href: "/report/txt/rkn"};
log.item.push(menuitem);


var menuitem={id: "process.log.san", name: "Sanae (san)",
              href: "/report/txt/san"};
log.item.push(menuitem);

var menuitem={id: "process.log.sas", name: "Saskatoon (sas)",
              href: "/report/txt/sas"};
log.item.push(menuitem);

var menuitem={id: "process.log.sto", name: "Stokkseyri (sto)",
              href: "/report/txt/sto"};
log.item.push(menuitem);

var menuitem={id: "process.log.sye", name: "Syowa East (sye)",
              href: "/report/txt/sye"};
log.item.push(menuitem);

var menuitem={id: "process.log.sys", name: "Syowa South (sys)",
              href: "/report/txt/sys"};
log.item.push(menuitem);

var menuitem={id: "process.log.tig", name: "TIGER Bruny (tig)",
              href: "/report/txt/tig"};
log.item.push(menuitem);


var menuitem={id: "process.log.unw", name: "TIGER Unwin (unw)",
              href: "/report/txt/unw"};
log.item.push(menuitem);

var menuitem={id: "process.log.wal", name: "Wallops Island (wal)",
              href: "/report/txt/wal"};
log.item.push(menuitem);

process.item.push(log);

var chart={id: "process.chart", name: "Charts"};
chart.item=new Array();

var menuitem={id: "process.chart.root", name: "All Stations",
              href: "/report/root.html"};
chart.item.push(menuitem);

var menuitem={id: "sep", text: "<hr>"};
chart.item.push(menuitem);

var menuitem={id: "process.chart.bks", name: "Blackstone (bks)",
              href: "/report/bks.html"};
chart.item.push(menuitem);

var menuitem={id: "process.chart.fhe", name: "Fort Hayes East(fhe)",
              href: "/report/fhe.html"};
chart.item.push(menuitem);

var menuitem={id: "process.chart.fhw", name: "Fort Hayes West (fhw)",
              href: "/report/fhw.html"};
chart.item.push(menuitem);

var menuitem={id: "process.chart.fir", name: "Falkland Islands (fir)",
              href: "/report/fir.html"};
chart.item.push(menuitem);


var menuitem={id: "process.chart.gbr", name: "Goose Bay(gbr)",
              href: "/report/gbr.html"};
chart.item.push(menuitem);

var menuitem={id: "process.chart.han", name: "Hankasalmi (han)",
              href: "/report/han.html"};
chart.item.push(menuitem);

var menuitem={id: "process.chart.hok", name: "Hokkaido (hok)",
              href: "/report/hok.html"};
chart.item.push(menuitem);

var menuitem={id: "process.chart.inv", name: "Inuvik (inv)",
              href: "/report/inv.html"};
chart.item.push(menuitem);


var menuitem={id: "process.chart.kap", name: "Kapuskasing (kap)",
              href: "/report/kap.html"};
chart.item.push(menuitem);

var menuitem={id: "process.chart.kod", name: "Kodiak (kod)",
              href: "/report/kod.html"};
chart.item.push(menuitem);

var menuitem={id: "process.chart.ksr", name: "King Salmon (ksr)",
              href: "/report/ksr.html"};
chart.item.push(menuitem);

var menuitem={id: "process.chart.pgr", name: "Prince George (pgr)",
              href: "/report/pgr.html"};
chart.item.push(menuitem);

var menuitem={id: "process.chart.pyk", name: "Pykkvibaer (pyk)",
              href: "/report/pyk.html"};
chart.item.push(menuitem);


var menuitem={id: "process.chart.rkn", name: "Rankin (rkn)",
              href: "/report/rkn.html"};
chart.item.push(menuitem);

var menuitem={id: "process.chart.san", name: "Sanae (san)",
              href: "/report/san.html"};
chart.item.push(menuitem);



var menuitem={id: "process.chart.sas", name: "Saskatoon (sas)",
              href: "/report/sas.html"};
chart.item.push(menuitem);

var menuitem={id: "process.chart.sto", name: "Stokkseyri (sto)",
              href: "/report/sto.html"};
chart.item.push(menuitem);

var menuitem={id: "process.chart.sye", name: "Syowa East (sye)",
              href: "/report/sye.html"};
chart.item.push(menuitem);

var menuitem={id: "process.chart.sys", name: "Syowa South (sys)",
              href: "/report/sys.html"};
chart.item.push(menuitem);

var menuitem={id: "process.chart.tig", name: "TIGER Bruny (tig)",
              href: "/report/tig.html"};
chart.item.push(menuitem);

var menuitem={id: "process.chart.unw", name: "TIGER Unwin (unw)",
              href: "/report/unw.html"};
chart.item.push(menuitem);


var menuitem={id: "process.chart.wal", name: "Wallops Island (wal)",
              href: "/report/wal.html"};
chart.item.push(menuitem);


process.item.push(chart);

/* Resources sub-menu */

var menuitem={id: "resource.software", name: "Software Archive", href: "/software/index.html"};
resource.item.push(menuitem);


var menuitem={id: "resource.documentation", name: "Documentation", href: "/doc/index.html"};
resource.item.push(menuitem);


var menuitem={id: "resource.tutorial", name: "Tutorials", href: "/tutorial/index.html"};
resource.item.push(menuitem);



var developer={id: "resource.developer", name: "Developer"};
developer.item=new Array();

var menuitem={id: "resource.developer.gitweb", name: "Git Web",
              href: "/cgi-bin/gitweb.cgi"};
developer.item.push(menuitem);

var menuitem={id: "resource.developer.gitweb", name: "Hardware Tables",
              href: "/devel/tables/superdarn/hdw"};
developer.item.push(menuitem);


resource.item.push(developer);


/* Assemble menubar */

menubar.item.push(home);
menubar.item.push(info);
menubar.item.push(rt);
menubar.item.push(archive);
menubar.item.push(process);
menubar.item.push(resource);

