function bookmark(url,title){
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
  window.external.AddFavorite(url,title);
  } else if (navigator.appName == "Netscape") {
    window.sidebar.addPanel(title,url,"");
  } else {
    alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
  }
}

function update(catty, statty, b_all) { 
	clear(statty);

	// alert("hello " + catty.options[catty.selectedIndex].text); 
	switch (catty.options[catty.selectedIndex].text) {
		case "Select Category":
			var ids = new Array('');
			var wss = new Array('^ ^ ^ ^ ^ ^ ^ ^');
			break;
    case "":
      var ids = new Array(' ','','-more');
      var wss = new Array('Select  Stat','','... more  stats');
      break; 
    case 'Background':
      var ids = new Array('','bac_chi_age_05_who_are_rea_to_eve_day_per-who-read-every-day-percentage','bac_chi_who_att_rel_ser_wee_per-attend-religious-services-weekly-percentage','bac_dat_of_joi-background-date-of-join','bac_sum-background-landscapes-and-history','bac_nor_ame_are_cod_cod-background-north-american-area-codes','bac_bac-background-people-and-politics','bac_us_pos_abb_fip_sta_cod-postal-abbreviations-fips-state-code','bac-more');
      var wss = new Array('Select Background Stat','Children Ages 0-5 Who Are Read To Every Day, Percentage *','Children Who Attend Religious Services Weekly, Percentage','Date of join','Landscapes and History','North American area codes > Codes','People and Politics','US postal abbreviations > FIPS State Code','... more Background Stats');
      break;
    case 'Crime':
      var ids = new Array('','cri_hig_sch_stu_car_a_wea_on_sch_pro_2003-students-carrying-weapon-property-2003','cri_hig_sch_stu_car_a_wea_on_sch_pro_2005-students-carrying-weapon-property-2005','cri_hig_sch_stu_thr_or_inj_by_a_wea_2003-students-threatened-injured-weapon-2003','cri_hig_sch_stu_thr_or_inj_by_a_wea_2005-students-threatened-injured-weapon-2005','cri_agg_ass-crime-aggravated-assault','cri_ars_dea-crime-arson-deaths','cri_bur-crime-burglary','cri_cap_off-crime-capital-offenses','cri_cap_pun_bla_inm_on_dea_row-punishment-black-inmates-death-row','cri_cap_pun_ele-crime-capital-punishment-electrocution','cri_cap_pun_lat_inm_on_dea_row-punishment-latino-inmates-death-row','cri_cap_pun_let_inj-crime-capital-punishment-lethal-injection','cri_cap_pun_tot_exe-punishment-total-executions-1977-2006','cri_cap_pun_tot_exe_200-capital-punishment-total-executions-2007','cri_cap_pun_tot_exe_sin_193-punishment-total-executions-since-1930','cri_cap_pun_tot_inm_on_dea_row-punishment-total-inmates-death-row','cri_cap_pun_whi_inm_on_dea_row-punishment-white-inmates-death-row','cri_mur_wit_fir-death-rate-per-100-000','cri_for_rap-crime-forcible-rape','cri_gun_vio_gun-crime-gun-violence','cri_gun_vio_kni-crime-gun-violence-knife','cri_gun_vio_oth_wea-crime-gun-violence-other-weapons','cri_gun_vio_num_of_hom-crime-gun-violence-number-homicides','cri_hat_cri_dis_rel-crime-hate-crimes-disability-related','cri_hat_cri_eth_rel-crime-hate-crimes-ethnicity-related','cri_hat_cri_rac_rel-crime-hate-crimes-race-related','cri_hat_cri_rel_rel-crime-hate-crimes-religion-related','cri_hat_cri_sex_ori_rel-hate-crimes-sexual-orientation-related','cri_hat_cri_tot_num-crime-hate-crimes-total-number','cri_hom_tot_num_of_vic-crime-homicide-total-number-victims','cri_hom_vic_by_age_141-homicide-victims-age-14-17','cri_hom_vic_by_age_182-homicide-victims-age-18-24','cri_hom_vic_by_age_253-homicide-victims-age-25-34','cri_hom_vic_by_age_354-homicide-victims-age-35-49','cri_hom_vic_by_age_506-homicide-victims-age-50-64','cri_hom_vic_by_age_65_and_abo-homicide-victims-age-65-above','cri_hom_vic_by_age_und_14-homicide-victims-age-under-14','cri_hom_vic_by_bla_fem-crime-homicide-victims-black-female','cri_hom_vic_by_bla_mal-crime-homicide-victims-black-male','cri_hom_vic_by_oth_fem-crime-homicide-victims-other-female','cri_hom_vic_by_oth_mal-crime-homicide-victims-other-male','cri_hom_vic_by_rac_bla-crime-homicide-victims-race-black','cri_hom_vic_by_rac_oth-crime-homicide-victims-race-other','cri_hom_vic_by_rac_whi-crime-homicide-victims-race-white','cri_hom_vic_by_sex_fem-crime-homicide-victims-sex-female','cri_hom_vic_by_sex_mal-crime-homicide-victims-sex-male','cri_hom_vic_by_wea_gun-crime-homicide-victims-weapon-gun','cri_hom_vic_by_wea_kni-crime-homicide-victims-weapon-knife','cri_hom_vic_by_wea_oth_wea-homicide-victims-weapon-other-weapons','cri_hom_vic_by_whi_fem-crime-homicide-victims-white-female','cri_hom_vic_by_whi_mal-crime-homicide-victims-white-male','cri_juv_sui_to_hom_vic_rat-juvenile-suicide-homicide-victim-ratio','cri_lar-crime-larceny-theft','cri_lyn_bla-crime-lynchings-black','cri_lyn_bla_percap-crime-lynchings-black-per-capita','cri_lyn_tot-crime-lynchings-total','cri_lyn_tot_percap-crime-lynchings-total-per-capita','cri_lyn_whi-crime-lynchings-white','cri_lyn_whi_percap-crime-lynchings-white-per-capita','cri_mot_veh_the-crime-motor-vehicle-theft','cri_mur_and_non_man-crime-murder-and-nonnegligent-manslaughter','cri_mur_and_non_man_on_col_and_uni_cam-nonnegligent-manslaughter-college-university-campuses','cri_pri_und_the_jur_of_sta_or_fed_cor_aut-jurisdiction-state-federal-correctional-authorities','cri_pri_und_the_jur_of_sta_or_fed_cor_aut_percap-federal-correctional-authorities-per-capita','cri_pro_cri_tot-crime-property-total','cri_rob-crime-robbery','cri_sta_and_fed_pri_hel_in_loc_jai-federal-prisoners-held-local-jails','cri_sta_and_fed_pri_hel_in_loc_jai_percap-held-local-jails-per-capita','cri_sta_and_fed_pri_hel_in_pri_fac-federal-prisoners-held-private-facilities','cri_sta_and_fed_pri_hel_in_pri_fac_percap-held-private-facilities-per-capita','cri_sta_pri_num_of_dea-crime-state-prisoners-number-deaths','cri_sta_pri_num_of_dea_percap-prisoners-number-deaths-per-capita','cri_sta_pri_num_of_hom-crime-state-prisons-number-homicides','cri_sta_pri_num_of_hom_percap-prisons-number-homicides-per-capita','cri_sta_pri_num_of_sui-crime-state-prisons-number-suicides','cri_sta_pri_num_of_sui_percap-prisons-number-suicides-per-capita','cri_sto_and_ide_sta_sta_wit_quo_and_ide_sta-stop-identify-statutes-states-quot','cri_ter_vic_of_911-crime-terrorism-victims-9-11','cri_vio_cri-crime-violent','cri_wom_und_the_jur_of_sta_or_fed_cor_aut-jurisdiction-state-federal-correctional-authorities','cri_wom_und_the_jur_of_sta_or_fed_cor_aut_percap-federal-correctional-authorities-per-capita','cri-more');
      var wss = new Array('Select Crime Stat','% High school students carrying a weapon on school property, 2003 *','% High school students carrying a weapon on school property, 2005 *','% High school students threatened or injured by a weapon, 2003 *','% High school students threatened or injured by a weapon, 2005 *','Aggravated assault *','Arson deaths *','Burglary *','Capital offenses','Capital Punishment > Black inmates on death row *','Capital Punishment > Electrocution *','Capital Punishment > Latino inmates on death row *','Capital Punishment > Lethal injection *','Capital Punishment > Total executions 1977-2006 *','Capital Punishment > Total executions 2007 *','Capital Punishment > Total executions since 1930 *','Capital Punishment > Total inmates on death row *','Capital Punishment > White inmates on death row *','Firearms Death Rate per 100,000 *','Forcible rape *','Gun violence > % Gun *','Gun violence > % Knife *','Gun violence > % Other Weapons *','Gun violence > Number of homicides *','Hate Crimes > Disability related *','Hate Crimes > Ethnicity related *','Hate Crimes > Race related *','Hate Crimes > Religion related *','Hate Crimes > Sexual orientation related *','Hate Crimes > Total number *','Homicide > Total number of victims *','Homicide > Victims by Age > 14-17 *','Homicide > Victims by Age > 18-24 *','Homicide > Victims by Age > 25-34 *','Homicide > Victims by Age > 35-49 *','Homicide > Victims by Age > 50-64 *','Homicide > Victims by Age > 65 and above *','Homicide > Victims by Age > Under 14 *','Homicide > Victims by Black Female *','Homicide > Victims by Black Male *','Homicide > Victims by Other Female *','Homicide > Victims by Other Male *','Homicide > Victims by Race > Black *','Homicide > Victims by Race > Other *','Homicide > Victims by Race > White *','Homicide > Victims by Sex > Female *','Homicide > Victims by Sex > Male *','Homicide > Victims by Weapon > Gun *','Homicide > Victims by Weapon > Knife *','Homicide > Victims by Weapon > Other Weapons *','Homicide > Victims by White Female *','Homicide > Victims by White Male *','Juvenile suicide to homicide victim ratio *','Larceny-theft *','Lynchings > Black *','Lynchings > Black (per capita) *','Lynchings > Total *','Lynchings > Total (per capita) *','Lynchings > White *','Lynchings > White (per capita) *','Motor vehicle theft *','Murder and nonnegligent manslaughter *','Murder and nonnegligent manslaughter on college and university campuses *','Prisoners under the jurisdiction of State or Federal correctional authorities *','Prisoners under the jurisdiction of State or Federal correctional authorities (per capita) *','Property crime total *','Robbery *','State and Federal prisoners held in local jails *','State and Federal prisoners held in local jails (per capita) *','State and Federal prisoners held in private facilities *','State and Federal prisoners held in private facilities (per capita) *','State Prisoners > Number of deaths *','State Prisoners > Number of deaths (per capita) *','State Prisons > Number of Homicides *','State Prisons > Number of Homicides (per capita) *','State Prisons > Number of Suicides *','State Prisons > Number of Suicides (per capita) *','Stop and Identify statutes > States with &quot;Stop and Identify&quot; statutes','Terrorism > Victims of 9-11 *','Violent crime *','Women under the jurisdiction of State or Federal correctional authorities *','Women under the jurisdiction of State or Federal correctional authorities (per capita) *','... more Crime Stats');
      break;
    case 'Economy':
      var ids = new Array('','eco_ban_fil-economy-bankruptcy-filings','eco_ban_fil_percap-economy-bankruptcy-filings-per-capita','eco_ban_fil_200-economy-bankruptcy-filings-2000-2005','eco_ban_fil_200_percap-filings-2000-2005-per-capita','eco_eco_gro-economy-economic-growth','eco_emp-economy-employment','eco_fed_tax_rev_rev_per_cap-federal-tax-revenue-per-capita','eco_gdp-gross-state-product-current-dollars','eco_gdp_percap-product-current-dollars-per-capita','eco_gsp_cha_qua_ind_acc-chain-type-quantity-indexes-accommodation','eco_gsp_cha_qua_ind_adm_and_sup_ser-quantity-indexes-administrative-support-services','eco_gsp_cha_qua_ind_air_tra-type-quantity-indexes-air-transportation','eco_gsp_cha_qua_ind_amb_hea_car_ser-indexes-ambulatory-health-care-services','eco_gsp_cha_qua_ind_amu_gam_and_rec-quantity-indexes-amusements-gambling-recreation','eco_gsp_cha_qua_ind_app_man-type-quantity-indexes-apparel-manufacturing','eco_gsp_cha_qua_ind_bro_and_tel-type-quantity-indexes-broadcasting-telecommunications','eco_gsp_cha_qua_ind_che_man-type-quantity-indexes-chemical-manufacturing','eco_gsp_cha_qua_ind_com_and_ele_pro_man-indexes-computer-electronic-product-manufacturing','eco_gsp_cha_qua_ind_com_sys_des_and_rel_ser-computer-systems-design-related-services','eco_gsp_cha_qua_ind_con-chain-type-quantity-indexes-construction','eco_gsp_cha_qua_ind_cro_and_ani_pro_far-indexes-crop-animal-production-farms','eco_gsp_cha_qua_ind_edu_ser-type-quantity-indexes-educational-services','eco_gsp_cha_qua_ind_ele_equ_and_app_man-indexes-electrical-equipment-appliance-manufacturing','eco_gsp_cha_qua_ind_fab_met_pro_man-indexes-fabricated-metal-product-manufacturing','eco_gsp_cha_qua_ind_fed_civ-type-quantity-indexes-federal-civilian','eco_gsp_cha_qua_ind_fed_mil-type-quantity-indexes-federal-military','eco_gsp_cha_qua_ind_fed_res_ban_cre_int_and_rel_ser-banks-credit-intermediation-related-services','eco_gsp_cha_qua_ind_foo_pro_man-quantity-indexes-food-product-manufacturing','eco_gsp_cha_qua_ind_foo_ser_and_dri_pla-indexes-food-services-drinking-places','eco_gsp_cha_qua_ind_for_fis_and_rel_act-indexes-forestry-fishing-related-activities','eco_gsp_cha_qua_ind_fun_tru_and_oth_fin_veh-funds-trusts-other-financial-vehicles','eco_gsp_cha_qua_ind_fur_and_rel_pro_man-indexes-furniture-related-product-manufacturing','eco_gsp_cha_qua_ind_hos_and_nur_and_res_car_fac-hospitals-nursing-residential-care-facilities','eco_gsp_cha_qua_ind_inf_and_dat_pro_ser-indexes-information-data-processing-services','eco_gsp_cha_qua_ind_ins_car_and_rel_act-indexes-insurance-carriers-related-activities','eco_gsp_cha_qua_ind_leg_ser-type-quantity-indexes-legal-services','eco_gsp_cha_qua_ind_mac_man-type-quantity-indexes-machinery-manufacturing','eco_gsp_cha_qua_ind_man_of_com_and_ent-quantity-indexes-management-companies-enterprises','eco_gsp_cha_qua_ind_min_exc_oil_and_gas-indexes-mining-except-oil-gas','eco_gsp_cha_qua_ind_mis_man-type-quantity-indexes-miscellaneous-manufacturing','eco_gsp_cha_qua_ind_mot_pic_and_sou_rec_ind-motion-picture-sound-recording-industries','eco_gsp_cha_qua_ind_mot_veh_bod_tra_and_par_man-vehicle-body-trailer-parts-manufacturing','eco_gsp_cha_qua_ind_non_min_pro_man-indexes-nonmetallic-mineral-product-manufacturing','eco_gsp_cha_qua_ind_oil_and_gas_ext-quantity-indexes-oil-gas-extraction','eco_gsp_cha_qua_ind_oth_pro_sci_and_tec_ser-other-professional-scientific-technical-services','eco_gsp_cha_qua_ind_oth_ser_exc_gov-indexes-other-services-except-government','eco_gsp_cha_qua_ind_oth_tra_and_sup_act-indexes-other-transportation-support-activities','eco_gsp_cha_qua_ind_oth_tra_equ_man-indexes-other-transportation-equipment-manufacturing','eco_gsp_cha_qua_ind_pap_man-type-quantity-indexes-paper-manufacturing','eco_gsp_cha_qua_ind_per_art_mus_and_rel_act-performing-arts-museums-related-activities','eco_gsp_cha_qua_ind_pet_and_coa_pro_man-indexes-petroleum-coal-products-manufacturing','eco_gsp_cha_qua_ind_pip_tra-type-quantity-indexes-pipeline-transportation','eco_gsp_cha_qua_ind_pla_and_rub_pro_man-indexes-plastics-rubber-products-manufacturing','eco_gsp_cha_qua_ind_pri_met_man-quantity-indexes-primary-metal-manufacturing','eco_gsp_cha_qua_ind_pri_and_rel_sup_act-indexes-printing-related-support-activities','eco_gsp_cha_qua_ind_pub_inc_sof-quantity-indexes-publishing-including-software','eco_gsp_cha_qua_ind_rai_tra-type-quantity-indexes-rail-transportation','eco_gsp_cha_qua_ind_rea_est-type-quantity-indexes-real-estate','eco_gsp_cha_qua_ind_ren_and_lea_ser_and_les_of_int_ass-leasing-services-lessors-intangible-assets','eco_gsp_cha_qua_ind_ret_tra-type-quantity-indexes-retail-trade','eco_gsp_cha_qua_ind_sec_com_con_inv-indexes-securities-commodity-contracts-investments','eco_gsp_cha_qua_ind_soc_ass-type-quantity-indexes-social-assistance','eco_gsp_cha_qua_ind_sta_and_loc-type-quantity-indexes-state-local','eco_gsp_cha_qua_ind_sup_act_for_min-quantity-indexes-support-activities-mining','eco_gsp_cha_qua_ind_tex_and_tex_pro_mil-quantity-indexes-textile-product-mills','eco_gsp_cha_qua_ind_tra_and_gro_pas_tra-indexes-transit-ground-passenger-transportation','eco_gsp_cha_qua_ind_tru_tra-type-quantity-indexes-truck-transportation','eco_gsp_cha_qua_ind_uti-chain-type-quantity-indexes-utilities','eco_gsp_cha_qua_ind_war_and_sto-type-quantity-indexes-warehousing-storage','eco_gsp_cha_qua_ind_was_man_and_rem_ser-indexes-waste-management-remediation-services','eco_gsp_cha_qua_ind_wat_tra-type-quantity-indexes-water-transportation','eco_gsp_cha_qua_ind_who_tra-type-quantity-indexes-wholesale-trade','eco_gsp_cha_qua_ind_woo_pro_man-quantity-indexes-wood-product-manufacturing','eco_gsp_com_of_emp_acc-economy-gsp-compensation-employees-accommodation','eco_gsp_com_of_emp_adm_and_sup_ser-compensation-employees-administrative-support-services','eco_gsp_com_of_emp_air_tra-gsp-compensation-employees-air-transportation','eco_gsp_com_of_emp_amb_hea_car_ser-employees-ambulatory-health-care-services','eco_gsp_com_of_emp_amu_gam_and_rec-compensation-employees-amusements-gambling-recreation','eco_gsp_com_of_emp_app_man-gsp-compensation-employees-apparel-manufacturing','eco_gsp_com_of_emp_bro_and_tel-gsp-compensation-employees-broadcasting-telecommunications','eco_gsp_com_of_emp_che_man-gsp-compensation-employees-chemical-manufacturing','eco_gsp_com_of_emp_com_and_ele_pro_man-employees-computer-electronic-product-manufacturing','eco_gsp_com_of_emp_com_sys_des_and_rel_ser-computer-systems-design-related-services','eco_gsp_com_of_emp_con-economy-gsp-compensation-employees-construction','eco_gsp_rea_gsp_woo_pro_man_pergdp-wood-product-manufacturing-per-gdp','eco_med_ear_for_mal_ful_yea_wor-full-time-year-round-workers','eco_med_fam_inc-economy-median-family-income','eco_med_hou_inc-economy-median-household-income','eco_nes_egg_ind-economy-nest-egg-index','eco_per_bel_pov_lev-economy-percent-below-poverty-level','eco_per_of_chi_bel_pov_lev-percent-children-below-poverty-level','eco_per_of_hou_wit_ret_inc-economy-percent-households-retirement-income','eco_per_of_peo_65_yea_and_ove_bel_pov_lev-years-over-below-poverty-level','eco_per_of_rel_chi_bel_pov_lev-related-children-below-poverty-level','eco_per_inc-economy-personal-income','eco_per_inc_percap-economy-personal-income-per-capita','eco_tol_tax_bur-economy-total-tax-burden','eco_tol_tax_bur_pergdp-total-tax-burden-per-gdp','eco_tot_tax_bur-total-tax-burden-per-capita','eco_une_rat-economy-unemployment-rate','eco-more');
      var wss = new Array('Select Economy Stat','Bankruptcy filings *','Bankruptcy filings (per capita) *','Bankruptcy Filings 2000-2005 *','Bankruptcy Filings 2000-2005 (per capita) *','Economic Growth *','Employment *','Federal tax revenue > Revenue per capita *','Gross State Product > Current Dollars *','Gross State Product > Current Dollars (per capita) *','GSP > Chain-type Quantity Indexes > Accommodation *','GSP > Chain-type Quantity Indexes > Administrative and support services *','GSP > Chain-type Quantity Indexes > Air transportation *','GSP > Chain-type Quantity Indexes > Ambulatory health care services *','GSP > Chain-type Quantity Indexes > Amusements, gambling, and recreation *','GSP > Chain-type Quantity Indexes > Apparel manufacturing *','GSP > Chain-type Quantity Indexes > Broadcasting and telecommunications *','GSP > Chain-type Quantity Indexes > Chemical manufacturing *','GSP > Chain-type Quantity Indexes > Computer and electronic product manufacturing *','GSP > Chain-type Quantity Indexes > Computer systems design and related services *','GSP > Chain-type Quantity Indexes > Construction *','GSP > Chain-type Quantity Indexes > Crop and animal production (Farms) *','GSP > Chain-type Quantity Indexes > Educational services *','GSP > Chain-type Quantity Indexes > Electrical equipment and appliance manufacturing *','GSP > Chain-type Quantity Indexes > Fabricated metal product manufacturing *','GSP > Chain-type Quantity Indexes > Federal civilian *','GSP > Chain-type Quantity Indexes > Federal military *','GSP > Chain-type Quantity Indexes > Federal Reserve banks, credit intermediation and related services *','GSP > Chain-type Quantity Indexes > Food product manufacturing *','GSP > Chain-type Quantity Indexes > Food services and drinking places *','GSP > Chain-type Quantity Indexes > Forestry, fishing, and related activities *','GSP > Chain-type Quantity Indexes > Funds, trusts, and other financial vehicles *','GSP > Chain-type Quantity Indexes > Furniture and related product manufacturing *','GSP > Chain-type Quantity Indexes > Hospitals and nursing and residential care facilities *','GSP > Chain-type Quantity Indexes > Information and data processing services *','GSP > Chain-type Quantity Indexes > Insurance carriers and related activities *','GSP > Chain-type Quantity Indexes > Legal services *','GSP > Chain-type Quantity Indexes > Machinery manufacturing *','GSP > Chain-type Quantity Indexes > Management of companies and enterprises *','GSP > Chain-type Quantity Indexes > Mining, except oil and gas *','GSP > Chain-type Quantity Indexes > Miscellaneous manufacturing *','GSP > Chain-type Quantity Indexes > Motion picture and sound recording industries *','GSP > Chain-type Quantity Indexes > Motor vehicle, body, trailer, and parts manufacturing *','GSP > Chain-type Quantity Indexes > Nonmetallic mineral product manufacturing *','GSP > Chain-type Quantity Indexes > Oil and gas extraction *','GSP > Chain-type Quantity Indexes > Other professional, scientific and technical services *','GSP > Chain-type Quantity Indexes > Other services, except government *','GSP > Chain-type Quantity Indexes > Other transportation and support activities *','GSP > Chain-type Quantity Indexes > Other transportation equipment manufacturing *','GSP > Chain-type Quantity Indexes > Paper manufacturing *','GSP > Chain-type Quantity Indexes > Performing arts, museums, and related activities *','GSP > Chain-type Quantity Indexes > Petroleum and coal products manufacturing *','GSP > Chain-type Quantity Indexes > Pipeline transportation *','GSP > Chain-type Quantity Indexes > Plastics and rubber products manufacturing *','GSP > Chain-type Quantity Indexes > Primary metal manufacturing *','GSP > Chain-type Quantity Indexes > Printing and related support activities *','GSP > Chain-type Quantity Indexes > Publishing including software *','GSP > Chain-type Quantity Indexes > Rail transportation *','GSP > Chain-type Quantity Indexes > Real estate *','GSP > Chain-type Quantity Indexes > Rental and leasing services and lessors of intangible assets *','GSP > Chain-type Quantity Indexes > Retail trade *','GSP > Chain-type Quantity Indexes > Securities, commodity contracts, investments *','GSP > Chain-type Quantity Indexes > Social assistance *','GSP > Chain-type Quantity Indexes > State and local *','GSP > Chain-type Quantity Indexes > Support activities for mining *','GSP > Chain-type Quantity Indexes > Textile and textile product mills *','GSP > Chain-type Quantity Indexes > Transit and ground passenger transportation *','GSP > Chain-type Quantity Indexes > Truck transportation *','GSP > Chain-type Quantity Indexes > Utilities *','GSP > Chain-type Quantity Indexes > Warehousing and storage *','GSP > Chain-type Quantity Indexes > Waste management and remediation services *','GSP > Chain-type Quantity Indexes > Water transportation *','GSP > Chain-type Quantity Indexes > Wholesale trade *','GSP > Chain-type Quantity Indexes > Wood product manufacturing *','GSP > Compensation of Employees > Accommodation *','GSP > Compensation of Employees > Administrative and support services *','GSP > Compensation of Employees > Air transportation *','GSP > Compensation of Employees > Ambulatory health care services *','GSP > Compensation of Employees > Amusements, gambling, and recreation *','GSP > Compensation of Employees > Apparel manufacturing *','GSP > Compensation of Employees > Broadcasting and telecommunications *','GSP > Compensation of Employees > Chemical manufacturing *','GSP > Compensation of Employees > Computer and electronic product manufacturing *','GSP > Compensation of Employees > Computer systems design and related services *','GSP > Compensation of Employees > Construction *','GSP > Real GSP > Wood product manufacturing (per $ GDP) *','Median Earnings for Male Full-Time, Year-Round Workers *','Median Family Income *','Median Household Income *','Nest Egg Index *','Percent below poverty level *','Percent of Children Below Poverty Level *','Percent of Households With Retirement Income *','Percent of People 65 Years and Over Below Poverty Level *','Percent of Related Children Below Poverty Level *','Personal income *','Personal income (per capita) *','Total tax burden *','Total tax burden (per $ GDP) *','Total tax burden (per capita) *','Unemployment rate *','... more Economy Stats');
      break;
    case 'Education':
      var ids = new Array('','edu_ass_of_stu_abo_adv_gra_4_mat-above-advanced-grade-4-math','edu_ass_of_stu_abo_adv_gra_4_rea-above-advanced-grade-4-reading','edu_ass_of_stu_abo_adv_gra_4_sci-above-advanced-grade-4-science','edu_ass_of_stu_abo_adv_gra_4_wri-above-advanced-grade-4-writing','edu_ass_of_stu_abo_adv_gra_8_mat-above-advanced-grade-8-math','edu_ass_of_stu_abo_adv_gra_8_rea-above-advanced-grade-8-reading','edu_ass_of_stu_abo_adv_gra_8_sci-above-advanced-grade-8-science','edu_ass_of_stu_abo_adv_gra_8_wri-above-advanced-grade-8-writing','edu_ass_of_stu_abo_bas_gra_4_mat-above-basic-grade-4-math','edu_ass_of_stu_abo_bas_gra_4_rea-above-basic-grade-4-reading','edu_ass_of_stu_abo_bas_gra_4_sci-above-basic-grade-4-science','edu_ass_of_stu_abo_bas_gra_4_wri-above-basic-grade-4-writing','edu_ass_of_stu_abo_bas_gra_8_mat-above-basic-grade-8-math','edu_ass_of_stu_abo_bas_gra_8_rea-above-basic-grade-8-reading','edu_ass_of_stu_abo_bas_gra_8_sci-above-basic-grade-8-science','edu_ass_of_stu_abo_bas_gra_8_wri-above-basic-grade-8-writing','edu_ass_of_stu_abo_pro_gra_4_mat-above-proficient-grade-4-math','edu_ass_of_stu_abo_pro_gra_4_rea-above-proficient-grade-4-reading','edu_ass_of_stu_abo_pro_gra_4_sci-above-proficient-grade-4-science','edu_ass_of_stu_abo_pro_gra_4_wri-above-proficient-grade-4-writing','edu_ass_of_stu_abo_pro_gra_8_mat-above-proficient-grade-8-math','edu_ass_of_stu_abo_pro_gra_8_rea-above-proficient-grade-8-reading','edu_ass_of_stu_abo_pro_gra_8_sci-above-proficient-grade-8-science','edu_ass_of_stu_abo_pro_gra_8_wri-above-proficient-grade-8-writing','edu_ass_sca_sco_gra_4_mat-scale-score-grade-4-math','edu_ass_sca_sco_gra_4_rea-scale-score-grade-4-reading','edu_ass_sca_sco_gra_4_sci-scale-score-grade-4-science','edu_ass_sca_sco_gra_4_wri-scale-score-grade-4-writing','edu_ass_sca_sco_gra_8_mat-scale-score-grade-8-math','edu_ass_sca_sco_gra_8_rea-scale-score-grade-8-reading','edu_ass_sca_sco_gra_8_sci-scale-score-grade-8-science','edu_ass_sca_sco_gra_8_wri-scale-score-grade-8-writing','edu_bac_deg_or_hig_by_per-bachelor-s-degree-higher-percentage','edu_bes_edu_ind-education-best-educated-index','edu_ele_sec_eig_gra_stu-elementary-secondary-eighth-grade-students','edu_ele_sec_eig_gra_stu_percap-eighth-grade-students-per-capita','edu_ele_sec_ele_gra_stu-elementary-secondary-eleventh-grade-students','edu_ele_sec_ele_gra_stu_percap-eleventh-grade-students-per-capita','edu_ele_sec_fif_gra_stu-elementary-secondary-fifth-grade-students','edu_ele_sec_fif_gra_stu_percap-fifth-grade-students-per-capita','edu_ele_sec_fir_gra_stu-elementary-secondary-first-grade-students','edu_ele_sec_fir_gra_stu_percap-first-grade-students-per-capita','edu_ele_sec_fou_gra_stu-elementary-secondary-fourth-grade-students','edu_ele_sec_fou_gra_stu_percap-fourth-grade-students-per-capita','edu_ele_sec_fre_lun_eli-elementary-secondary-free-lunch-eligible','edu_ele_sec_fre_lun_eli_percap-free-lunch-eligible-per-capita','edu_ele_sec_ind_edu_pro-education-elementary-secondary-individualized-program','edu_ele_sec_ind_edu_pro_percap-secondary-individualized-program-per-capita','edu_ele_sec_kin_stu-education-elementary-secondary-kindergarten-students','edu_ele_sec_kin_stu_percap-secondary-kindergarten-students-per-capita','edu_ele_sec_lep_stu-elementary-secondary-lep-ell-students','edu_ele_sec_lep_stu_percap-lep-ell-students-per-capita','edu_ele_sec_nin_gra_stu-elementary-secondary-ninth-grade-students','edu_ele_sec_nin_gra_stu_percap-ninth-grade-students-per-capita','edu_ele_sec_pre_stu-education-elementary-secondary-prekindergarten-students','edu_ele_sec_pre_stu_percap-secondary-prekindergarten-students-per-capita','edu_ele_sec_pup_rat-elementary-secondary-pupil-teacher-ratio','edu_ele_sec_red_lun_eli-secondary-reduced-price-lunch-eligible','edu_ele_sec_red_lun_eli_percap-price-lunch-eligible-per-capita','edu_ele_sec_sec_gra_stu-elementary-secondary-second-grade-students','edu_ele_sec_sec_gra_stu_percap-second-grade-students-per-capita','edu_ele_sec_sev_gra_stu-elementary-secondary-seventh-grade-students','edu_ele_sec_sev_gra_stu_percap-seventh-grade-students-per-capita','edu_ele_sec_six_gra_stu-elementary-secondary-sixth-grade-students','edu_ele_sec_six_gra_stu_percap-sixth-grade-students-per-capita','edu_ele_sec_ten_gra_stu-elementary-secondary-tenth-grade-students','edu_ele_sec_ten_gra_stu_percap-tenth-grade-students-per-capita','edu_ele_sec_thi_gra_stu-elementary-secondary-third-grade-students','edu_ele_sec_thi_gra_stu_percap-third-grade-students-per-capita','edu_ele_sec_tot_num_of_sch-elementary-secondary-total-number-schools','edu_ele_sec_tot_num_of_sch_percap-total-number-schools-per-capita','edu_ele_sec_tot_sta-education-elementary-secondary-total-staff','edu_ele_sec_tot_sta_percap-secondary-total-staff-per-capita','edu_ele_sec_tot_stu-education-elementary-secondary-total-students','edu_ele_sec_tot_stu_percap-secondary-total-students-per-capita','edu_ele_sec_tot_stu_ame_ind-total-students-american-indian-alaskan','edu_ele_sec_tot_stu_ame_ind_percap-american-indian-alaskan-per-capita','edu_ele_sec_tot_stu_asi_isl-total-students-asian-pacific-islander','edu_ele_sec_tot_stu_asi_isl_percap-asian-pacific-islander-per-capita','edu_ele_sec_tot_stu_bla_non-total-students-black-non-hispanic','edu_ele_sec_tot_stu_bla_non_percap-black-non-hispanic-per-capita','edu_ele_sec_fin_cur_exp-elementary-secondary-finance-current-expenditures','edu_ele_sec_fin_cur_exp_percap-finance-current-expenditures-per-capita','edu_hig_sch_dip_or_hig_by_per-high-school-diploma-higher-percentage','edu_per_of_peo_who_hav_com_a_bac_deg-who-completed-bachelor-s-degree','edu_per_of_peo_who_hav_com_an_adv_deg-who-completed-an-advanced-degree','edu_per_of_peo_who_hav_com_hig_sch_inc_equ-completed-high-school-including-equivalency','edu_pos_deg_awa_asi_pac_isl-degrees-awarded-asian-pacific-islander','edu_pos_deg_awa_bac-education-postsecondary-degrees-awarded-bachelors','edu_pos_deg_awa_bla_non-degrees-awarded-black-non-hispanic','edu_pos_deg_awa_doc-education-postsecondary-degrees-awarded-doctors','edu_pos_deg_awa_mas-education-postsecondary-degrees-awarded-masters','edu_pos_deg_awa_tot-education-postsecondary-degrees-awarded-total','edu_pos_deg_awa_whi-education-postsecondary-degrees-awarded-white','edu_pos_num_of_ins_fou_yea-postsecondary-number-institutions-four-year','edu_pub_lib_ele_mat_exp_pergdp-electronic-materials-expenditures-per-gdp','edu_pub_lib_lib_vis_per_cap-libraries-library-visits-per-capita','edu_pub_lib_num_of_boo-education-public-libraries-number-bookmobiles','edu_pub_lib_num_of_boo_percap-libraries-number-bookmobiles-per-capita','edu_pub_lib_tot_cir_per_cap-libraries-total-circulation-per-capita','edu-more');
      var wss = new Array('Select Education Stat','Assessments > % of Students Above Advanced > Grade 4 Math *','Assessments > % of Students Above Advanced > Grade 4 Reading *','Assessments > % of Students Above Advanced > Grade 4 Science *','Assessments > % of Students Above Advanced > Grade 4 Writing *','Assessments > % of Students Above Advanced > Grade 8 Math *','Assessments > % of Students Above Advanced > Grade 8 Reading *','Assessments > % of Students Above Advanced > Grade 8 Science *','Assessments > % of Students Above Advanced > Grade 8 Writing *','Assessments > % of Students Above Basic > Grade 4 Math *','Assessments > % of Students Above Basic > Grade 4 Reading *','Assessments > % of Students Above Basic > Grade 4 Science *','Assessments > % of Students Above Basic > Grade 4 Writing *','Assessments > % of Students Above Basic > Grade 8 Math *','Assessments > % of Students Above Basic > Grade 8 Reading *','Assessments > % of Students Above Basic > Grade 8 Science *','Assessments > % of Students Above Basic > Grade 8 Writing *','Assessments > % of Students Above Proficient > Grade 4 Math *','Assessments > % of Students Above Proficient > Grade 4 Reading *','Assessments > % of Students Above Proficient > Grade 4 Science *','Assessments > % of Students Above Proficient > Grade 4 Writing *','Assessments > % of Students Above Proficient > Grade 8 Math *','Assessments > % of Students Above Proficient > Grade 8 Reading *','Assessments > % of Students Above Proficient > Grade 8 Science *','Assessments > % of Students Above Proficient > Grade 8 Writing *','Assessments > Scale Score, Grade 4 Math *','Assessments > Scale Score, Grade 4 Reading *','Assessments > Scale Score, Grade 4 Science *','Assessments > Scale Score, Grade 4 Writing *','Assessments > Scale Score, Grade 8 Math *','Assessments > Scale Score, Grade 8 Reading *','Assessments > Scale Score, Grade 8 Science *','Assessments > Scale Score, Grade 8 Writing *','Bachelor\'s degree or higher, by percentage *','Best Educated Index *','Elementary & Secondary > Eighth Grade Students *','Elementary & Secondary > Eighth Grade Students (per capita) *','Elementary & Secondary > Eleventh Grade Students *','Elementary & Secondary > Eleventh Grade Students (per capita) *','Elementary & Secondary > Fifth Grade Students *','Elementary & Secondary > Fifth Grade Students (per capita) *','Elementary & Secondary > First Grade Students *','Elementary & Secondary > First Grade Students (per capita) *','Elementary & Secondary > Fourth Grade Students *','Elementary & Secondary > Fourth Grade Students (per capita) *','Elementary & Secondary > Free Lunch Eligible *','Elementary & Secondary > Free Lunch Eligible (per capita) *','Elementary & Secondary > Individualized Education Program *','Elementary & Secondary > Individualized Education Program (per capita) *','Elementary & Secondary > Kindergarten Students *','Elementary & Secondary > Kindergarten Students (per capita) *','Elementary & Secondary > LEP/ELL Students *','Elementary & Secondary > LEP/ELL Students (per capita) *','Elementary & Secondary > Ninth Grade Students *','Elementary & Secondary > Ninth Grade Students (per capita) *','Elementary & Secondary > Prekindergarten Students *','Elementary & Secondary > Prekindergarten Students (per capita) *','Elementary & Secondary > Pupil/Teacher Ratio *','Elementary & Secondary > Reduced-price Lunch Eligible *','Elementary & Secondary > Reduced-price Lunch Eligible (per capita) *','Elementary & Secondary > Second Grade Students *','Elementary & Secondary > Second Grade Students (per capita) *','Elementary & Secondary > Seventh Grade Students *','Elementary & Secondary > Seventh Grade Students (per capita) *','Elementary & Secondary > Sixth Grade Students *','Elementary & Secondary > Sixth Grade Students (per capita) *','Elementary & Secondary > Tenth Grade Students *','Elementary & Secondary > Tenth Grade Students (per capita) *','Elementary & Secondary > Third Grade Students *','Elementary & Secondary > Third Grade Students (per capita) *','Elementary & Secondary > Total Number of Schools *','Elementary & Secondary > Total Number of Schools (per capita) *','Elementary & Secondary > Total Staff *','Elementary & Secondary > Total Staff (per capita) *','Elementary & Secondary > Total Students *','Elementary & Secondary > Total Students (per capita) *','Elementary & Secondary > Total Students- American Indian/Alaskan *','Elementary & Secondary > Total Students- American Indian/Alaskan (per capita) *','Elementary & Secondary > Total Students- Asian/Pacific Islander *','Elementary & Secondary > Total Students- Asian/Pacific Islander (per capita) *','Elementary & Secondary > Total Students- Black, non-Hispanic *','Elementary & Secondary > Total Students- Black, non-Hispanic (per capita) *','Elementary & Secondary Finance > Current Expenditures *','Elementary & Secondary Finance > Current Expenditures (per capita) *','High school diploma or higher, by percentage *','Percent of People Who Have Completed a Bachelor\'s Degree *','Percent of People Who Have Completed an Advanced Degree *','Percent of People Who Have Completed High School (Including Equivalency) *','Postsecondary > Degrees Awarded > Asian / Pacific Islander *','Postsecondary > Degrees Awarded > Bachelors *','Postsecondary > Degrees Awarded > Black, Non-Hispanic *','Postsecondary > Degrees Awarded > Doctors *','Postsecondary > Degrees Awarded > Masters *','Postsecondary > Degrees Awarded > Total *','Postsecondary > Degrees Awarded > White *','Postsecondary > Number Of Institutions > Four Year *','Public Libraries > Electronic Materials Expenditures (per $ GDP) *','Public Libraries > Library Visits per Capita *','Public Libraries > Number of Bookmobiles *','Public Libraries > Number of Bookmobiles (per capita) *','Public Libraries > Total Circulation per Capita *','... more Education Stats');
      break;
    case 'Energy':
      var ids = new Array('','ene_alt_fue_veh-energy-alternative-fuel-vehicles','ene_alt_fue_veh_pergdp-alternative-fuel-vehicles-per-gdp','ene_alt_fue_veh_percap-alternative-fuel-vehicles-per-capita','ene_bas_ene_r_d_nuc_phy_and_oth_exp-d-nuclear-physics-others-expenditures','ene_bas_ene_r_d_nuc_phy_and_oth_exp_pergdp-physics-others-expenditures-per-gdp','ene_bas_ene_r_d_nuc_phy_and_oth_exp_percap-physics-others-expenditures-per-capita','ene_coa_con-energy-coal-consumption','ene_coa_con_pergdp-energy-coal-consumption-per-gdp','ene_coa_con_percap-energy-coal-consumption-per-capita','ene_con_r_d_pro_exp-efficiency-r-d-programs-expenditures','ene_con_r_d_pro_exp_pergdp-d-programs-expenditures-per-gdp','ene_con_r_d_pro_exp_percap-d-programs-expenditures-per-capita','ene_ele_pow_ind_emi_co2-electric-power-industry-emissions-co2','ene_ele_pow_ind_emi_co2_pergdp-industry-emissions-co2-per-gdp','ene_ele_pow_ind_emi_co2_percap-industry-emissions-co2-per-capita','ene_ele_pow_ind_emi_nox-electric-power-industry-emissions-nox','ene_ele_pow_ind_emi_nox_pergdp-industry-emissions-nox-per-gdp','ene_ele_pow_ind_emi_nox_percap-industry-emissions-nox-per-capita','ene_ele_pow_ind_emi_so2-electric-power-industry-emissions-so2','ene_ele_pow_ind_emi_so2_pergdp-industry-emissions-so2-per-gdp','ene_ele_pow_ind_emi_so2_percap-industry-emissions-so2-per-capita','ene_eth_con-energy-ethanol-consumption','ene_eth_con_pergdp-energy-ethanol-consumption-per-gdp','ene_eth_con_percap-energy-ethanol-consumption-per-capita','ene_fos_fue_r_d_pro_exp-fuel-r-d-programs-expenditures','ene_fos_fue_r_d_pro_exp_pergdp-d-programs-expenditures-per-gdp','ene_fos_fue_r_d_pro_exp_percap-d-programs-expenditures-per-capita','ene_gas_pri_ave_die-energy-gas-price-average-diesel','ene_gas_pri_ave_mid-energy-gas-price-average-midgrade','ene_gas_pri_ave_pre-energy-gas-price-average-premium','ene_gas_pri_ave_reg-energy-gas-price-average-regular','ene_gas_con-energy-gasoline-consumption','ene_gas_con_pergdp-energy-gasoline-consumption-per-gdp','ene_gas_con_percap-energy-gasoline-consumption-per-capita','ene_geo_ene_con-energy-geothermal-consumed','ene_geo_ene_con_pergdp-energy-geothermal-consumed-per-gdp','ene_geo_ene_con_percap-energy-geothermal-consumed-per-capita','ene_haz_liq_pip_acc-energy-hazardous-liquid-pipeline-accidents','ene_haz_liq_pip_acc_percap-liquid-pipeline-accidents-per-capita','ene_hea_stu_sup_doe_exp-health-studies-support-doe-expenditures','ene_hea_stu_sup_doe_exp_pergdp-support-doe-expenditures-per-gdp','ene_hea_stu_sup_doe_exp_percap-support-doe-expenditures-per-capita','ene_his_of_coa_min_coa_pro_sta_1889-coal-mining-producing-states-1889','ene_hyd_ene_con-energy-hydroelectric-consumption','ene_hyd_ene_con_pergdp-energy-hydroelectric-consumption-per-gdp','ene_hyd_ene_con_percap-energy-hydroelectric-consumption-per-capita','ene_nat_gas_con-energy-natural-gas-consumption','ene_nat_gas_con_pergdp-natural-gas-consumption-per-gdp','ene_nat_gas_con_percap-natural-gas-consumption-per-capita','ene_nat_gas_dis_pip_acc-natural-gas-distribution-pipeline-accidents','ene_nat_gas_dis_pip_acc_percap-distribution-pipeline-accidents-per-capita','ene_nuc_ene-energy-nuclear','ene_nuc_ene_pergdp-energy-nuclear-per-gdp','ene_nuc_ene_percap-energy-nuclear-per-capita','ene_nuc_ene_lis_of_nuc_pow_pla-energy-nuclear-list-power-plants','ene_nuc_ene_lis_of_nuc_rea-energy-nuclear-list-of-reactors','ene_nuc_ene_num_of_nuc_pow_pla-energy-nuclear-number-power-plants','ene_nuc_ene_num_of_nuc_rea-energy-nuclear-number-of-reactors','ene_nuc_ene_r_d_and_was_man_pro_exp-d-waste-management-programs-expenditures','ene_nuc_ene_r_d_and_was_man_pro_exp_pergdp-management-programs-expenditures-per-gdp','ene_nuc_ene_r_d_and_was_man_pro_exp_percap-management-programs-expenditures-per-capita','ene_pet_con-energy-oil-consumption','ene_pet_con_pergdp-energy-oil-consumption-per-gdp','ene_pet_con_percap-energy-oil-consumption-per-capita','ene_pet_pro-energy-oil-production','ene_pet_pro_percap-energy-oil-production-per-capita','ene_pho_sol_the_ene_con-energy-photovoltaic-solar-thermal-consumption','ene_pho_sol_the_ene_con_pergdp-solar-thermal-consumption-per-gdp','ene_pho_sol_the_ene_con_percap-solar-thermal-consumption-per-capita','ene_ren_ene_r_d_pro_exp-renewable-r-d-programs-expenditures','ene_ren_ene_r_d_pro_exp_pergdp-d-programs-expenditures-per-gdp','ene_ren_ene_r_d_pro_exp_percap-d-programs-expenditures-per-capita','ene_ren_hyd_pro-energy-renewable-hydroelectric-production','ene_ren_hyd_pro_pergdp-renewable-hydroelectric-production-per-gdp','ene_ren_hyd_pro_percap-renewable-hydroelectric-production-per-capita','ene_ren_sha_of_tot_ene-energy-renewables-share-of-total','ene_res_pri_coa-energy-residential-prices-coal','ene_res_pri_coa_pergdp-residential-prices-coal-per-gdp','ene_res_pri_coa_percap-residential-prices-coal-per-capita','ene_res_pri_ele-energy-residential-prices-electricity','ene_res_pri_ele_pergdp-residential-prices-electricity-per-gdp','ene_res_pri_ele_percap-residential-prices-electricity-per-capita','ene_res_pri_nat_gas-energy-residential-prices-natural-gas','ene_res_pri_nat_gas_pergdp-prices-natural-gas-per-gdp','ene_res_pri_nat_gas_percap-prices-natural-gas-per-capita','ene_res_pri_pet_dis_fue-residential-prices-petroleum-distillate-fuel','ene_res_pri_pet_dis_fue_pergdp-petroleum-distillate-fuel-per-gdp','ene_res_pri_pet_dis_fue_percap-petroleum-distillate-fuel-per-capita','ene_res_pri_pet_ker-energy-residential-prices-petroleum-kerosene','ene_res_pri_pet_ker_pergdp-prices-petroleum-kerosene-per-gdp','ene_res_pri_pet_ker_percap-prices-petroleum-kerosene-per-capita','ene_res_pri_pet_lpg-energy-residential-prices-petroleum-lpg','ene_res_pri_pet_lpg_pergdp-prices-petroleum-lpg-per-gdp','ene_res_pri_pet_lpg_percap-prices-petroleum-lpg-per-capita','ene_res_pri_pet_tot-energy-residential-prices-petroleum-total','ene_res_pri_pet_tot_pergdp-prices-petroleum-total-per-gdp','ene_res_pri_pet_tot_percap-prices-petroleum-total-per-capita','ene_res_pri_pri_ene_tot-energy-residential-prices-primary-total','ene_res_pri_pri_ene_tot_pergdp-prices-primary-total-per-gdp','ene_tot_ele_con-energy-total-electricity-consumption','ene-more');
      var wss = new Array('Select Energy Stat','Alternative Fuel Vehicles *','Alternative Fuel Vehicles (per $ GDP) *','Alternative Fuel Vehicles (per capita) *','Basic Energy R & D: Nuclear Physics and Others- Expenditures *','Basic Energy R & D: Nuclear Physics and Others- Expenditures (per $ GDP) *','Basic Energy R & D: Nuclear Physics and Others- Expenditures (per capita) *','Coal Consumption *','Coal Consumption (per $ GDP) *','Coal Consumption (per capita) *','Conservation/Energy-Efficiency R & D Programs- Expenditures *','Conservation/Energy-Efficiency R & D Programs- Expenditures (per $ GDP) *','Conservation/Energy-Efficiency R & D Programs- Expenditures (per capita) *','Electric Power Industry Emissions > CO2 *','Electric Power Industry Emissions > CO2 (per $ GDP) *','Electric Power Industry Emissions > CO2 (per capita) *','Electric Power Industry Emissions > NOx *','Electric Power Industry Emissions > NOx (per $ GDP) *','Electric Power Industry Emissions > NOx (per capita) *','Electric Power Industry Emissions > SO2 *','Electric Power Industry Emissions > SO2 (per $ GDP) *','Electric Power Industry Emissions > SO2 (per capita) *','Ethanol Consumption *','Ethanol Consumption (per $ GDP) *','Ethanol Consumption (per capita) *','Fossil Fuel R & D Programs- Expenditures *','Fossil Fuel R & D Programs- Expenditures (per $ GDP) *','Fossil Fuel R & D Programs- Expenditures (per capita) *','Gas Price Average > Diesel *','Gas Price Average > Midgrade *','Gas Price Average > Premium *','Gas Price Average > Regular *','Gasoline Consumption *','Gasoline Consumption (per $ GDP) *','Gasoline Consumption (per capita) *','Geothermal Energy Consumed *','Geothermal Energy Consumed (per $ GDP) *','Geothermal Energy Consumed (per capita) *','Hazardous liquid pipeline accidents *','Hazardous liquid pipeline accidents (per capita) *','Health Studies Support (DOE)- Expenditures *','Health Studies Support (DOE)- Expenditures (per $ GDP) *','Health Studies Support (DOE)- Expenditures (per capita) *','History of coal mining > Coal Producing States, 1889 *','Hydroelectric Energy Consumption *','Hydroelectric Energy Consumption (per $ GDP) *','Hydroelectric Energy Consumption (per capita) *','Natural Gas Consumption *','Natural Gas Consumption (per $ GDP) *','Natural Gas Consumption (per capita) *','Natural gas distribution pipeline accidents *','Natural gas distribution pipeline accidents (per capita) *','Nuclear Energy *','Nuclear Energy (per $ GDP) *','Nuclear Energy (per capita) *','Nuclear List of nuclear power plants','Nuclear List of nuclear reactors','Nuclear Number of nuclear power plants *','Nuclear Number of nuclear reactors *','Nuclear Energy R & D and Waste Management Programs- Expenditures *','Nuclear Energy R & D and Waste Management Programs- Expenditures (per $ GDP) *','Nuclear Energy R & D and Waste Management Programs- Expenditures (per capita) *','Oil Consumption *','Oil Consumption (per $ GDP) *','Oil Consumption (per capita) *','Oil production *','Oil production (per capita) *','Photovoltaic & Solar Thermal Energy Consumption *','Photovoltaic & Solar Thermal Energy Consumption (per $ GDP) *','Photovoltaic & Solar Thermal Energy Consumption (per capita) *','Renewable Energy R & D Programs- Expenditures *','Renewable Energy R & D Programs- Expenditures (per $ GDP) *','Renewable Energy R & D Programs- Expenditures (per capita) *','Renewable Hydroelectric Production *','Renewable Hydroelectric Production (per $ GDP) *','Renewable Hydroelectric Production (per capita) *','Renewables Share of Total Energy *','Residential Prices > Coal *','Residential Prices > Coal (per $ GDP) *','Residential Prices > Coal (per capita) *','Residential Prices > Electricity *','Residential Prices > Electricity (per $ GDP) *','Residential Prices > Electricity (per capita) *','Residential Prices > Natural gas *','Residential Prices > Natural gas (per $ GDP) *','Residential Prices > Natural gas (per capita) *','Residential Prices > Petroleum > Distillate Fuel *','Residential Prices > Petroleum > Distillate Fuel (per $ GDP) *','Residential Prices > Petroleum > Distillate Fuel (per capita) *','Residential Prices > Petroleum > Kerosene *','Residential Prices > Petroleum > Kerosene (per $ GDP) *','Residential Prices > Petroleum > Kerosene (per capita) *','Residential Prices > Petroleum > LPG *','Residential Prices > Petroleum > LPG (per $ GDP) *','Residential Prices > Petroleum > LPG (per capita) *','Residential Prices > Petroleum > Total *','Residential Prices > Petroleum > Total (per $ GDP) *','Residential Prices > Petroleum > Total (per capita) *','Residential Prices > Primary energy total *','Residential Prices > Primary energy total (per $ GDP) *','Total Electricity Consumption *','... more Energy Stats');
      break;
    case 'Geography':
      var ids = new Array('','geo_are_lan_are_kms-geography-area-land-km-sup2','geo_are_per_wat-geography-area-percentage-water','geo_are_tot_are_kms-geography-area-total-km-sup2','geo_are_tot_are_mil-geography-area-total-miles-sup2','geo_are_wat_are_kms-geography-area-water-km-sup2','geo_cap_cap_sin-geography-capitals-capital-since','geo_cap_dat_of_sta-geography-capitals-date-of-statehood','geo_cap_met_pop-geography-capitals-metropolitan-population','geo_cap_mos_pop_cit-geography-capitals-most-populous-city','geo_cap_mun_pop-geography-capitals-municipal-population','geo_cap_not_on_cur_cap-geography-capitals-notes-current-capital','geo_geo_cen_loc-geography-geographic-centers-location','geo_map_ref-geography-geographic-regions','geo_lan_acr_tot-geography-land-acreage-total','geo_lan_acr_tot_cro-geography-land-acreage-total-cropland','geo_lan_acr_tot_for_lan-geography-land-acreage-total-forest','geo_lan_acr_tot_pas_or_ran_lan-land-acreage-total-pasture-range','geo_lan_are-geography-land-area','geo_lan_bou_bor_cou-geography-land-borders','geo_lar_cit_wit_pop-geography-largest-cities-with-populations','geo_may_2004_tor_out_seq_tor_num-tornado-outbreak-sequence-tornadoes-number','geo_mea_cou_are-geography-mean-county-area','geo_nor_ame_bli_of_1996_sno_acc_tot-blizzard-1996-snowfall-accumulation-totals','geo_per_of_are_wat-geography-percentage-of-area-water','geo_sta_cap-geography-state-capitals-with-populations','geo_tor_fat-geography-tornadoes-fatalities','geo_tor_fat_percap-geography-tornadoes-fatalities-per-capita','geo_tor_inj-geography-tornadoes-injuries','geo_tor_inj_percap-geography-tornadoes-injuries-per-capita','geo_tor_tot_cos_of_dam-geography-tornadoes-total-cost-damage','geo_tor_tot_cos_of_dam_pergdp-total-cost-damage-per-gdp','geo_tor_tot_cos_of_dam_percap-total-cost-damage-per-capita','geo_tor_tot_num-geography-tornadoes-total-number','geo_tor_tot_num_percap-tornadoes-total-number-per-capita','geo_are_lan-geography-total-area','geo_us_nat_his_lan_num-us-national-historic-landmarks-number','geo_us_nat_his_lan_num_non-historic-landmarks-number-non-duplicated','geo_wat_are-geography-water-area','geo-more');
      var wss = new Array('Select Geography Stat','Area > Land area > Km&sup2; *','Area > Percentage water *','Area > Total area > Km&sup2; *','Area > Total area > Miles&sup2; *','Area > Water area > Km&sup2; *','Capitals > Capital since','Capitals > Date of statehood','Capitals > Metropolitan population *','Capitals > Most populous city','Capitals > Municipal population *','Capitals > Notes on current capital','Geographic centers > Location','Geographic regions','Land Acreage > Total *','Land Acreage > Total Cropland *','Land Acreage > Total Forest Land *','Land Acreage > Total Pasture or Range Land *','Land area *','Land borders','Largest cities (with populations)','May 2004 tornado outbreak sequence tornadoes > Number *','Mean County Area *','North American blizzard of 1996 > Snowfall accumulation totals','Percentage of area water *','State capitals (with populations)','Tornadoes > Fatalities *','Tornadoes > Fatalities (per capita) *','Tornadoes > Injuries *','Tornadoes > Injuries (per capita) *','Tornadoes > Total cost of damage *','Tornadoes > Total cost of damage (per $ GDP) *','Tornadoes > Total cost of damage (per capita) *','Tornadoes > Total number *','Tornadoes > Total number (per capita) *','Total area *','US National Historic Landmarks > Number *','US National Historic Landmarks > Number, non-duplicated *','Water area *','... more Geography Stats');
      break;
    case 'Government':
      var ids = new Array('','gov_109_uni_sta_con_hou_of_rep_per_dem-congress-house-representatives-percentage-democrats','gov_109_uni_sta_con_hou_of_rep_per_rep-congress-house-representatives-percentage-republicans','gov_109_uni_sta_con_hou_of_rep_rep_sea_plu-house-representatives-republican-seat-plurality','gov_109_uni_sta_con_hou_of_rep_rep-congress-house-representatives-republican-democrat','gov_109_uni_sta_con_sen_rep_sea_plu-congress-senate-republican-seat-plurality','gov_109_uni_sta_con_sen_rep-states-congress-senate-republican-democrat','gov_109_us_con_hou_of_rep_per_dem-congress-house-representatives-percentage-democrats','gov_109_us_con_hou_of_rep_per_rep-congress-house-representatives-percentage-republicans','gov_109_us_con_hou_of_rep_rep_sea_plu-house-representatives-republican-seat-plurality','gov_109_us_con_hou_of_rep_rep-congress-house-representatives-republican-democrat','gov_109_us_con_sen_per_dem-us-congress-senate-percentage-democrats','gov_109_us_con_sen_per_rep-us-congress-senate-percentage-republicans','gov_109_us_con_sen_rep_sea_plu-congress-senate-republican-seat-plurality','gov_109_us_con_sen_rep-us-congress-senate-republican-democrat','gov_110_uni_sta_con_hou_of_rep_dem_sea_plu-house-representatives-democratic-seat-plurality','gov_110_uni_sta_con_hou_of_rep_dem-congress-house-representatives-democratic-republican','gov_110_uni_sta_con_hou_of_rep_per_dem-congress-house-representatives-percentage-democrats','gov_110_uni_sta_con_hou_of_rep_per_rep-congress-house-representatives-percentage-republicans','gov_110_uni_sta_con_sen_dem_sea_plu-congress-senate-democratic-seat-plurality','gov_110_uni_sta_con_sen_dem-states-congress-senate-democratic-republican','gov_110_uni_sta_con_sen_per_dem-states-congress-senate-percentage-democrats','gov_110_uni_sta_con_sen_per_rep-states-congress-senate-percentage-republicans','gov_197_ele_you_vot_tur-1972-election-youth-voter-turnout','gov_201_ele_you_vot_tur-2000-election-youth-voter-turnout','gov_200_tot_reg_vot-2004-election-total-registered-voters','gov_200_tot_vot-government-2004-election-total-voted','gov_200_tot_vot_as_per-2004-election-total-votes-percentage','gov_vot_age_pop-2004-election-voting-age-population','gov_200_ele_you_vot_tur-2004-election-youth-voter-turnout','gov_art_sev_of_the_uni_sta_con_hea_tex_dat-states-constitution-headline-text-date','gov_con_mem_day_dat-government-confederate-memorial-day-date','gov_con_sta_of_ame_adm-government-confederate-states-america-admitted','gov_con_sta_of_ame_rea_to_the_uni-confederate-states-america-readmitted-union','gov_con_sta_of_ame_sec_ord-confederate-states-america-secession-ordinance','gov_con_sta_of_ame_und_pre_uni_con-america-under-predominant-union-control','gov_con_app_178_1789-congressional-apportionment-1789-ndash-1910','gov_con_app_178_1790-apportionment-1789-ndash-1910-1790','gov_con_app_178_1800-apportionment-1789-ndash-1910-1800','gov_con_app_178_1810-apportionment-1789-ndash-1910-1810','gov_con_app_178_1820-apportionment-1789-ndash-1910-1820','gov_con_app_178_1830-apportionment-1789-ndash-1910-1830','gov_con_app_178_1840-apportionment-1789-ndash-1910-1840','gov_con_app_178_1850-apportionment-1789-ndash-1910-1850','gov_con_app_178_1860-apportionment-1789-ndash-1910-1860','gov_con_app_178_1870-apportionment-1789-ndash-1910-1870','gov_con_app_178_1880-apportionment-1789-ndash-1910-1880','gov_con_app_178_1890-apportionment-1789-ndash-1910-1890','gov_con_app_178_1900-apportionment-1789-ndash-1910-1900','gov_con_app_178_1910-congressional-apportionment-1789-ndash-1910','gov_con_app_192_1920-government-congressional-apportionment-1920-present','gov_con_app_192_1930-congressional-apportionment-1920-present-1930','gov_con_app_192_1940-congressional-apportionment-1920-present-1940','gov_con_app_192_1950-congressional-apportionment-1920-present-1950','gov_con_app_192_1960-congressional-apportionment-1920-present-1960','gov_con_app_192_1970-congressional-apportionment-1920-present-1970','gov_con_app_192_1980-congressional-apportionment-1920-present-1980','gov_con_app_192_1990-congressional-apportionment-1920-present-1990','gov_con_app_192_2000-congressional-apportionment-1920-present-2000','gov_cur_us_gov_sta_gov_par-current-us-governors-state-party','gov_cur_us_gov_sta_gov_sea_up-us-governors-state-seat-up','gov_cur_us_gov_sta_gov_too_off-us-governors-state-took-office','gov_ele_vot-government-electoral-votes','gov_fre_cla_mem_of_the_110_uni_sta_con_sen_bir_yea-states-congress-senate-birth-year','gov_fre_cla_mem_of_the_110_uni_sta_con_sen_pri_bac-states-congress-senate-prior-background','gov_fre_cla_mem_of_the_110_uni_sta_con_sen_rel-united-states-congress-senate-religion','gov_fre_cla_mem_of_the_110_uni_sta_con_sen_sen-united-states-congress-senate-senator','gov_fre_cla_mem_of_the_110_us_con_sen_bir_yea-us-congress-senate-birth-year','gov_fre_cla_mem_of_the_110_us_con_sen_par-110th-us-congress-senate-party','gov_fre_cla_mem_of_the_110_us_con_sen_pri_bac-us-congress-senate-prior-background','gov_fre_cla_mem_of_the_110_us_con_sen_rel-110th-us-congress-senate-religion','gov_fre_cla_mem_of_the_110_us_con_sen_sen-110th-us-congress-senate-senator','gov_gov-government-governor','gov_gub_ele_2000_ele_res_inc-elections-2000-election-results-incumbent','gov_gub_ele_2000_ele_res_out-elections-2000-election-results-outcome','gov_gub_ele_2000_ele_res_par-elections-2000-election-results-party','gov_gub_ele_2000_ele_res_sta-elections-2000-election-results-status','gov_gub_ele_2002_ele_res_inc-elections-2002-election-results-incumbent','gov_gub_ele_2002_ele_res_out-elections-2002-election-results-outcome','gov_gub_ele_2002_ele_res_par-elections-2002-election-results-party','gov_gub_ele_2002_ele_res_sta-elections-2002-election-results-status','gov_gub_ele_2004_ele_res_inc-elections-2004-election-results-incumbent','gov_gub_ele_2004_ele_res_out-elections-2004-election-results-outcome','gov_gub_ele_2004_ele_res_par-elections-2004-election-results-party','gov_gub_ele_2004_ele_res_sta-elections-2004-election-results-status','gov_gub_ele_2006_ele_ele_res-gubernatorial-elections-2006-election-results','gov_gub_ele_2006_ele_inc-government-gubernatorial-elections-2006-incumbent','gov_gub_ele_2006_ele_par-government-gubernatorial-elections-2006-party','gov_gub_ele_2006_ele_sta-government-gubernatorial-elections-2006-status','gov_gun_law_per-government-gun-laws-permits','gov_gun_law_pro_fir-government-gun-laws-prohibited-firearms','gov_gun_law_pro_per-government-gun-laws-prohibited-persons','gov_lie_gov-government-lieutenant-governor','gov_lie_gov_par-government-lieutenant-governors-party','gov_lie_gov_ter_end-government-lieutenant-governors-term-ends','gov_lie_gov_too_off-government-lieutenant-governors-took-office','gov_mid_gov_ass_cur_mid_gov_cur_gov-midwestern-governors-association-current-governor','gov_mid_gov_ass_cur_mid_gov_par-midwestern-governors-association-current-party','gov_mid_gov_ass_cur_mid_gov_sea_up-governors-association-current-seat-up','gov_mid_gov_ass_cur_mid_gov_too_off-governors-association-current-took-office','gov_sea_in_the_hou_of_rep-government-seats-house-representatives','gov-more');
      var wss = new Array('Select Government Stat','109th United States Congress > House of Representatives > Percentage > Democrats *','109th United States Congress > House of Representatives > Percentage > Republicans *','109th United States Congress > House of Representatives > Republican > seat plurality *','109th United States Congress > House of Representatives > Republican/Democrat','109th United States Congress > Senate > Republican > seat plurality *','109th United States Congress > Senate > Republican/Democrat','109th US Congress > House of Representatives > Percentage > Democrats *','109th US Congress > House of Representatives > Percentage > Republicans *','109th US Congress > House of Representatives > Republican > Seat plurality *','109th US Congress > House of Representatives > Republican/Democrat','109th US Congress > Senate > Percentage > Democrats *','109th US Congress > Senate > Percentage > Republicans *','109th US Congress > Senate > Republican > Seat plurality *','109th US Congress > Senate > Republican/Democrat','110th United States Congress > House of Representatives > Democratic > seat plurality *','110th United States Congress > House of Representatives > Democratic/Republican','110th United States Congress > House of Representatives > Percentage > Democrats *','110th United States Congress > House of Representatives > Percentage > Republicans *','110th United States Congress > Senate > Democratic > seat plurality *','110th United States Congress > Senate > Democratic/Republican','110th United States Congress > Senate > Percentage > Democrats *','110th United States Congress > Senate > Percentage > Republicans *','1972 Election > Youth voter turnout *','2000 Election > Youth voter turnout *','2004 Election > Total registered voters *','2004 Election > Total voted *','2004 Election > Total votes as percentage *','2004 Election > Voting age population *','2004 Election > Youth voter turnout *','Article Seven of the United States Constitution > Headline text > Date','Confederate Memorial Day > Date','Confederate States of America > Admitted','Confederate States of America > Readmitted to the Union','Confederate States of America > Secession ordinance','Confederate States of America > Under predominant Union control','congressional apportionment > 1789&ndash;1910 > 1789','congressional apportionment > 1789&ndash;1910 > 1790','congressional apportionment > 1789&ndash;1910 > 1800','congressional apportionment > 1789&ndash;1910 > 1810','congressional apportionment > 1789&ndash;1910 > 1820','congressional apportionment > 1789&ndash;1910 > 1830','congressional apportionment > 1789&ndash;1910 > 1840','congressional apportionment > 1789&ndash;1910 > 1850','congressional apportionment > 1789&ndash;1910 > 1860','congressional apportionment > 1789&ndash;1910 > 1870','congressional apportionment > 1789&ndash;1910 > 1880 *','congressional apportionment > 1789&ndash;1910 > 1890 *','congressional apportionment > 1789&ndash;1910 > 1900 *','congressional apportionment > 1789&ndash;1910 > 1910 *','congressional apportionment > 1920-present > 1920 *','congressional apportionment > 1920-present > 1930 *','congressional apportionment > 1920-present > 1940 *','congressional apportionment > 1920-present > 1950 *','congressional apportionment > 1920-present > 1960 *','congressional apportionment > 1920-present > 1970 *','congressional apportionment > 1920-present > 1980 *','congressional apportionment > 1920-present > 1990 *','congressional apportionment > 1920-present > 2000 *','Current US governors > State governors > Party','Current US governors > State governors > Seat Up','Current US governors > State governors > Took office','Electoral Votes *','freshman class members of the 110th United States Congress > Senate > Birth year','freshman class members of the 110th United States Congress > Senate > Prior background','freshman class members of the 110th United States Congress > Senate > Religion','freshman class members of the 110th United States Congress > Senate > Senator','Freshman class members of the 110th US Congress > Senate > Birth year','Freshman class members of the 110th US Congress > Senate > Party','Freshman class members of the 110th US Congress > Senate > Prior background','Freshman class members of the 110th US Congress > Senate > Religion','Freshman class members of the 110th US Congress > Senate > Senator','Governor','gubernatorial elections, 2000 > Election results > Incumbent','gubernatorial elections, 2000 > Election results > Outcome','gubernatorial elections, 2000 > Election results > Party','gubernatorial elections, 2000 > Election results > Status','gubernatorial elections, 2002 > Election results > Incumbent','gubernatorial elections, 2002 > Election results > Outcome','gubernatorial elections, 2002 > Election results > Party','gubernatorial elections, 2002 > Election results > Status','gubernatorial elections, 2004 > Election results > Incumbent','gubernatorial elections, 2004 > Election results > Outcome','gubernatorial elections, 2004 > Election results > Party','gubernatorial elections, 2004 > Election results > Status','gubernatorial elections, 2006 > elections > Election Results','gubernatorial elections, 2006 > elections > Incumbent','gubernatorial elections, 2006 > elections > Party','gubernatorial elections, 2006 > elections > Status','Gun Laws > Permits','Gun Laws > Prohibited firearms','Gun Laws > Prohibited persons','Lieutenant governor','Lieutenant governors > Party','Lieutenant governors > Term > Ends','Lieutenant governors > Took > Office','Midwestern Governors Association > Current Midwestern Governors > Current Governor','Midwestern Governors Association > Current Midwestern Governors > Party','Midwestern Governors Association > Current Midwestern Governors > Seat Up','Midwestern Governors Association > Current Midwestern Governors > Took office','Seats in the House of Representatives *','... more Government Stats');
      break;
    case 'Health':
      var ids = new Array('','hea_of_hom_w_ser_def-nursing-homes-w-serious-deficiencies','hea_of_nur_hom_wit_no_def-health-nursing-homes-no-deficiencies','hea_of_pdp_wit_a_ded-health-pdps-0-deductible','hea_of_pdp_wit_a_250_ded-health-pdps-250-deductible','hea_poi_cha_in_esi-health-point-change-in-esi','hea_poi_cha_in_ind_ins-health-point-change-individual-insurance','hea_poi_cha_in_med-health-point-change-in-medicaid','hea_poi_cha_in_uni-health-point-change-in-uninsured','hea_abo_rat-health-abortion-rate','hea_abo_by_out_res-health-abortions-out-state-residents','hea_ada_fin_eli_cri-health-adap-financial-eligibility-criteria','hea_ada_ins_pur_fun-adap-insurance-purchasing-maintenance-funds','hea_ada_tot_dru_exp-health-adap-total-drug-expenditures','hea_adm-health-admissions','hea_adu_phy_dis-health-adult-physical-disabilities','hea_age_ssi-health-aged-ssi','hea_age_ssi_as_of_pop_age_65-aged-ssi-population-ages-65','hea_aid_cas_rat_all_age-aids-case-rate-all-ages','hea_alc_abu_or_dep-health-alcohol-abuse-or-dependence','hea_alc_con_bin_dri-health-alcohol-consumption-binge-drinkers','hea_alc_con_cas_dri-health-alcohol-consumption-casual-drinkers','hea_alc_con_hea_dri-health-alcohol-consumption-heavy-drinkers','hea_alc_rel_tra_fat-health-alcohol-related-traffic-fatalities','hea_alc_rel_tra_fat_percap-related-traffic-fatalities-per-capita','hea_alc_rel_tra_fat_as_a_per-alcohol-related-traffic-fatalities-percentage','hea_alc_use_in_the_pas_mon-health-alcohol-use-past-month','hea_all_att-health-alligator-attacks','hea_all_att_percap-health-alligator-attacks-per-capita','hea_ann_rep_hiv_cas_all_age-reported-hiv-cases-all-ages','hea_ast_adu_cas-health-asthma-adult-cases','hea_att_to_qui_smo-health-attempts-to-quit-smoking','hea_aut_cum_gro_in_aut_cas-health-autism-cumulative-growth-cases','hea_aut_num_of_chi_wit_aut-health-autism-number-children','hea_aut_num_of_chi_wit_aut_percap-autism-number-children-per-capita','hea_ave_mon_ma_pay_rat_wei-monthly-ma-payment-rates-weighted','hea_avg_of_nur_hom_def-health-avg-nursing-home-deficiencies','hea_avg_ann_gro_fy1-avg-annual-growth-fy1980-2000','hea_bas_dua_eli_enr-health-baseline-dual-eligible-enrollment','hea_bas_ffs_dru_pay_for_dua-baseline-ffs-drug-payments-duals','hea_bed-health-beds','hea_bir_rat_per_100-birth-rate-per-1-000','hea_as_per_of_sta_bir-births-financed-medicaid-percent-state','hea_bir_of_low_bir_as_a_of_bir-health-births-low-birthweight','hea_bli_dis_ssi-health-blind-disabled-ssi','hea_can_dea_rat_per_100-death-rate-per-100-000','hea_can_inc_per_100-cancer-incidence-per-100-000','hea_cha_in_tee_bir_rat_910-teen-birth-rate-91-03','hea_chi_dea_rat-health-child-death-rate','hea_chl_cas-health-chlamydia-cases','hea_chl_rat-health-chlamydia-rate','hea_col_tes-health-colonoscopy-testing','hea_cum_aid_cas_adu-cumulative-aids-cases-adult-adolescent','hea_cum_aid_cas_all_age-cumulative-aids-cases-all-ages','hea_cum_rep_hiv_cas_all_age-reported-hiv-cases-all-ages','hea_dea_rat_per_100-death-rate-per-100-000','hea_dea_amo_per_wit_aid-health-deaths-among-persons-aids','hea_dea_due_to_hiv-health-deaths-due-to-hiv','hea_dia-health-diabetes','hea_dia_per_100_adu-health-diabetes-per-100-adults','hea_eme_roo_vis-health-emergency-room-visits','hea_fir_dea_rat-health-fire-death-rate','hea_flu_sho-health-flu-shot','hea_fru_and_veg_con-health-fruits-and-vegetables-consumption','hea_gon_cas-health-gonorrhea-cases','hea_gon_rat-health-gonorrhea-rate','hea_hea_ind-health-index','hea_hig_blo_pre-health-high-blood-pressure','hea_hig_cho-health-high-cholesterol','hea_hiv_dea_rat-health-hiv-death-rate','hea_inf_dea_rat-health-infant-death-rate','hea_sta_exp_per_cap-mental-state-expenditures-per-capita','hea_mot_veh_dea_rat-health-motor-vehicle-death-rate','hea_new_aid_cas_all_age-new-aids-cases-all-ages','hea_num_of_abo-health-number-of-abortions','hea_num_of_bir-health-number-of-births','hea_num_of_inf_dea-health-number-of-infant-deaths','hea_obe_rat-health-obesity-rate','hea_ora_hea_los_of_nat_tee-health-oral-loss-natural-teeth','hea_ora_hea_vis_to_the_den-health-oral-visits-dentist','hea_ove_chi_hea_sta-health-overall-child-status','hea_ove_and_obe_rat-health-overweight-and-obesity-rate','hea_pap_sme_rat-health-pap-smear-rate','hea_per_liv_wit_aid_all_age-persons-living-aids-all-ages','hea_phy_exe-health-physical-exercise','hea_pre_of_poo_men_hea-health-prevalence-of-poor-mental','hea_rat_of_abo_to_liv_bir-health-ratio-abortions-live-births','hea_ret_rx_dru_per_cap-retail-rx-drugs-per-capita','hea_smo_tob_use-health-smokeless-tobacco-users','hea_sui-health-suicides','hea_sui_percap-health-suicides-per-capita','hea_syp_cas-health-syphilis-cases','hea_syp_rat-health-syphilis-rate','hea_tee_bir_rat_per_100-birth-rate-per-1-000','hea_tee_dea_rat-health-teen-death-rate','hea_smo_eve_smo-health-tobacco-use-everyday-smokers','hea_tob_use_tot_cur_smo-tobacco-use-total-current-smokers','hea_tot_den-health-total-dentists','hea_tot_spe-health-total-spending-on-medicaid','hea_tot_sta_hea_car_spe-health-total-state-care-spending','hea_tot_tob_fun-health-total-tobacco-funds','hea-more');
      var wss = new Array('Select Health Stat','% of Nursing Homes w/ Serious Deficiencies *','% of Nursing Homes with No Deficiencies *','% of PDPs with a $0 Deductible *','% of PDPs with a $250 Deductible *','% Point Change in ESI *','% Point Change in Individual Insurance *','% Point Change in Medicaid *','% Point Change in Uninsured *','Abortion Rate *','Abortions by Out-of-State Residents *','ADAP Financial Eligibility Criteria *','ADAP Insurance Purchasing/Maintenance Funds *','ADAP Total Drug Expenditures *','Admissions *','Adult physical disabilities *','Aged SSI *','Aged SSI as % of Population Ages 65+ *','AIDS Case Rate All Ages *','Alcohol Abuse or Dependence *','Alcohol consumption > Binge drinkers *','Alcohol consumption > Casual drinkers *','Alcohol consumption > Heavy drinkers *','Alcohol related traffic fatalities *','Alcohol related traffic fatalities (per capita) *','Alcohol related traffic fatalities, as a percentage *','Alcohol Use in the Past Month *','Alligator Attacks *','Alligator Attacks (per capita) *','Annual Reported HIV Cases All Ages *','Asthma > Adult cases *','Attempts to Quit Smoking *','Autism > Cumulative Growth in Autism Cases *','Autism > Number of Children with Autism *','Autism > Number of Children with Autism (per capita) *','Average Monthly MA Payment Rates (Weighted) *','Avg # of Nursing Home Deficiencies *','Avg. Annual % Growth, FY1980-2000 *','Baseline Dual Eligible Enrollment *','Baseline FFS Drug Payments for Duals *','Beds *','Birth Rate per 1,000 *','Births Financed by Medicaid As Percent of State Births *','Births of Low Birthweight as a % of Births *','Blind & Disabled SSI *','Cancer Death Rate per 100,000 *','Cancer Incidence per 100,000 *','Change in Teen Birth Rate, \'91-\'03 *','Child Death Rate *','Chlamydia Cases *','Chlamydia Rate *','Colonoscopy testing *','Cumulative AIDS Cases Adult/Adolescent *','Cumulative AIDS Cases All Ages *','Cumulative Reported HIV Cases All Ages *','Death Rate per 100,000 *','Deaths Among Persons with AIDS *','Deaths due to HIV *','Diabetes *','Diabetes per 100 Adults *','Emergency Room Visits *','Fire death rate *','Flu shot *','Fruits and vegetables consumption *','Gonorrhea Cases *','Gonorrhea Rate *','Health Index *','High blood pressure *','High cholesterol *','HIV Death Rate *','Infant Death Rate *','Mental State Expenditures Per Capita *','Motor Vehicle Death Rate *','New AIDS Cases All Ages *','Number of Abortions *','Number of Births *','Number of Infant Deaths *','Obesity Rate *','Oral health > Loss of natural teeth *','Oral health > Visits to the dentist *','Overall Child Health Status *','Overweight and Obesity Rate *','Pap Smear Rate *','Persons Living with AIDS All Ages *','Physical exercise *','Prevalence of Poor Mental Health *','Ratio of Abortions to Live Births *','Retail Rx Drugs Per Capita *','Smokeless tobacco users *','Suicides *','Suicides (per capita) *','Syphilis Cases *','Syphilis Rate *','Teen Birth Rate per 1,000 *','Teen Death Rate *','Tobacco use > Everyday smokers *','Tobacco use > Total current smokers *','Total Dentists *','Total Spending on Medicaid *','Total State Health Care Spending *','Total Tobacco Funds *','... more Health Stats');
      break;
    case 'Housing':
      var ids = new Array('','hou_ave_pro_los_per_fir-average-property-loss-per-fire','hou_hou_inc-housing-household-income','hou_med_hou_val_of_own_hou_uni-median-value-owner-occupied-units','hou_med_mon_hou_cos_for_own_hou_uni_wit_a_mor-costs-owner-occupied-units-mortgage','hou_med_mon_hou_cos_for_ren_hou_uni-monthly-costs-renter-occupied-units','hou_per_of_hou_uni_tha_are_mob_hom-housing-percent-units-mobile-homes','hou_per_of_hou_uni_tha_wer_bui_in_193_or_ear-units-were-built-1939-earlier','hou_per_of_hou_uni_tha_wer_bui_in_200_or_lat-units-were-built-2000-later','hou_per_of_mor_own_spe_30_or_mor_of_hou_inc_on_sel_mon_own_cos-income-selected-monthly-owner-costs','hou_per_of_occ_hou_uni_tha_are_own-housing-percent-occupied-units-owner','hou_per_of_occ_hou_uni_tha_wer_mov_int_in_200_or_lat-were-moved-into-2000-later','hou_per_of_occ_hou_uni_wit_101_or_mor_occ_per_roo-01-more-occupants-per-room','hou_per_of_occ_hou_uni_wit_ele_as_pri_hea_fue-units-electricity-principal-heating-fuel','hou_per_of_occ_hou_uni_wit_fue_oil_ker_etc_as_pri_hea_fue-oil-kerosene-etc-principal-heating','hou_per_of_occ_hou_uni_wit_gas_as_pri_hea_fue-units-gas-principal-heating-fuel','hou_per_of_ren_uni_spe_30_or_mor_of_hou_inc_on_ren_and_uti-more-household-income-rent-utilities','hou-more');
      var wss = new Array('Select Housing Stat','Average Property Loss per Fire *','Household income *','Median Housing Value of Owner-Occupied Housing Units *','Median Monthly Housing Costs for Owner-occupied Housing Units With a Mortgage *','Median Monthly Housing Costs for Renter-occupied Housing Units *','Percent of Housing Units That are Mobile Homes *','Percent of Housing Units That Were Built in 1939 or Earlier *','Percent of Housing Units That Were Built in 2000 or Later *','Percent of Mortgaged Owners Spending 30% or More of Household Income on Selected Monthly Owner Costs *','Percent of Occupied Housing Units That are Owner-occupied *','Percent of Occupied Housing Units That Were Moved into in 2000 or Later *','Percent of Occupied Housing Units With 1.01 or More Occupants Per Room *','Percent of Occupied Housing Units With Electricity as Principal Heating Fuel *','Percent of Occupied Housing Units With Fuel Oil, Kerosene, Etc. as Principal Heating Fuel *','Percent of Occupied Housing Units With Gas as Principal Heating Fuel *','Percent of Renter-occupied Units Spending 30% or More of Household Income on Rent and Utilities *','... more Housing Stats');
      break;
    case 'Identification':
      var ids = new Array('','ide_50_sta_qua_qua_det_min_fig-quarters-quarter-details-mintage-figures','ide_iso_316_cod_sor_by_nam_sta-us-codes-sorted-name-states','ide_sta_amp_bin_nom-identification-state-amphibians-binomial-nomenclature','ide_sta_bev_dri-identification-state-beverages-drink','ide_sta_bev_yea_amp_cit-state-beverages-year-amp-citation','ide_sta_but_bin_nom-identification-state-butterflies-binomial-nomenclature','ide_sta_but_sta_but-identification-state-butterflies-butterfly','ide_sta_but_yea-identification-state-butterflies-year','ide_sta_col_col_1-identification-state-colors-color-1','ide_sta_col_col_2-identification-state-colors-color-2','ide_sta_fos_age-identification-state-fossil-age','ide_sta_fos_bin_nom-identification-state-fossil-binomial-nomenclature','ide_sta_fos_com_nam-identification-state-fossil-common-name','ide_sta_fos_yea-identification-state-fossil-year','ide_sta_gra_sci_nam-identification-state-grasses-scientific-name','ide_sta_gra_sta_gra-identification-state-grasses-grass','ide_sta_mot_mot-identification-state-mottos-motto','ide_cou_nam-identification-state-name','ide_sta_rep-identification-state-reptile','ide_sta_rep_bin_nom-identification-state-reptile-binomial-nomenclature','ide_sta_rep_yea_ado-identification-state-reptile-year-adopted','ide_sta_she_she-identification-state-shells-shell','ide_sta_she_yea_des-identification-state-shells-year-designated','ide_sta_soi-identification-state-soil','ide_sta_soi_yea_ado-identification-state-soil-year-adopted','ide_sta_tre-identification-state-tree','ide_sta_tre_bin_nom-identification-state-tree-binomial-nomenclature','ide_sta_tre_yea_ado-identification-state-tree-year-adopted','ide_sym_sta_ani-identification-symbols-state-animal','ide_sym_sta_bir-identification-symbols-state-bird','ide_sym_sta_mot-identification-symbols-state-motto','ide_tra_abb_oth-identification-traditional-abbreviation-other','ide_us_sta_bev_dri-u-s-state-beverages-drink','ide_us_sta_bev_yea_amp_cit-state-beverages-year-amp-citation','ide_us_sta_col_col_1-s-state-colors-color-1','ide_us_sta_col_col_2-s-state-colors-color-2','ide_us_sta_gra_bin_nam-s-state-grasses-binomial-name','ide_us_sta_gra_sta_gra-u-s-state-grasses-grass','ide_us_sta_ins_bin_nam-s-state-insects-binomial-name','ide_us_sta_ins_sta_ins-u-s-state-insects-insect','ide_us_sta_min_roc_sto_and_gem_sta_geo_sym_min-stones-gemstones-geological-symbols-mineral','ide_us_sta_min_roc_sto_and_gem_sta_geo_sym_roc-stones-gemstones-geological-symbols-rock','ide-more');
      var wss = new Array('Select Identification Stat','50 State Quarters > Quarter details > Mintage Figures *','ISO 3166-2:US > Codes > Sorted by Name > States','State amphibians > Binomial nomenclature','State beverages > Drink','State beverages > Year &amp; Citation','State butterflies > Binomial nomenclature','State butterflies > State butterfly','State butterflies > Year','State colors > Color 1','State colors > Color 2','State fossil > Age','State fossil > Binomial nomenclature','State fossil > Common name','State fossil > Year','State grasses > Scientific name','State grasses > State grass','State mottos > Motto','State Name','State reptile','State reptile > Binomial nomenclature','State reptile > Year adopted','State shells > Shell','State shells > Year designated','State soil','State soil > Year adopted','State tree','State tree > Binomial Nomenclature','State tree > Year adopted *','Symbols > State animal','Symbols > State bird','Symbols > State motto','Traditional abbreviation > Other','U.S. state beverages > Drink','U.S. state beverages > Year &amp; Citation','U.S. state colors > Color 1','U.S. state colors > Color 2','U.S. state grasses > Binomial name','U.S. state grasses > State grass','U.S. state insects > Binomial name','U.S. state insects > State insect','U.S. state minerals, rocks, stones and gemstones > State Geological Symbols > Mineral','U.S. state minerals, rocks, stones and gemstones > State Geological Symbols > Rock','... more Identification Stats');
      break;
    case 'Immigration':
      var ids = new Array('','imm_ref_fro_afg-immigration-refugees-from-afghanistan','imm_ref_fro_afg_percap-immigration-refugees-afghanistan-per-capita','imm_ref_fro_alb-immigration-refugees-from-albania','imm_ref_fro_alb_percap-immigration-refugees-albania-per-capita','imm_ref_fro_alg-immigration-refugees-from-algeria','imm_ref_fro_alg_percap-immigration-refugees-algeria-per-capita','imm_ref_fro_ang-immigration-refugees-from-angola','imm_ref_fro_ang_percap-immigration-refugees-angola-per-capita','imm_ref_fro_arg-immigration-refugees-from-argentina','imm_ref_fro_arg_percap-immigration-refugees-argentina-per-capita','imm_ref_fro_aus-immigration-refugees-from-austria','imm_ref_fro_aus_percap-immigration-refugees-austria-per-capita','imm_ref_fro_bah-immigration-refugees-from-bahrain','imm_ref_fro_bah_percap-immigration-refugees-bahrain-per-capita','imm_ref_fro_ban-immigration-refugees-from-bangladesh','imm_ref_fro_ban_percap-immigration-refugees-bangladesh-per-capita','imm_ref_fro_ben-immigration-refugees-from-benin','imm_ref_fro_ben_percap-immigration-refugees-benin-per-capita','imm_ref_fro_bur_fas-immigration-refugees-from-burkina-faso','imm_ref_fro_bur_fas_percap-refugees-burkina-faso-per-capita','imm_ref_fro_bur-immigration-refugees-from-burundi','imm_ref_fro_bur_percap-immigration-refugees-burundi-per-capita','imm_ref_fro_cam-immigration-refugees-from-cameroon','imm_ref_fro_cam_percap-immigration-refugees-cameroon-per-capita','imm_ref_fro_cen_afr_rep-immigration-refugees-central-african-republic','imm_ref_fro_cen_afr_rep_percap-central-african-republic-per-capita','imm_ref_fro_cha-immigration-refugees-from-chad','imm_ref_fro_cha_percap-immigration-refugees-chad-per-capita','imm_ref_fro_chi-immigration-refugees-from-china','imm_ref_fro_chi_percap-immigration-refugees-china-per-capita','imm_ref_fro_col-immigration-refugees-from-colombia','imm_ref_fro_col_percap-immigration-refugees-colombia-per-capita','imm_ref_fro_con-immigration-refugees-from-congo','imm_ref_fro_con_percap-immigration-refugees-congo-per-capita','imm_ref_fro_cos_ric-immigration-refugees-from-costa-rica','imm_ref_fro_cos_ric_percap-refugees-costa-rica-per-capita','imm_ref_fro_cub-immigration-refugees-from-cuba','imm_ref_fro_cub_percap-immigration-refugees-cuba-per-capita','imm_ref_fro_cze_rep-immigration-refugees-from-czech-republic','imm_ref_fro_cze_rep_percap-refugees-czech-republic-per-capita','imm_ref_fro_dem_con-immigration-refugees-dem-rep-congo','imm_ref_fro_dem_con_percap-dem-rep-congo-per-capita','imm_ref_fro_dji-immigration-refugees-from-djibouti','imm_ref_fro_dji_percap-immigration-refugees-djibouti-per-capita','imm_ref_fro_ecu-immigration-refugees-from-ecuador','imm_ref_fro_ecu_percap-immigration-refugees-ecuador-per-capita','imm_ref_fro_egy-immigration-refugees-from-egypt','imm_ref_fro_egy_percap-immigration-refugees-egypt-per-capita','imm_ref_fro_equ_gui-immigration-refugees-from-equatorial-guinea','imm_ref_fro_equ_gui_percap-refugees-equatorial-guinea-per-capita','imm_ref_fro_eri-immigration-refugees-from-eritrea','imm_ref_fro_eri_percap-immigration-refugees-eritrea-per-capita','imm_ref_fro_eth-immigration-refugees-from-ethiopia','imm_ref_fro_eth_percap-immigration-refugees-ethiopia-per-capita','imm_ref_fro_fas-immigration-refugees-from-faso','imm_ref_fro_fas_percap-immigration-refugees-faso-per-capita','imm_ref_fro_gab-immigration-refugees-from-gabon','imm_ref_fro_gab_percap-immigration-refugees-gabon-per-capita','imm_ref_fro_ger-immigration-refugees-from-germany','imm_ref_fro_ger_percap-immigration-refugees-germany-per-capita','imm_ref_fro_gha-immigration-refugees-from-ghana','imm_ref_fro_gha_percap-immigration-refugees-ghana-per-capita','imm_ref_fro_gui-immigration-refugees-from-guinea','imm_ref_fro_gui_percap-immigration-refugees-guinea-per-capita','imm_ref_fro_hai-immigration-refugees-from-haiti','imm_ref_fro_hai_percap-immigration-refugees-haiti-per-capita','imm_ref_fro_ind-immigration-refugees-from-indonesia','imm_ref_fro_ind_percap-immigration-refugees-indonesia-per-capita','imm_ref_fro_ira-immigration-refugees-from-iraq','imm_ref_fro_ira_percap-immigration-refugees-iraq-per-capita','imm_ref_fro_ita-immigration-refugees-from-italy','imm_ref_fro_ita_percap-immigration-refugees-italy-per-capita','imm_ref_fro_ivo_coa-immigration-refugees-from-ivory-coast','imm_ref_fro_ivo_coa_percap-refugees-ivory-coast-per-capita','imm_ref_fro_jor-immigration-refugees-from-jordan','imm_ref_fro_jor_percap-immigration-refugees-jordan-per-capita','imm_ref_fro_ken-immigration-refugees-from-kenya','imm_ref_fro_ken_percap-immigration-refugees-kenya-per-capita','imm_ref_fro_kuw-immigration-refugees-from-kuwait','imm_ref_fro_kuw_percap-immigration-refugees-kuwait-per-capita','imm_ref_fro_lao-immigration-refugees-from-laos','imm_ref_fro_lao_percap-immigration-refugees-laos-per-capita','imm_ref_fro_leb-immigration-refugees-from-lebanon','imm_ref_fro_leb_percap-immigration-refugees-lebanon-per-capita','imm_ref_fro_lib-immigration-refugees-from-libya','imm_ref_fro_lib_percap-immigration-refugees-libya-per-capita','imm_ref_fro_mad-immigration-refugees-from-madagascar','imm_ref_fro_mad_percap-immigration-refugees-madagascar-per-capita','imm_ref_fro_mal-immigration-refugees-from-maldives','imm_ref_fro_mal_percap-immigration-refugees-maldives-per-capita','imm_ref_fro_mau-immigration-refugees-from-mauritania','imm_ref_fro_mau_percap-immigration-refugees-mauritania-per-capita','imm_ref_fro_mex-immigration-refugees-from-mexico','imm_ref_fro_mex_percap-immigration-refugees-mexico-per-capita','imm_ref_fro_nam-immigration-refugees-from-namibia','imm_ref_fro_nam_percap-immigration-refugees-namibia-per-capita','imm_ref_fro_nep-immigration-refugees-from-nepal','imm_ref_fro_nep_percap-immigration-refugees-nepal-per-capita','imm_ref_fro_nig-immigration-refugees-from-nigeria','imm_ref_fro_nig_percap-immigration-refugees-nigeria-per-capita','imm-more');
      var wss = new Array('Select Immigration Stat','Refugees from Afghanistan *','Refugees from Afghanistan (per capita) *','Refugees from Albania *','Refugees from Albania (per capita) *','Refugees from Algeria *','Refugees from Algeria (per capita) *','Refugees from Angola *','Refugees from Angola (per capita) *','Refugees from Argentina *','Refugees from Argentina (per capita) *','Refugees from Austria *','Refugees from Austria (per capita) *','Refugees from Bahrain *','Refugees from Bahrain (per capita) *','Refugees from Bangladesh *','Refugees from Bangladesh (per capita) *','Refugees from Benin *','Refugees from Benin (per capita) *','Refugees from Burkina Faso *','Refugees from Burkina Faso (per capita) *','Refugees from Burundi *','Refugees from Burundi (per capita) *','Refugees from Cameroon *','Refugees from Cameroon (per capita) *','Refugees from Central African Republic *','Refugees from Central African Republic (per capita) *','Refugees from Chad *','Refugees from Chad (per capita) *','Refugees from China *','Refugees from China (per capita) *','Refugees from Colombia *','Refugees from Colombia (per capita) *','Refugees from Congo *','Refugees from Congo (per capita) *','Refugees from Costa Rica *','Refugees from Costa Rica (per capita) *','Refugees from Cuba *','Refugees from Cuba (per capita) *','Refugees from Czech Republic *','Refugees from Czech Republic (per capita) *','Refugees from Dem.rep Congo *','Refugees from Dem.rep Congo (per capita) *','Refugees from Djibouti *','Refugees from Djibouti (per capita) *','Refugees from Ecuador *','Refugees from Ecuador (per capita) *','Refugees from Egypt *','Refugees from Egypt (per capita) *','Refugees from Equatorial Guinea *','Refugees from Equatorial Guinea (per capita) *','Refugees from Eritrea *','Refugees from Eritrea (per capita) *','Refugees from Ethiopia *','Refugees from Ethiopia (per capita) *','Refugees from Faso *','Refugees from Faso (per capita) *','Refugees from Gabon *','Refugees from Gabon (per capita) *','Refugees from Germany *','Refugees from Germany (per capita) *','Refugees from Ghana *','Refugees from Ghana (per capita) *','Refugees from Guinea *','Refugees from Guinea (per capita) *','Refugees from Haiti *','Refugees from Haiti (per capita) *','Refugees from Indonesia *','Refugees from Indonesia (per capita) *','Refugees from Iraq *','Refugees from Iraq (per capita) *','Refugees from Italy *','Refugees from Italy (per capita) *','Refugees from Ivory Coast *','Refugees from Ivory Coast (per capita) *','Refugees from Jordan *','Refugees from Jordan (per capita) *','Refugees from Kenya *','Refugees from Kenya (per capita) *','Refugees from Kuwait *','Refugees from Kuwait (per capita) *','Refugees from Laos *','Refugees from Laos (per capita) *','Refugees from Lebanon *','Refugees from Lebanon (per capita) *','Refugees from Libya *','Refugees from Libya (per capita) *','Refugees from Madagascar *','Refugees from Madagascar (per capita) *','Refugees from Maldives *','Refugees from Maldives (per capita) *','Refugees from Mauritania *','Refugees from Mauritania (per capita) *','Refugees from Mexico *','Refugees from Mexico (per capita) *','Refugees from Namibia *','Refugees from Namibia (per capita) *','Refugees from Nepal *','Refugees from Nepal (per capita) *','Refugees from Nigeria *','Refugees from Nigeria (per capita) *','... more Immigration Stats');
      break;
    case 'Industry':
      var ids = new Array('','ind_app_man_ann_pay-industry-apparel-manufacturing-annual-payroll','ind_app_man_ann_pay_pergdp-manufacturing-annual-payroll-per-gdp','ind_app_man_ann_pay_percap-manufacturing-annual-payroll-per-capita','ind_app_man_pro_wor_wag-apparel-manufacturing-production-workers-wages','ind_app_man_pro_wor_wag_pergdp-production-workers-wages-per-gdp','ind_app_man_tot_cap_exp-apparel-manufacturing-total-capital-expenditures','ind_app_man_tot_cap_exp_pergdp-total-capital-expenditures-per-gdp','ind_app_man_tot_cos_of_mat-apparel-manufacturing-total-cost-materials','ind_app_man_tot_cos_of_mat_pergdp-total-cost-materials-per-gdp','ind_app_man_tot_val_of_shi-apparel-manufacturing-total-value-shipments','ind_app_man_tot_val_of_shi_pergdp-total-value-shipments-per-gdp','ind_app_man_val_add-industry-apparel-manufacturing-value-added','ind_app_man_val_add_pergdp-manufacturing-value-added-per-gdp','ind_bev_tob_pro_man_ann_pay-tobacco-product-manufacturing-annual-payroll','ind_bev_tob_pro_man_ann_pay_pergdp-manufacturing-annual-payroll-per-gdp','ind_bev_tob_pro_man_ann_pay_percap-manufacturing-annual-payroll-per-capita','ind_bev_tob_pro_man_pro_wor_wag-product-manufacturing-production-workers-wages','ind_bev_tob_pro_man_pro_wor_wag_pergdp-production-workers-wages-per-gdp','ind_bev_tob_pro_man_tot_cap_exp-product-manufacturing-total-capital-expenditures','ind_bev_tob_pro_man_tot_cap_exp_pergdp-total-capital-expenditures-per-gdp','ind_bev_tob_pro_man_tot_cos_of_mat-product-manufacturing-total-cost-materials','ind_bev_tob_pro_man_tot_cos_of_mat_pergdp-total-cost-materials-per-gdp','ind_bev_tob_pro_man_tot_val_of_shi-product-manufacturing-total-value-shipments','ind_bev_tob_pro_man_tot_val_of_shi_pergdp-total-value-shipments-per-gdp','ind_bev_tob_pro_man_val_add-tobacco-product-manufacturing-value-added','ind_bev_tob_pro_man_val_add_pergdp-manufacturing-value-added-per-gdp','ind_che_man_ann_pay-industry-chemical-manufacturing-annual-payroll','ind_che_man_ann_pay_pergdp-manufacturing-annual-payroll-per-gdp','ind_che_man_ann_pay_percap-manufacturing-annual-payroll-per-capita','ind_che_man_pro_wor_wag-chemical-manufacturing-production-workers-wages','ind_che_man_pro_wor_wag_pergdp-production-workers-wages-per-gdp','ind_che_man_tot_cap_exp-chemical-manufacturing-total-capital-expenditures','ind_che_man_tot_cap_exp_pergdp-total-capital-expenditures-per-gdp','ind_che_man_tot_cos_of_mat-chemical-manufacturing-total-cost-materials','ind_che_man_tot_cos_of_mat_pergdp-total-cost-materials-per-gdp','ind_che_man_tot_val_of_shi-chemical-manufacturing-total-value-shipments','ind_che_man_tot_val_of_shi_pergdp-total-value-shipments-per-gdp','ind_che_man_val_add-industry-chemical-manufacturing-value-added','ind_che_man_val_add_pergdp-manufacturing-value-added-per-gdp','ind_com_ele_pro_man_ann_pay-electronic-product-manufacturing-annual-payroll','ind_com_ele_pro_man_ann_pay_pergdp-manufacturing-annual-payroll-per-gdp','ind_com_ele_pro_man_ann_pay_percap-manufacturing-annual-payroll-per-capita','ind_com_ele_pro_man_pro_wor_wag-product-manufacturing-production-workers-wages','ind_com_ele_pro_man_pro_wor_wag_pergdp-production-workers-wages-per-gdp','ind_com_ele_pro_man_tot_cap_exp-product-manufacturing-total-capital-expenditures','ind_com_ele_pro_man_tot_cap_exp_pergdp-total-capital-expenditures-per-gdp','ind_com_ele_pro_man_tot_cos_of_mat-product-manufacturing-total-cost-materials','ind_com_ele_pro_man_tot_cos_of_mat_pergdp-total-cost-materials-per-gdp','ind_com_ele_pro_man_tot_val_of_shi-product-manufacturing-total-value-shipments','ind_com_ele_pro_man_tot_val_of_shi_pergdp-total-value-shipments-per-gdp','ind_com_ele_pro_man_val_add-electronic-product-manufacturing-value-added','ind_com_ele_pro_man_val_add_pergdp-manufacturing-value-added-per-gdp','ind_ele_equ_app_com_man_ann_pay-appliance-component-manufacturing-annual-payroll','ind_ele_equ_app_com_man_ann_pay_pergdp-manufacturing-annual-payroll-per-gdp','ind_ele_equ_app_com_man_ann_pay_percap-manufacturing-annual-payroll-per-capita','ind_ele_equ_app_com_man_pro_wor_wag-component-manufacturing-production-workers-wages','ind_ele_equ_app_com_man_pro_wor_wag_pergdp-production-workers-wages-per-gdp','ind_ele_equ_app_com_man_tot_cap_exp-component-manufacturing-total-capital-expenditures','ind_ele_equ_app_com_man_tot_cap_exp_pergdp-total-capital-expenditures-per-gdp','ind_ele_equ_app_com_man_tot_cos_of_mat-component-manufacturing-total-cost-materials','ind_ele_equ_app_com_man_tot_cos_of_mat_pergdp-total-cost-materials-per-gdp','ind_ele_equ_app_com_man_tot_val_of_shi-component-manufacturing-total-value-shipments','ind_ele_equ_app_com_man_tot_val_of_shi_pergdp-total-value-shipments-per-gdp','ind_ele_equ_app_com_man_val_add-appliance-component-manufacturing-value-added','ind_ele_equ_app_com_man_val_add_pergdp-manufacturing-value-added-per-gdp','ind_fab_met_pro_man_ann_pay-metal-product-manufacturing-annual-payroll','ind_fab_met_pro_man_ann_pay_pergdp-manufacturing-annual-payroll-per-gdp','ind_fab_met_pro_man_ann_pay_percap-manufacturing-annual-payroll-per-capita','ind_fab_met_pro_man_pro_wor_wag-product-manufacturing-production-workers-wages','ind_fab_met_pro_man_pro_wor_wag_pergdp-production-workers-wages-per-gdp','ind_fab_met_pro_man_tot_cap_exp-product-manufacturing-total-capital-expenditures','ind_fab_met_pro_man_tot_cap_exp_pergdp-total-capital-expenditures-per-gdp','ind_fab_met_pro_man_tot_cos_of_mat-product-manufacturing-total-cost-materials','ind_fab_met_pro_man_tot_cos_of_mat_pergdp-total-cost-materials-per-gdp','ind_fab_met_pro_man_tot_val_of_shi-product-manufacturing-total-value-shipments','ind_fab_met_pro_man_tot_val_of_shi_pergdp-total-value-shipments-per-gdp','ind_fab_met_pro_man_val_add-metal-product-manufacturing-value-added','ind_fab_met_pro_man_val_add_pergdp-manufacturing-value-added-per-gdp','ind_foo_man_ann_pay-industry-food-manufacturing-annual-payroll','ind_foo_man_ann_pay_pergdp-manufacturing-annual-payroll-per-gdp','ind_foo_man_ann_pay_percap-manufacturing-annual-payroll-per-capita','ind_foo_man_pro_wor_wag-food-manufacturing-production-workers-wages','ind_foo_man_pro_wor_wag_pergdp-production-workers-wages-per-gdp','ind_foo_man_tot_cap_exp-food-manufacturing-total-capital-expenditures','ind_foo_man_tot_cap_exp_pergdp-total-capital-expenditures-per-gdp','ind_foo_man_tot_cos_of_mat-food-manufacturing-total-cost-materials','ind_foo_man_tot_cos_of_mat_pergdp-total-cost-materials-per-gdp','ind_foo_man_tot_val_of_shi-food-manufacturing-total-value-shipments','ind_foo_man_tot_val_of_shi_pergdp-total-value-shipments-per-gdp','ind_foo_man_val_add-industry-food-manufacturing-value-added','ind_foo_man_val_add_pergdp-manufacturing-value-added-per-gdp','ind_fur_rel_pro_man_ann_pay-related-product-manufacturing-annual-payroll','ind_fur_rel_pro_man_ann_pay_pergdp-manufacturing-annual-payroll-per-gdp','ind_fur_rel_pro_man_ann_pay_percap-manufacturing-annual-payroll-per-capita','ind_fur_rel_pro_man_pro_wor_wag-product-manufacturing-production-workers-wages','ind_fur_rel_pro_man_pro_wor_wag_pergdp-production-workers-wages-per-gdp','ind_fur_rel_pro_man_tot_cap_exp-product-manufacturing-total-capital-expenditures','ind_fur_rel_pro_man_tot_cap_exp_pergdp-total-capital-expenditures-per-gdp','ind_fur_rel_pro_man_tot_cos_of_mat-product-manufacturing-total-cost-materials','ind_mil_pro-industry-milk-production','ind-more');
      var wss = new Array('Select Industry Stat','Apparel manufacturing > Annual payroll *','Apparel manufacturing > Annual payroll (per $ GDP) *','Apparel manufacturing > Annual payroll (per capita) *','Apparel manufacturing > Production workers wages *','Apparel manufacturing > Production workers wages (per $ GDP) *','Apparel manufacturing > Total capital expenditures *','Apparel manufacturing > Total capital expenditures (per $ GDP) *','Apparel manufacturing > Total cost of materials *','Apparel manufacturing > Total cost of materials (per $ GDP) *','Apparel manufacturing > Total value of shipments *','Apparel manufacturing > Total value of shipments (per $ GDP) *','Apparel manufacturing > Value added *','Apparel manufacturing > Value added (per $ GDP) *','Beverage & tobacco product manufacturing > Annual payroll *','Beverage & tobacco product manufacturing > Annual payroll (per $ GDP) *','Beverage & tobacco product manufacturing > Annual payroll (per capita) *','Beverage & tobacco product manufacturing > Production workers wages *','Beverage & tobacco product manufacturing > Production workers wages (per $ GDP) *','Beverage & tobacco product manufacturing > Total capital expenditures *','Beverage & tobacco product manufacturing > Total capital expenditures (per $ GDP) *','Beverage & tobacco product manufacturing > Total cost of materials *','Beverage & tobacco product manufacturing > Total cost of materials (per $ GDP) *','Beverage & tobacco product manufacturing > Total value of shipments *','Beverage & tobacco product manufacturing > Total value of shipments (per $ GDP) *','Beverage & tobacco product manufacturing > Value added *','Beverage & tobacco product manufacturing > Value added (per $ GDP) *','Chemical manufacturing > Annual payroll *','Chemical manufacturing > Annual payroll (per $ GDP) *','Chemical manufacturing > Annual payroll (per capita) *','Chemical manufacturing > Production workers wages *','Chemical manufacturing > Production workers wages (per $ GDP) *','Chemical manufacturing > Total capital expenditures *','Chemical manufacturing > Total capital expenditures (per $ GDP) *','Chemical manufacturing > Total cost of materials *','Chemical manufacturing > Total cost of materials (per $ GDP) *','Chemical manufacturing > Total value of shipments *','Chemical manufacturing > Total value of shipments (per $ GDP) *','Chemical manufacturing > Value added *','Chemical manufacturing > Value added (per $ GDP) *','Computer & electronic product manufacturing > Annual payroll *','Computer & electronic product manufacturing > Annual payroll (per $ GDP) *','Computer & electronic product manufacturing > Annual payroll (per capita) *','Computer & electronic product manufacturing > Production workers wages *','Computer & electronic product manufacturing > Production workers wages (per $ GDP) *','Computer & electronic product manufacturing > Total capital expenditures *','Computer & electronic product manufacturing > Total capital expenditures (per $ GDP) *','Computer & electronic product manufacturing > Total cost of materials *','Computer & electronic product manufacturing > Total cost of materials (per $ GDP) *','Computer & electronic product manufacturing > Total value of shipments *','Computer & electronic product manufacturing > Total value of shipments (per $ GDP) *','Computer & electronic product manufacturing > Value added *','Computer & electronic product manufacturing > Value added (per $ GDP) *','Electrical equipment, appliance, & component manufacturing > Annual payroll *','Electrical equipment, appliance, & component manufacturing > Annual payroll (per $ GDP) *','Electrical equipment, appliance, & component manufacturing > Annual payroll (per capita) *','Electrical equipment, appliance, & component manufacturing > Production workers wages *','Electrical equipment, appliance, & component manufacturing > Production workers wages (per $ GDP) *','Electrical equipment, appliance, & component manufacturing > Total capital expenditures *','Electrical equipment, appliance, & component manufacturing > Total capital expenditures (per $ GDP) *','Electrical equipment, appliance, & component manufacturing > Total cost of materials *','Electrical equipment, appliance, & component manufacturing > Total cost of materials (per $ GDP) *','Electrical equipment, appliance, & component manufacturing > Total value of shipments *','Electrical equipment, appliance, & component manufacturing > Total value of shipments (per $ GDP) *','Electrical equipment, appliance, & component manufacturing > Value added *','Electrical equipment, appliance, & component manufacturing > Value added (per $ GDP) *','Fabricated metal product manufacturing > Annual payroll *','Fabricated metal product manufacturing > Annual payroll (per $ GDP) *','Fabricated metal product manufacturing > Annual payroll (per capita) *','Fabricated metal product manufacturing > Production workers wages *','Fabricated metal product manufacturing > Production workers wages (per $ GDP) *','Fabricated metal product manufacturing > Total capital expenditures *','Fabricated metal product manufacturing > Total capital expenditures (per $ GDP) *','Fabricated metal product manufacturing > Total cost of materials *','Fabricated metal product manufacturing > Total cost of materials (per $ GDP) *','Fabricated metal product manufacturing > Total value of shipments *','Fabricated metal product manufacturing > Total value of shipments (per $ GDP) *','Fabricated metal product manufacturing > Value added *','Fabricated metal product manufacturing > Value added (per $ GDP) *','Food manufacturing > Annual payroll *','Food manufacturing > Annual payroll (per $ GDP) *','Food manufacturing > Annual payroll (per capita) *','Food manufacturing > Production workers wages *','Food manufacturing > Production workers wages (per $ GDP) *','Food manufacturing > Total capital expenditures *','Food manufacturing > Total capital expenditures (per $ GDP) *','Food manufacturing > Total cost of materials *','Food manufacturing > Total cost of materials (per $ GDP) *','Food manufacturing > Total value of shipments *','Food manufacturing > Total value of shipments (per $ GDP) *','Food manufacturing > Value added *','Food manufacturing > Value added (per $ GDP) *','Furniture & related product manufacturing > Annual payroll *','Furniture & related product manufacturing > Annual payroll (per $ GDP) *','Furniture & related product manufacturing > Annual payroll (per capita) *','Furniture & related product manufacturing > Production workers wages *','Furniture & related product manufacturing > Production workers wages (per $ GDP) *','Furniture & related product manufacturing > Total capital expenditures *','Furniture & related product manufacturing > Total capital expenditures (per $ GDP) *','Furniture & related product manufacturing > Total cost of materials *','Milk production *','... more Industry Stats');
      break;
    case 'Labor':
      var ids = new Array('','lab_app_man_num_of_emp-labor-apparel-manufacturing-number-employees','lab_app_man_num_of_emp_percap-manufacturing-number-employees-per-capita','lab_app_man_pro_wor_ave_per_yea-production-workers-average-per-year','lab_app_man_pro_wor_ave_per_yea_percap-workers-average-per-year-capita','lab_app_man_pro_wor_hou-apparel-manufacturing-production-workers-hours','lab_app_man_pro_wor_hou_percap-production-workers-hours-per-capita','lab_bev_tob_pro_man_num_of_emp-tobacco-product-manufacturing-number-employees','lab_bev_tob_pro_man_num_of_emp_percap-manufacturing-number-employees-per-capita','lab_bev_tob_pro_man_pro_wor_ave_per_yea-production-workers-average-per-year','lab_bev_tob_pro_man_pro_wor_ave_per_yea_percap-workers-average-per-year-capita','lab_bev_tob_pro_man_pro_wor_hou-product-manufacturing-production-workers-hours','lab_bev_tob_pro_man_pro_wor_hou_percap-production-workers-hours-per-capita','lab_can_rel_us_job_sup-ndash-us-relations-jobs-supported','lab_che_man_num_of_emp-labor-chemical-manufacturing-number-employees','lab_che_man_num_of_emp_percap-manufacturing-number-employees-per-capita','lab_che_man_pro_wor_ave_per_yea-production-workers-average-per-year','lab_che_man_pro_wor_ave_per_yea_percap-workers-average-per-year-capita','lab_che_man_pro_wor_hou-chemical-manufacturing-production-workers-hours','lab_che_man_pro_wor_hou_percap-production-workers-hours-per-capita','lab_coa_min_fat-labor-coal-mining-fatalities','lab_coa_min_fat_percap-coal-mining-fatalities-per-capita','lab_com_ele_pro_man_num_of_emp-electronic-product-manufacturing-number-employees','lab_com_ele_pro_man_num_of_emp_percap-manufacturing-number-employees-per-capita','lab_com_ele_pro_man_pro_wor_ave_per_yea-production-workers-average-per-year','lab_com_ele_pro_man_pro_wor_ave_per_yea_percap-workers-average-per-year-capita','lab_com_ele_pro_man_pro_wor_hou-product-manufacturing-production-workers-hours','lab_com_ele_pro_man_pro_wor_hou_percap-production-workers-hours-per-capita','lab_ele_equ_app_com_man_num_of_emp-appliance-component-manufacturing-number-employees','lab_ele_equ_app_com_man_num_of_emp_percap-manufacturing-number-employees-per-capita','lab_ele_equ_app_com_man_pro_wor_ave_per_yea-production-workers-average-per-year','lab_ele_equ_app_com_man_pro_wor_ave_per_yea_percap-workers-average-per-year-capita','lab_ele_equ_app_com_man_pro_wor_hou-component-manufacturing-production-workers-hours','lab_ele_equ_app_com_man_pro_wor_hou_percap-production-workers-hours-per-capita','lab_emp-labor-employed','lab_emp_rat-labor-employment-ratio','lab_fab_met_pro_man_num_of_emp-metal-product-manufacturing-number-employees','lab_fab_met_pro_man_num_of_emp_percap-manufacturing-number-employees-per-capita','lab_fab_met_pro_man_pro_wor_ave_per_yea-production-workers-average-per-year','lab_fab_met_pro_man_pro_wor_ave_per_yea_percap-workers-average-per-year-capita','lab_fab_met_pro_man_pro_wor_hou-product-manufacturing-production-workers-hours','lab_fab_met_pro_man_pro_wor_hou_percap-production-workers-hours-per-capita','lab_foo_man_num_of_emp-labor-food-manufacturing-number-employees','lab_foo_man_num_of_emp_percap-manufacturing-number-employees-per-capita','lab_foo_man_pro_wor_ave_per_yea-production-workers-average-per-year','lab_foo_man_pro_wor_ave_per_yea_percap-workers-average-per-year-capita','lab_foo_man_pro_wor_hou-food-manufacturing-production-workers-hours','lab_foo_man_pro_wor_hou_percap-production-workers-hours-per-capita','lab_fur_rel_pro_man_num_of_emp-related-product-manufacturing-number-employees','lab_fur_rel_pro_man_num_of_emp_percap-manufacturing-number-employees-per-capita','lab_fur_rel_pro_man_pro_wor_ave_per_yea-production-workers-average-per-year','lab_fur_rel_pro_man_pro_wor_ave_per_yea_percap-workers-average-per-year-capita','lab_fur_rel_pro_man_pro_wor_hou-product-manufacturing-production-workers-hours','lab_fur_rel_pro_man_pro_wor_hou_percap-production-workers-hours-per-capita','lab_lea_all_pro_man_num_of_emp-allied-product-manufacturing-number-employees','lab_lea_all_pro_man_num_of_emp_percap-manufacturing-number-employees-per-capita','lab_lea_all_pro_man_pro_wor_ave_per_yea-production-workers-average-per-year','lab_lea_all_pro_man_pro_wor_ave_per_yea_percap-workers-average-per-year-capita','lab_lea_all_pro_man_pro_wor_hou-product-manufacturing-production-workers-hours','lab_lea_all_pro_man_pro_wor_hou_percap-production-workers-hours-per-capita','lab_mac_man_num_of_emp-labor-machinery-manufacturing-number-employees','lab_mac_man_num_of_emp_percap-manufacturing-number-employees-per-capita','lab_mac_man_pro_wor_ave_per_yea-production-workers-average-per-year','lab_mac_man_pro_wor_ave_per_yea_percap-workers-average-per-year-capita','lab_mac_man_pro_wor_hou-machinery-manufacturing-production-workers-hours','lab_mac_man_pro_wor_hou_percap-production-workers-hours-per-capita','lab_mea_tra_tim_to_wor-labor-mean-travel-time-work','lab_mis_man_num_of_emp-labor-miscellaneous-manufacturing-number-employees','lab_mis_man_num_of_emp_percap-manufacturing-number-employees-per-capita','lab_mis_man_pro_wor_ave_per_yea-production-workers-average-per-year','lab_mis_man_pro_wor_ave_per_yea_percap-workers-average-per-year-capita','lab_mis_man_pro_wor_hou-miscellaneous-manufacturing-production-workers-hours','lab_mis_man_pro_wor_hou_percap-production-workers-hours-per-capita','lab_non_min_pro_man_num_of_emp-mineral-product-manufacturing-number-employees','lab_non_min_pro_man_num_of_emp_percap-manufacturing-number-employees-per-capita','lab_non_min_pro_man_pro_wor_ave_per_yea-production-workers-average-per-year','lab_non_min_pro_man_pro_wor_ave_per_yea_percap-workers-average-per-year-capita','lab_non_min_pro_man_pro_wor_hou-product-manufacturing-production-workers-hours','lab_non_min_pro_man_pro_wor_hou_percap-production-workers-hours-per-capita','lab_occ_fat_ass_and_vio_act-occupational-fatalities-assaults-violent-acts','lab_occ_fat_ass_and_vio_act_percap-assaults-violent-acts-per-capita','lab_occ_fat_con_wit_obj_and_equ-occupational-fatalities-contact-objects-equipment','lab_occ_fat_con_wit_obj_and_equ_percap-contact-objects-equipment-per-capita','lab_occ_fat_exp_to_har_sub_or_env-fatalities-exposure-harmful-substances-environments','lab_occ_fat_exp_to_har_sub_or_env_percap-harmful-substances-environments-per-capita','lab_occ_fat_fal-labor-occupational-fatalities-falls','lab_occ_fat_fal_percap-occupational-fatalities-falls-per-capita','lab_occ_fat_fir_or_exp-labor-occupational-fatalities-fires-explosions','lab_occ_fat_fir_or_exp_percap-fatalities-fires-explosions-per-capita','lab_occ_fat_tot-labor-occupational-fatalities-totals','lab_occ_fat_tot_percap-occupational-fatalities-totals-per-capita','lab_occ_fat_tra_inc-labor-occupational-fatalities-transportation-incidents','lab_occ_fat_tra_inc_percap-fatalities-transportation-incidents-per-capita','lab_pap_man_num_of_emp-labor-paper-manufacturing-number-employees','lab_pap_man_num_of_emp_percap-manufacturing-number-employees-per-capita','lab_pap_man_pro_wor_ave_per_yea-production-workers-average-per-year','lab_pap_man_pro_wor_ave_per_yea_percap-workers-average-per-year-capita','lab_pap_man_pro_wor_hou-paper-manufacturing-production-workers-hours','lab_pap_man_pro_wor_hou_percap-production-workers-hours-per-capita','lab_per_of_civ_emp_peo_in_man_bus_and_fin_occ-people-management-business-financial-occupations','lab_per_of_wor_who_tra_to_wor_by_car-workers-who-traveled-work-carpool','lab-more');
      var wss = new Array('Select Labor Stat','Apparel manufacturing > Number of employees *','Apparel manufacturing > Number of employees (per capita) *','Apparel manufacturing > Production workers (average per year) *','Apparel manufacturing > Production workers (average per year) (per capita) *','Apparel manufacturing > Production workers hours *','Apparel manufacturing > Production workers hours (per capita) *','Beverage & tobacco product manufacturing > Number of employees *','Beverage & tobacco product manufacturing > Number of employees (per capita) *','Beverage & tobacco product manufacturing > Production workers (average per year) *','Beverage & tobacco product manufacturing > Production workers (average per year) (per capita) *','Beverage & tobacco product manufacturing > Production workers hours *','Beverage & tobacco product manufacturing > Production workers hours (per capita) *','Canada&ndash;US relations > US Jobs Supported *','Chemical manufacturing > Number of employees *','Chemical manufacturing > Number of employees (per capita) *','Chemical manufacturing > Production workers (average per year) *','Chemical manufacturing > Production workers (average per year) (per capita) *','Chemical manufacturing > Production workers hours *','Chemical manufacturing > Production workers hours (per capita) *','Coal Mining Fatalities *','Coal Mining Fatalities (per capita) *','Computer & electronic product manufacturing > Number of employees *','Computer & electronic product manufacturing > Number of employees (per capita) *','Computer & electronic product manufacturing > Production workers (average per year) *','Computer & electronic product manufacturing > Production workers (average per year) (per capita) *','Computer & electronic product manufacturing > Production workers hours *','Computer & electronic product manufacturing > Production workers hours (per capita) *','Electrical equipment, appliance, & component manufacturing > Number of employees *','Electrical equipment, appliance, & component manufacturing > Number of employees (per capita) *','Electrical equipment, appliance, & component manufacturing > Production workers (average per year) *','Electrical equipment, appliance, & component manufacturing > Production workers (average per year) (per capita) *','Electrical equipment, appliance, & component manufacturing > Production workers hours *','Electrical equipment, appliance, & component manufacturing > Production workers hours (per capita) *','Employed *','Employment Ratio *','Fabricated metal product manufacturing > Number of employees *','Fabricated metal product manufacturing > Number of employees (per capita) *','Fabricated metal product manufacturing > Production workers (average per year) *','Fabricated metal product manufacturing > Production workers (average per year) (per capita) *','Fabricated metal product manufacturing > Production workers hours *','Fabricated metal product manufacturing > Production workers hours (per capita) *','Food manufacturing > Number of employees *','Food manufacturing > Number of employees (per capita) *','Food manufacturing > Production workers (average per year) *','Food manufacturing > Production workers (average per year) (per capita) *','Food manufacturing > Production workers hours *','Food manufacturing > Production workers hours (per capita) *','Furniture & related product manufacturing > Number of employees *','Furniture & related product manufacturing > Number of employees (per capita) *','Furniture & related product manufacturing > Production workers (average per year) *','Furniture & related product manufacturing > Production workers (average per year) (per capita) *','Furniture & related product manufacturing > Production workers hours *','Furniture & related product manufacturing > Production workers hours (per capita) *','Leather & allied product manufacturing > Number of employees *','Leather & allied product manufacturing > Number of employees (per capita) *','Leather & allied product manufacturing > Production workers (average per year) *','Leather & allied product manufacturing > Production workers (average per year) (per capita) *','Leather & allied product manufacturing > Production workers hours *','Leather & allied product manufacturing > Production workers hours (per capita) *','Machinery manufacturing > Number of employees *','Machinery manufacturing > Number of employees (per capita) *','Machinery manufacturing > Production workers (average per year) *','Machinery manufacturing > Production workers (average per year) (per capita) *','Machinery manufacturing > Production workers hours *','Machinery manufacturing > Production workers hours (per capita) *','Mean Travel Time to Work *','Miscellaneous manufacturing > Number of employees *','Miscellaneous manufacturing > Number of employees (per capita) *','Miscellaneous manufacturing > Production workers (average per year) *','Miscellaneous manufacturing > Production workers (average per year) (per capita) *','Miscellaneous manufacturing > Production workers hours *','Miscellaneous manufacturing > Production workers hours (per capita) *','Nonmetallic mineral product manufacturing > Number of employees *','Nonmetallic mineral product manufacturing > Number of employees (per capita) *','Nonmetallic mineral product manufacturing > Production workers (average per year) *','Nonmetallic mineral product manufacturing > Production workers (average per year) (per capita) *','Nonmetallic mineral product manufacturing > Production workers hours *','Nonmetallic mineral product manufacturing > Production workers hours (per capita) *','Occupational Fatalities > Assaults and violent acts *','Occupational Fatalities > Assaults and violent acts (per capita) *','Occupational Fatalities > Contact with objects and equipment *','Occupational Fatalities > Contact with objects and equipment (per capita) *','Occupational Fatalities > Exposure to harmful substances or environments *','Occupational Fatalities > Exposure to harmful substances or environments (per capita) *','Occupational Fatalities > Falls *','Occupational Fatalities > Falls (per capita) *','Occupational Fatalities > Fires or explosions *','Occupational Fatalities > Fires or explosions (per capita) *','Occupational Fatalities > Totals *','Occupational Fatalities > Totals (per capita) *','Occupational Fatalities > Transportation incidents *','Occupational Fatalities > Transportation incidents (per capita) *','Paper manufacturing > Number of employees *','Paper manufacturing > Number of employees (per capita) *','Paper manufacturing > Production workers (average per year) *','Paper manufacturing > Production workers (average per year) (per capita) *','Paper manufacturing > Production workers hours *','Paper manufacturing > Production workers hours (per capita) *','Percent of Civilian Employed People in Management, Business and Financial Occupations *','Percent of Workers Who Traveled to Work by Carpool *','... more Labor Stats');
      break;
    case 'Lifestyle':
      var ids = new Array('','lif_amu_par_ste_rol_coa-amusement-parks-steel-roller-coasters','lif_amu_par_ste_rol_coa_percap-steel-roller-coasters-per-capita','lif_amu_par_tot_rol_coa-amusement-parks-total-roller-coasters','lif_amu_par_tot_rol_coa_percap-total-roller-coasters-per-capita','lif_amu_par_woo_rol_coa-amusement-parks-wooden-roller-coasters','lif_amu_par_woo_rol_coa_percap-wooden-roller-coasters-per-capita','lif_ave_hou_siz-lifestyle-average-household-size','lif_bes_sta_to_liv-lifestyle-best-states-to-live','lif_chi_age_05_who_are_rea_to_eve_day_per-who-read-every-day-percentage','lif_chi_liv_in_sup_nei-lifestyle-children-living-supportive-neighborhoods','lif_chi_who_att_rel_ser_wee_per-attend-religious-services-weekly-percentage','lif_cla_mov_the_and_dri-classic-movie-theaters-drive-ins','lif_cla_mov_the_and_dri_percap-theaters-drive-ins-per-capita','lif_cre_of_dec_cre-lifestyle-cremation-of-deceased-cremated','lif_div_rat-lifestyle-divorce-rate','lif_fir_rad_sta_dat-lifestyle-first-radio-station-date','lif_mis_ame_win_of_tit-lifestyle-miss-america-winners-titles','lif_mis_usa_by_num_of_win_tit-miss-usa-number-wins-titles','lif_mis_usa_by_num_of_win_win_yea-usa-number-wins-winning-years','lif_per_of_hou_tha_are_mar_fam-percent-households-married-couple-families','lif_per_of_hou_tha_are_mar_fam_wit_own_chi-married-couple-families-own-children','lif_per_of_hou_wit_one_or_mor_peo_65_yea_and_ove-more-people-65-years-over','lif_per_of_hou_wit_one_or_mor_peo_und_18_yea-more-people-under-18-years','lif_per_of_mar_fam_wit_bot_hus_and_wif_in_the_lab_for-both-husband-wife-labor-force','lif_per_of_men_who_nev_mar-percent-men-who-never-married','lif_per_of_wom_who_nev_mar-percent-women-who-never-married','lif_res-lifestyle-resturants','lif_res_percap-lifestyle-resturants-per-capita','lif_sho_mal_est_sal-lifestyle-shopping-malls-estimated-sales','lif_sho_mal_est_sal_pergdp-malls-estimated-sales-per-gdp','lif_sho_mal_est_sal_percap-malls-estimated-sales-per-capita','lif_sho_mal_new_cen_add_200-new-centers-added-2004-2005','lif_sho_mal_new_cen_add_200_percap-added-2004-2005-per-capita','lif_sho_mal_per_cha_is_est_sal-malls-percent-change-estimated-sales','lif_sho_mal_per_cha_is_gro_lea_are-percent-change-gross-leasable-area','lif_sho_mal_pri_per_squ_fee-malls-price-per-square-feet','lif_num_of_sho_mal-lifestyle-shopping-malls-total-number','lif_num_of_sho_mal_percap-malls-total-number-per-capita','lif_sta_sto-lifestyle-starbucks-stores','lif_sta_sto_percap-lifestyle-starbucks-stores-per-capita','lif_wal_sto_num_of_dis_sto-lifestyle-walmart-stores-number-discount','lif_wal_sto_num_of_dis_sto_percap-stores-number-discount-per-capita','lif_wal_sto_num_of_dis_cen-walmart-stores-number-distribution-centers','lif_wal_sto_num_of_dis_cen_percap-number-distribution-centers-per-capita','lif_wal_sto_num_of_sam_clu-stores-number-sam-s-clubs','lif_wal_sto_num_of_sam_clu_percap-sam-s-clubs-per-capita','lif_wal_sto_num_of_sup-lifestyle-walmart-stores-number-supercenters','lif_wal_sto_num_of_sup_percap-stores-number-supercenters-per-capita','lif_whi_cas_res-lifestyle-white-castle-restaurants','lif_whi_cas_res_percap-white-castle-restaurants-per-capita','lif-more');
      var wss = new Array('Select Lifestyle Stat','Amusement Parks > Steel roller coasters *','Amusement Parks > Steel roller coasters (per capita) *','Amusement Parks > Total roller coasters *','Amusement Parks > Total roller coasters (per capita) *','Amusement Parks > Wooden roller coasters *','Amusement Parks > Wooden roller coasters (per capita) *','Average Household Size *','Best States to Live *','Children Ages 0-5 Who Are Read To Every Day, Percentage *','Children Living In Supportive Neighborhoods *','Children Who Attend Religious Services Weekly, Percentage *','Classic Movie Theaters and Drive-ins *','Classic Movie Theaters and Drive-ins (per capita) *','Cremation, % of deceased cremated *','Divorce Rate *','First radio station > Date','Miss America winners > # of Titles *','Miss USA > By number of wins > Titles *','Miss USA > By number of wins > Winning years','Percent of Households That are Married-Couple Families *','Percent of Households That are Married-Couple Families With Own Children *','Percent of Households With One or More People 65 Years and Over *','Percent of Households With One or More People Under 18 Years *','Percent of Married-Couple Families With Both Husband and Wife in the Labor Force *','Percent of Men Who Never Married *','Percent of Women Who Never Married *','Resturants *','Resturants (per capita) *','Shopping Malls > Estimated sales *','Shopping Malls > Estimated sales (per $ GDP) *','Shopping Malls > Estimated sales (per capita) *','Shopping Malls > New centers added (2004-2005) *','Shopping Malls > New centers added (2004-2005) (per capita) *','Shopping Malls > Percent change is estimated sales *','Shopping Malls > Percent change is gross leasable area *','Shopping Malls > Price per square feet *','Shopping Malls > Total number *','Shopping Malls > Total number (per capita) *','Starbucks Stores *','Starbucks Stores (per capita) *','Walmart Stores > Number of discount stores *','Walmart Stores > Number of discount stores (per capita) *','Walmart Stores > Number of distribution centers *','Walmart Stores > Number of distribution centers (per capita) *','Walmart Stores > Number of SAM\'S CLUBS *','Walmart Stores > Number of SAM\'S CLUBS (per capita) *','Walmart Stores > Number of Supercenters *','Walmart Stores > Number of Supercenters (per capita) *','White Castle Restaurants *','White Castle Restaurants (per capita) *','... more Lifestyle Stats');
      break;
    case 'Military':
      var ids = new Array('','mil_air_for_rec_per_bla-air-force-recruits-percent-black','mil_air_for_rec_per_his-air-force-recruits-percent-hispanic','mil_air_for_rec_per_oth-air-force-recruits-percent-other','mil_air_for_rec_per_whi-air-force-recruits-percent-white','mil_arm_rec_per_asi-military-army-recruits-percent-asian','mil_arm_rec_per_bla-military-army-recruits-percent-black','mil_arm_rec_per_fem-military-army-recruits-percent-female','mil_arm_rec_per_his-military-army-recruits-percent-hispanic','mil_arm_rec_per_mal-military-army-recruits-percent-male','mil_arm_rec_per_nat_ame-army-recruits-percent-native-american','mil_arm_rec_per_pac_isl-army-recruits-percent-pacific-islander','mil_b2_spi_b2_bom_des-b-2-spirit-bombers-designation','mil_b2_spi_b2_bom_tai-b-2-spirit-bombers-tail','mil_cos_of_nuc_wea-military-cost-of-nuclear-weapons','mil_cos_of_nuc_wea_pergdp-cost-nuclear-weapons-per-gdp','mil_cos_of_nuc_wea_percap-cost-nuclear-weapons-per-capita','mil_cos_of_the_mil-military-cost-of-the','mil_cos_of_the_mil_pergdp-military-cost-per-gdp','mil_cos_of_the_mil_percap-military-cost-per-capita','mil_def_con_exp-military-defense-contracts-expenditures','mil_def_con_exp_pergdp-defense-contracts-expenditures-per-gdp','mil_def_con_exp_percap-defense-contracts-expenditures-per-capita','mil_dep_of_def_pro_and_all_sal-department-defense-procurement-all-salaries','mil_dep_of_def_pro_and_all_sal_pergdp-procurement-all-salaries-per-gdp','mil_dep_of_def_pro_and_all_sal_percap-procurement-all-salaries-per-capita','mil_dod_act_mil_sal_wag-military-dod-active-salaries-wages','mil_dod_act_mil_sal_wag_pergdp-active-salaries-wages-per-gdp','mil_dod_act_mil_sal_wag_percap-active-salaries-wages-per-capita','mil_dod_civ_emp_sal_wag-dod-civilian-employees-salaries-wages','mil_dod_civ_emp_sal_wag_pergdp-employees-salaries-wages-per-gdp','mil_dod_civ_emp_sal_wag_percap-employees-salaries-wages-per-capita','mil_dod_ina_mil_emp_sal_wag-dod-inactive-employees-salaries-wages','mil_dod_ina_mil_emp_sal_wag_pergdp-employees-salaries-wages-per-gdp','mil_dod_ina_mil_emp_sal_wag_percap-employees-salaries-wages-per-capita','mil_ira_war_cos-military-iraq-war-costs','mil_ira_war_cas-military-iraqi-war-casualties','mil_ira_war_cas_percap-iraqi-war-casualties-per-capita','mil_nav_rec_per_asi_isl-recruits-percent-asian-pacific-islander','mil_nav_rec_per_bla-military-navy-recruits-percent-black','mil_nav_rec_per_fem-military-navy-recruits-percent-female','mil_nav_rec_per_his-military-navy-recruits-percent-hispanic','mil_nav_rec_per_mal-military-navy-recruits-percent-male','mil_nav_rec_per_nat_ame-navy-recruits-percent-native-american','mil_nav_rec_per_whi-military-navy-recruits-percent-white','mil_sta_def_for_nav_div-state-defense-forces-naval-division','mil_tot_air_for_rec-military-total-air-force-recruits','mil_tot_air_for_rec_percap-air-force-recruits-per-capita','mil_tot_arm_rec-military-total-army-recruits','mil_tot_arm_rec_percap-total-army-recruits-per-capita','mil_tot_mil_rec_arm_nav_air_for-recruits-army-navy-air-force','mil_tot_mil_rec_arm_nav_air_for_percap-navy-air-force-per-capita','mil_tot_nav_rec-military-total-navy-recruits','mil_tot_nav_rec_percap-total-navy-recruits-per-capita','mil-more');
      var wss = new Array('Select Military Stat','Air Force Recruits: Percent Black *','Air Force Recruits: Percent Hispanic *','Air Force Recruits: Percent Other *','Air Force Recruits: Percent White *','Army Recruits: Percent Asian *','Army Recruits: Percent Black *','Army Recruits: Percent Female *','Army Recruits: Percent Hispanic *','Army Recruits: Percent Male *','Army Recruits: Percent Native American *','Army Recruits: Percent Pacific Islander *','B-2 Spirit > B-2 bombers > Designation','B-2 Spirit > B-2 bombers > Tail #','Cost of Nuclear Weapons *','Cost of Nuclear Weapons (per $ GDP) *','Cost of Nuclear Weapons (per capita) *','Cost of the Military *','Cost of the Military (per $ GDP) *','Cost of the Military (per capita) *','Defense Contracts- Expenditures *','Defense Contracts- Expenditures (per $ GDP) *','Defense Contracts- Expenditures (per capita) *','Department of Defense > Procurement and All Salaries *','Department of Defense > Procurement and All Salaries (per $ GDP) *','Department of Defense > Procurement and All Salaries (per capita) *','DOD Active Salaries & Wages *','DOD Active Salaries & Wages (per $ GDP) *','DOD Active Salaries & Wages (per capita) *','DOD Civilian Employees > Salaries & Wages *','DOD Civilian Employees > Salaries & Wages (per $ GDP) *','DOD Civilian Employees > Salaries & Wages (per capita) *','DOD Inactive Military Employees > Salaries & Wages *','DOD Inactive Military Employees > Salaries & Wages (per $ GDP) *','DOD Inactive Military Employees > Salaries & Wages (per capita) *','Iraq War Costs *','Iraqi War Casualties *','Iraqi War Casualties (per capita) *','Navy Recruits: Percent Asian/Pacific Islander *','Navy Recruits: Percent Black *','Navy Recruits: Percent Female *','Navy Recruits: Percent Hispanic *','Navy Recruits: Percent Male','Navy Recruits: Percent Native American *','Navy Recruits: Percent White *','State Defense Forces > Naval Division','Total Air Force Recruits *','Total Air Force Recruits (per capita) *','Total Army Recruits *','Total Army Recruits (per capita) *','Total Military Recruits: Army, Navy, Air Force *','Total Military Recruits: Army, Navy, Air Force (per capita) *','Total Navy Recruits *','Total Navy Recruits (per capita) *','... more Military Stats');
      break;
    case 'People':
      var ids = new Array('','peo_age_dep_rat-people-age-dependency-ratio','peo_chr_dem_chr-people-christianity-demographics-christian','peo_chr_dem_all_eva_1000-christianity-demographics-all-evangelical-1000','peo_chr_dem_all_mai_1000-christianity-demographics-all-mainline-1000','peo_chr_dem_all_ort_1000-christianity-demographics-all-orthodox-1000','peo_chr_dem_rom_cat_1000-christianity-demographics-roman-catholic-1000','peo_def_of_mar_ame_sta_tha_hav_vot_on_ame_dat-amendment-states-voted-amendments-date','peo_def_of_mar_ame_sta_tha_hav_vot_on_ame_fin_out-states-voted-amendments-final-outcome','peo_def_of_mar_ame_sta_tha_hav_vot_on_ame_no_vot-states-voted-amendments-no-vote','peo_def_of_mar_ame_sta_tha_hav_vot_on_ame_yes_vot-states-voted-amendments-yes-vote','peo_nat_adj-people-demonym-name-state-resident','peo_est_num_of_ill_imm-people-estimated-number-illegal-immigrants','peo_est_num_of_ill_imm_percap-number-illegal-immigrants-per-capita','peo_his_and_lat_ame_pop-people-hispanic-latino-americans-population','peo_his_and_lat_ame_pop_per-hispanic-latino-americans-population-percentage','peo_med_age-people-median-age','peo_per_of_chi_wit_all_par_in_the_lab_for-children-all-parents-labor-force','peo_per_of_civ_pop_who_are_vet-percent-civilian-population-who-veterans','peo_per_of_peo_bor_in_asi-percent-foreign-population-born-asia','peo_per_of_peo_bor_in_eur-percent-foreign-population-born-europe','peo_per_of_peo_bor_in_lat_ame-foreign-population-born-latin-america','peo_per_of_peo_bor_in_mex-percent-foreign-population-born-mexico','peo_per_of_gra_res_for_the_gra-percent-grandparents-responsible-their-grandchildren','peo_per_of_hou_tha_are_mar_fam_wit_own_chi-married-couple-families-own-children','peo_per_of_hou_wit_one_or_mor_peo_65_yea_and_ove-households-more-65-years-over','peo_per_of_hou_wit_one_or_mor_peo_und_18_yea-households-more-under-18-years','peo_per_of_peo_21_to_64_yea_old_wit_a_dis-21-64-years-old-disability','peo_per_of_peo_5_to_20_yea_old_wit_a_dis-5-20-years-old-disability','peo_per_of_peo_65_yea_and_ove_wit_a_dis-percent-65-years-over-disability','peo_per_of_peo_who_are_65_yea_and_ove-percent-who-65-years-over','peo_per_of_peo_who_are_85_yea_and_ove-percent-who-85-years-over','peo_per_of_peo_who_are_ame_ind_and_ala_nat_alo-american-indian-alaska-native-alone','peo_per_of_peo_who_are_asi_alo-people-percent-who-asian-alone','peo_per_of_peo_who_are_bla_or_afr_ame_alo-who-black-african-american-alone','peo_per_of_peo_who_are_for_bor-people-percent-who-foreign-born','peo_per_of_peo_who_are_nat_haw_and_oth_pac_isl_alo-hawaiian-other-pacific-islander-alone','peo_per_of_peo_who_are_som_oth_rac_alo-who-some-other-race-alone','peo_per_of_peo_who_are_two_or_mor_rac-percent-who-two-more-races','peo_per_of_peo_who_are_two_or_mor_rac_exc_som_oth_rac-races-excluding-some-other-race','peo_per_of_peo_who_are_whi_alo-people-percent-who-white-alone','peo_per_of_peo_who_are_whi_alo_not_his_or_lat-white-alone-not-hispanic-latino','peo_per_of_peo_who_liv_in_a_dif_hou_1_yea_ago-different-house-1-year-ago','peo_per_of_peo_who_liv_in_a_dif_hou_wit_the_sam_sta_1_yea_ago-same-state-1-year-ago','peo_per_of_peo_who_liv_in_a_dif_sta_1_yea_ago-different-state-1-year-ago','peo_per_of_peo_who_spe_a_lan_oth_tha_eng_at_hom-language-other-than-english-home','peo_per_of_peo_who_spe_eng_les_tha_ver_wel-english-less-than-very-well','peo_per_of_peo_who_spe_spa_at_hom-percent-who-speak-spanish-home','peo_per_of_res_ove_the_age_of_65-percent-residents-over-age-65','peo_per_of_the_nat_pop_bor_in_the_sta_of_res-population-born-their-state-residence','peo_per_of_tot_pop-people-percent-of-total-population','peo_pop-people-population','peo_pop_cha_in_num_200-population-change-numbers-2000-2005','peo_pop_per_cha_200-population-percent-change-2000-2005','peo_pop_den-people-population-density','peo_pop_den_per_kms-population-density-per-km-sup2','peo_pop_den_per_sq_mi-population-density-per-sq-mi','peo_pue_ric_pop_pop_in_us_1980-puerto-rican-population-us-1980','peo_pue_ric_pop_1980-people-puerto-rican-population-1980','peo_rel_no_rel_per-people-religion-no-percent','peo_rom_cat_lar_den-people-roman-catholicism-largest-denomination','peo_rom_cat_lar_sec-people-roman-catholicism-largest-sect','peo_rom_cat_no_of_dio-roman-catholicism-no-dioceses-archdioceses','peo_rom_cat_num-people-roman-catholicism-number','peo_rom_cat_per_of_cat-people-roman-catholicism-percentage-catholics','peo_sex_rat-people-sex-ratio','peo_spa_spa_pop-people-spanish-speaking-population','peo_tot_asi_isl-total-asian-americans-pacific-islanders','peo_tot_bla_pop-people-total-black-population','peo_tot_bla_pop_percap-total-black-population-per-capita','peo_tot_his_pop-people-total-hispanic-population','peo_tot_nat_ame-people-total-native-americans','peo_tot_two_or_mor_rac-people-total-two-more-races','peo_vis_to_the_uni_sta_per_of_us_tot_in_1998-states-percent-us-total-1998','peo_vis_to_the_uni_sta_per_of_us_tot_in_2003-states-percent-us-total-2003','peo_vis_to_the_uni_sta_tot_in_1998-visitors-united-states-total-1998','peo_vis_to_the_uni_sta_tot_in_1998_percap-states-total-1998-per-capita','peo_vis_to_the_uni_sta_tot_in_2003-visitors-united-states-total-2003','peo_vis_to_the_uni_sta_tot_in_2003_percap-states-total-2003-per-capita','peo_wom_per_100_who_had_a_bir_in_the_pas_12_mon-had-birth-past-12-months','peo-more');
      var wss = new Array('Select People Stat','Age Dependency Ratio *','Christianity > Demographics > % Christian *','Christianity > Demographics > All Evangelical /1000 *','Christianity > Demographics > All Mainline /1000 *','Christianity > Demographics > All Orthodox /1000 *','Christianity > Demographics > Roman Catholic /1000 *','Defense of marriage amendment > States that have voted on amendments > Date','Defense of marriage amendment > States that have voted on amendments > Final outcome','Defense of marriage amendment > States that have voted on amendments > No vote *','Defense of marriage amendment > States that have voted on amendments > Yes vote *','Demonym (name of state resident)','Estimated number of Illegal Immigrants *','Estimated number of Illegal Immigrants (per capita) *','Hispanic and Latino Americans > Population *','Hispanic and Latino Americans > Population > Percentage *','Median Age *','Percent of Children With All Parents in the Labor Force *','Percent of Civilian Population Who are Veterans *','Percent of Foreign Population Born in Asia *','Percent of Foreign Population Born in Europe *','Percent of Foreign Population Born in Latin America *','Percent of Foreign Population Born in Mexico *','Percent of Grandparents Responsible for their Grandchildren *','Percent of Households That are Married-Couple Families With Own Children *','Percent of Households With One or More People 65 Years and Over *','Percent of Households With One or More People Under 18 Years *','Percent of People 21 to 64 Years Old With a Disability *','Percent of People 5 to 20 Years Old With a Disability *','Percent of People 65 Years and Over With a Disability *','Percent of People Who are 65 Years and Over *','Percent of People Who are 85 Years and Over *','Percent of People Who are American Indian and Alaska Native Alone *','Percent of People Who are Asian Alone *','Percent of People Who are Black or African American Alone *','Percent of People Who are Foreign Born *','Percent of People Who are Native Hawaiian and Other Pacific Islander Alone *','Percent of People Who are Some Other Race Alone *','Percent of People Who are Two or More Races *','Percent of People Who are Two or More Races Excluding Some Other Race *','Percent of People Who are White Alone *','Percent of People Who are White Alone, Not Hispanic or Latino *','Percent of People Who Lived in a Different House 1 Year Ago *','Percent of People Who Lived in a Different House Within the Same State 1 Year Ago *','Percent of People Who Lived in a Different State 1 Year Ago *','Percent of People Who Speak a Language Other Than English At Home *','Percent of People Who Speak English Less Than \"Very Well\" *','Percent of People Who Speak Spanish at Home *','Percent of residents over the age of 65 *','Percent of the Native Population Born in their State of Residence *','Percent of total population *','Population *','Population > Change in numbers, 2000-2005 *','Population > Percent change, 2000-2005 *','Population density *','Population density > Per km&sup2; *','Population density > Per sq. mi *','Puerto Rican population > % Population in US > 1980 *','Puerto Rican population > 1980 *','Religion > No religion > Percent *','Roman Catholicism > Largest Denomination','Roman Catholicism > Largest Sect','Roman Catholicism > No. of Dioceses/Archdioceses *','Roman Catholicism > Number *','Roman Catholicism > Percentage of Catholics *','Sex Ratio *','Spanish > Spanish-speaking population *','Total Asian-Americans/Pacific Islanders *','Total Black Population *','Total Black Population (per capita) *','Total Hispanic Population *','Total Native Americans *','Total Two or More Races *','Visitors to the United States > Percent of US total in 1998 *','Visitors to the United States > Percent of US total in 2003 *','Visitors to the United States > Total in 1998 *','Visitors to the United States > Total in 1998 (per capita) *','Visitors to the United States > Total in 2003 *','Visitors to the United States > Total in 2003 (per capita) *','Women (Per 1,000) Who Had a Birth in the Past 12 Months *','... more People Stats');
      break;
    case 'Presidential Elections':
      var ids = new Array('','pre_1789_tot_ele_vot-elections-1789-total-electoral-votes','pre_1792_tot_ele_vot-elections-1792-total-electoral-votes','pre_1796_tot_ele_vot-elections-1796-total-electoral-votes','pre_1800_tot_ele_vot-elections-1800-total-electoral-votes','pre_1804_tot_ele_vot-elections-1804-total-electoral-votes','pre_1808_tot_ele_vot-elections-1808-total-electoral-votes','pre_1812_tot_ele_vot-elections-1812-total-electoral-votes','pre_1816_tot_ele_vot-elections-1816-total-electoral-votes','pre_1820_tot_ele_vot-elections-1820-total-electoral-votes','pre_1824_tot_ele_vot-elections-1824-total-electoral-votes','pre_1828_tot_ele_vot-elections-1828-total-electoral-votes','pre_1832_tot_ele_vot-elections-1832-total-electoral-votes','pre_1836_tot_ele_vot-elections-1836-total-electoral-votes','pre_1840_tot_ele_vot-elections-1840-total-electoral-votes','pre_1844_tot_ele_vot-elections-1844-total-electoral-votes','pre_1848_tot_ele_vot-elections-1848-total-electoral-votes','pre_1852_tot_ele_vot-elections-1852-total-electoral-votes','pre_1856_tot_ele_vot-elections-1856-total-electoral-votes','pre_1860_tot_ele_vot-elections-1860-total-electoral-votes','pre_1864_tot_ele_vot-elections-1864-total-electoral-votes','pre_1868_tot_ele_vot-elections-1868-total-electoral-votes','pre_1872_tot_ele_vot-elections-1872-total-electoral-votes','pre_1876_tot_ele_vot-elections-1876-total-electoral-votes','pre_1880_tot_ele_vot-elections-1880-total-electoral-votes','pre_1884_tot_ele_vot-elections-1884-total-electoral-votes','pre_1888_tot_ele_vot-elections-1888-total-electoral-votes','pre_1892_tot_ele_vot-elections-1892-total-electoral-votes','pre_1896_ele_vot_for_wil_bry-1896-electoral-votes-william-bryan','pre_1896_ele_vot_for_wil_mck-1896-electoral-votes-william-mckinley','pre_1896_pop_vot_for_cha_ben-1896-popular-votes-charles-bentley','pre_1896_pop_vot_for_cha_ben_of_tot-popular-votes-charles-bentley-total','pre_1896_pop_vot_for_cha_mat-1896-popular-votes-charles-matchett','pre_1896_pop_vot_for_cha_mat_of_tot-popular-votes-charles-matchett-total','pre_1896_pop_vot_for_joh_pal-1896-popular-votes-john-palmer','pre_1896_pop_vot_for_joh_pal_of_tot-popular-votes-john-palmer-total','pre_1896_pop_vot_for_jos_lev-1896-popular-votes-joshua-levering','pre_1896_pop_vot_for_jos_lev_of_tot-popular-votes-joshua-levering-total','pre_1896_pop_vot_for_wil_bry-1896-popular-votes-william-bryan','pre_1896_pop_vot_for_wil_bry_of_tot-popular-votes-william-bryan-total','pre_1896_pop_vot_for_wil_mck-1896-popular-votes-william-mckinley','pre_1896_pop_vot_for_wil_mck_of_tot-popular-votes-william-mckinley-total','pre_1896_tot_ele_vot-elections-1896-total-electoral-votes','pre_1900_ele_vot_for_wil_bry-1900-electoral-votes-william-bryan','pre_1900_ele_vot_for_wil_mck-1900-electoral-votes-william-mckinley','pre_1900_pop_vot_for_eug_deb-1900-popular-votes-eugene-debs','pre_1900_pop_vot_for_eug_deb_of_tot-popular-votes-eugene-debs-total','pre_1900_pop_vot_for_joh_woo-1900-popular-votes-john-woolley','pre_1900_pop_vot_for_joh_woo_of_tot-popular-votes-john-woolley-total','pre_1900_pop_vot_for_jos_mal-1900-popular-votes-joseph-maloney','pre_1900_pop_vot_for_jos_mal_of_tot-popular-votes-joseph-maloney-total','pre_1900_pop_vot_for_set_ell-1900-popular-votes-seth-ellis','pre_1900_pop_vot_for_set_ell_of_tot-popular-votes-seth-ellis-total','pre_1900_pop_vot_for_wha_bar-1900-popular-votes-wharton-barker','pre_1900_pop_vot_for_wha_bar_of_tot-popular-votes-wharton-barker-total','pre_1900_pop_vot_for_wil_bry-1900-popular-votes-william-bryan','pre_1900_pop_vot_for_wil_bry_of_tot-popular-votes-william-bryan-total','pre_1900_pop_vot_for_wil_mck-1900-popular-votes-william-mckinley','pre_1900_pop_vot_for_wil_mck_of_tot-popular-votes-william-mckinley-total','pre_1900_tot_ele_vot-elections-1900-total-electoral-votes','pre_1904_ele_vot_for_alt_par-1904-electoral-votes-alton-parker','pre_1904_ele_vot_for_the_roo-1904-electoral-votes-theodore-roosevelt','pre_1904_pop_vot_for_alt_par-1904-popular-votes-alton-parker','pre_1904_pop_vot_for_alt_par_of_tot-popular-votes-alton-parker-total','pre_1904_pop_vot_for_aus_hol-1904-popular-votes-austin-holcomb','pre_1904_pop_vot_for_aus_hol_of_tot-popular-votes-austin-holcomb-total','pre_1904_pop_vot_for_cha_cor-1904-popular-votes-charles-corregan','pre_1904_pop_vot_for_cha_cor_of_tot-popular-votes-charles-corregan-total','pre_1904_pop_vot_for_eug_deb-1904-popular-votes-eugene-debs','pre_1904_pop_vot_for_eug_deb_of_tot-popular-votes-eugene-debs-total','pre_1904_pop_vot_for_sil_swa-1904-popular-votes-silas-swallow','pre_1904_pop_vot_for_sil_swa_of_tot-popular-votes-silas-swallow-total','pre_1904_pop_vot_for_the_roo-1904-popular-votes-theodore-roosevelt','pre_1904_pop_vot_for_the_roo_of_tot-popular-votes-theodore-roosevelt-total','pre_1904_pop_vot_for_tho_wat-1904-popular-votes-thomas-watson','pre_1904_pop_vot_for_tho_wat_of_tot-popular-votes-thomas-watson-total','pre_1904_tot_ele_vot-elections-1904-total-electoral-votes','pre_1908_ele_vot_for_wil_bry-1908-electoral-votes-william-bryan','pre_1908_ele_vot_for_wil_taf-1908-electoral-votes-william-taft','pre_1908_pop_vot_for_aug_gil-1908-popular-votes-august-gillhaus','pre_1908_pop_vot_for_aug_gil_of_tot-popular-votes-august-gillhaus-total','pre_1908_pop_vot_for_eug_cha-1908-popular-votes-eugene-chafin','pre_1908_pop_vot_for_eug_cha_of_tot-popular-votes-eugene-chafin-total','pre_1908_pop_vot_for_eug_deb-1908-popular-votes-eugene-debs','pre_1908_pop_vot_for_eug_deb_of_tot-popular-votes-eugene-debs-total','pre_1908_pop_vot_for_tho_his-1908-popular-votes-thomas-hisgen','pre_1908_pop_vot_for_tho_his_of_tot-popular-votes-thomas-hisgen-total','pre_1908_pop_vot_for_tho_wat-1908-popular-votes-thomas-watson','pre_1908_pop_vot_for_tho_wat_of_tot-popular-votes-thomas-watson-total','pre_1908_pop_vot_for_wil_bry-1908-popular-votes-william-bryan','pre_1908_pop_vot_for_wil_bry_of_tot-popular-votes-william-bryan-total','pre_1908_pop_vot_for_wil_taf-1908-popular-votes-william-taft','pre_1908_pop_vot_for_wil_taf_of_tot-popular-votes-william-taft-total','pre_1908_tot_ele_vot-elections-1908-total-electoral-votes','pre_1912_ele_vot_for_the_roo-1912-electoral-votes-theodore-roosevelt','pre_1912_ele_vot_for_wil_taf-1912-electoral-votes-william-taft','pre_1912_ele_vot_for_woo_wil-1912-electoral-votes-woodrow-wilson','pre_2004_pop_vot_for_geo_w_bus_of_tot-votes-george-w-bush-total','pre_2004_pop_vot_for_joh_ker-2004-popular-votes-john-kerry','pre_2004_pop_vot_for_ral_nad_percap-votes-ralph-nader-per-capita','pre_2008_tot_ele_vot-elections-2008-total-electoral-votes','pre_1992_pop_vot_for_h_ros_per-popular-votes-h-ross-perot','pre-more');
      var wss = new Array('Select Presidential Elections Stat','1789 > Total Electoral Votes *','1792 > Total Electoral Votes *','1796 > Total Electoral Votes *','1800 > Total Electoral Votes *','1804 > Total Electoral Votes *','1808 > Total Electoral Votes *','1812 > Total Electoral Votes *','1816 > Total Electoral Votes *','1820 > Total Electoral Votes *','1824 > Total Electoral Votes *','1828 > Total Electoral Votes *','1832 > Total Electoral Votes *','1836 > Total Electoral Votes *','1840 > Total Electoral Votes *','1844 > Total Electoral Votes *','1848 > Total Electoral Votes *','1852 > Total Electoral Votes *','1856 > Total Electoral Votes *','1860 > Total Electoral Votes *','1864 > Total Electoral Votes *','1868 > Total Electoral Votes *','1872 > Total Electoral Votes *','1876 > Total Electoral Votes *','1880 > Total Electoral Votes *','1884 > Total Electoral Votes *','1888 > Total Electoral Votes *','1892 > Total Electoral Votes *','1896 > Electoral Votes for William Bryan *','1896 > Electoral Votes for William McKinley *','1896 > Popular Votes for Charles Bentley *','1896 > Popular Votes for Charles Bentley (% of total) *','1896 > Popular Votes for Charles Matchett *','1896 > Popular Votes for Charles Matchett (% of total) *','1896 > Popular Votes for John Palmer *','1896 > Popular Votes for John Palmer (% of total) *','1896 > Popular Votes for Joshua Levering *','1896 > Popular Votes for Joshua Levering (% of total) *','1896 > Popular Votes for William Bryan *','1896 > Popular Votes for William Bryan (% of total) *','1896 > Popular Votes for William McKinley *','1896 > Popular Votes for William McKinley (% of total) *','1896 > Total Electoral Votes *','1900 > Electoral Votes for William Bryan *','1900 > Electoral Votes for William McKinley *','1900 > Popular Votes for Eugene Debs *','1900 > Popular Votes for Eugene Debs (% of total) *','1900 > Popular Votes for John Woolley *','1900 > Popular Votes for John Woolley (% of total) *','1900 > Popular Votes for Joseph Maloney *','1900 > Popular Votes for Joseph Maloney (% of total) *','1900 > Popular Votes for Seth Ellis *','1900 > Popular Votes for Seth Ellis (% of total) *','1900 > Popular Votes for Wharton Barker *','1900 > Popular Votes for Wharton Barker (% of total) *','1900 > Popular Votes for William Bryan *','1900 > Popular Votes for William Bryan (% of total) *','1900 > Popular Votes for William McKinley *','1900 > Popular Votes for William McKinley (% of total) *','1900 > Total Electoral Votes *','1904 > Electoral Votes for Alton Parker *','1904 > Electoral Votes for Theodore Roosevelt *','1904 > Popular Votes for Alton Parker *','1904 > Popular Votes for Alton Parker (% of total) *','1904 > Popular Votes for Austin Holcomb *','1904 > Popular Votes for Austin Holcomb (% of total) *','1904 > Popular Votes for Charles Corregan *','1904 > Popular Votes for Charles Corregan (% of total) *','1904 > Popular Votes for Eugene Debs *','1904 > Popular Votes for Eugene Debs (% of total) *','1904 > Popular Votes for Silas Swallow *','1904 > Popular Votes for Silas Swallow (% of total) *','1904 > Popular Votes for Theodore Roosevelt *','1904 > Popular Votes for Theodore Roosevelt (% of total) *','1904 > Popular Votes for Thomas Watson *','1904 > Popular Votes for Thomas Watson (% of total) *','1904 > Total Electoral Votes *','1908 > Electoral Votes for William Bryan *','1908 > Electoral Votes for William Taft *','1908 > Popular Votes for August Gillhaus *','1908 > Popular Votes for August Gillhaus (% of total) *','1908 > Popular Votes for Eugene Chafin *','1908 > Popular Votes for Eugene Chafin (% of total) *','1908 > Popular Votes for Eugene Debs *','1908 > Popular Votes for Eugene Debs (% of total) *','1908 > Popular Votes for Thomas Hisgen *','1908 > Popular Votes for Thomas Hisgen (% of total) *','1908 > Popular Votes for Thomas Watson *','1908 > Popular Votes for Thomas Watson (% of total) *','1908 > Popular Votes for William Bryan *','1908 > Popular Votes for William Bryan (% of total) *','1908 > Popular Votes for William Taft *','1908 > Popular Votes for William Taft (% of total) *','1908 > Total Electoral Votes *','1912 > Electoral Votes for Theodore Roosevelt *','1912 > Electoral Votes for William Taft *','1912 > Electoral Votes for Woodrow Wilson *','2004 > Popular Votes for George W. Bush (% of total) *','2004 > Popular Votes for John Kerry *','2004 > Popular Votes for Ralph Nader (per capita) *','2008 > Total Electoral Votes *','1992 > Popular Votes for H. Ross Perot *','... more Presidential Elections Stats');
      break;
    case 'Sports':
      var ids = new Array('','spo_ari_car_fir_rou_dra_pic_pla-first-round-draft-picks-player','spo_ari_car_fir_dra_pic_pla-first-round-draft-picks-player','spo_boi_sta_bro_foo_2007_sea_sch_dat-football-2007-season-schedule-date','spo_cha_for_the_nex_cup_2007_rac-chase-nextel-cup-2007-race','spo_cha_for_the_nex_cup_2007_rac_2006_win-cup-2007-races-2006-winner','spo_cha_for_the_nex_cup_2007_rac_2007_win-nextel-cup-2007-races-winner','spo_cha_for_the_nex_cup_2007_rac_car-nextel-cup-2007-races-car','spo_cha_for_the_nex_cup_2007_rac_dat-nextel-cup-2007-races-date','spo_cha_for_the_spr_cup_2008_sch_dat-sprint-cup-2008-schedule-date','spo_cha_for_the_spr_cup_2008_sch_rac-sprint-cup-2008-schedule-race','spo_flo_gat_foo_199_sch_loc-football-1990-1999-schedule-location','spo_flo_gat_foo_199_sch_res-football-1990-1999-schedule-result','spo_ips_2004_cal_dat-sports-ips-2004-calendar-date','spo_ips_2004_cal_dis-sports-ips-2004-calendar-distance','spo_ips_2004_cal_fas_rac_lap-2004-calendar-fastest-race-lap','spo_ips_2004_cal_lap-sports-ips-2004-calendar-laps','spo_ips_2004_cal_mos_lea_lap-2004-calendar-most-leading-laps','spo_ips_2004_cal_pol_pos-ips-2004-calendar-pole-position','spo_ips_2004_cal_spe-sports-ips-2004-calendar-speed','spo_ips_2004_cal_tim-sports-ips-2004-calendar-time','spo_ips_2004_cal_win-sports-ips-2004-calendar-winner','spo_maj_lea_bas_ame_lea_div-major-league-baseball-american-division','spo_maj_lea_bas_win_lea_by_bir_car_win_tot-win-leaders-birthplace-career-total','spo_maj_lea_bas_win_lea_by_bir_pla-baseball-win-leaders-birthplace-player','spo_mcd_cla_num_of_cla_cha-39-s-classic-number-champions','spo_nat_bas_ass_eas_con_div-basketball-association-eastern-conference-division','spo_nat_bas_ass_wes_con_div-basketball-association-western-conference-division','spo_nat_hoc_lea_wes_con_div-hockey-league-western-conference-division','spo_nca_div_ia_foo_sea_2002_bcs_bow-football-season-2002-bcs-bowls','spo_nca_div_ia_foo_sea_2002_bcs_bow_rec-season-2002-bcs-bowls-record','spo_ncr_div_i_col_rol_hoc_nat_cha_2008_poo_sta_gp-championships-2008-pool-standings-gp','spo_the_hom_dep_coa_of_the_yea_awa_pre_win_win-year-award-previous-winners-winner','spo_the_hom_dep_coa_of_the_yea_awa_pre_win_yea-coach-year-award-previous-winners','spo_top_hom_run_hit_by_bir_car_hom_run_tot-run-hitters-birthplace-career-total','spo_top_hom_run_hit_by_bir_pla-home-run-hitters-birthplace-player','spo-more');
      var wss = new Array('Select Sports Stat','Arizona Cardinals > First Round Draft Picks > Player','Arizona Cardinals > First-round draft picks > Player','Boise State Broncos football > 2007 season schedule > Date','Chase for the NEXTEL Cup > 2007 > Race','Chase for the NEXTEL Cup > 2007 > Races > 2006 winner','Chase for the NEXTEL Cup > 2007 > Races > 2007 winner','Chase for the NEXTEL Cup > 2007 > Races > Car','Chase for the NEXTEL Cup > 2007 > Races > Date','Chase for the Sprint Cup > 2008 > Schedule > Date','Chase for the Sprint Cup > 2008 > Schedule > Race','Florida Gators football, 1990-1999 > Schedule > Location','Florida Gators football, 1990-1999 > Schedule > Result','IPS > 2004 > Calendar > Date','IPS > 2004 > Calendar > Distance','IPS > 2004 > Calendar > Fastest Race Lap','IPS > 2004 > Calendar > Laps *','IPS > 2004 > Calendar > Most Leading Laps','IPS > 2004 > Calendar > Pole Position','IPS > 2004 > Calendar > Speed *','IPS > 2004 > Calendar > Time','IPS > 2004 > Calendar > Winner','Major League Baseball > American League > Division','Major League Baseball win leaders by birthplace > Career win total *','Major League Baseball win leaders by birthplace > Player','McDonald&#39;s Classic > Number of Classic Champions *','National Basketball Association > Eastern Conference > Division','National Basketball Association > Western Conference > Division','National Hockey League > Western Conference > Division','NCAA Division I-A football season > 2002 > BCS > Bowls *','NCAA Division I-A football season > 2002 > BCS Bowls > Record','NCRHA Division I Collegiate Roller Hockey National Championships > 2008 > Pool standings > GP *','The Home Depot Coach of the Year Award > Previous winners > Winner','The Home Depot Coach of the Year Award > Previous winners > Year','Top home run hitters by birthplace > Career home run total *','Top home run hitters by birthplace > Player','... more Sports Stats');
      break;
    case 'Trade':
      var ids = new Array('','tra_exp_tot_ove_val-trade-export-totals-overall-value','tra_exp_tot_ove_val_pergdp-totals-overall-value-per-gdp','tra_exp_tot_ove_val_percap-totals-overall-value-per-capita','tra_exp_tot_per_cha_200-totals-percent-change-2004-2005','tra_exp_tot_per_sha_of_us_tot-totals-percent-share-us-total','tra_exp_to_alg_per_cha_200-algeria-percent-change-2004-2005','tra_exp_to_alg_per_sha-trade-exports-algeria-percent-share','tra_exp_to_alg_tot_val-trade-exports-algeria-total-value','tra_exp_to_alg_tot_val_pergdp-algeria-total-value-per-gdp','tra_exp_to_alg_tot_val_percap-algeria-total-value-per-capita','tra_exp_to_ant_and_bar_per_cha_200-barbuda-percent-change-2004-2005','tra_exp_to_ant_and_bar_per_sha-exports-antigua-barbuda-percent-share','tra_exp_to_ant_and_bar_tot_val-exports-antigua-barbuda-total-value','tra_exp_to_ant_and_bar_tot_val_pergdp-barbuda-total-value-per-gdp','tra_exp_to_ant_and_bar_tot_val_percap-barbuda-total-value-per-capita','tra_exp_to_arg_per_cha_200-argentina-percent-change-2004-2005','tra_exp_to_arg_per_sha-trade-exports-argentina-percent-share','tra_exp_to_arg_tot_val-trade-exports-argentina-total-value','tra_exp_to_arg_tot_val_pergdp-argentina-total-value-per-gdp','tra_exp_to_arg_tot_val_percap-argentina-total-value-per-capita','tra_exp_to_aus_per_cha_200-austria-percent-change-2004-2005','tra_exp_to_aus_per_sha-trade-exports-austria-percent-share','tra_exp_to_aus_tot_val-trade-exports-austria-total-value','tra_exp_to_aus_tot_val_pergdp-austria-total-value-per-gdp','tra_exp_to_aus_tot_val_percap-austria-total-value-per-capita','tra_exp_to_bah_per_cha_200-bahrain-percent-change-2004-2005','tra_exp_to_bah_per_sha-trade-exports-bahrain-percent-share','tra_exp_to_bah_tot_val-trade-exports-bahrain-total-value','tra_exp_to_bah_tot_val_pergdp-bahrain-total-value-per-gdp','tra_exp_to_bah_tot_val_percap-bahrain-total-value-per-capita','tra_exp_to_bar_per_sha-trade-exports-barbados-percent-share','tra_exp_to_bar_tot_val-trade-exports-barbados-total-value','tra_exp_to_bar_tot_val_pergdp-barbados-total-value-per-gdp','tra_exp_to_bar_tot_val_percap-barbados-total-value-per-capita','tra_exp_to_bel_per_cha_200-belgium-percent-change-2004-2005','tra_exp_to_bel_per_sha-trade-exports-belgium-percent-share','tra_exp_to_bel_tot_val-trade-exports-belgium-total-value','tra_exp_to_bel_tot_val_pergdp-belgium-total-value-per-gdp','tra_exp_to_bel_tot_val_percap-belgium-total-value-per-capita','tra_exp_to_ber_per_cha_200-bermuda-percent-change-2004-2005','tra_exp_to_ber_per_sha-trade-exports-bermuda-percent-share','tra_exp_to_ber_tot_val-trade-exports-bermuda-total-value','tra_exp_to_ber_tot_val_pergdp-bermuda-total-value-per-gdp','tra_exp_to_ber_tot_val_percap-bermuda-total-value-per-capita','tra_exp_to_bra_per_cha_200-brazil-percent-change-2004-2005','tra_exp_to_bra_per_sha-trade-exports-brazil-percent-share','tra_exp_to_bra_tot_val-trade-exports-brazil-total-value','tra_exp_to_bra_tot_val_pergdp-brazil-total-value-per-gdp','tra_exp_to_bra_tot_val_percap-brazil-total-value-per-capita','tra_exp_to_bri_vir_isl_per_cha_200-islands-percent-change-2004-2005','tra_exp_to_bri_vir_isl_per_sha-british-virgin-islands-percent-share','tra_exp_to_bri_vir_isl_tot_val-british-virgin-islands-total-value','tra_exp_to_bri_vir_isl_tot_val_pergdp-islands-total-value-per-gdp','tra_exp_to_bri_vir_isl_tot_val_percap-islands-total-value-per-capita','tra_exp_to_bul_per_cha_200-bulgaria-percent-change-2004-2005','tra_exp_to_bul_per_sha-trade-exports-bulgaria-percent-share','tra_exp_to_bul_tot_val-trade-exports-bulgaria-total-value','tra_exp_to_bul_tot_val_pergdp-bulgaria-total-value-per-gdp','tra_exp_to_bul_tot_val_percap-bulgaria-total-value-per-capita','tra_exp_to_can_per_cha_200-canada-percent-change-2004-2005','tra_exp_to_can_per_sha-trade-exports-canada-percent-share','tra_exp_to_can_tot_val-trade-exports-canada-total-value','tra_exp_to_can_tot_val_pergdp-canada-total-value-per-gdp','tra_exp_to_can_tot_val_percap-canada-total-value-per-capita','tra_exp_to_cay_isl_per_cha_200-islands-percent-change-2004-2005','tra_exp_to_cay_isl_per_sha-exports-cayman-islands-percent-share','tra_exp_to_cay_isl_tot_val-exports-cayman-islands-total-value','tra_exp_to_cay_isl_tot_val_pergdp-islands-total-value-per-gdp','tra_exp_to_cay_isl_tot_val_percap-islands-total-value-per-capita','tra_exp_to_chi_per_cha_200-china-percent-change-2004-2005','tra_exp_to_chi_per_sha-trade-exports-china-percent-share','tra_exp_to_chi_tot_val-trade-exports-china-total-value','tra_exp_to_chi_tot_val_pergdp-china-total-value-per-gdp','tra_exp_to_chi_tot_val_percap-china-total-value-per-capita','tra_exp_to_col_per_cha_200-colombia-percent-change-2004-2005','tra_exp_to_col_per_sha-trade-exports-colombia-percent-share','tra_exp_to_col_tot_val-trade-exports-colombia-total-value','tra_exp_to_col_tot_val_pergdp-colombia-total-value-per-gdp','tra_exp_to_col_tot_val_percap-colombia-total-value-per-capita','tra_exp_to_cos_ric_per_cha_200-rica-percent-change-2004-2005','tra_exp_to_cos_ric_per_sha-exports-costa-rica-percent-share','tra_exp_to_cos_ric_tot_val-exports-costa-rica-total-value','tra_exp_to_cos_ric_tot_val_pergdp-rica-total-value-per-gdp','tra_exp_to_cos_ric_tot_val_percap-rica-total-value-per-capita','tra_exp_to_cze_rep_per_cha_200-republic-percent-change-2004-2005','tra_exp_to_cze_rep_per_sha-exports-czech-republic-percent-share','tra_exp_to_cze_rep_tot_val-exports-czech-republic-total-value','tra_exp_to_cze_rep_tot_val_pergdp-republic-total-value-per-gdp','tra_exp_to_cze_rep_tot_val_percap-republic-total-value-per-capita','tra_exp_to_den_per_cha_200-denmark-percent-change-2004-2005','tra_exp_to_den_per_sha-trade-exports-denmark-percent-share','tra_exp_to_den_tot_val-trade-exports-denmark-total-value','tra_exp_to_den_tot_val_pergdp-denmark-total-value-per-gdp','tra_exp_to_den_tot_val_percap-denmark-total-value-per-capita','tra_exp_to_dom_rep_per_cha_200-republic-percent-change-2004-2005','tra_exp_to_dom_rep_per_sha-exports-dominican-republic-percent-share','tra_exp_to_dom_rep_tot_val-exports-dominican-republic-total-value','tra_exp_to_dom_rep_tot_val_pergdp-republic-total-value-per-gdp','tra_exp_to_dom_rep_tot_val_percap-republic-total-value-per-capita','tra_exp_to_ven_tot_val_percap-venezuela-total-value-per-capita','tra-more');
      var wss = new Array('Select Trade Stat','Export Totals > Overall Value *','Export Totals > Overall Value (per $ GDP) *','Export Totals > Overall Value (per capita) *','Export Totals > Percent Change 2004-2005 *','Export Totals > Percent Share of US Total *','Exports to Algeria > Percent Change 2004-2005 *','Exports to Algeria > Percent Share *','Exports to Algeria > Total Value *','Exports to Algeria > Total Value (per $ GDP) *','Exports to Algeria > Total Value (per capita) *','Exports to Antigua and Barbuda > Percent Change 2004-2005 *','Exports to Antigua and Barbuda > Percent Share *','Exports to Antigua and Barbuda > Total Value *','Exports to Antigua and Barbuda > Total Value (per $ GDP) *','Exports to Antigua and Barbuda > Total Value (per capita) *','Exports to Argentina > Percent Change 2004-2005 *','Exports to Argentina > Percent Share *','Exports to Argentina > Total Value *','Exports to Argentina > Total Value (per $ GDP) *','Exports to Argentina > Total Value (per capita) *','Exports to Austria > Percent Change 2004-2005 *','Exports to Austria > Percent Share *','Exports to Austria > Total Value *','Exports to Austria > Total Value (per $ GDP) *','Exports to Austria > Total Value (per capita) *','Exports to Bahrain > Percent Change 2004-2005 *','Exports to Bahrain > Percent Share *','Exports to Bahrain > Total Value *','Exports to Bahrain > Total Value (per $ GDP) *','Exports to Bahrain > Total Value (per capita) *','Exports to Barbados > Percent Share *','Exports to Barbados > Total Value *','Exports to Barbados > Total Value (per $ GDP) *','Exports to Barbados > Total Value (per capita) *','Exports to Belgium > Percent Change 2004-2005 *','Exports to Belgium > Percent Share *','Exports to Belgium > Total Value *','Exports to Belgium > Total Value (per $ GDP) *','Exports to Belgium > Total Value (per capita) *','Exports to Bermuda > Percent Change 2004-2005 *','Exports to Bermuda > Percent Share *','Exports to Bermuda > Total Value *','Exports to Bermuda > Total Value (per $ GDP) *','Exports to Bermuda > Total Value (per capita) *','Exports to Brazil > Percent Change 2004-2005 *','Exports to Brazil > Percent Share *','Exports to Brazil > Total Value *','Exports to Brazil > Total Value (per $ GDP) *','Exports to Brazil > Total Value (per capita) *','Exports to British Virgin Islands > Percent Change 2004-2005 *','Exports to British Virgin Islands > Percent Share *','Exports to British Virgin Islands > Total Value *','Exports to British Virgin Islands > Total Value (per $ GDP) *','Exports to British Virgin Islands > Total Value (per capita) *','Exports to Bulgaria > Percent Change 2004-2005 *','Exports to Bulgaria > Percent Share *','Exports to Bulgaria > Total Value *','Exports to Bulgaria > Total Value (per $ GDP) *','Exports to Bulgaria > Total Value (per capita) *','Exports to Canada > Percent Change 2004-2005 *','Exports to Canada > Percent Share *','Exports to Canada > Total Value *','Exports to Canada > Total Value (per $ GDP) *','Exports to Canada > Total Value (per capita) *','Exports to Cayman Islands > Percent Change 2004-2005 *','Exports to Cayman Islands > Percent Share *','Exports to Cayman Islands > Total Value *','Exports to Cayman Islands > Total Value (per $ GDP) *','Exports to Cayman Islands > Total Value (per capita) *','Exports to China > Percent Change 2004-2005 *','Exports to China > Percent Share *','Exports to China > Total Value *','Exports to China > Total Value (per $ GDP) *','Exports to China > Total Value (per capita) *','Exports to Colombia > Percent Change 2004-2005 *','Exports to Colombia > Percent Share *','Exports to Colombia > Total Value *','Exports to Colombia > Total Value (per $ GDP) *','Exports to Colombia > Total Value (per capita) *','Exports to Costa Rica > Percent Change 2004-2005 *','Exports to Costa Rica > Percent Share *','Exports to Costa Rica > Total Value *','Exports to Costa Rica > Total Value (per $ GDP) *','Exports to Costa Rica > Total Value (per capita) *','Exports to Czech Republic > Percent Change 2004-2005 *','Exports to Czech Republic > Percent Share *','Exports to Czech Republic > Total Value *','Exports to Czech Republic > Total Value (per $ GDP) *','Exports to Czech Republic > Total Value (per capita) *','Exports to Denmark > Percent Change 2004-2005 *','Exports to Denmark > Percent Share *','Exports to Denmark > Total Value *','Exports to Denmark > Total Value (per $ GDP) *','Exports to Denmark > Total Value (per capita) *','Exports to Dominican Republic > Percent Change 2004-2005 *','Exports to Dominican Republic > Percent Share *','Exports to Dominican Republic > Total Value *','Exports to Dominican Republic > Total Value (per $ GDP) *','Exports to Dominican Republic > Total Value (per capita) *','Exports to Venezuela > Total Value (per capita) *','... more Trade Stats');
      break;
    case 'Transportation':
      var ids = new Array('','trn_act_avi_pil-transportation-active-aviation-pilots','trn_act_avi_pil_percap-active-aviation-pilots-per-capita','trn_act_fli_ins-transportation-active-flight-instructors','trn_act_fli_ins_percap-active-flight-instructors-per-capita','trn_air-transportation-airports','trn_air_percap-transportation-airports-per-capita','trn_aut_acc_ped_fat_as_per_of_tot-accidents-pedestrian-fatalities-percent-total','trn_aut_acc_ped_fat_rat_per_100_pop-rate-per-100-000-population','trn_aut_fat_res_not_use_per-fatalities-restraint-not-used-percent','trn_aut_fat_res_use_per-auto-fatalities-restraint-used-percent','trn_bor_cro_inc_bus-transportation-border-crossing-incoming-buses','trn_bor_cro_inc_bus_199_cha-incoming-buses-1995-2004-change','trn_bor_cro_inc_bus_199_tot-incoming-buses-1995-2004-total','trn_bor_cro_inc_bus_percap-crossing-incoming-buses-per-capita','trn_bor_cro_inc_per_veh-border-crossing-incoming-personal-vehicles','trn_bor_cro_inc_per_veh_199_cha-personal-vehicles-1995-2004-change','trn_bor_cro_inc_per_veh_199_tot-personal-vehicles-1995-2004-total','trn_bor_cro_inc_per_veh_percap-incoming-personal-vehicles-per-capita','trn_bor_cro_inc_per-transportation-border-crossing-incoming-persons','trn_bor_cro_inc_per_199_cha-incoming-persons-1995-2004-change','trn_bor_cro_inc_per_199_tot-incoming-persons-1995-2004-total','trn_bor_cro_inc_per_percap-crossing-incoming-persons-per-capita','trn_bor_cro_inc_per_by_bus-border-crossing-incoming-persons-buses','trn_bor_cro_inc_per_by_bus_199_cha-persons-buses-1995-2004-change','trn_bor_cro_inc_per_by_bus_199_tot-persons-buses-1995-2004-total','trn_bor_cro_inc_per_by_bus_percap-incoming-persons-buses-per-capita','trn_bor_cro_inc_per_by_per_veh-crossing-incoming-persons-personal-vehicles','trn_bor_cro_inc_per_by_per_veh_199_cha-personal-vehicles-1995-2004-change','trn_bor_cro_inc_per_by_per_veh_199_tot-personal-vehicles-1995-2004-total','trn_bor_cro_inc_per_by_per_veh_percap-persons-personal-vehicles-per-capita','trn_bor_cro_inc_per_by_tra-border-crossing-incoming-persons-trains','trn_bor_cro_inc_per_by_tra_199_cha-persons-trains-1995-2004-change','trn_bor_cro_inc_per_by_tra_199_tot-persons-trains-1995-2004-total','trn_bor_cro_inc_per_by_tra_percap-incoming-persons-trains-per-capita','trn_bor_cro_inc_per_ped-border-crossing-incoming-persons-pedestrians','trn_bor_cro_inc_per_ped_199_cha-persons-pedestrians-1995-2004-change','trn_bor_cro_inc_per_ped_199_tot-persons-pedestrians-1995-2004-total','trn_bor_cro_inc_per_ped_percap-incoming-persons-pedestrians-per-capita','trn_bor_cro_inc_tra-transportation-border-crossing-incoming-trains','trn_bor_cro_inc_tra_199_cha-incoming-trains-1995-2004-change','trn_bor_cro_inc_tra_199_tot-incoming-trains-1995-2004-total','trn_bor_cro_inc_tra_percap-crossing-incoming-trains-per-capita','trn_bor_cro_inc_tru-transportation-border-crossing-incoming-trucks','trn_bor_cro_inc_tru_199_cha-incoming-trucks-1995-2004-change','trn_bor_cro_inc_tru_199_tot-incoming-trucks-1995-2004-total','trn_bor_cro_inc_tru_percap-crossing-incoming-trucks-per-capita','trn_bor_cro_inc_veh-transportation-border-crossing-incoming-vehicles','trn_bor_cro_inc_veh_199_cha-incoming-vehicles-1995-2004-change','trn_bor_cro_inc_veh_199_tot-incoming-vehicles-1995-2004-total','trn_bor_cro_inc_veh_percap-crossing-incoming-vehicles-per-capita','trn_bri_fun_obs-transportation-bridges-functionally-obsolete','trn_bri_fun_obs_percap-bridges-functionally-obsolete-per-capita','trn_bri_per_fun_obs_or_str_def-percent-functionally-obsolete-structurally-deficient','trn_bri_str_def-transportation-bridges-structurally-deficient','trn_bri_str_def_percap-bridges-structurally-deficient-per-capita','trn_bri_tot_num-transportation-bridges-total-number','trn_bri_tot_num_percap-bridges-total-number-per-capita','trn_hel-transportation-heliports','trn_hel_percap-transportation-heliports-per-capita','trn_hel_law_mot_rid-transportation-helmet-laws-motorcycle-riders','trn_hel_law_bic_rid-transportation-helmut-laws-bicycle-riders','trn_hig_gra_cro_fat-highway-rail-grade-crossings-fatalities','trn_hig_gra_cro_fat_percap-grade-crossings-fatalities-per-capita','trn_hig_gra_cro_inc_of_col-rail-grade-crossings-incidents-collision','trn_hig_gra_cro_inc_of_col_percap-crossings-incidents-collision-per-capita','trn_hig_gra_cro_inj-highway-rail-grade-crossings-injuries','trn_hig_gra_cro_inj_percap-grade-crossings-injuries-per-capita','trn_hig_gra_cro_tot_num-rail-grade-crossings-total-number','trn_hig_gra_cro_tot_num_percap-crossings-total-number-per-capita','trn_inl_wat_mil-transportation-inland-waterway-mileage','trn_inl_wat_mil_percap-inland-waterway-mileage-per-capita','trn_int_90_rou_des_km-interstate-90-route-description-km','trn_lar_tru_fat-transportation-large-truck-fatalities','trn_lar_tru_fat_percap-large-truck-fatalities-per-capita','trn_lar_tru_fat_per_of_tot-large-truck-fatalities-percent-total','trn_lar_tru_fat_per_of_tot_percap-fatalities-percent-total-per-capita','trn_lar_tru_inv_in_fat_cra-large-trucks-involved-fatal-crashes','trn_lic_dri_per_1000_dri_age_pop-1-000-driving-age-population','trn_lic_dri_per_reg_veh-licensed-drivers-per-registered-vehicle','trn_lic_dri_tot_num-transportation-licensed-drivers-total-number','trn_lic_dri_tot_num_percap-drivers-total-number-per-capita','trn_num_of_tol_bri-transportation-number-of-toll-bridges','trn_num_of_tol_bri_percap-number-toll-bridges-per-capita','trn_num_of_tol_fer-transportation-number-of-toll-ferries','trn_num_of_tol_fer_percap-number-toll-ferries-per-capita','trn_num_of_tol_tun-transportation-number-of-toll-tunnels','trn_num_of_tol_tun_percap-number-toll-tunnels-per-capita','trn_pub_tra_ann_unl_pas_tri-public-annual-unlinked-passenger-trips','trn_pub_tra_ann_unl_pas_tri_percap-unlinked-passenger-trips-per-capita','trn_pub_tra_fed_fun_1995-transportation-public-federal-funding-1995','trn_pub_tra_fed_fun_1995_pergdp-federal-funding-1995-per-gdp','trn_pub_tra_fed_fun_1995_percap-federal-funding-1995-per-capita','trn_pub_tra_fed_fun_2003-transportation-public-federal-funding-2003','trn_pub_tra_fed_fun_2003_pergdp-federal-funding-2003-per-gdp','trn_pub_tra_fed_fun_2003_percap-federal-funding-2003-per-capita','trn_pub_tra_per_com_rai-transportation-public-percent-commuter-rail','trn_pub_tra_per_hea_rai-transportation-public-percent-heavy-rail','trn_pub_tra_per_lig_rai-transportation-public-percent-light-rail','trn_pub_tra_per_mot_bus-transportation-public-percent-motor-bus','trn_pub_tra_per_oth-transportation-public-percent-other','trn-more');
      var wss = new Array('Select Transportation Stat','Active Aviation Pilots *','Active Aviation Pilots (per capita) *','Active Flight Instructors *','Active Flight Instructors (per capita) *','Airports *','Airports (per capita) *','Auto Accidents > Pedestrian fatalities as percent of total *','Auto Accidents > Pedestrian fatality rate per 100,000 population *','Auto Fatalities > Restraint not used, percent *','Auto Fatalities > Restraint used, percent *','Border Crossing > Incoming Buses *','Border Crossing > Incoming Buses (1995-2004 change) *','Border Crossing > Incoming Buses (1995-2004 total) *','Border Crossing > Incoming Buses (per capita) *','Border Crossing > Incoming Personal Vehicles *','Border Crossing > Incoming Personal Vehicles (1995-2004 change) *','Border Crossing > Incoming Personal Vehicles (1995-2004 total) *','Border Crossing > Incoming Personal Vehicles (per capita) *','Border Crossing > Incoming Persons *','Border Crossing > Incoming Persons (1995-2004 change) *','Border Crossing > Incoming Persons (1995-2004 total) *','Border Crossing > Incoming Persons (per capita) *','Border Crossing > Incoming Persons > By Buses *','Border Crossing > Incoming Persons > By Buses (1995-2004 change) *','Border Crossing > Incoming Persons > By Buses (1995-2004 total) *','Border Crossing > Incoming Persons > By Buses (per capita) *','Border Crossing > Incoming Persons > By Personal Vehicles *','Border Crossing > Incoming Persons > By Personal Vehicles (1995-2004 change) *','Border Crossing > Incoming Persons > By Personal Vehicles (1995-2004 total) *','Border Crossing > Incoming Persons > By Personal Vehicles (per capita) *','Border Crossing > Incoming Persons > By Trains *','Border Crossing > Incoming Persons > By Trains (1995-2004 change) *','Border Crossing > Incoming Persons > By Trains (1995-2004 total) *','Border Crossing > Incoming Persons > By Trains (per capita) *','Border Crossing > Incoming Persons > Pedestrians *','Border Crossing > Incoming Persons > Pedestrians (1995-2004 change) *','Border Crossing > Incoming Persons > Pedestrians (1995-2004 total) *','Border Crossing > Incoming Persons > Pedestrians (per capita) *','Border Crossing > Incoming Trains *','Border Crossing > Incoming Trains (1995-2004 change) *','Border Crossing > Incoming Trains (1995-2004 total) *','Border Crossing > Incoming Trains (per capita) *','Border Crossing > Incoming Trucks *','Border Crossing > Incoming Trucks (1995-2004 change) *','Border Crossing > Incoming Trucks (1995-2004 total) *','Border Crossing > Incoming Trucks (per capita) *','Border Crossing > Incoming Vehicles *','Border Crossing > Incoming Vehicles (1995-2004 change) *','Border Crossing > Incoming Vehicles (1995-2004 total) *','Border Crossing > Incoming Vehicles (per capita) *','Bridges > Functionally obsolete *','Bridges > Functionally obsolete (per capita) *','Bridges > Percent functionally obsolete or structurally deficient *','Bridges > Structurally deficient *','Bridges > Structurally deficient (per capita) *','Bridges > Total number *','Bridges > Total number (per capita) *','Heliports *','Heliports (per capita) *','Helmet Laws > Motorcycle riders','Helmut Laws > Bicycle riders','Highway-Rail Grade Crossings > Fatalities *','Highway-Rail Grade Crossings > Fatalities (per capita) *','Highway-Rail Grade Crossings > Incidents of collision *','Highway-Rail Grade Crossings > Incidents of collision (per capita) *','Highway-Rail Grade Crossings > Injuries *','Highway-Rail Grade Crossings > Injuries (per capita) *','Highway-Rail Grade Crossings > Total number *','Highway-Rail Grade Crossings > Total number (per capita) *','Inland Waterway Mileage *','Inland Waterway Mileage (per capita) *','Interstate 90 > Route description > km *','Large truck fatalities *','Large truck fatalities (per capita) *','Large truck fatalities > Percent of total *','Large truck fatalities > Percent of total (per capita) *','Large trucks involved in fatal crashes *','Licensed Drivers > Per 1,000 driving age population *','Licensed Drivers > Per registered vehicle *','Licensed Drivers > Total number *','Licensed Drivers > Total number (per capita) *','Number of toll bridges *','Number of toll bridges (per capita) *','Number of toll ferries *','Number of toll ferries (per capita) *','Number of toll tunnels *','Number of toll tunnels (per capita) *','Public Annual unlinked passenger trips *','Public Annual unlinked passenger trips (per capita) *','Public Federal funding, 1995 *','Public Federal funding, 1995 (per $ GDP) *','Public Federal funding, 1995 (per capita) *','Public Federal funding, 2003 *','Public Federal funding, 2003 (per $ GDP) *','Public Federal funding, 2003 (per capita) *','Public Percent commuter rail *','Public Percent heavy rail *','Public Percent light rail *','Public Percent motor bus *','Public Percent other *','... more Transportation Stats');
      break;
  }

	if (ids) { 
		for (i=0; i<ids.length; i++) {
			if (b_all) {
				option1 = new Option(wss[i], ids[i], false, false);
					statty.options[statty.length] = option1;
				statty.selectedIndex = 0;
			} else if (wss[i].indexOf("*") > 0 || ids[i] == " ") { 
				option1 = new Option(wss[i].replace(/ */, ""), ids[i], false, false);  
					statty.options[statty.length] = option1;
				statty.selectedIndex = 0;
			}
	
		}
	}
}

