// Definition of Categories for NRAO Image Gallery 
// NOTE: the category types are duplicated in RelMenu.html, with an
// additional "Any" subcategory for each category array.

var Galaxy = new Array(
           "Spiral",
           "Early-type",
           "Dwarf",
           "Peculiar",
           "Clusters"
);
var AGN    = new Array(
           "Quasars",
           "Radio_Galaxies",
           "Seyferts",
           "Other_AGN"
);
var Galactic_Sources = new Array(
           "Black_Holes",
           "Galactic_Center",
           "Galactic_Halo",
           "Planetary_Nebula",
           "Pulsars_Neutron_Stars",
           "Supernova",
           "Supernova_Remnants",
           "Stars",
           "Star_Forming_Regions"
);
var Solar_System = new Array(
           "Sun",
           "Moons",
           "Planets",
           "Asteroids",
	   "Comets"
);
var Miscellaneous = new Array(
           "Astrochemistry",
	   "Cosmology",
           "Gravitational_Lensing",
	   "Gamma-Ray_Bursters",
           "Protoplanetary_Disks",
	   "Surveys",
	   "Image_Compositions"
);
var Telescopes = new Array(
           "ALMA",
           "EVLA",
           "GBT",
           "VLA",
           "VLBA",
           "12m",
           "140ft",
           "Other"
);
var ALMA_Project = new Array(
           "Science",
           "Technology",
           "AOS",
           "OSF"
);
var Historical = new Array(
           "Pioneers",
           "Telescopes"
);
var spectral_line =  new Array(
          "HI / 1420.4 MHz / 21 cm",
	  "OH",
	  "CO",
          "NH3",
          "other"
);

var continuum = new Array(
          "4 band /  74 MHz / 400 cm",
          "P band / 330 MHz / 90 cm",
          "PF1 band / 450 MHz / 60 cm",
          "PF1 band / 600 MHz / 50 cm",
          "PF1 band / 800 MHz / 36 cm",
          "PF2 band / 1.0 GHz / 28 cm",
          "L band / 1.4 GHz / 20 cm",
          "L band / 1.6 GHz / 18 cm",
          "S band / 2.2 GHz / 13 cm",
          "C band / 5.0 GHz / 6 cm",
          "X band / 8.4 GHz / 3.6 cm",
          "U band / 15 GHz / 2.0 cm",
          "K band / 22 GHz / 1.3 cm",
          "Q band / 45 GHz / 7 mm",
          "W band / 85 GHz / 3 mm",
	  "other"
);


function swapOptions(the_array_name)
{
   var numbers_select = window.document.the_form.subclass;
   var the_array = eval(the_array_name);
// window.document.the_form.subclass.selectedindex=2;
   setOptionText(window.document.the_form.subclass, the_array);
}

function setOptionText(the_select, the_array)
{  var maxlength = the_array.length;
	the_select.options.length=maxlength;
	for (loop=0; loop < maxlength; loop++)
   {
      	the_select.options[loop].text = the_array[loop];
    }
}


function swapModeOptions(the_array_name1)
{
   var numbers_select1 = window.document.the_form.band_array;
   var the_array1 = eval(the_array_name1);
// window.document.the_form.subclass.selectedindex=2;
   setModeOptionText(window.document.the_form.band_array, the_array1);
}

function setModeOptionText(the_select, the_array1)
{	var maxlength = the_array1.length;
	the_select.options.length=maxlength;
   for (loop=0; loop < the_select.options.length; loop++)
   {
      the_select.options[loop].text = the_array1[loop];
    }
}
