var homedir;
if(window.location.pathname.search(/work/) == -1) {
  homedir = "/ngmdb/";
  cgidir = "/ngm-bin/";
}else {
  homedir = "/ngmdb_work/";
  cgidir = "/ngmwork-bin/";
}
//alert(homedir);
var Button = new Array();
Button[1] = new Image();
Button[1].src = "/gifs/ngmdb_info_glow.gif";
//alert(Button[1].src);
Button[2] = new Image();
Button[2].src = "/gifs/geolex_glow.gif";
Button[3] = new Image();
Button[3].src = "/gifs/mapimagelib_l_glow.gif";
Button[4] = new Image();
Button[4].src = "/gifs/newmapping_glow.gif";
Button[5] = new Image();
Button[5].src = "/gifs/home_glow.gif";
Button[6] = new Image();
Button[6].src = "/gifs/ngm_Help_glow.gif";
Button[7] = new Image();
Button[7].src = "/gifs/placename_glow.gif";
Button[8] = new Image();
Button[8].src = "/gifs/statemap_glow.gif";
Button[9] = new Image();
Button[9].src = "/gifs/quick_glow.gif";
Button[10] = new Image();
Button[10].src = "/gifs/comprehensive_glow.gif";
Button[11] = new Image();
Button[11].src = "/gifs/mapcatalog_l_glow.gif";
Button[12] = new Image();
Button[12].src = "/gifs/geolex_l_glow.gif";
Button[14] = new Image();
Button[14].src = "/gifs/newmapping_l_glow.gif";
Button[15] = new Image();
Button[15].src = "/gifs/home_l_glow.gif";
Button[17] = new Image();
Button[17].src = "/gifs/placename_l_glow.gif";
Button[18] = new Image();
Button[18].src = "/gifs/statemap_l_glow.gif";
Button[19] = new Image();
Button[19].src = "/gifs/quick_l_glow.gif";
Button[20] = new Image();
Button[20].src = "/gifs/comprehensive_l_glow.gif";

var helpwinobj;
var defwinobj;
var statwinobj;
function creatwin(winobj, winnam, winurl)
{
  winobj = window.open(winurl, winnam,
     "height=400,width=715,scrollbars,resizable,menubar," +
     "toolbar=yes,location=yes,status");
  winobj.focus();
}