function checkEmail(myForm) {
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.str_email.value)){
		return (true);
	}
	alert("Invalid E-mail Address! Please use the format user@domain.com");
	return (false);
}



function fill_countries(ids_select) {

	b_select = new Array(); 

	for (var i=0; i<ids_select.length; i++) {
		b_select[ids_select[i]] = true; 
	}
	  var ids = new Array('a','west','south','midwest','northeast','terrs','westco','neweng','AL','AK','AS','AZ','AR','CA','CO','CT','DE','DC','FL','GA','GU','HI','ID','IL','IN','IA','KS','KY','LA','ME','MD','MA','MI','MN','MS','MO','MT','NE','NV','NH','NJ','NM','NY','NC','ND','CQ','OH','OK','OR','PA','PU','RI','SC','SD','TN','TX','VI','UT','VT','VA','WA','WV','WI','WY');
  var wss = new Array('All states','The West','The South','The Midwest','The Northeast','Special Territories and Administrative Regions','West Coast','New England','Alabama','Alaska','American Samoa','Arizona','Arkansas','California','Colorado','Connecticut','Delaware','District of Columbia','Florida','Georgia','Guam','Hawaii','Idaho','Illinois','Indiana','Iowa','Kansas','Kentucky','Louisiana','Maine','Maryland','Massachusetts','Michigan','Minnesota','Mississippi','Missouri','Montana','Nebraska','Nevada','New Hampshire','New Jersey','New Mexico','New York','North Carolina','North Dakota','Northern Mariana Islands','Ohio','Oklahoma','Oregon','Pennsylvania','Puerto Rico','Rhode Island','South Carolina','South Dakota','Tennessee','Texas','US Virgin Islands','Utah','Vermont','Virginia','Washington','West Virginia','Wisconsin','Wyoming');
	
	for (var i=0; i<ids.length; i++) {
		if (b_select[ids[i]]) { 
			document.gen.id.options[document.gen.id.length] = new Option(wss[i], ids[i], false, true);
		}
	}

	for (var i=0; i<ids.length; i++) {
		if (!b_select[ids[i]]) { 
			document.gen.id.options[document.gen.id.length] = new Option(wss[i], ids[i], false, false);
		}
	}
}



// #check to see that a statistic has been chosen when a category has
// Invoked on submit 
function check_stat() {

	var ws = document.gen.c.options[document.gen.c.selectedIndex].text;
	if (ws.substr(0, 6) == "Select") {
		// alert (ws);  // # which will say "select Geography" or whatever?
		document.gen.c.options.focus;
		return false;
	}
}

// # Clear out stat box
function clear(catty) {
	// alert("hello - " & catty); 
	while(catty.length != 0) {
		catty.options[catty.length-1] = null;
	}
}


// # set the stat box to what's found in the querystring.. Just on load.
function set_stat_plot(str_find, opty) {
	
	// alert (str_find); 
	for (i=0; i<opty.length; i++) {
		// document.write(opty.options[i].value + " " + str_find + "<br>"); 
		if (opty.options[i].value == str_find) {
			opty.selectedIndex= i;
		}
	}
}


/* 
function set_stat_plot_old(str, opty) {
	
	str_find = QueryString(str); 	
	
	for (i=0; i<opty.length; i++) {
		// document.write(opty.options[i].value + " " + str + " " + QueryString(str) + "<br>"); 
		if (opty.options[i].value == str_find) {
			opty.selectedIndex= i;
		}
	}
}
*/ 


// # set the stat box to what's found in the querystring.. Just on load.
function set_stat_old() {

	var url = window.location.href + "&";
	var loc_start = url.indexOf("/") + 8;
	
	var rex = /https?:\/\/.*?\/.*?\/(.*?)&/i;
	var res = rex.exec(url); 
	
	if (res) {
		var c = res[1];

		for (i=0; i<document.gen.c.length; i++) {
	
			if (document.gen.c.options[i].value == c) {
				document.gen.c.selectedIndex = i;
			}
	
		}
	}
}


function set_stat() {
  var url = window.location.href + "&";
	var rex = new RegExp("https?://[^/]*/[^/]*/([^/&]*)(/([^/]*))?");
	var res = rex.exec(url); 
	
	if (res) {
		var c = res[1];
		var c1 = res[3];
		
		for (i=0; i<document.gen.c.length; i++) {
	
			if (document.gen.c.options[i].value == c) {
				document.gen.c.selectedIndex = i;
			}
	    if (document.gen.c1 != null && document.gen.c1.options != null && document.gen.c1.options[i] != null && document.gen.c1.options[i].value == c1) {
				document.gen.c1.selectedIndex = i;
			}
		}
	} 
}

function set_stat_2(statName, c) {
  for (i=0; i < c.length; i++) {
		if (c.options[i].value == statName) {
			c.selectedIndex = i;
		}
	}
}  

function submit_it() {
	var ws = document.gen.c.options[document.gen.c.selectedIndex].text;
	
	// alert("hello - " + url); 
	
	if (ws.substr(0, 6) == "Select") {
		// alert (ws + " or select 'Show Country' under category to view the country or region");  // # which will say "select Geography" or whatever
		// # document.gen.c.options.focus; # this doesn't work
		
		return false;
	// } //elseif (ws.substr(0, 1) == "^") {
		// alert ("You must either select
	} else {
		var url;
		if (document.gen.c1.options[document.gen.c1.selectedIndex].value && (document.gen.show.options[document.gen.show.selectedIndex].value == "plot")) {
		  url = '/plot' 
  		+ '/' + document.gen.c.options[document.gen.c.selectedIndex].value
	  	+ '/' + document.gen.c1.options[document.gen.c1.selectedIndex].value
		  + '/' + document.gen.size.options[document.gen.size.selectedIndex].value;
	
	     for (i=0; i < document.gen.id.options.length; i++) {
		      var idy = document.gen.id.options[i].value;
		      if (document.gen.id.options[i].selected && idy != "a") {
			       url = url + "&id=" + idy;
		      }
	     }	
    	window.location = url; 
    	return;
		}	
		if(document.gen.c.selectedIndex > 0) {
		// if (document.gen.c.options[document.gen.c.selectedIndex].value) {
			
			url = url_graph();
		} else {
			
			if (document.gen.id.selectedIndex > 0) { 
				if (document.gen.id.options[document.gen.id.selectedIndex].value.length == 3) {
					url = url_region();
					window.location = url;
					return;
				} else {
					if (document.gen.id.options[document.gen.id.selectedIndex].value.length == 2) {
						url = url_country();
						window.location = url;
						return;
					}
				}
			}
		}		

		if (url) {
		  url = '/red' + url;
			window.location = url;
		} else {
			alert("You must select either a state or statistic to view"); 
		} 

		
	}
}

function submit_plot() {
	var url = '/plot' 
		+ '/' + document.gen.str_x.options[document.gen.str_x.selectedIndex].value
		+ '/' + document.gen.str_y.options[document.gen.str_y.selectedIndex].value
		+ '/' + document.gen.size.options[document.gen.size.selectedIndex].value;
	
	for (i=0; i < document.gen.id.options.length; i++) {
		var idy = document.gen.id.options[i].value;
		if (document.gen.id.options[i].selected && idy != "a") {
			url = url + "&id=" + idy;
		}
	}	
	window.location = url; 
}



function url_country() {
	var url = '/country/' + document.gen.id.options[document.gen.id.selectedIndex].value;
	return url;
}

function url_region() {
	var url = '/region/' + document.gen.id.options[document.gen.id.selectedIndex].value;
	return url;
}


// Generate graph url
function url_graph() {

	var str_t = document.gen.t.options[document.gen.t.selectedIndex];

	var url = '/' 
		+ document.gen.show.options[document.gen.show.selectedIndex].value;
		
	if(str_t.value.substr(0,1) == 'B') {
	  url = url + '-B';
	}
	
	url = url + '/'
		+ document.gen.c.options[document.gen.c.selectedIndex].value;

	// # Default value for T is 100.. And we don't include it after & ?>
	var inty = document.gen.t.options[document.gen.t.selectedIndex].value.substr(1, 3);

	//if (inty != 100 ) {
		url = url + '&int=' + inty;
	//}
	
	for (i=0; i < document.gen.id.options.length; i++) {
		var idy = document.gen.id.options[i].value;
		if (document.gen.id.options[i].selected && idy != "a") {
			url = url + "&id=" + idy;
		}
	}
	
  if(str_t.value.substr(0,1) == 'B') {
	  url = url + '&b_desc=1';
	}

	return url;
}

function detectVersion()
{
version = parseInt(navigator.appVersion);
return version;
}

function detectOS()
{
if(navigator.userAgent.indexOf('Win') == -1) {
OS = 'Macintosh';
} else {
OS = 'Windows';
}
return OS;
}

function detectBrowser()
{
if(navigator.appName.indexOf('Netscape') == -1) {
browser = 'IE';
} else {
browser = 'Netscape';
}
return browser;
}

function FullScreen(urly){

var adjWidth;
var adjHeight;

if((detectOS() == 'Macintosh') && (detectBrowser() == 'Netscape')) {
adjWidth = 20;
adjHeight = 35;
}
if((detectOS() == 'Macintosh') && (detectBrowser() == 'IE')) {
adjWidth = 20;
adjHeight = 35;
winOptions = 'fullscreen=yes';
}
if((detectOS() == 'Windows') && (detectBrowser() == 'Netscape')) {
adjWidth = 30;
adjHeight = 30;
}
if(detectVersion() < 4) {
self.location.href = 'oldbrowser.html';
} else {
var winWidth = screen.availWidth - adjWidth;
var winHeight = screen.availHeight - adjHeight;
var winSize = 'width=' + winWidth + ',height=' + winHeight;
var thewindow = window.open(urly, 'WindowName', winSize);
thewindow.moveTo(0,0);
}
}

function fswindow(urly){
if((detectOS() == 'Windows') && (detectBrowser() == 'IE')) {
window.open(urly,'windowname','fullscreen=yes');
} else {
onload=FullScreen(urly);
}
}

