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 'Agriculture':
      var ids = new Array('','agr_agr_gro-agriculture-agricultural-growth','agr_agr_lan_of_lan_are-agriculture-agricultural-land-of-area','agr_agr_lan_sq_km-agriculture-agricultural-land-sq-km','agr_agr_mac_tra-agriculture-agricultural-machinery-tractors','agr_agr_mac_tra_per_100_hec_of_ara_lan-per-100-hectares-arable-land','agr_agr_raw_mat_exp_of_mer_exp-agricultural-raw-materials-exports-merchandise','agr_agr_raw_mat_imp_of_mer_imp-agricultural-raw-materials-imports-merchandise','agr_agr_val_add_cur_us_pergdp-added-current-us-per-gdp','agr_ara_and_per_cro-agriculture-arable-and-permanent-cropland','agr_ara_and_per_cro_percap-arable-permanent-cropland-per-capita','agr_ara_lan_of_lan_are-agriculture-arable-land-of-area','agr_ara_lan_hec-agriculture-arable-land-hectares','agr_ara_lan_hec_percap-arable-land-hectares-per-capita','agr_are_cor-agriculture-area-corn','agr_are_cot-agriculture-area-cotton','agr_are_ric-agriculture-area-rice','agr_are_ric_percap-agriculture-area-rice-per-capita','agr_are_soy-agriculture-area-soybean','agr_ban_exp-agriculture-banana-exports','agr_ban_imp-agriculture-banana-imports','agr_ban_pro-agriculture-banana-production','agr_ban_pro_percap-agriculture-banana-production-per-capita','agr_cer_pro-agriculture-cereal-production','agr_cer_yie_kg_per_hec-cereal-yield-kg-per-hectare','agr_cot_exp-agriculture-cotton-exports','agr_cot_imp-agriculture-cotton-imports','agr_cot_pro-agriculture-cotton-production','agr_cro_pro_ind-agriculture-crop-production-index','agr_exp_to_usa_ban_percap-exports-usa-bananas-per-capita','agr_exp_to_usa_bla_red_or_whi_cur_and_goo-black-red-white-currants-gooseberries','agr_exp_to_usa_bra_nut-agriculture-exports-usa-brazil-nuts','agr_exp_to_usa_cas_nut_percap-usa-cashew-nuts-per-capita','agr_exp_to_usa_che-agriculture-exports-to-usa-cherries','agr_exp_to_usa_cuc_and_ghe-agriculture-exports-usa-cucumbers-gherkins','agr_exp_to_usa_gar-agriculture-exports-to-usa-garlic','agr_exp_to_usa_haz_or_fil-agriculture-exports-usa-hazelnuts-filberts','agr_exp_to_usa_man_gua_and_man-exports-usa-mangoes-guavas-mangosteens','agr_exp_to_usa_mel_percap-exports-usa-melons-per-capita','agr_exp_to_usa_mus-agriculture-exports-to-usa-mushrooms','agr_exp_to_usa_oni_and_sha_percap-usa-onions-shallots-per-capita','agr_exp_to_usa_ora_jui-agriculture-exports-usa-orange-juice','agr_exp_to_usa_pla-agriculture-exports-to-usa-plantains','agr_exp_to_usa_ras_bla_mul_and_log-usa-raspberries-blackberries-mulberries-loganberries','agr_fer_con_100_gra_per_hec_of_ara_lan-grams-per-hectare-arable-land','agr_fer_con_met_ton-agriculture-fertilizer-consumption-metric-tons','agr_fer_use-agriculture-fertilizer-use','agr_foo_pro_ind-agriculture-food-production-index','agr_gra_bar_pro-agriculture-grains-barley-production','agr_gra_bar_sto-agriculture-grains-barley-stocks','agr_gra_coa_gra_exp-agriculture-grains-coarse-grain-exports','agr_gra_coa_gra_imp-agriculture-grains-coarse-grain-imports','agr_gra_coa_gra_pro-agriculture-grains-coarse-grain-production','agr_gra_cor_con-agriculture-grains-corn-consumption','agr_gra_cor_con_percap-grains-corn-consumption-per-capita','agr_gra_cor_exp-agriculture-grains-corn-exports','agr_gra_cor_imp-agriculture-grains-corn-imports','agr_gra_cor_pro-agriculture-grains-corn-production','agr_gra_ric_con-agriculture-grains-rice-consumption','agr_gra_ric_con_percap-grains-rice-consumption-per-capita','agr_gra_ric_exp-agriculture-grains-rice-exports','agr_gra_ric_pro-agriculture-grains-rice-production','agr_gra_ric_pro_percap-grains-rice-production-per-capita','agr_gra_whe_con-agriculture-grains-wheat-consumption','agr_gra_whe_con_percap-grains-wheat-consumption-per-capita','agr_gra_whe_exp-agriculture-grains-wheat-exports','agr_gra_whe_imp_percap-grains-wheat-imports-per-capita','agr_gra_whe_pro-agriculture-grains-wheat-production','agr_gra_whe_pro_percap-grains-wheat-production-per-capita','agr_hog_pro-agriculture-hog-production','agr_irr_lan_of_cro-agriculture-irrigated-land-of-cropland','agr_lab_sha-agriculture-labor-share','agr_liv_pro_ind-agriculture-livestock-production-index','agr_mea_pro-agriculture-meat-production','agr_mea_pro_percap-agriculture-meat-production-per-capita','agr_org_cro-agriculture-organic-cropland','agr_org_cro_percap-agriculture-organic-cropland-per-capita','agr_per_cro-agriculture-permanent-crops','agr_pes_use-agriculture-pesticide-use','agr_pro_bar-agriculture-production-barley','agr_pro_cor-agriculture-production-corn','agr_pro_ric-agriculture-production-rice','agr_pro_soy-agriculture-production-soybean','agr_pro-agriculture-products','agr_roo_and_tub_pro-agriculture-root-and-tuber-production','agr_roo_and_tub_pro_gro-agriculture-root-tuber-production-growth','agr_tra_con-agriculture-tractor-concentration','agr_tra-agriculture-tractors','agr_tra_percap-agriculture-tractors-per-capita','agr_val_add-agriculture-value-added','agr_val_add_ann_gro-agriculture-value-added-annual-growth','agr_val_add_con_2000_us-value-added-constant-2000-us','agr_val_add_cur_lcu-agriculture-value-added-current-lcu','agr_val_add_cur_us-agriculture-value-added-current-us','agr_val_add_cur_us_percap-added-current-us-per-capita','agr_val_add_per_wor_con_2000_us-per-worker-constant-2000-us','agr_wor_per_hec-agriculture-workers-per-hectare','agr_yie_cot-agriculture-yield-cotton','agr_yie_ric-agriculture-yield-rice','agr_yie_tot_coa_gra-agriculture-yield-total-coarse-grain','agr_yie_whe-agriculture-yield-wheat','agr-more');
      var wss = new Array('Select Agriculture Stat','Agricultural growth *','Agricultural land > % of land area *','Agricultural land > sq. km *','Agricultural machinery > tractors *','Agricultural machinery > tractors per 100 hectares of arable land *','Agricultural raw materials exports > % of merchandise exports *','Agricultural raw materials imports > % of merchandise imports *','Agriculture, value added > current US$ (per $ GDP) *','Arable and permanent cropland *','Arable and permanent cropland (per capita) *','Arable land > % of land area *','Arable land > hectares *','Arable land > hectares (per capita) *','Area > Corn *','Area > Cotton *','Area > Rice *','Area > Rice (per capita) *','Area > Soybean *','Banana exports *','Banana imports *','Banana production *','Banana production (per capita) *','Cereal production *','Cereal yield > kg per hectare *','Cotton exports *','Cotton imports *','Cotton production *','Crop production index *','Exports to USA > Bananas (per capita) *','Exports to USA > Black red or white currants and gooseberries *','Exports to USA > Brazil nuts *','Exports to USA > Cashew nuts (per capita) *','Exports to USA > Cherries *','Exports to USA > Cucumbers and gherkins *','Exports to USA > Garlic *','Exports to USA > Hazelnuts or filberts *','Exports to USA > Mangoes guavas and mangosteens *','Exports to USA > Melons (per capita) *','Exports to USA > Mushrooms *','Exports to USA > Onions and shallots (per capita) *','Exports to USA > Orange juice *','Exports to USA > Plantains *','Exports to USA > Raspberries blackberries mulberries and loganberries *','Fertilizer consumption > 100 grams per hectare of arable land *','Fertilizer consumption > metric tons *','Fertilizer use *','Food production index *','Grains > Barley production *','Grains > Barley stocks *','Grains > Coarse grain exports *','Grains > Coarse grain imports *','Grains > Coarse grain production *','Grains > Corn consumption *','Grains > Corn consumption (per capita) *','Grains > Corn exports *','Grains > Corn imports *','Grains > Corn production *','Grains > Rice consumption *','Grains > Rice consumption (per capita) *','Grains > Rice exports *','Grains > Rice production *','Grains > Rice production (per capita) *','Grains > Wheat consumption *','Grains > Wheat consumption (per capita) *','Grains > Wheat exports *','Grains > Wheat imports (per capita) *','Grains > Wheat production *','Grains > Wheat production (per capita) *','Hog production *','Irrigated land > % of cropland *','Labor share *','Livestock production index *','Meat production *','Meat production (per capita) *','Organic cropland *','Organic cropland (per capita) *','Permanent crops *','Pesticide use *','Production > Barley *','Production > Corn *','Production > Rice *','Production > Soybean *','Products','Root and tuber production *','Root and tuber production growth *','Tractor concentration *','Tractors *','Tractors (per capita) *','Value added *','value added > annual % growth *','value added > constant 2000 US$ *','value added > current LCU','value added > current US$ *','value added > current US$ (per capita) *','value added per worker > constant 2000 US$ *','Workers per hectare *','Yield > Cotton *','Yield > Rice *','Yield > Total Coarse Grain *','Yield > Wheat *','... more Agriculture Stats');
      break;
    case 'Background':
      var ids = new Array('','bac_bac-background','bac_nat_bir-background-national-bird','bac_nat_col_som_wel_nat_col_pri_col-colours-some-well-known-primary','bac_nat_col_som_wel_nat_col_sec_col-colours-some-well-known-secondary','bac_nor_ame_are_cod_car_and_ber_cod-american-area-codes-caribbean-bermuda','bac-more');
      var wss = new Array('Select Background Stat','Background','National bird','National colours > Some well-known national colours > Primary colours','National colours > Some well-known national colours > Secondary colours','North American area codes > Caribbean and Bermuda > Codes','... more Background Stats');
      break;
    case 'Crime':
      var ids = new Array('','cri_of_man_sur_ran_thi_as_a_maj_bus_con-surveyed-ranking-major-business-constraint','cri_acq-crime-acquitted','cri_adu_pro-crime-adults-prosecuted','cri_adu_pro_percap-crime-adults-prosecuted-per-capita','cri_ann_ter_fat-crime-annual-terrorism-fatalities','cri_ann_ter_inc-crime-annual-terrorism-incidents','cri_ass_vic-crime-assault-victims','cri_ass-crime-assaults','cri_ass_percap-crime-assaults-per-capita','cri_bel_in_pol_eff-crime-believe-in-police-efficiency','cri_bri_pay_ind-crime-bribe-payers-index','cri_bri_vic-crime-bribery-victims','cri_bur-crime-burglaries','cri_bur_percap-crime-burglaries-per-capita','cri_car_the-crime-car-thefts','cri_car_the_percap-crime-car-thefts-per-capita','cri_con-crime-convicted','cri_con_percap-crime-convicted-per-capita','cri_cor_of_man_sur_ran_thi_as_a_maj_bus_con-surveyed-ranking-major-business-constraint','cri_cou_of_man_sur_lac_con_in_cou_to_uph_pro_rig-lacking-confidence-uphold-property-rights','cri_cou_of_man_sur_ran_thi_as_a_maj_bus_con-surveyed-ranking-major-business-constraint','cri_csi_cri_sce_inv_bro_det_alt_tit-broadcast-details-alternate-title-translation','cri_dea_pen_abo_dat-crime-death-penalty-abolition-date','cri_dea_pen_abo_for_ord_cri-death-penalty-abolition-ordinary-crimes','cri_dea_pen_las_exe-crime-death-penalty-last-executed','cri_dru_off-crime-drug-offences','cri_emb-crime-embezzlements','cri_emb_percap-crime-embezzlements-per-capita','cri_exe-crime-executions','cri_exe_percap-crime-executions-per-capita','cri_fem_pro-crime-females-prosecuted','cri_fra-crime-frauds','cri_fra_percap-crime-frauds-per-capita','cri_gun_vio_hom_hom_wit_fir-crime-gun-violence-homicides-firearms','cri_gun_vio_hom_fir_hom_rat_per_100_pop-rate-per-100-000-pop','cri_gun_vio_hom_non_hom_rat_per_100_pop-rate-per-100-000-pop','cri_gun_vio_hom_ove_hom_rat_per_100_pop-rate-per-100-000-pop','cri_ill_dru-crime-illicit-drugs','cri_jai-crime-jails','cri_jai_percap-crime-jails-per-capita','cri_jud_and_mag-crime-judges-and-magistrates','cri_jud_and_mag_percap-crime-judges-magistrates-per-capita','cri_jud_of_the_int_cri_cou_cha-judges-international-criminal-court-chamber','cri_jud_of_the_int_cri_cou_ele-judges-international-criminal-court-elected','cri_jud_of_the_int_cri_cou_nam-judges-international-criminal-court-name','cri_jud_of_the_int_cri_cou_ter_end-international-criminal-court-term-end','cri_kid-crime-kidnappings','cri_man-crime-manslaughters','cri_man_percap-crime-manslaughters-per-capita','cri_mur-crime-murders','cri_mur_percap-crime-murders-per-capita','cri_mur_com_by_you-crime-murders-committed-by-youths','cri_mur_com_by_you_per_cap-murders-committed-youths-per-capita','cri_mur_wit_fir-crime-murders-with-firearms','cri_mur_wit_fir_percap-crime-murders-firearms-per-capita','cri_per_of_saf_bur-crime-perception-of-safety-burglary','cri_per_of_saf_wal_in_dar-crime-perception-safety-walking-dark','cri_pol-crime-police','cri_pol_percap-crime-police-per-capita','cri_pri-crime-prisoners','cri_pri_fem-crime-prisoners-female','cri_pri_for_pri-crime-prisoners-foreign','cri_pri_per_cap-crime-prisoners-per-capita','cri_pri_pre_tri_det-crime-prisoners-pre-trial-detainees','cri_pri_sha_of_pri_cap_fil-prisoners-share-prison-capacity-filled','cri_pro_cri_vic-crime-property-victims','cri_rap_vic-crime-rape-victims','cri_rap-crime-rapes','cri_rap_percap-crime-rapes-per-capita','cri_rep_to_pol-crime-reporting-to-police','cri_rob-crime-robberies','cri_rob_percap-crime-robberies-per-capita','cri_rob_vic-crime-robbery-victims','cri_sen_len-crime-sentence-length','cri_sof_pir_los-crime-software-piracy-losses','cri_sof_pir_los_per_gdp-software-piracy-losses-per-gdp','cri_sof_pir_rat-crime-software-piracy-rate','cri_sui_rat_in_age_15_24-suicide-rates-ages-15-24','cri_sui_rat_in_age_25_34-suicide-rates-ages-25-34','cri_sui_rat_in_age_35_44-suicide-rates-ages-35-44','cri_sui_rat_in_age_45_54-suicide-rates-ages-45-54','cri_sui_rat_in_age_55_64-suicide-rates-ages-55-64','cri_sui_rat_in_age_65_74-suicide-rates-ages-65-74','cri_sui_rat_in_age_abo_75-suicide-rates-ages-above-75','cri_tot_cri_vic-crime-total-victims','cri_tot_cri-crime-total-crimes','cri_tot_cri_percap-crime-total-crimes-per-capita','cri_tra_iss_tra_in_per_cur_sit-issues-trafficking-persons-current-situation','cri_tra_iss_tra_in_per_tie_rat-issues-trafficking-persons-tier-rating','cri_uni_sta_ext_tre_cit-united-states-extradition-treaties-citation','cri_uni_sta_ext_tre_dat_sig-states-extradition-treaties-date-signed','cri_uni_sta_ext_tre_ent_int_for-extradition-treaties-entered-into-force','cri_unp_dip_par_fin-crime-unpaid-diplomatic-parking-fines','cri-more');
      var wss = new Array('Select Crime Stat','> % of managers surveyed ranking this as a major business constraint *','Acquitted *','Adults prosecuted *','Adults prosecuted (per capita) *','Annual Terrorism Fatalities *','Annual Terrorism Incidents *','Assault victims *','Assaults *','Assaults (per capita) *','Believe in police efficiency *','Bribe payers index *','Bribery victims *','Burglaries *','Burglaries (per capita) *','Car thefts *','Car thefts (per capita) *','Convicted *','Convicted (per capita) *','Corruption > % of managers surveyed ranking this as a major business constraint *','Courts > % of managers surveyed lacking confidence in courts to uphold property rights *','Courts > % of managers surveyed ranking this as a major business constraint *','CSI: Crime Scene Investigation > Broadcast details > Alternate title/Translation','Death penalty > Abolition date *','Death penalty > Abolition for ordinary crimes *','Death penalty > Last executed *','Drug offences *','Embezzlements *','Embezzlements (per capita) *','Executions *','Executions (per capita) *','Females prosecuted *','Frauds *','Frauds (per capita) *','Gun violence > Homicides > % homicides with firearms *','Gun violence > Homicides > Firearm homicide rate > per 100,000 pop. *','Gun violence > Homicides > Non-firearm homicide rate > per 100,000 pop. *','Gun violence > Homicides > Overall homicide rate > per 100,000 pop. *','Illicit drugs','Jails *','Jails (per capita) *','Judges and Magistrates *','Judges and Magistrates (per capita) *','Judges of the International Criminal Court > Chamber','Judges of the International Criminal Court > Elected','Judges of the International Criminal Court > Name','Judges of the International Criminal Court > Term End','Kidnappings *','Manslaughters *','Manslaughters (per capita) *','Murders *','Murders (per capita) *','Murders committed by youths *','Murders committed by youths per capita *','Murders with firearms *','Murders with firearms (per capita) *','Perception of safety > Burglary *','Perception of safety > Walking in dark *','Police *','Police (per capita) *','Prisoners *','Prisoners > Female *','Prisoners > Foreign prisoners *','Prisoners > Per capita *','Prisoners > Pre-trial detainees *','Prisoners > Share of prison capacity filled *','Property crime victims *','Rape victims *','Rapes *','Rapes (per capita) *','Reporting to police *','Robberies *','Robberies (per capita) *','Robbery victims *','Sentence Length *','Software piracy losses *','Software piracy losses per GDP','Software piracy rate *','Suicide rates in ages 15-24 *','Suicide rates in ages 25-34 *','Suicide rates in ages 35-44 *','Suicide rates in ages 45-54 *','Suicide rates in ages 55-64 *','Suicide rates in ages 65-74 *','Suicide rates in ages above 75 *','Total crime victims *','Total crimes *','Total crimes (per capita) *','Transnational Issues > Trafficking in persons > Current situation','Transnational Issues > Trafficking in persons > Tier rating','United States extradition treaties > Citation','United States extradition treaties > Date signed','United States extradition treaties > Entered into force','Unpaid diplomatic parking fines *','... more Crime Stats');
      break;
    case 'Currency':
      var ids = new Array('','cur_cur-currency','cur_dec_alt_con_fac_lcu_per_us-conversion-factor-lcu-per-us','cur_hig_val_cur_uni_hig_val_cur_uni_cod-highest-valued-unit-units-code','cur_hig_val_cur_uni_hig_val_cur_uni_hig_val_ban-highest-valued-unit-units-banknote','cur_hig_val_cur_uni_hig_val_cur_uni_hig_val_coi-highest-valued-unit-units-coin','cur_hig_val_cur_uni_hig_val_cur_uni_no-highest-valued-unit-units-no','cur_hig_val_cur_uni_hig_val_cur_uni_val_in_eur-valued-unit-units-value-euro','cur_hig_val_cur_uni_hig_val_cur_uni_val_in_kuw_din-unit-units-value-kuwaiti-dinars','cur_hig_val_cur_uni_hig_val_cur_uni_val_in_us_dol-unit-units-value-us-dollars','cur_iso_cod-currency-iso-code','cur_off_exc_rat_lcu_per_us_per_ave-lcu-per-us-period-average','cur_ppp_con_fac_to_off_exc_rat_rat-factor-official-exchange-rate-ratio','cur_rea_eff_exc_rat_ind-real-effective-exchange-rate-index','cur_reg-currency-regime','cur_sam_ind_ann_cha-p-emdb-indexes-annual-change','cur_sub-currency-subdivision','cur_sym-currency-symbol','cur_ter_of_tra_sin_199-currency-terms-trade-since-1995','cur-more');
      var wss = new Array('Select Currency Stat','Currency','DEC alternative conversion factor > LCU per US$','Highest valued currency unit > highest valued currency units > Code','Highest valued currency unit > highest valued currency units > Highest > valued > banknote *','Highest valued currency unit > highest valued currency units > Highest > valued > coin','Highest valued currency unit > highest valued currency units > No.','Highest valued currency unit > highest valued currency units > Value in Euro','Highest valued currency unit > highest valued currency units > Value in Kuwaiti dinars','Highest valued currency unit > highest valued currency units > Value in US dollars','ISO code','Official exchange rate > LCU per US$, period average','PPP conversion factor to official exchange rate ratio *','Real effective exchange rate index *','Regime','S&amp;P/EMDB indexes > annual % change *','Subdivision *','Symbol','Terms of trade since 1995 *','... more Currency Stats');
      break;
    case 'Democracy':
      var ids = new Array('','dem_ber_tra_ind_man_ind_200-bertelsmann-transformation-index-management-2006','dem_ber_tra_ind_sta_ind_200-bertelsmann-transformation-index-status-2006','dem_ber_tra_ind_tra-democracy-bertelsmann-transformation-index-political','dem_civ_and_pol_lib-democracy-civil-and-political-liberties','dem_com_vot_enf-democracy-compulsory-voting-enforcement','dem_com_vot_pen-democracy-compulsory-voting-penalty','dem_cpi_gen_equ_rat-democracy-cpia-gender-equality-rating','dem_cpi_pol_for_soc_inc_clu_ave-social-inclusion-equity-cluster-average','dem_cpi_pro_rig_and_rul_gov_rat-rights-rule-based-governance-rating','dem_cpi_pub_sec_man_and_ins_clu_ave-sector-management-institutions-cluster-average','dem_cpi_tra_acc_and_cor_in_the_pub_sec_rat-accountability-corruption-public-sector-rating','dem_dem_ins_rat-democracy-democratic-institutions-rating','dem_ele_sys-democracy-electoral-system','dem_ele_sys_typ-democracy-electoral-system-type','dem_fem_can-democracy-female-candidacy','dem_fem_min-democracy-female-ministers','dem_fem_par-democracy-female-parliamentarians','dem_fem_suf-democracy-female-suffrage','dem_fir_fem_par-democracy-first-female-parliamentarian','dem_gen_par_ind_in_pri_lev_enr-parity-index-primary-level-enrolment','dem_hom_law_of_the_wor_hom_law_ado-democracy-homosexuality-laws-world-adoption','dem_hom_law_of_the_wor_hom_law_law_aga_dis-homosexuality-laws-world-against-discrimination','dem_hom_law_of_the_wor_hom_law_law_aga_hom-democracy-homosexuality-laws-world-against','dem_hom_law_of_the_wor_hom_law_min_max_pen-laws-world-min-max-penalty','dem_hom_law_of_the_wor_hom_law_pen-democracy-homosexuality-laws-world-penalty','dem_hom_law_of_the_wor_hom_law_sam_uni-laws-world-same-sex-unions','dem_jew_leg_equ_gra_yea-jew-legal-equality-granted-year','dem_par_ele_inv_vot-democracy-parliamentary-elections-invalid-votes','dem_par_ele_reg_vot_tur-parliamentary-elections-registered-voter-turnout','dem_par_ele_tot_vot-democracy-parliamentary-elections-total-vote','dem_par_ele_tur-democracy-parliamentary-elections-turnout','dem_par_ele_vot_reg-democracy-parliamentary-elections-voter-registration','dem_par_ele_vot_age_pop-parliamentary-elections-voting-age-population','dem_par_ele_vot_age_pop_percap-voting-age-population-per-capita','dem_pos_sta_fre_hou_eco_fre_ave_ind-freedom-house-economic-average-index','dem_pos_sta_fre_hou_fin_wei_ave_ind-house-final-weighted-average-index','dem_pos_sta_fre_hou_ind_fre_ave_ind-freedom-house-individual-average-index','dem_pre_ele_inv_vot-democracy-presidential-elections-invalid-votes','dem_pre_ele_reg_vot_tur-presidential-elections-registered-voter-turnout','dem_pre_ele_tot_vot-democracy-presidential-elections-total-vote','dem_pre_ele_tur-democracy-presidential-elections-turnout','dem_pre_ele_vot_reg-democracy-presidential-elections-voter-registration','dem_pre_ele_vot_age_pop-presidential-elections-voting-age-population','dem_pre_ele_vot_age_pop_percap-voting-age-population-per-capita','dem_vot_cou_tec-democracy-vote-counting-technology','dem-more');
      var wss = new Array('Select Democracy Stat','Bertelsmann Transformation Index > Management Index 2006 *','Bertelsmann Transformation Index > Status Index 2006 *','Bertelsmann Transformation Index>Political Transformation *','Civil and political liberties *','Compulsory voting > Enforcement','Compulsory voting > Penalty','CPIA gender equality rating *','CPIA policies for social inclusion/equity cluster average *','CPIA property rights and rule-based governance rating *','CPIA public sector management and institutions cluster average *','CPIA transparency, accountability, and corruption in the public sector rating *','Democratic institutions rating *','Electoral system','Electoral system type','Female candidacy *','Female ministers *','Female parliamentarians *','Female suffrage','First female parliamentarian','Gender Parity Index in primary level enrolment *','Homosexuality laws of the world > Homosexuality laws > Adoption','Homosexuality laws of the world > Homosexuality laws > Laws against discrimination','Homosexuality laws of the world > Homosexuality laws > Laws against homosexuality','Homosexuality laws of the world > Homosexuality laws > Min - Max Penalty','Homosexuality laws of the world > Homosexuality laws > Penalty','Homosexuality laws of the world > Homosexuality laws > Same-sex Unions','Jew > Legal equality granted > Year','Parliamentary elections > Invalid votes *','Parliamentary elections > Registered voter turnout *','Parliamentary elections > Total vote *','Parliamentary elections > Turnout *','Parliamentary elections > Voter registration *','Parliamentary elections > Voting age population *','Parliamentary elections > Voting age population (per capita) *','Post-Soviet states > Freedom House > Economic Freedom Average Index *','Post-Soviet states > Freedom House > Final Weighted Average Index *','Post-Soviet states > Freedom House > Individual Freedom Average Index *','Presidential elections > Invalid votes *','Presidential elections > Registered voter turnout *','Presidential elections > Total vote *','Presidential elections > Turnout *','Presidential elections > Voter registration *','Presidential elections > Voting age population *','Presidential elections > Voting age population (per capita) *','Vote counting technology','... more Democracy Stats');
      break;
    case 'Disasters':
      var ids = new Array('','dis_cen_eme_res_fun_con_ple-emergency-response-fund-contributors-pledged','dis_fun_com_to_aid-disasters-funds-commited-tsunami-aid','dis_fun_com_to_aid_pergdp-commited-tsunami-aid-per-gdp','dis_fun_com_to_aid_percap-commited-tsunami-aid-per-capita','dis_fun_com_to_eme_aid-funds-committed-emergency-tsunami-aid','dis_fun_com_to_eme_aid_pergdp-emergency-tsunami-aid-per-gdp','dis_fun_com_to_eme_aid_percap-emergency-tsunami-aid-per-capita','dis_hur_kat_int_aid_res-hurricane-katrina-international-aid-response','dis_tsu_dea_tol-disasters-tsunami-death-toll','dis_tsu_eco_imp-disasters-tsunami-economic-impact','dis_tsu_for_tou_mis-disasters-tsunami-foreign-tourists-missing','dis_tsu_for_dea_tol-disasters-tsunami-foreigners-death-toll','dis_tsu_fun_ple-disasters-tsunami-funds-pledged','dis_tsu_fun_ple_pergdp-tsunami-funds-pledged-per-gdp','dis_tsu_fun_ple_percap-tsunami-funds-pledged-per-capita','dis_tsu_fun_ple_by_ngo_and_pub-tsunami-funds-pledged-ngos-public','dis_tsu_fun_ple_by_ngo_and_pub_pergdp-pledged-ngos-public-per-gdp','dis_tsu_fun_ple_by_ngo_and_pub_percap-pledged-ngos-public-per-capita','dis_tsu_int_aid_pac-disasters-tsunami-international-aid-packages','dis_tsu_tot_aid_pac-disasters-tsunami-total-aid-package','dis_tsu_tot_aid_pac_pergdp-total-aid-package-per-gdp','dis_tsu_tot_aid_pac_percap-total-aid-package-per-capita','dis_aid_com_as_a_per_of_ple-tsunami-aid-commitments-percent-pledges','dis_tsu_aid_rec-disasters-tsunami-aid-recipients','dis_tsu_aid_rec_pergdp-tsunami-aid-recipients-per-gdp','dis_tsu_aid_rec_percap-tsunami-aid-recipients-per-capita','dis-more');
      var wss = new Array('Select Disasters Stat','Central Emergency Response Fund > Contributors > Pledged *','Funds commited to Tsunami aid *','Funds commited to Tsunami aid (per $ GDP) *','Funds commited to Tsunami aid (per capita) *','Funds committed to emergency Tsunami aid *','Funds committed to emergency Tsunami aid (per $ GDP) *','Funds committed to emergency Tsunami aid (per capita) *','Hurricane Katrina > International aid response','Tsunami > Death toll *','Tsunami > Economic impact','Tsunami > Foreign tourists missing *','Tsunami > Foreigners death toll *','Tsunami > Funds pledged *','Tsunami > Funds pledged (per $ GDP) *','Tsunami > Funds pledged (per capita) *','Tsunami > Funds pledged by NGOs and public *','Tsunami > Funds pledged by NGOs and public (per $ GDP) *','Tsunami > Funds pledged by NGOs and public (per capita) *','Tsunami > International aid packages','Tsunami > Total aid package *','Tsunami > Total aid package (per $ GDP) *','Tsunami > Total aid package (per capita) *','Tsunami aid commitments as a percent of pledges *','Tsunami aid recipients *','Tsunami aid recipients (per $ GDP) *','Tsunami aid recipients (per capita) *','... more Disasters Stats');
      break;
    case 'Economy':
      var ids = new Array('','eco_agr_pro-economy-agriculture-products','eco_aid_as_of_gdp-economy-aid-as-of-gdp','eco_ban_liq_res_to_ban_ass_rat-bank-liquid-reserves-assets-ratio','eco_big_mac_ind-economy-big-mac-index','eco_big_mac_ind_pergdp-big-mac-index-per-gdp','eco_big_mac_ind_percap-big-mac-index-per-capita','eco_bud_exp-economy-budget-expenditures','eco_bud_rev-economy-budget-revenues','eco_bus_eff-economy-business-efficiency','eco_chi_pov-economy-child-poverty','eco_cla_on_pri_sec_ann_gro_as_of_m2-private-sector-annual-growth-m2','eco_com_to_for_aid-economy-commitment-to-foreign-aid','eco_con_pri_ind-economy-consumer-price-index','eco_cur_acc_bal-economy-current-account-balance','eco_cur_tra_rec_bop_cur_us-current-transfers-receipts-bop-us','eco_cur_tra_rec_bop_cur_us_pergdp-receipts-bop-us-per-gdp','eco_deb_ext-economy-debt-external','eco_deb_ext_pergdp-economy-debt-external-per-gdp','eco_deb_ext_percap-economy-debt-external-per-capita','eco_deb_ser-economy-debt-service','eco_dep_int_rat-economy-deposit-interest-rate','eco_dis_of_fam_inc_gin_ind-distribution-family-income-gini-index','eco_eco_aid_don-economy-economic-aid-donor','eco_eco_fre-economy-economic-freedom','eco_eco_imp-economy-economic-importance','eco_eco_ove-economy-overview','eco_exc_rat-economy-exchange-rates','eco_exp_gro-economy-export-growth','eco_exp-economy-exports','eco_exp_goo_and_ser-economy-exports-goods-and-services','eco_exp_hig_tec-economy-exports-high-technology','eco_exp_to_us-economy-exports-to-us','eco_for_dir_inv_net_bop_cur_us-investment-net-bop-current-us','eco_for_inv-economy-foreign-investment','eco_gdp-economy-gdp','eco_gdp_percap-economy-gdp-per-capita','eco_gdp_pur_pow_par-economy-gdp-purchasing-power-parity','eco_gdp_pur_pow_par_percap-purchasing-power-parity-per-capita','eco_gdp_com_by_sec_ind-economy-gdp-composition-sector-industry','eco_gdp_ppp-economy-gdp-ppp','eco_gdp_ppp_percap-economy-gdp-ppp-per-capita','eco_gdp_rea_gro_rat-economy-gdp-real-growth-rate','eco_gdp_gro_ann-economy-gdp-growth-annual','eco_gdp_in_197-economy-gdp-in-1970','eco_gdp_per_cap_con_lcu-gdp-per-capita-constant-lcu','eco_gdp_per_cap_in_182-economy-gdp-per-capita-1820','eco_gdp_per_cap_in_190-economy-gdp-per-capita-1900','eco_gdp_per_cap_in_195-economy-gdp-per-capita-1950','eco_gdp_per_cap_in_197-economy-gdp-per-capita-1973','eco_gdp_per_cap_ppp_cur_int-per-capita-ppp-current-international','eco_gin_ind-economy-gini-index','eco_gni_ppp_cur_int-economy-gni-ppp-current-international','eco_gro_fix_cap_for_con_2000_us-capital-formation-constant-2000-us','eco_gro_fix_cap_for_cur_us_pergdp-formation-current-us-per-gdp','eco_gro_nat_inc-economy-gross-national-income','eco_gro_nat_inc_pergdp-gross-national-income-per-gdp','eco_gro_nat_inc_percap-gross-national-income-per-capita','eco_gro_nat_inc_con_lcu-gross-national-income-constant-lcu','eco_hou_fin_con_exp_etc_con_2000_us_percap-constant-2000-us-per-capita','eco_hum_dev_ind-economy-human-development-index','eco_imp-economy-imports','eco_imp_goo_and_ser-economy-imports-goods-and-services','eco_imp_of_goo_and_ser_bop_cur_us-goods-services-bop-current-us','eco_imp_of_goo_and_ser_cur_us_pergdp-services-current-us-per-gdp','eco_imp_of_goo_and_ser_cur_us_percap-services-current-us-per-capita','eco_imp_of_goo_ser_and_inc_bop_cur_us-services-income-bop-current-us','eco_inc_cat-economy-income-category','eco_inc_dis_poo_10-economy-income-distribution-poorest-10','eco_inc_dis_ric_10-economy-income-distribution-richest-10','eco_inc_dis_ric_20-economy-income-distribution-richest-20','eco_inf_dur_200_200-economy-inflation-duration-2000-2003','eco_inf_rat_con_pri-economy-inflation-rate-consumer-prices','eco_inf_eco-economy-informal','eco_inf-economy-infrastructure','eco_inn-economy-innovation','eco_int_tou_num_of_arr-economy-international-tourism-number-arrivals','eco_int_tou_num_of_dep-economy-international-tourism-number-departures','eco_ove_pro_ppp-economy-overall-productivity-ppp','eco_pat_gra-economy-patents-granted','eco_pop_bel_med_inc-economy-population-below-median-income','eco_pop_bel_pov_lin-economy-population-below-poverty-line','eco_pop_bel_pov_lin_pergdp-below-poverty-line-per-gdp','eco_pop_bel_pov_lin_percap-below-poverty-line-per-capita','eco_pop_und_1_a_day-economy-population-under-1-day','eco_pov_sha_of_all_poo_peo-poverty-share-all-poor-people','eco_pub_deb-economy-public-debt','eco_res_and_dev_spe-economy-research-and-development-spending','eco_ser_etc_val_add_con_2000_us-value-added-constant-2000-us','eco_ser_etc_val_add_con_2000_us_percap-constant-2000-us-per-capita','eco_ser_etc_val_add_cur_us_percap-added-current-us-per-capita','eco_sto_exc-economy-stock-exchange','eco_tec_ach-economy-technological-achievement','eco_tot_res_min_gol_cur_us-reserves-minus-gold-current-us','eco_tot_res_min_gol_cur_us_pergdp-gold-current-us-per-gdp','eco_tot_res_min_gol_cur_us_percap-gold-current-us-per-capita','eco_tou_arr-economy-tourist-arrivals','eco_tou_arr_percap-economy-tourist-arrivals-per-capita','eco_tou_arr_by_reg_of_ori_afr-tourist-arrivals-region-origin-africa','eco_tou_arr_by_reg_of_ori_eur-tourist-arrivals-region-origin-europe','eco_tra_bal_wit_us-economy-trade-balance-with-us','eco_tec_ind-economy-technology-index','eco-more');
      var wss = new Array('Select Economy Stat','Agriculture > products','Aid as % of GDP *','Bank liquid reserves to bank assets ratio *','Big Mac Index *','Big Mac Index (per $ GDP) *','Big Mac Index (per capita) *','Budget > Expenditures *','Budget > Revenues *','Business efficiency *','Child poverty *','Claims on private sector > annual growth as % of M2 *','Commitment to foreign aid *','Consumer price index *','Current account balance *','Current transfers, receipts > BoP, current US$ *','Current transfers, receipts > BoP, current US$ (per $ GDP) *','Debt > External *','Debt > External (per $ GDP) *','Debt > External (per capita) *','Debt service *','Deposit interest rate > % *','Distribution of family income > Gini index *','Economic aid > Donor *','Economic freedom *','Economic importance *','Overview','Exchange rates','Export growth *','Exports *','Exports > Goods and services *','Exports > High technology *','Exports to US *','Foreign direct investment, net > BoP, current US$ *','Foreign investment *','GDP *','GDP (per capita) *','GDP (purchasing power parity) *','GDP (purchasing power parity) (per capita) *','GDP > Composition by sector > Industry *','GDP > PPP *','GDP > PPP (per capita) *','GDP > Real growth rate *','GDP growth > annual % *','GDP in 1970 *','GDP per capita > constant LCU','GDP per capita in 1820 *','GDP per capita in 1900 *','GDP per capita in 1950 *','GDP per capita in 1973 *','GDP per capita, PPP > current international $ *','GINI index *','GNI, PPP > current international $ *','Gross fixed capital formation > constant 2000 US$ *','Gross fixed capital formation > current US$ (per $ GDP) *','Gross National Income *','Gross National Income (per $ GDP) *','Gross National Income (per capita) *','Gross national income > constant LCU','Household final consumption expenditure, etc. > constant 2000 US$ (per capita) *','Human Development Index *','Imports *','Imports > Goods and services *','Imports of goods and services > BoP, current US$ *','Imports of goods and services > current US$ (per $ GDP) *','Imports of goods and services > current US$ (per capita) *','Imports of goods, services and income > BoP, current US$ *','Income category','Income distribution > Poorest 10% *','Income distribution > Richest 10% *','Income distribution > Richest 20% *','Inflation > Duration 2000-2003','Inflation rate (consumer prices) *','Informal economy *','Infrastructure *','Innovation *','International tourism, number of arrivals *','International tourism, number of departures *','Overall productivity > PPP *','Patents granted *','Population below median income *','Population below poverty line *','Population below poverty line (per $ GDP) *','Population below poverty line (per capita) *','Population under $1 a day *','Poverty > Share of all poor people *','Public debt *','Research and development spending *','Services, etc., value added > constant 2000 US$ *','Services, etc., value added > constant 2000 US$ (per capita) *','Services, etc., value added > current US$ (per capita) *','Stock exchange','Technological achievement *','Total reserves minus gold > current US$ *','Total reserves minus gold > current US$ (per $ GDP) *','Total reserves minus gold > current US$ (per capita) *','Tourist arrivals *','Tourist arrivals (per capita) *','Tourist arrivals by region of origin > Africa *','Tourist arrivals by region of origin > Europe *','Trade balance with US *','Technology index *','... more Economy Stats');
      break;
    case 'Education':
      var ids = new Array('','edu_adj_sav_edu_exp_of_gni-education-adjusted-savings-expenditure-gni','edu_ave_yea_of_sch_of_adu-education-average-years-schooling-adults','edu_chi_out_of_sch_pri-education-children-out-school-primary','edu_cla_siz_age_13-education-class-size-age-13','edu_cla_siz_age_9-education-class-size-age-9','edu_dur_of_com_edu-education-duration-of-compulsory','edu_dur_of_edu_pri_lev-education-duration-of-primary-level','edu_dur_of_edu_sec_lev-education-duration-of-secondary-level','edu_edu_enr_by_lev_pri_lev-education-enrolment-by-level-primary','edu_edu_enr_by_lev_ter_lev-education-enrolment-by-level-tertiary','edu_edu_exp_of_gov_as_per_of_gni-education-expenditure-government-percentage-gni','edu_edu_exp_of_gov_as_per_of_tot_gov-education-expenditure-government-percentage-total','edu_edu_spe-education-spending-of-gdp','edu_edu_spe_as_per_of_tot_gov_exp-education-spending-total-government-expenditure','edu_edu_pri_com_rat-education-primary-completion-rate','edu_edu_att_jun_sec-education-educational-attainment-junior-secondary','edu_edu_att_sen_sec-education-educational-attainment-senior-secondary','edu_edu_att_ter-education-educational-attainment-tertiary','edu_enr_rat_sec_lev-education-enrolment-ratio-secondary-level','edu_exp_dur_of_edu_for_all_stu-education-expected-duration-all-students','edu_exp_dur_of_edu_for_fem-education-expected-duration-females','edu_exp_dur_of_edu_for_mal-education-expected-duration-males','edu_fem_enr_sha_pri_lev-female-enrolment-share-primary-level','edu_fem_enr_sha_sec_lev-female-enrolment-share-secondary-level','edu_fem_tea_low_sec-education-female-teachers-lower-secondary','edu_geo_apt_res-education-geographical-aptitude-results','edu_gra_1_int_rat-education-grade-1-intake-rate','edu_gra_12_adv_stu_mat-grade-12-advanced-students-math','edu_gra_12_adv_stu_sci-grade-12-advanced-students-science','edu_hou_of_ins_for_pup_age_12-hours-instruction-pupils-aged-12','edu_hou_of_ins_for_pup_age_13-hours-instruction-pupils-aged-13','edu_hou_of_ins_for_pup_age_9-hours-instruction-pupils-aged-9','edu_ill_rat_by_sex_age_15-illiteracy-rates-sex-aged-15','edu_ill_rat_by_sex_age_15_wom-rates-sex-aged-15-women','edu_ill_pop_by_sex_age_15_wom-population-sex-aged-15-women','edu_lib_boo-education-library-books','edu_lib_boo_percap-education-library-books-per-capita','edu_lit_adu_at_hig_lit_lev-education-literacy-adults-high-level','edu_lit_adu_at_low_lit_lev-education-literacy-adults-low-level','edu_lit_def-education-literacy-definition','edu_lit_fem-education-literacy-female','edu_lit_mal-education-literacy-male','edu_lit_tot_pop-education-literacy-total-population','edu_lit_rat_adu_tot_of_peo_age_15_and_abo-total-people-ages-15-above','edu_lit_rat_you_fem_of_fem_age_1524-female-females-ages-15-24','edu_lit_rat_you_tot_of_peo_age_1524-total-people-ages-15-24','edu_lit_rat_age_1524_men-rates-aged-15-24-men','edu_mat_lit-education-mathematical-literacy','edu_pri_sch_gir_out_of_sch-education-primary-school-girls-out','edu_pri_tea_age_pro_und_30-teacher-age-proportion-under-30','edu_pri_tea_sal_aft_15_yea-teacher-salary-after-15-years','edu_pri_tea_sal_sta-education-primary-teacher-salary-starting','edu_pri_tea_sal_per_hou_aft_15_yea-per-hour-after-15-years','edu_pri_sch_enr_sec_lev-private-school-enrolment-secondary-level','edu_pro_to_sec_lev-education-progression-to-secondary-level','edu_pro_of_17_yea_old_in_sec_edu-proportion-17-year-olds-secondary','edu_pro_of_20_yea_old_in_ter_edu-proportion-20-year-olds-tertiary','edu_pub_spe_on_edu_tot_of_gdp-education-public-spending-total-gdp','edu_pub_spe_on_edu_tot_of_gov_exp-public-spending-total-government-expenditure','edu_pub_spe_per_stu_pri_lev-spending-per-student-primary-level','edu_pub_spe_per_stu_sec_lev-spending-per-student-secondary-level','edu_pub_spe_per_stu_ter_lev-spending-per-student-tertiary-level','edu_pup_rat_pri-education-pupil-teacher-ratio-primary','edu_pup_rea_gra_5-education-pupils-reaching-grade-5','edu_rea_lit-education-reading-literacy','edu_sch_enr_ter_gro-education-school-enrollment-tertiary-gross','edu_sch_lif_exp_mal-education-school-life-expectancy-male','edu_sch_lif_exp_tot-education-school-life-expectancy-total','edu_sci_and_tec_jou_art-education-scientific-technical-journal-articles','edu_sci_lit-education-scientific-literacy','edu_sec_edu_tea_percap-education-secondary-teachers-per-capita','edu_sha_of_uni_qua_awa_to_fem_fir_deg-qualifications-awarded-females-first-degree','edu_spe_on_tea_mat-education-spending-on-teaching-materials','edu_spe_per_pri_sch_stu-spending-per-primary-school-student','edu_spe_per_sec_sch_stu-spending-per-secondary-school-student','edu_stu_att_wil_not_go_to_sch-education-student-attitude-dislike-school','edu_stu_att_fin_sch_bor-student-attitude-find-school-boring','edu_stu_att_rep_cla_dis-student-attitude-report-class-disorder','edu_stu_fro_hou_wit_cal_age_13-students-households-calculator-age-13','edu_stu_fro_hou_wit_com_age_13-students-households-computer-age-13','edu_stu_fro_hou_wit_com_age_9-students-households-computer-age-9','edu_stu_fro_hou_wit_mor_tha_25_boo_age_13-than-25-books-age-13','edu_stu_fro_hou_wit_stu_des_age_9-households-study-desk-age-9','edu_stu_who_mot_hav_sec_edu_age_13-whose-mothers-secondary-age-13','edu_tea_as_per_of_lab_for-education-teachers-percentage-labor-force','edu_tea_wee_per_yea_pri-teaching-weeks-per-year-primary','edu_ter_enr-education-tertiary-enrollment','edu_tot_exp_as_of_gdp-education-total-expenditure-gdp','edu_une_wit_pri_edu_of_tot_une-education-unemployment-primary-total','edu_une_wit_sec_edu_of_tot_une-education-unemployment-secondary-total','edu_uni_top_10-education-universities-top-10','edu_uni_top_10_pergdp-universities-top-10-per-gdp','edu_uni_top_100-education-universities-top-100','edu_uni_top_100_percap-universities-top-100-per-capita','edu_uni_wor_top_200-education-universities-top-200','edu_uni_top_50_pergdp-universities-top-50-per-gdp','edu_uni_top_500-education-universities-top-500','edu_uni_top_500_percap-universities-top-500-per-capita','edu_wom_to_men_par_ind_as_rat_of_lit_rat_age_1524-literacy-rates-aged-15-24','edu_you_lon_rea-education-young-longtext-readers','edu-more');
      var wss = new Array('Select Education Stat','Adjusted savings: education expenditure > % of GNI *','Average years of schooling of adults *','Children out of school, primary *','Class size > Age 13 *','Class size > Age 9 *','Duration of compulsory education *','Duration of education > Primary level *','Duration of education > Secondary level *','Education enrolment by level > Primary level *','Education enrolment by level > Tertiary level *','Education expenditure of government > As percentage of GNI *','Education expenditure of government > As percentage of total government *','Education spending (% of GDP) *','Education spending (% of total government expenditure) *','Education, primary completion rate *','Educational attainment > Junior secondary *','Educational attainment > Senior secondary *','Educational attainment > Tertiary *','Enrolment ratio > Secondary level *','Expected duration of education for all students *','Expected duration of education for females *','Expected duration of education for males *','Female enrolment share > Primary level *','Female enrolment share > Secondary level *','Female teachers > Lower secondary *','Geographical aptitude results *','Grade 1 intake rate *','Grade 12 advanced students math *','Grade 12 advanced students science *','Hours of instruction for pupils aged 12 *','Hours of instruction for pupils aged 13 *','Hours of instruction for pupils aged 9 *','Illiteracy rates by sex, aged 15+ *','Illiteracy rates by sex, aged 15+ > Women *','Illiterate population by sex, aged 15+ > Women *','Library books *','Library books (per capita) *','Literacy > Adults at high literacy level *','Literacy > Adults at low literacy level *','Literacy > Definition','Literacy > Female *','Literacy > Male *','Literacy > Total population *','Literacy rate, adult total > % of people ages 15 and above *','Literacy rate, youth female > % of females ages 15-24 *','Literacy rate, youth total > % of people ages 15-24 *','Literacy rates, aged 15-24 > Men *','Mathematical literacy *','Primary school girls out of school *','Primary teacher age > Proportion under 30 *','Primary teacher salary > After 15 years *','Primary teacher salary > Starting *','Primary teacher salary per hour > After 15 years *','Private school enrolment > Secondary level *','Progression to secondary level *','Proportion of 17 year olds in secondary education *','Proportion of 20 year olds in tertiary education *','Public spending on education, total > % of GDP *','Public spending on education, total > % of government expenditure *','Public spending per student > Primary level *','Public spending per student > Secondary level *','Public spending per student > Tertiary level *','Pupil-teacher ratio, primary *','Pupils reaching grade 5 *','Reading literacy *','School enrollment, tertiary > % gross *','School life expectancy > Male *','School life expectancy > Total *','Scientific and technical journal articles *','Scientific literacy *','Secondary education, teachers (per capita) *','Share of university qualifications awarded to females > First degree *','Spending on teaching materials *','Spending per primary school student *','Spending per secondary school student *','Student attitude > Dislike of school *','Student attitude > Find school boring *','Student attitude > Report class disorder *','Students from households with calculator > Age 13 *','Students from households with computer > Age 13 *','Students from households with computer > Age 9 *','Students from households with more than 25 books > Age 13 *','Students from households with study desk > Age 9 *','Students whose mothers have secondary education > Age 13','Teachers as percentage of labor force *','Teaching weeks per year > Primary *','Tertiary enrollment *','Total expenditure as % of GDP *','Unemployment with primary education > % of total unemployment *','Unemployment with secondary education > % of total unemployment *','Universities > Top 10 *','Universities > Top 10 (per $ GDP) *','Universities > Top 100 *','Universities > Top 100 (per capita) *','Universities > Top 200 *','Universities > Top 50 (per $ GDP) *','Universities > Top 500 *','Universities > Top 500 (per capita) *','Women to men parity index, as ratio of literacy rates, aged 15-24 *','Young longtext readers *','... more Education Stats');
      break;
    case 'Energy':
      var ids = new Array('','ene_adj_sav_ene_dep_of_gni-energy-adjusted-savings-depletion-gni','ene_coa_pro-energy-coal-production','ene_coa_con-energy-coal-consumption','ene_coa_con_percap-energy-coal-consumption-per-capita','ene_coa_pro_res_tot-energy-coal-proved-reserves-total','ene_com_ene_use-energy-commercial-use','ene_ele_gen_abi-energy-electric-generation-ability','ene_ele_gen_abi_percap-electric-generation-ability-per-capita','ene_ele_pow_con_kwh-energy-electric-power-consumption-kwh','ene_ele_pow_con_kwh_percap-power-consumption-kwh-per-capita','ene_ele_pow_tra_and_dis_los_of_out-power-transmission-distribution-losses-output','ene_ele_pow_tra_and_dis_los_mil_kwh-transmission-distribution-losses-million-kwh','ene_ele_out_day-energy-electrical-outages-days','ene_ele_con-energy-electricity-consumption','ene_ele_con_percap-energy-electricity-consumption-per-capita','ene_ele_exp-energy-electricity-exports','ene_ele_imp-energy-electricity-imports','ene_ele_pro-energy-electricity-production','ene_ele_pro_percap-energy-electricity-production-per-capita','ene_ele_pro_by_sou_fos_fue-electricity-production-source-fossil-fuel','ene_ele_pro_by_sou_hyd-energy-electricity-production-source-hydro','ene_ele_pro_by_sou_nuc-energy-electricity-production-source-nuclear','ene_ele_pro_by_sou_oth-energy-electricity-production-source-other','ene_ele_con_dat_of_inf-energy-electricity-consumption-date-information','ene_ele_pro_kwh-energy-electricity-production-kwh','ene_ele_pro_kwh_percap-electricity-production-kwh-per-capita','ene_ele_pro_fro_coa_sou_of_tot-electricity-production-coal-sources-total','ene_ele_pro_fro_hyd_sou_of_tot-electricity-production-hydroelectric-sources-total','ene_ele_pro_fro_hyd_sou_kwh-electricity-production-hydroelectric-sources-kwh','ene_fue_exp_of_mer_exp-energy-fuel-exports-of-merchandise','ene_gas_pri-energy-gasoline-prices','ene_geo_pow_use-energy-geothermal-power-use','ene_geo_pow_use_percap-geothermal-power-use-per-capita','ene_hea_val_gro_cal_val_of_nat_gas_by_sou_of_pro-calorific-natural-gas-source-production','ene_hyd_con-energy-hydroelectricity-consumption','ene_hyd_con_ter_hou-energy-hydroelectricity-consumption-terawatt-hours','ene_imp_net_of_ene_use-energy-imports-net-of-use','ene_nat_gas_con-energy-natural-gas-consumption','ene_nat_gas_con_percap-natural-gas-consumption-per-capita','ene_nat_gas_exp-energy-natural-gas-exports','ene_nat_gas_imp-energy-natural-gas-imports','ene_nat_gas_pro_res-energy-natural-gas-proved-reserves','ene_nat_gas_con_bil_cub_fee_per_day-billion-cubic-feet-per-day','ene_nat_gas_res-energy-natural-gas-reserves','ene_nat_gas_res_percap-natural-gas-reserves-per-capita','ene_nat_gas_pro-energy-natural-gasoline-production','ene_nat_gas_pro_percap-natural-gasoline-production-per-capita','ene_nuc_con_mil_ton_oil_equ-consumption-million-tonnes-oil-equivalent','ene_nuc_con_ter_hou-energy-nuclear-consumption-terawatt-hours','ene_nuc_con_ter_hou_percap-consumption-terawatt-hours-per-capita','ene_nuc_ele_gen-energy-nuclear-electricity-generation','ene_nuc_ele_gen_percap-nuclear-electricity-generation-per-capita','ene_nuc_ene_con-energy-nuclear-consumption','ene_nuc_ene_con_percap-energy-nuclear-consumption-per-capita','ene_nuc_rea_ope-energy-nuclear-reactors-operable','ene_nuc_rea_pla-energy-nuclear-reactors-planned','ene_nuc_rea_und_con-energy-nuclear-reactors-under-construction','ene_nuc_rea_ura_req-energy-nuclear-reactors-uranium-required','ene_nuc_was_gen-energy-nuclear-waste-generated','ene_oil_con-energy-oil-consumption','ene_oil_con_percap-energy-oil-consumption-per-capita','ene_oil_exp-energy-oil-exports','ene_oil_imp-energy-oil-imports','ene_oil_pro-energy-oil-production','ene_oil_pro_percap-energy-oil-production-per-capita','ene_oil_pro_res-energy-oil-proved-reserves','ene_oil_con_mil_ton-energy-oil-consumption-million-tonnes','ene_oil_con_mil_ton_percap-consumption-million-tonnes-per-capita','ene_oil_con_mil_ton_sha_of_tot-consumption-million-tonnes-share-total','ene_oil_con_tho_bar_dai-oil-consumption-thousand-barrels-daily','ene_oil_con_tho_bar_dai_percap-thousand-barrels-daily-per-capita','ene_oil_exp_net-energy-oil-exports-net','ene_oil_exp_net_percap-oil-exports-net-per-capita','ene_oil_imp_net-energy-oil-imports-net','ene_oil_imp_net_percap-oil-imports-net-per-capita','ene_oil_pro_mil_ton-energy-oil-production-million-tonnes','ene_oil_pro_tho_bar_dai-oil-production-thousand-barrels-daily','ene_oil_pro_in_197-energy-oil-production-in-1972','ene_oil_pro_in_199-energy-oil-production-in-1992','ene_oil_pro_res_tho_mil_bar-proved-reserves-thousand-million-barrels','ene_oil_ref_cap_tho_bar_dai-refinery-capacities-thousand-barrels-daily','ene_oil_ref_abi-energy-oil-refining-ability','ene_oil_res-energy-oil-reserves','ene_oil_res_percap-energy-oil-reserves-per-capita','ene_oil_res_oil_res_hig_est-energy-oil-reserves-highest-estimate','ene_ope_abo_ope_ope_quo_and_pro_cap-opec-about-quotas-production-capacity','ene_pri_ene_con_mil_ton_oil_equ-consumption-million-tonnes-oil-equivalent','ene_pri_ene_con_mil_ton_oil_equ_pergdp-tonnes-oil-equivalent-per-gdp','ene_pri_ene_con_mil_ton_oil_equ_percap-tonnes-oil-equivalent-per-capita','ene_pri_ene_con_mil_ton_oil_equ_sha_of_tot-tonnes-oil-equivalent-share-total','ene_pro_kt_of_oil_equ-energy-production-kt-oil-equivalent','ene_tra_fue_con-energy-traditional-fuel-consumption','ene_ura_pro-energy-uranium-production','ene_ura_pro_res-energy-uranium-proved-reserves','ene_usa_per_per-energy-usage-per-person','ene_use_kt_of_oil_equ-energy-use-kt-oil-equivalent','ene_wal_plu_fre-energy-wall-plugs-frequency','ene_wal_plu_plu_typ-energy-wall-plugs-plug-type','ene_wal_plu_vol-energy-wall-plugs-voltage','ene_win_ene_ins-energy-wind-installation','ene-more');
      var wss = new Array('Select Energy Stat','Adjusted savings: energy depletion > % of GNI *','Coal > Production *','Coal consumption *','Coal consumption (per capita) *','Coal Proved Reserves > Total *','Commercial energy use *','Electric generation ability *','Electric generation ability (per capita) *','Electric power consumption > kWh *','Electric power consumption > kWh (per capita) *','Electric power transmission and distribution losses > % of output *','Electric power transmission and distribution losses > million kWh *','Electrical outages > days *','Electricity > Consumption *','Electricity > Consumption (per capita) *','Electricity > Exports *','Electricity > Imports *','Electricity > Production *','Electricity > Production (per capita) *','Electricity > Production by source > Fossil fuel *','Electricity > Production by source > Hydro *','Electricity > Production by source > Nuclear *','Electricity > Production by source > Other *','electricity consumption > Date of > Information','Electricity production > kWh *','Electricity production > kWh (per capita) *','Electricity production from coal sources > % of total *','Electricity production from hydroelectric sources > % of total *','Electricity production from hydroelectric sources > kwh *','Fuel exports > % of merchandise exports *','Gasoline prices *','Geothermal power use *','Geothermal power use (per capita) *','Heating value > Gross calorific value of natural gas by source of production *','Hydroelectricity consumption *','Hydroelectricity Consumption > Terawatt-hours *','imports, net > % of energy use *','Natural gas > Consumption *','Natural gas > Consumption (per capita) *','Natural gas > Exports *','Natural gas > Imports *','Natural gas > Proved reserves *','Natural Gas Consumption > Billion cubic feet per day *','Natural gas reserves *','Natural gas reserves (per capita) *','Natural Gasoline > Production *','Natural Gasoline > Production (per capita) *','Nuclear Consumption > Million tonnes oil equivalent *','Nuclear Consumption > Terawatt-hours *','Nuclear Consumption > Terawatt-hours (per capita) *','Nuclear electricity generation *','Nuclear electricity generation (per capita) *','Nuclear energy consumption *','Nuclear energy consumption (per capita) *','Nuclear reactors operable *','Nuclear reactors planned *','Nuclear reactors under construction *','Nuclear reactors uranium required *','Nuclear waste generated *','Oil > Consumption *','Oil > Consumption (per capita) *','Oil > Exports *','Oil > Imports *','Oil > Production *','Oil > Production (per capita) *','Oil > Proved reserves *','Oil Consumption > Million tonnes *','Oil Consumption > Million tonnes (per capita) *','Oil Consumption > Million tonnes > Share of total *','Oil Consumption > Thousand barrels daily *','Oil Consumption > Thousand barrels daily (per capita) *','Oil exports > Net *','Oil exports > Net (per capita) *','Oil imports > Net *','Oil imports > Net (per capita) *','Oil Production > Million tonnes *','Oil Production > Thousand barrels daily *','Oil production in 1972 *','Oil production in 1992 *','Oil Proved reserves > Thousand million barrels *','Oil Refinery capacities > Thousand barrels daily *','Oil refining ability *','Oil reserves *','Oil reserves (per capita) *','Oil reserves > Oil reserves > Highest estimate *','OPEC > About OPEC > OPEC Quotas and Production  > Capacity *','Primary Energy Consumption > Million tonnes oil equivalent *','Primary Energy Consumption > Million tonnes oil equivalent (per $ GDP) *','Primary Energy Consumption > Million tonnes oil equivalent (per capita) *','Primary Energy Consumption > Million tonnes oil equivalent > Share of total *','production > kt of oil equivalent *','Traditional fuel consumption *','Uranium > Production *','Uranium Proved Reserves *','Usage per person *','use > kt of oil equivalent *','Wall plugs > Frequency *','Wall plugs > Plug type','Wall plugs > Voltage *','Wind energy installation *','... more Energy Stats');
      break;
    case 'Environment':
      var ids = new Array('','env_aci-environment-acidification','env_adj_sav_car_dio_dam_of_gni-savings-carbon-dioxide-damage-gni','env_adj_sav_net_for_dep_of_gni-savings-net-forest-depletion-gni','env_adj_sav_par_emi_dam_of_gni-savings-particulate-emission-damage-gni','env_are_und_pro-environment-areas-under-protection','env_are_und_pro_percap-areas-under-protection-per-capita','env_bio_ric-environment-biodiversity-richness','env_bio_res_are-environment-biosphere-reserves-area','env_bre_bir_thr-environment-breeding-birds-threatened','env_car_eff-environment-carbon-efficiency','env_cfc_con-environment-cfc-consumption','env_cfc_con_percap-environment-cfc-consumption-per-capita','env_co2_emi-environment-co2-emissions','env_co2_emi_percap-environment-co2-emissions-per-capita','env_co2_emi_kg_per_2000_ppp_of_gdp-kg-per-2000-ppp-gdp','env_co2_emi_kt-environment-co2-emissions-kt','env_co2_emi_kt_percap-co2-emissions-kt-per-capita','env_cor_ree_are-environment-coral-reefs-area','env_cor_ree_are_pergdp-coral-reefs-area-per-gdp','env_cor_ree_are_percap-coral-reefs-area-per-capita','env_cor_ree_sha-environment-coral-reefs-share','env_cpi_pol_and_ins_for_env_sus_rat-policy-institutions-environmental-sustainability-rating','env_cur_iss-environment-current-issues','env_eco_foo-environment-ecological-footprint','env_end_rep_spe-environment-endangered-reptile-species','env_end_spe_pro-environment-endangered-species-protection','env_env_agr_com-environment-environmental-agreement-compliance','env_exp_pol_con_as_of_gdp-environment-expenditure-pollution-control-gdp','env_fer_con-environment-fertiliser-consumption','env_for_are_of_lan_are-environment-forest-area-of-land','env_for_are_sq_km-environment-forest-area-sq-km','env_for_are_sq_km_percap-area-sq-km-per-capita','env_fre_wit-environment-freshwater-withdrawal','env_fre_wit_agr-environment-freshwater-withdrawal-agricultural','env_fre_wit_dom-environment-freshwater-withdrawal-domestic','env_fre_wit_ind-environment-freshwater-withdrawal-industrial','env_gro_wit-environment-groundwater-withdrawals','env_int_agr_par_to-environment-international-agreements-party-to','env_int_agr_sig_but_not_rat-agreements-signed-but-not-ratified','env_kno_bre_bir_spe-environment-known-breeding-bird-species','env_kno_mam_spe-environment-known-mammal-species','env_kno_mam_spe_percap-known-mammal-species-per-capita','env_kno_rep_spe-environment-known-reptile-species','env_kyo_pro_res_to_dat_eu_ass_obj_for_2012-date-eu-assigned-objective-2012','env_kyo_pro_res_to_dat_tre_obl_200-protocol-treaty-obligation-2008-2012','env_mar_are_und_pro-environment-marine-areas-under-protection','env_mar_are_und_pro_percap-areas-under-protection-per-capita','env_mar_fis_cat-environment-marine-fish-catch','env_mar_fis_cat_percap-marine-fish-catch-per-capita','env_mun_was_gen-environment-municipal-waste-generation','env_mun_was_tre_exp-environment-municipal-waste-treatment-expenditure','env_non_wil-environment-non-wildness','env_nox_emi_per_pop_are-nox-emissions-per-populated-area','env_org_wat_pol_bod_emi_kg_per_day-bod-emissions-kg-per-day','env_org_wat_pol_bod_emi_kg_per_day_per_wor-emissions-kg-per-day-worker','env_pm1_cou_lev_mic_per_cub_met-level-micrograms-per-cubic-meter','env_pol_car_dio_199-environment-pollution-carbon-dioxide-1999','env_pol_car_dio_fro_fos_fue_200-carbon-dioxide-fossil-fuels-2000','env_pol_car_dio_fro_fos_fue_200_pergdp-fossil-fuels-2000-per-gdp','env_pol_car_dio_fro_fos_fue_200_percap-fossil-fuels-2000-per-capita','env_pol_car_dio_per_cap-pollution-carbon-dioxide-per-capita','env_pol_mun_was_per_cap-pollution-municipal-waste-per-capita','env_pol_nit_oxi_per_cap-pollution-nitrogen-oxides-per-capita','env_pol_nuc_was-environment-pollution-nuclear-waste','env_pol_nuc_was_eff-environment-pollution-nuclear-waste-efficiency','env_pol_nuc_was_per_cap-pollution-nuclear-waste-per-capita','env_pro_are-environment-protected-area','env_red_kit_pop_and_tre_pai-red-kite-populations-trends-pairs','env_red_kit_pop_and_tre_tre-red-kite-populations-trends-trend','env_red_kit_pop_and_tre_yea-red-kite-populations-trends-year','env_sno_leo_hab_pop_and_hom_ran_est_pop-environment-snow-leopard-estimated-population','env_sno_leo_hab_pop_and_hom_ran_hab_are_in_sq_km-home-range-area-sq-km','env_so2_emi_per_pop_are-so2-emissions-per-populated-area','env_so2_exp-environment-so2-exports','env_sus_sat_com-environment-sustainability-satisfying-companies','env_thr_spe-environment-threatened-species','env_thr_spe_mam-environment-threatened-species-mammal','env_tot_ren_wat_res-environment-total-renewable-water-resources','env_urb_no2_con-environment-urban-no2-concentration','env_urb_so2_con-environment-urban-so2-concentration','env_was_gen-environment-waste-generation','env_was_wat_tre_exp-environment-waste-water-treatment-expenditure','env_wat_ava-environment-water-availability','env_wat_dis_oxy_con-environment-water-dissolved-oxygen-concentration','env_wat_fre_pol-environment-water-freshwater-pollution','env_wat_pho_con-environment-water-phosphorus-concentration','env_wat_sal-environment-water-salinisation','env_wat_sev_wat_str-environment-water-severe-stress','env_wat_sus_sol-environment-water-suspended-solids','env_wat_pol_che_ind_of_tot_bod_emi-chemical-industry-total-bod-emissions','env_wat_pol_cla_and_gla_ind_of_tot_bod_emi-glass-industry-total-bod-emissions','env_wat_pol_foo_ind_of_tot_bod_emi-food-industry-total-bod-emissions','env_wat_pol_met_ind_of_tot_bod_emi-metal-industry-total-bod-emissions','env_wat_pol_oth_ind_of_tot_bod_emi-other-industry-total-bod-emissions','env_wat_pol_pap_and_pul_ind_of_tot_bod_emi-pulp-industry-total-bod-emissions','env_wat_pol_tex_ind_of_tot_bod_emi-textile-industry-total-bod-emissions','env_wat_pol_woo_ind_of_tot_bod_emi-wood-industry-total-bod-emissions','env_wet_of_int_imp_are-environment-wetlands-intl-importance-area','env_wet_of_int_imp_are_percap-intl-importance-area-per-capita','env_wil-environment-wildness','env-more');
      var wss = new Array('Select Environment Stat','Acidification *','Adjusted savings: carbon dioxide damage > % of GNI *','Adjusted savings: net forest depletion > % of GNI *','Adjusted savings: particulate emission damage > % of GNI *','Areas under protection *','Areas under protection (per capita) *','Biodiversity richness *','Biosphere reserves area *','Breeding birds threatened *','Carbon efficiency *','CFC consumption *','CFC consumption (per capita) *','CO2 Emissions *','CO2 Emissions (per capita) *','CO2 emissions > kg per 2000 PPP $ of GDP *','CO2 emissions > kt *','CO2 emissions > kt (per capita) *','Coral reefs > Area *','Coral reefs > Area (per $ GDP) *','Coral reefs > Area (per capita) *','Coral reefs > Share','CPIA policy and institutions for environmental sustainability rating *','Current issues','Ecological footprint *','Endangered reptile species *','Endangered species protection *','Environmental agreement compliance *','Expenditure pollution control as % of GDP *','Fertiliser consumption *','Forest area > % of land area *','Forest area > sq. km *','Forest area > sq. km (per capita) *','Freshwater withdrawal *','Freshwater withdrawal > Agricultural *','Freshwater withdrawal > Domestic *','Freshwater withdrawal > Industrial *','Groundwater withdrawals *','International agreements > Party to','International agreements > Signed but not ratified','Known breeding bird species *','Known mammal species *','Known mammal species (per capita) *','Known reptile species *','Kyoto Protocol > Results to date > EU Assigned Objective > for 2012 *','Kyoto Protocol > Treaty Obligation 2008-2012 *','Marine areas under protection *','Marine areas under protection (per capita) *','Marine fish catch *','Marine fish catch (per capita) *','Municipal waste generation *','Municipal waste treatment expenditure *','Non-wildness *','NOx emissions per populated area *','Organic water pollutant (BOD) emissions > kg per day *','Organic water pollutant (BOD) emissions > kg per day per worker *','PM10, country level > micrograms per cubic meter *','Pollution > Carbon dioxide 1999 *','Pollution > Carbon Dioxide from fossil fuels 2000 *','Pollution > Carbon Dioxide from fossil fuels 2000 (per $ GDP) *','Pollution > Carbon Dioxide from fossil fuels 2000 (per capita) *','Pollution > Carbon Dioxide per capita *','Pollution > Municipal Waste per capita *','Pollution > Nitrogen Oxides per capita *','Pollution > Nuclear waste *','Pollution > Nuclear waste efficiency *','Pollution > Nuclear waste per capita *','Protected area *','Red Kite > Populations and trends > Pairs','Red Kite > Populations and trends > Trend','Red Kite > Populations and trends > Year','Snow Leopard > Estimated Population *','Snow Leopard > Habitat, population, and home range > Habitat Area in sq. km. *','SO2 emissions per populated area *','SO2 exports *','Sustainability-satisfying companies *','Threatened species *','Threatened species > Mammal *','Total renewable water resources *','Urban NO2 concentration *','Urban SO2 concentration *','Waste generation *','Waste water treatment expenditure *','Water > Availability *','Water > Dissolved oxygen concentration *','Water > Freshwater pollution *','Water > Phosphorus concentration *','Water > Salinisation *','Water > Severe water stress *','Water > Suspended solids *','Water pollution, chemical industry > % of total BOD emissions *','Water pollution, clay and glass industry > % of total BOD emissions *','Water pollution, food industry > % of total BOD emissions *','Water pollution, metal industry > % of total BOD emissions *','Water pollution, other industry > % of total BOD emissions *','Water pollution, paper and pulp industry > % of total BOD emissions *','Water pollution, textile industry > % of total BOD emissions *','Water pollution, wood industry > % of total BOD emissions *','Wetlands of intl importance > Area *','Wetlands of intl importance > Area (per capita) *','Wildness *','... more Environment Stats');
      break;
    case 'Food':
      var ids = new Array('','foo_alc_con_196-food-alcohol-consumption-1960','foo_alc_con_197-food-alcohol-consumption-1970','foo_alc_con_198-food-alcohol-consumption-1980','foo_alc_con_199-food-alcohol-consumption-1990','foo_alc_con_200-food-alcohol-consumption-2000','foo_alc_con-food-alcohol-consumption-current','foo_bee_con-food-beer-consumption','foo_bev_and_tob_of_val_add_in_man-beverages-tobacco-value-added-manufacturing','foo_bot_wat_con-food-bottled-water-consumption','foo_cof_con-food-coffee-consumption','foo_exp_of_mer_exp-food-exports-of-merchandise','foo_fru_jui_con-food-fruit-juice-consumption','foo_imp_of_mer_imp-food-imports-of-merchandise','foo_mcd_res-food-mcdonalds-restaurants','foo_mcd_res_pergdp-food-mcdonalds-restaurants-per-gdp','foo_mcd_res_percap-food-mcdonalds-restaurants-per-capita','foo_por_con_per_cap-food-pork-consumption-per-capita','foo_sof_dri_con-food-soft-drink-consumption','foo_sta_dri_sta_dri_as_def_by_var_cou_vol-drinks-defined-various-countries-volume','foo_sta_dri_sta_dri_as_def_by_var_cou_wei-drinks-defined-various-countries-weight','foo_sub_res-food-subway-resturants','foo_sub_res_percap-food-subway-resturants-per-capita','foo_tea_con-food-tea-consumption','foo_tot_spi_con-food-total-spirit-consumption','foo_win_con-food-wine-consumption','foo-more');
      var wss = new Array('Select Food Stat','Alcohol consumption > 1960 *','Alcohol consumption > 1970 *','Alcohol consumption > 1980 *','Alcohol consumption > 1990 *','Alcohol consumption > 2000 *','Alcohol consumption > Current *','Beer consumption *','beverages and tobacco > % of value added in manufacturing *','Bottled water consumption *','Coffee consumption *','exports > % of merchandise exports *','Fruit juice consumption *','imports > % of merchandise imports *','McDonalds restaurants *','McDonalds restaurants (per $ GDP) *','McDonalds restaurants (per capita) *','Pork consumption per capita *','Soft drink consumption *','Standard drink > Standard drinks as defined by various countries > Volume *','Standard drink > Standard drinks as defined by various countries > Weight *','Subway resturants *','Subway resturants (per capita) *','Tea consumption *','Total spirit consumption *','Wine consumption *','... more Food Stats');
      break;
    case 'Geography':
      var ids = new Array('','geo_are_a_not-geography-area-a-note','geo_are_com-geography-area-comparative','geo_are_com_to_us_pla-geography-area-comparative-us-places','geo_are_lan-geography-area-land','geo_are_lan_percap-geography-area-land-per-capita','geo_are_not-geography-area-note','geo_are_tot-geography-area-total','geo_are_tot_percap-geography-area-total-per-capita','geo_are_wat-geography-area-water','geo_are_wat_percap-geography-area-water-per-capita','geo_sta_cap-geography-capital-city-with-population','geo_cap_and_lar_cit_cou_cit_lar_tha_the_cap-cities-countries-larger-than-capital','geo_cli-geography-climate','geo_coa-geography-coastline','geo_cou_ove_num-geography-county-overview-number','geo_cou_ove_plu-geography-county-overview-plural','geo_cou_ove_sin-geography-county-overview-singular','geo_ele_ext_hig_poi-geography-elevation-extremes-highest-point','geo_ele_ext_low_poi-geography-elevation-extremes-lowest-point','geo_eur_are-geography-europe-area','geo_for_lan-geography-forested-land','geo_geo_coo-geography-geographic-coordinates','geo_geo_not-geography-note','geo_hig_tow_tow-geography-highest-towns-town-city','geo_irr_lan-geography-irrigated-land','geo_irr_lan_percap-geography-irrigated-land-per-capita','geo_lan_are_sq_km-geography-land-area-sq-km','geo_lan_are_sq_km_percap-area-sq-km-per-capita','geo_lan_bor_len_df_num_of_nei-lengths-d-f-number-neighbours','geo_lan_bor_len_df_tot_bor-lengths-d-f-total-borders','geo_lan_bor_len_jl_num_of_nei-lengths-j-l-number-neighbours','geo_lan_bor_len_jl_tot_bor-lengths-j-l-total-borders','geo_lan_bor_len_ps_num_of_nei-lengths-p-s-number-neighbours','geo_lan_bor_len_ps_tot_bor-lengths-p-s-total-borders','geo_lan_bor_len_tv_num_of_nei-lengths-t-v-number-neighbours','geo_lan_bor_len_tv_tot_bor-lengths-t-v-total-borders','geo_lan_bou_bor_cou-geography-land-boundaries-border-countries','geo_lan_bou_tot-geography-land-boundaries-total','geo_lan_bou_tot_percap-land-boundaries-total-per-capita','geo_lan_use_ara_lan-geography-land-use-arable','geo_lan_use_oth-geography-land-use-other','geo_lan_use_per_cro-geography-land-use-permanent-crops','geo_lar_cit-geography-largest-city','geo_lar_cit_pop-geography-largest-city-population','geo_lar_cit_pop_percap-largest-city-population-per-capita','geo_lar_cit_wit_pop-geography-largest-city-with-population','geo_loc-geography-location','geo_map_ref-geography-map-references','geo_mar_cla-geography-maritime-claims','geo_mar_cla_con_zon-geography-maritime-claims-contiguous-zone','geo_mar_cla_con_she-geography-maritime-claims-continental-shelf','geo_mar_cla_exc_eco_zon-maritime-claims-exclusive-economic-zone','geo_mar_cla_exc_fis_zon-maritime-claims-exclusive-fishing-zone','geo_mar_cla_ter_sea-geography-maritime-claims-territorial-sea','geo_nat_haz-geography-natural-hazards','geo_nat_res-geography-natural-resources','geo_nor_poi_lat-geography-northernmost-point-latitude','geo_pop_den-geography-population-density','geo_pop_den_peo_per_sq_km-density-people-per-sq-km','geo_pre-geography-precipitation','geo_rur_pop_den_rur_pop_per_sq_km_of_ara_lan-per-sq-km-arable-land','geo_sur_are_sq_km-geography-surface-area-sq-km','geo_sur_are_sq_km_percap-area-sq-km-per-capita','geo_tal_mou_mou-geography-tallest-mountains-mountain','geo_ter-geography-terrain','geo-more');
      var wss = new Array('Select Geography Stat','Area > A note','Area > Comparative','Area > Comparative to US places','Area > Land *','Area > Land (per capita) *','Area > Note','Area > Total *','Area > Total (per capita) *','Area > Water *','Area > Water (per capita) *','Capital city with population','capitals and largest cities > Countries > Cities larger than the capital','Climate','Coastline *','County > Overview > Number','County > Overview > Plural','County > Overview > Singular','Elevation extremes > Highest point','Elevation extremes > Lowest point','Europe > Area *','Forested Land *','Geographic coordinates','Note','highest towns > Town/City','Irrigated land *','Irrigated land (per capita) *','Land area > sq. km *','Land area > sq. km (per capita) *','land border lengths > D-F > Number of neighbours *','land border lengths > D-F > Total Borders *','land border lengths > J-L > Number of neighbours *','land border lengths > J-L > Total Borders *','land border lengths > P-S > Number of neighbours *','land border lengths > P-S > Total Borders *','land border lengths > T-V > Number of neighbours *','land border lengths > T-V > Total Borders *','Land boundaries > Border countries','Land boundaries > Total *','Land boundaries > Total (per capita) *','Land use > Arable land *','Land use > Other *','Land use > Permanent crops *','Largest city','Largest city population *','Largest city population (per capita) *','Largest city with population','Location','Map references','Maritime claims','Maritime claims > Contiguous zone *','Maritime claims > Continental shelf','Maritime claims > Exclusive economic zone *','Maritime claims > Exclusive fishing zone *','Maritime claims > Territorial sea *','Natural hazards','Natural resources','northernmost point > Latitude','Population density *','Population density > people per sq. km *','Precipitation *','Rural population density > rural population per sq. km of arable land *','Surface area > sq. km *','Surface area > sq. km (per capita) *','tallest mountains > Mountain','Terrain','... more Geography Stats');
      break;
    case 'Government':
      var ids = new Array('','gov_adm_div-government-administrative-divisions','gov_cap_cit-government-capital-city','gov_cap_cit_geo_coo-government-capital-city-geographic-coordinates','gov_cap_cit_nam-government-capital-city-name','gov_cap_cit_tim_dif-government-capital-city-time-difference','gov_con-government-constitution','gov_con_mon_cur_con_mon_las_con_est-current-monarchies-last-constitution-established','gov_con_mon_cur_con_mon_mon_sel_by-monarchy-current-monarchies-monarch-selected','gov_con_mon_cur_con_mon_typ_of_mon-constitutional-monarchy-current-monarchies-type','gov_cor-government-corruption','gov_cpi_equ_of_pub_res_use_rat-equity-public-resource-use-rating','gov_dep_sta-government-dependency-status','gov_dip_rep_fro_the_us-government-diplomatic-representation-us','gov_dip_rep_fro_the_us_chi_of_mis-diplomatic-representation-us-chief-mission','gov_dip_rep_fro_the_us_emb-government-diplomatic-representation-us-embassy','gov_dip_rep_fro_the_us_mai_add-diplomatic-representation-us-mailing-address','gov_dip_rep_fro_the_us_tel-government-diplomatic-representation-us-telephone','gov_dip_rep_in_the_us_cha-government-diplomatic-representation-us-chancery','gov_dip_rep_in_the_us_chi_of_mis-diplomatic-representation-us-chief-mission','gov_dip_rep_in_the_us_con-diplomatic-representation-us-consulate-s','gov_dip_rep_in_the_us_con_gen-representation-us-consulate-s-general','gov_dip_rep_in_the_us_tel-government-diplomatic-representation-us-telephone','gov_emb_and_hig_com_in_ott_add-embassies-high-commissions-ottawa-address','gov_exe_bra_cab-government-executive-branch-cabinet','gov_exe_bra_chi_of_sta-government-executive-branch-chief-state','gov_exe_bra_ele_res-government-executive-branch-election-results','gov_exe_bra_ele-government-executive-branch-elections','gov_exe_bra_hea_of_gov-government-executive-branch-head-of','gov_exe_bra_not-government-executive-branch-note','gov_fla_des-government-flag-description','gov_gen_gov_fin_con_exp_ann_gro-final-consumption-expenditure-annual-growth','gov_gen_gov_fin_con_exp_con_2000_us-consumption-expenditure-constant-2000-us','gov_gen_gov_fin_con_exp_con_lcu-final-consumption-expenditure-constant-lcu','gov_gen_gov_fin_con_exp_cur_lcu-final-consumption-expenditure-current-lcu','gov_gen_gov_fin_con_exp_cur_us-final-consumption-expenditure-current-us','gov_gen_gov_fin_con_exp_cur_us_pergdp-expenditure-current-us-per-gdp','gov_gen_gov_fin_con_exp_cur_us_percap-expenditure-current-us-per-capita','gov_gov_typ-government-type','gov_gov_com_cou_wit_gov_gen_fro-governor-general-commonwealth-countries-governors','gov_hea_of_mis_fro_the_uni_kin-government-heads-missions-united-kingdom','gov_how_dem_is_the_ame_con_int_com_ele_sys-constitution-international-comparisons-electoral-system','gov_how_dem_is_the_ame_con_int_com_par_sys-constitution-international-comparisons-party-system','gov_how_dem_is_the_ame_con_int_com_str-american-constitution-international-comparisons-structure','gov_ind-government-independence','gov_ind_day_dat-government-independence-day-date','gov_int_org_par-government-international-organization-participation','gov_jud_bra-government-judicial-branch','gov_key_min_agr-government-key-ministers-agriculture','gov_key_min_edu-government-key-ministers-education','gov_kua_lum_emb_nei-government-kuala-lumpur-embassies-neighborhood','gov_law_aga_hol_den_pen_for_vio_max-holocaust-denial-penalties-violation-maximum','gov_leg_ori-government-legal-origin','gov_leg_sys-government-legal-system','gov_leg_sys_com_law_bas-legal-systems-common-law-base','gov_leg_bra-government-legislative-branch','gov_leg_bra_a_not-government-legislative-branch-a-note','gov_leg_bra_ele_res-government-legislative-branch-election-results','gov_leg_bra_ele-government-legislative-branch-elections','gov_leg_bra_not-government-legislative-branch-note','gov_man_tim_dea_wit_off_of_man_tim-government-management-time-dealing-officials','gov_mem_of_ase_ase_mem_sta_hea_of_gov-members-asean-member-states-head','gov_mem_of_ase_ase_mem_sta_hea_of_sta-asean-member-states-head-state','gov_mem_of_ase_ase_mem_sta_mem_dat-asean-member-states-membership-date','gov_mot_of_the_nat_nam-government-mother-nation-name','gov_nat_hol-government-national-holiday','gov_par_sea_fem-government-parliamentary-seats-female','gov_par_in_the_cou_of_the_eur_uni_lea_eur_par-council-european-union-leaders-party','gov_pol_par_dom_par-government-political-parties-dominant-party','gov_pol_par_mul_par-government-political-parties-multi-party','gov_pol_par_two_par-government-political-parties-two-party','gov_pol_par_and_lea-government-political-parties-and-leaders','gov_pol_par_and_lea_a_not-government-political-parties-leaders-note','gov_pol_pre_gro_and_lea-government-political-pressure-groups-leaders','gov_pol_pre_gro_and_lea_oth-political-pressure-groups-leaders-other','gov_pos_sta_pol_pro_gov_and_tax_ave-states-political-problems-tax-average','gov_pri_min-government-prime-minister','gov_pro_to_bui_a_war_num-government-procedures-build-warehouse-number','gov_pro_to_enf_a_con_num-government-procedures-enforce-contract-number','gov_pro_to_reg_pro_num-government-procedures-register-property-number','gov_pro_of_sea_hel_by_wom_in_nat_par-seats-held-women-national-parliament','gov_sec_att-government-secession-attempts','gov_sta_and_ass_pro_sta_and_ass_pro_alb-government-stabilisation-association-process-albania','gov_sta_and_ass_pro_sta_and_ass_pro_rep_of_mac-stabilisation-association-process-republic-macedonia','gov_sta_pro_to_reg_a_bus_num-up-procedures-register-business-number','gov_sta-government-status','gov_suf-government-suffrage','gov_tim_req_to_bui_a_war_day-time-required-build-warehouse-days','gov_tim_req_to_enf_a_con_day-time-required-enforce-contract-days','gov_tim_req_to_reg_pro_day-time-required-register-property-days','gov_tim_req_to_sta_a_bus_day-time-required-start-business-days','gov_tim_to_pre_and_pay_tax_hou-time-prepare-pay-taxes-hours','gov_tim_to_res_ins_yea-government-time-resolve-insolvency-years','gov_tot_bus_reg_num-government-total-businesses-registered-number','gov_tot_bus_reg_num_percap-businesses-registered-number-per-capita','gov_tra_non-government-trademarks-nonresidents','gov_tra_res-government-trademarks-residents','gov_tra_iss_dis_int-government-transnational-issues-disputes-international','gov_un_mem_dat-government-un-membership-date','gov_uni_nat_mis-government-united-nations-mission','gov_was_dc_emb_nei-washington-d-c-embassies-neighborhood','gov-more');
      var wss = new Array('Select Government Stat','Administrative divisions','Capital city','Capital city > Geographic coordinates','Capital city > Name','Capital city > Time difference','Constitution','Constitutional monarchy > current constitutional monarchies > Last constitution established','Constitutional monarchy > current constitutional monarchies > Monarch selected by','Constitutional monarchy > current constitutional monarchies > Type of monarchy','Corruption *','CPIA equity of public resource use rating *','Dependency status','Diplomatic representation from the US','Diplomatic representation from the US > Chief of mission','Diplomatic representation from the US > Embassy','Diplomatic representation from the US > Mailing address','Diplomatic representation from the US > Telephone','Diplomatic representation in the US > Chancery','Diplomatic representation in the US > Chief of mission','Diplomatic representation in the US > Consulate(s)','Diplomatic representation in the US > Consulate(s) general','Diplomatic representation in the US > Telephone','embassies and high commissions in Ottawa > Address','Executive branch > Cabinet','Executive branch > Chief of state','Executive branch > Election results','Executive branch > Elections','Executive branch > Head of government','Executive branch > Note','Flag description','General government final consumption expenditure > annual % growth *','General government final consumption expenditure > constant 2000 US$ *','General government final consumption expenditure > constant LCU','General government final consumption expenditure > current LCU','General government final consumption expenditure > current US$ *','General government final consumption expenditure > current US$ (per $ GDP) *','General government final consumption expenditure > current US$ (per capita) *','Government type','Governor-General > Commonwealth countries with Governors General > From','Heads of Missions from the United Kingdom','How Democratic Is the American Constitution? > International comparisons > Electoral system','How Democratic Is the American Constitution? > International comparisons > Party system','How Democratic Is the American Constitution? > International comparisons > Structure','Independence','Independence Day > Date','International organization participation','Judicial branch','Key ministers > Agriculture','Key ministers > Education','Kuala Lumpur embassies > Neighborhood','Laws against Holocaust denial > Penalties for violation > Maximum','Legal origin','Legal system','Legal systems > Common law base','Legislative branch','Legislative branch > A note','Legislative branch > Election results','Legislative branch > Elections','Legislative branch > Note','Management time dealing with officials > % of management time *','members of ASEAN > ASEAN member states > Head of Government','members of ASEAN > ASEAN member states > Head of State','members of ASEAN > ASEAN member states > Membership date','Mother of the Nation > Name','National holiday','Parliamentary seats > Female *','Parties in the Council of the European Union > leaders > European > party','political parties > Dominant party','political parties > Multi party','political parties > Two party','Political parties and leaders','Political parties and leaders > A note','Political pressure groups and leaders','Political pressure groups and leaders > Other','Post-Soviet states > Political problems > Government and Tax > Average *','Prime minister','Procedures to build a warehouse > number *','Procedures to enforce a contract > number *','Procedures to register property > number *','Proportion of seats held by women in national parliament > % *','Secession attempts','Stabilisation and Association process > Albania','Stabilisation and Association process > Stabilisation and Association process > Republic of > Macedonia','Start-up procedures to register a business > number *','Status','Suffrage','Time required to build a warehouse > days *','Time required to enforce a contract > days *','Time required to register property > days *','Time required to start a business > days *','Time to prepare and pay taxes > hours *','Time to resolve insolvency > years *','Total businesses registered > number *','Total businesses registered > number (per capita) *','Trademarks, nonresidents *','Trademarks, residents *','Transnational Issues > Disputes > International','UN membership date','United Nations mission','Washington, D.C. embassies > Neighborhood','... more Government Stats');
      break;
    case 'Health':
      var ids = new Array('','hea_abo-health-abortions','hea_abo_percap-health-abortions-per-capita','hea_acc_to_san-health-access-to-sanitation','hea_age_of_wom_at_fir_chi-health-age-women-first-childbirth','hea_bir_rat_cru_per_1000_peo-crude-per-1-000-people','hea_bir_by_cae_sec-health-births-by-caesarean-section','hea_bre_can_inc-health-breast-cancer-incidence','hea_chi_mal_dea-health-child-maltreatment-deaths','hea_chi_und_rat-health-children-underweight-rate','hea_cir_dis_dea-health-circulatory-disease-deaths','hea_con_wit_doc-health-consultation-with-doctors','hea_con-health-contraception','hea_con_pre_of_wom_age_1549-prevalence-women-ages-15-49','hea_dai_smo-health-daily-smokers','hea_dea_fro_can-health-death-from-cancer','hea_dep_rat_per_100-health-dependency-ratio-per-100','hea_dig_dis_dea-health-digestive-disease-deaths','hea_dri_wat_ava-health-drinking-water-availability','hea_dru_acc-health-drug-access','hea_exp_per_cap_cur_us-expenditure-per-capita-current-us','hea_exp_pri_of_gdp-health-expenditure-private-of-gdp','hea_exp_tot_of_gdp-health-expenditure-total-of-gdp','hea_fer_rat_tot_bir_per_wom-rate-total-births-per-woman','hea_hea_car_fun_pri_per_cap-care-funding-private-per-capita','hea_hea_car_fun_tot_per_cap-care-funding-total-per-capita','hea_hea_dis_dea-health-heart-disease-deaths','hea_hiv_aid_adu_pre_rat-hiv-aids-adult-prevalence-rate','hea_hiv_aid_dea-health-hiv-aids-deaths','hea_hiv_aid_peo_liv_wit_hiv_aid-health-hiv-aids-people-living','hea_hiv_aid_peo_liv_wit_hiv_aid_percap-aids-people-living-per-capita','hea_hos_bed-health-hospital-beds','hea_hos_bed_per_1000_peo-beds-per-1-000-people','hea_inc_of_tub_per_100_peo-tuberculosis-per-100-000-people','hea_inf_mor_rat-health-infant-mortality-rate','hea_inf_mor_rat_tot-health-infant-mortality-rate-total','hea_int_dis_dea_rat-health-intestinal-diseases-death-rate','hea_lif_exp_dat_of_inf-health-life-expectancy-date-information','hea_lif_exp_hea_yea-health-life-expectancy-healthy-years','hea_lif_exp_at_bir_fem-health-life-expectancy-birth-female','hea_lif_exp_at_bir_mal-health-life-expectancy-birth-male','hea_lif_exp_at_bir_tot_pop-life-expectancy-birth-total-population','hea_lif_exp_at_bir_mal_yea-life-expectancy-birth-male-years','hea_lif_exp_at_bir_tot_yea-life-expectancy-birth-total-years','hea_lif_exp_at_bir_yea_tot_pop-expectancy-birth-years-total-population','hea_maj_inf_dis_deg_of_ris-major-infectious-diseases-degree-risk','hea_maj_inf_dis_foo_or_wat_dis-major-infectious-diseases-food-waterborne','hea_maj_inf_dis_wat_con_dis-infectious-diseases-water-contact-disease','hea_mal_cas_per_100-malaria-cases-per-100-000','hea_mat_mor-health-maternal-mortality','hea_mot_veh_dea-health-motor-vehicle-deaths','hea_nur-health-nurses','hea_obe-health-obesity','hea_obe_in_men-health-obesity-in-men','hea_obe_in_wom-health-obesity-in-women','hea_per_cap_tot_exp_on_hea_in_int_dol-capita-total-expenditure-international-dollars','hea_per_of_lif_liv_in_ill_hea_fem-percentage-life-lived-ill-female','hea_phy_per_1000_peo-physicians-per-1-000-people','hea_pla_sur_pro-health-plastic-surgery-procedures','hea_pla_sur_pro_percap-plastic-surgery-procedures-per-capita','hea_pra_phy-health-practising-physicians','hea_pre_of_hiv_tot_of_pop_age_1549-total-population-ages-15-49','hea_pri_exp_on_hea_as_of_tot_exp_on_hea-health-private-expenditure-total','hea_pro_of_not_rea_40-health-probability-not-reaching-40','hea_pro_of_not_rea_60-health-probability-not-reaching-60','hea_pro_of_rea_65_mal-health-probability-reaching-65-male','hea_pub_spe_as_of_tot-health-public-spending-total','hea_red_cro_don-health-red-cross-donations','hea_res_dis_chi_dea_rat-respiratory-disease-child-death-rate','hea_sar_fat-health-sars-fatalities','hea_smo_pre_fem_of_adu-health-smoking-prevalence-females-adults','hea_smo_pre_mal_of_adu-health-smoking-prevalence-males-adults','hea_spe_per_per-health-spending-per-person','hea_spe_pub-health-spending-public','hea_sui_rat_fem-health-suicide-rate-females','hea_sui_rat_gen_rat-health-suicide-rate-gender-ratio','hea_sui_rat_mal-health-suicide-rate-males','hea_sui_rat_mid_age-health-suicide-rate-middle-aged','hea_sui_rat_you_fem-health-suicide-rate-young-females','hea_sui_rat_you_mal-health-suicide-rate-young-males','hea_tee_bir_rat-health-teen-birth-rate','hea_tee_pre-health-teenage-pregnancy','hea_tee_pre_percap-health-teenage-pregnancy-per-capita','hea_tee_pre_sha-health-teenage-pregnancy-share','hea_tob_adu_fem_smo-health-tobacco-adult-female-smokers','hea_tob_adu_mal_smo-health-tobacco-adult-male-smokers','hea_tob_cig_con-health-tobacco-cigarette-consumption','hea_tob_tot_adu_smo-health-tobacco-total-adult-smokers','hea_tob_tot_you_smo-health-tobacco-total-young-smokers','hea_tob_you_fem_smo-health-tobacco-young-female-smokers','hea_tot_exp_as_of_gdp-health-total-expenditure-gdp','hea_tot_exp_on_hea_as_of_gdp-health-total-expenditure-gdp','hea_tot_fer_rat-health-total-fertility-rate','hea_tra_hea-health-transplants-heart','hea_tra_kid-health-transplants-kidney','hea_tra_liv-health-transplants-liver','hea_tub_cas_per_100-tuberculosis-cases-per-100-000','hea_wat_ava-health-water-availability','hea_wom_cir-health-women-circumcised','hea_yea_liv_in_ill_hea_fem-health-years-lived-ill-female','hea_yea_liv_in_ill_hea_mal-health-years-lived-ill-male','hea-more');
      var wss = new Array('Select Health Stat','Abortions *','Abortions (per capita) *','Access to sanitation *','Age of women at first childbirth *','Birth rate, crude > per 1,000 people *','Births by caesarean section *','Breast cancer incidence *','Child maltreatment deaths *','Children Underweight Rate *','Circulatory disease deaths *','Consultation with doctors *','Contraception *','Contraceptive prevalence > % of women ages 15-49 *','Daily smokers *','Death from cancer *','Dependency ratio per 100 *','Digestive disease deaths *','Drinking water availability % *','Drug access *','expenditure per capita > current US$ *','expenditure, private > % of GDP *','expenditure, total > % of GDP *','Fertility rate, total > births per woman *','Health care funding > Private per capita *','Health care funding > Total per capita *','Heart disease deaths *','HIV AIDS > Adult prevalence rate *','HIV AIDS > Deaths *','HIV AIDS > People living with HIV AIDS *','HIV AIDS > People living with HIV AIDS (per capita) *','Hospital beds *','Hospital beds > per 1,000 people *','Incidence of tuberculosis > per 100,000 people *','Infant mortality rate *','Infant mortality rate > Total *','Intestinal diseases death rate *','life expectancy > Date of information','Life expectancy > Healthy years *','Life expectancy at birth > Female *','Life expectancy at birth > Male *','Life expectancy at birth > Total population *','Life expectancy at birth, male > years *','Life expectancy at birth, total > years *','Life expectancy at birth, years > Total population *','Major infectious diseases > Degree of risk','Major infectious diseases > Food or waterborne diseases','Major infectious diseases > Water contact disease','Malaria cases > per 100,000 *','Maternal mortality *','Motor vehicle deaths *','Nurses *','Obesity *','Obesity in men *','Obesity in women *','Per capita total expenditure on health in international dollars *','Percentage of life lived in ill health > Female *','Physicians > per 1,000 people *','Plastic surgery procedures *','Plastic surgery procedures (per capita) *','Practising physicians *','Prevalence of HIV, total > % of population ages 15-49 *','Private expenditure on health as % of total expenditure on health *','Probability of not reaching 40 *','Probability of not reaching 60 *','Probability of reaching 65 > Male *','Public spending as % of total *','Red Cross donations *','Respiratory disease child death rate','SARS fatalities *','Smoking prevalence, females > % of adults *','Smoking prevalence, males > % of adults *','Spending > Per person *','Spending > Public','Suicide rate > Females *','Suicide rate > Gender ratio *','Suicide rate > Males *','Suicide rate > Middle aged *','Suicide rate > Young females *','Suicide rate > Young males *','Teen birth rate *','Teenage pregnancy *','Teenage pregnancy (per capita) *','Teenage pregnancy > Share *','Tobacco > Adult female smokers *','Tobacco > Adult male smokers *','Tobacco > Cigarette consumption *','Tobacco > Total adult smokers *','Tobacco > Total young smokers *','Tobacco > Young female smokers *','Total expenditure as % of GDP *','Total expenditure on health as % of GDP *','Total fertility rate *','Transplants > Heart *','Transplants > Kidney *','Transplants > Liver *','Tuberculosis cases > Per 100,000 *','Water availability *','Women circumcised *','Years lived in ill health > Female *','Years lived in ill health > Male *','... more Health Stats');
      break;
    case 'Identification':
      var ids = new Array('','ide_15_cha-identification-15-character','ide_30_cha-identification-30-character','ide_cou_nam-identification-country-name','ide_cou_nam_abb-identification-country-name-abbreviation','ide_cou_nam_con_lon_for-country-name-conventional-long-form','ide_cou_nam_con_sho_for-country-name-conventional-short-form','ide_cou_nam_for-identification-country-name-former','ide_cou_nam_loc_lon_for-country-name-local-long-form','ide_cou_nam_loc_sho_for-country-name-local-short-form','ide_cou_nam_not-identification-country-name-note','ide_iso_316-3166-2-2004-03-08','ide_iso_cod-identification-iso-code','ide_iso_lon-identification-iso-long','ide_iso_sho-identification-iso-short','ide_nat_dan_nat_dan-identification-national-dances-dance','ide_nat_nam-identification-native-names','ide_oce_cod-identification-oceanographic-code','ide_tra_cat-identification-translation-catalan','ide_tra_fre-identification-translation-french','ide_tra_ger-identification-translation-german','ide_tra_ita-identification-translation-italian','ide_tra_por-identification-translation-portugese','ide_tra_spa-identification-translation-spanish','ide_un_cod-identification-un-code','ide-more');
      var wss = new Array('Select Identification Stat','15 character','30 character','Country name','Country name > Abbreviation','Country name > Conventional long form','Country name > Conventional short form','Country name > Former','Country name > Local long form','Country name > Local short form','Country name > Note','ISO 3166-2:2004-03-08','ISO code','ISO long','ISO short','national dances > National dance','Native names','Oceanographic code','Translation > Catalan','Translation > French','Translation > German','Translation > Italian','Translation > Portugese','Translation > Spanish','UN code','... more Identification Stats');
      break;
    case 'Immigration':
      var ids = new Array('','imm_asy_see-immigration-asylum-seekers','imm_asy_see_pergdp-immigration-asylum-seekers-per-gdp','imm_asy_see_percap-immigration-asylum-seekers-per-capita','imm_asy_see_198-immigration-asylum-seekers-1980-89','imm_asy_see_198_pergdp-seekers-1980-89-per-gdp','imm_asy_see_198_percap-seekers-1980-89-per-capita','imm_asy_see_199-immigration-asylum-seekers-1990-99','imm_asy_see_199_pergdp-seekers-1990-99-per-gdp','imm_asy_see_199_percap-seekers-1990-99-per-capita','imm_asy_see_acc_rat_198-seekers-acceptance-rates-1980-89','imm_asy_see_acc_rat-seekers-acceptance-rates-1990-99','imm_for_pop-immigration-foreign-population','imm_for_pop_inf-immigration-foreign-population-inflow','imm_for_pop_inf_pergdp-foreign-population-inflow-per-gdp','imm_for_pop_inf_percap-foreign-population-inflow-per-capita','imm_for_pop_out-immigration-foreign-population-outflow','imm_for_pop_out_pergdp-foreign-population-outflow-per-gdp','imm_for_pop_out_percap-foreign-population-outflow-per-capita','imm_imm_pop_imm_as_per_of_sta_pop-immigrant-population-immigrants-percentage-state','imm_imm_pop_num_of_imm-immigration-immigrant-population-number-immigrants','imm_imm_pop_per_of_tot_num_of_imm_in_the_wor-percentage-total-number-immigrants-world','imm_imm_to_the_uni_sta_imm_sum_1830_to_2000_1880-states-summary-1830-2000-1880','imm_imm_to_the_uni_sta_imm_sum_1830_to_2000_1930-states-summary-1830-2000-1930','imm_imm_to_the_uni_sta_imm_sum_1830_to_2000_1960-states-summary-1830-2000-1960','imm_imm_to_the_uni_sta_imm_sum_1830_to_2000_1980-states-summary-1830-2000-1980','imm_imm_to_the_uni_sta_imm_sum_1830_to_2000_1990-states-summary-1830-2000-1990','imm_imm_to_the_uni_sta_imm_sum_1830_to_2000_2000-united-states-summary-1830-2000','imm_imm_to_the_uni_sta_ori_yea-immigration-united-states-origin-year','imm_imm_to_the_uni_sta_ori_2000-immigration-united-states-origin-2000','imm_imm_to_the_uni_sta_ori_2004-immigration-united-states-origin-2004','imm_imm_to_the_uni_sta_ori_2010-immigration-united-states-origin-2010','imm_int_mig_sto_of_pop-immigration-international-migration-stock-population','imm_int_mig_sto_tot-immigration-international-migration-stock-total','imm_net_mig-immigration-net-migration','imm_net_mig_percap-immigration-net-migration-per-capita','imm_net_mig_rat-immigration-net-migration-rate','imm_net_mig_rat_a_not-immigration-net-migration-rate-note','imm_new_cit-immigration-new-citizenships','imm_new_cit_pergdp-immigration-new-citizenships-per-gdp','imm_new_cit_percap-immigration-new-citizenships-per-capita','imm_ref_pop_by_cou_or_ter_of_asy-refugee-population-country-territory-asylum','imm_ref_pop_by_cou_or_ter_of_asy_percap-country-territory-asylum-per-capita','imm_ref_pop_by_cou_or_ter_of_ori-refugee-population-country-territory-origin','imm_ref_pop_by_cou_or_ter_of_ori_percap-country-territory-origin-per-capita','imm_ref-immigration-refugees','imm_ref_percap-immigration-refugees-per-capita','imm_ref_con_on_ref-immigration-refugees-convention-on','imm_ref_inf_199-immigration-refugees-inflow-1990-99','imm_ref_inf_199_percap-inflow-1990-99-per-capita','imm_ref_out-immigration-refugees-outflow','imm_ref_out_percap-immigration-refugees-outflow-per-capita','imm_ref_us_acc_rat-immigration-refugees-us-acceptance-rates','imm_ref_us_app-immigration-refugees-us-applications','imm_ref_us_app_percap-refugees-us-applications-per-capita','imm_ref_us_app_app-immigration-refugees-us-applications-approved','imm_ref_us_app_app_percap-us-applications-approved-per-capita','imm_ref_us_app_den-immigration-refugees-us-applications-denied','imm_ref_us_app_den_percap-us-applications-denied-per-capita','imm_ref_us_app_oth_clo-refugees-us-applications-otherwise-closed','imm_ref_us_app_oth_clo_percap-applications-otherwise-closed-per-capita','imm_ref_and_int_dis_per_idp-refugees-internally-displaced-persons-idps','imm_ref_and_int_dis_per_idp_percap-displaced-persons-idps-per-capita','imm_ref_and_int_dis_per_ref_cou_of_ori-internally-displaced-persons-country-origin','imm_to_swe-immigration-to-sweden','imm_us_vis_lot_win-immigration-us-visa-lottery-winners','imm_us_vis_lot_win_percap-visa-lottery-winners-per-capita','imm-more');
      var wss = new Array('Select Immigration Stat','Asylum Seekers *','Asylum Seekers (per $ GDP) *','Asylum Seekers (per capita) *','Asylum Seekers > 1980-89 *','Asylum Seekers > 1980-89 (per $ GDP) *','Asylum Seekers > 1980-89 (per capita) *','Asylum Seekers > 1990-99 *','Asylum Seekers > 1990-99 (per $ GDP) *','Asylum Seekers > 1990-99 (per capita) *','Asylum seekers acceptance rates > 1980-89 *','Asylum seekers acceptance rates > 1990-99 *','Foreign population *','Foreign population inflow *','Foreign population inflow (per $ GDP) *','Foreign population inflow (per capita) *','Foreign population outflow *','Foreign population outflow (per $ GDP) *','Foreign population outflow (per capita) *','immigrant population > Immigrants as percentage of state population *','immigrant population > Number of immigrants *','immigrant population > Percentage of total number of immigrants in the world','Immigration to the United States > Immigration summary 1830 to 2000 > 1880 *','Immigration to the United States > Immigration summary 1830 to 2000 > 1930 *','Immigration to the United States > Immigration summary 1830 to 2000 > 1960 *','Immigration to the United States > Immigration summary 1830 to 2000 > 1980 *','Immigration to the United States > Immigration summary 1830 to 2000 > 1990 *','Immigration to the United States > Immigration summary 1830 to 2000 > 2000 *','Immigration to the United States > Origin > #/year *','Immigration to the United States > Origin > 2000 *','Immigration to the United States > Origin > 2004 *','Immigration to the United States > Origin > 2010, % *','International migration stock > % of population *','International migration stock, total *','Net migration *','Net migration (per capita) *','Net migration rate *','Net migration rate > A note','New citizenships *','New citizenships (per $ GDP) *','New citizenships (per capita) *','Refugee population by country or territory of asylum *','Refugee population by country or territory of asylum (per capita) *','Refugee population by country or territory of origin *','Refugee population by country or territory of origin (per capita) *','Refugees *','Refugees (per capita) *','Refugees > Convention on refugees','Refugees > Inflow 1990-99 *','Refugees > Inflow 1990-99 (per capita) *','Refugees > Outflow *','Refugees > Outflow (per capita) *','Refugees > US acceptance rates *','Refugees > US applications *','Refugees > US applications  (per capita) *','Refugees > US applications approved *','Refugees > US applications approved (per capita) *','Refugees > US applications denied *','Refugees > US applications denied (per capita) *','Refugees > US applications otherwise closed *','Refugees > US applications otherwise closed (per capita) *','Refugees and internally displaced persons > IDPs *','Refugees and internally displaced persons > IDPs (per capita) *','Refugees and internally displaced persons > Refugees (country of origin)','to Sweden *','US visa lottery winners *','US visa lottery winners (per capita) *','... more Immigration Stats');
      break;
    case 'Industry':
      var ids = new Array('','ind_adj_sav_min_dep_of_gni-adjusted-savings-mineral-depletion-gni','ind_bio_fir-industry-biotechnology-firms','ind_bio_fir_percap-industry-biotechnology-firms-per-capita','ind_bus_pro-industry-bus-production','ind_bus_pro_percap-industry-bus-production-per-capita','ind_car_pro-industry-car-production','ind_car_pro_percap-industry-car-production-per-capita','ind_cha_in_inv_con_lcu-industry-changes-inventories-constant-lcu','ind_cha_in_inv_cur_lcu-industry-changes-inventories-current-lcu','ind_cha_in_inv_cur_us-industry-changes-inventories-current-us','ind_cha_in_inv_cur_us_pergdp-inventories-current-us-per-gdp','ind_cha_in_inv_cur_us_percap-inventories-current-us-per-capita','ind_che_of_val_add_in_man-industry-chemicals-value-added-manufacturing','ind_ele_co2_emi-industry-electrolux-co2-emissions','ind_ele_co2_emi_percap-electrolux-co2-emissions-per-capita','ind_ele_fac-industry-electrolux-factories','ind_ele_fac_percap-industry-electrolux-factories-per-capita','ind_ele_haz_was_gen-industry-electrolux-hazardous-waste-generation','ind_ele_haz_was_gen_percap-hazardous-waste-generation-per-capita','ind_hea_tru_pro-industry-heavy-truck-production','ind_hea_tru_pro_percap-heavy-truck-production-per-capita','ind_iro_ore_min_cou-industry-iron-ore-mining-country','ind_lig_com_veh_pro-industry-light-commercial-vehicle-production','ind_lig_com_veh_pro_percap-commercial-vehicle-production-per-capita','ind_mac_and_tra_equ_of_val_add_in_man-transport-equipment-value-added-manufacturing','ind_man_exp_of_mer_exp-industry-manufactures-exports-of-merchandise','ind_man_imp_of_mer_imp-industry-manufactures-imports-of-merchandise','ind_man_val_add_ann_gro-manufacturing-value-added-annual-growth','ind_man_val_add_con_2000_us-value-added-constant-2000-us','ind_man_val_add_con_2000_us_percap-constant-2000-us-per-capita','ind_man_val_add_con_lcu-manufacturing-value-added-constant-lcu','ind_man_val_add_cur_lcu-manufacturing-value-added-current-lcu','ind_man_val_add_cur_us-manufacturing-value-added-current-us','ind_man_val_add_cur_us_pergdp-added-current-us-per-gdp','ind_man_val_add_cur_us_percap-added-current-us-per-capita','ind_mot_veh_pro-industry-motor-vehicle-production','ind_mot_veh_pro_percap-motor-vehicle-production-per-capita','ind_ore_and_met_exp_of_mer_exp-industry-ores-metals-exports-merchandise','ind_ore_and_met_imp_of_mer_imp-industry-ores-metals-imports-merchandise','ind_oth_man_of_val_add_in_man-industry-other-manufacturing-value-added','ind_pat_app_non-industry-patent-applications-nonresidents','ind_pat_app_non_percap-patent-applications-nonresidents-per-capita','ind_pat_app_res-industry-patent-applications-residents','ind_pat_app_res_percap-patent-applications-residents-per-capita','ind_tex_and_clo_of_val_add_in_man-textiles-clothing-value-added-manufacturing','ind_val_add_ann_gro-industry-value-added-annual-growth','ind_val_add_con_2000_us-value-added-constant-2000-us','ind_val_add_con_2000_us_percap-constant-2000-us-per-capita','ind_val_add_con_lcu-industry-value-added-constant-lcu','ind_val_add_cur_lcu-industry-value-added-current-lcu','ind_val_add_cur_us-industry-value-added-current-us','ind_val_add_cur_us_pergdp-added-current-us-per-gdp','ind_val_add_cur_us_percap-added-current-us-per-capita','ind-more');
      var wss = new Array('Select Industry Stat','Adjusted savings: mineral depletion > % of GNI *','Biotechnology firms *','Biotechnology firms (per capita) *','Bus production *','Bus production (per capita) *','Car production *','Car production (per capita) *','Changes in inventories > constant LCU','Changes in inventories > current LCU','Changes in inventories > current US$ *','Changes in inventories > current US$ (per $ GDP) *','Changes in inventories > current US$ (per capita) *','Chemicals > % of value added in manufacturing *','Electrolux CO2 emissions *','Electrolux CO2 emissions (per capita) *','Electrolux Factories *','Electrolux Factories (per capita) *','Electrolux hazardous waste generation *','Electrolux hazardous waste generation (per capita) *','Heavy truck production *','Heavy truck production (per capita) *','Iron ore > Mining > Country *','Light commercial vehicle production *','Light commercial vehicle production (per capita) *','Machinery and transport equipment > % of value added in manufacturing *','Manufactures exports > % of merchandise exports *','Manufactures imports > % of merchandise imports *','Manufacturing, value added > annual % growth *','Manufacturing, value added > constant 2000 US$ *','Manufacturing, value added > constant 2000 US$ (per capita) *','Manufacturing, value added > constant LCU','Manufacturing, value added > current LCU','Manufacturing, value added > current US$ *','Manufacturing, value added > current US$ (per $ GDP) *','Manufacturing, value added > current US$ (per capita) *','Motor vehicle production *','Motor vehicle production (per capita) *','Ores and metals exports > % of merchandise exports *','Ores and metals imports > % of merchandise imports *','Other manufacturing > % of value added in manufacturing *','Patent applications, nonresidents *','Patent applications, nonresidents (per capita) *','Patent applications, residents *','Patent applications, residents (per capita) *','Textiles and clothing > % of value added in manufacturing *','value added > annual % growth *','value added > constant 2000 US$ *','value added > constant 2000 US$ (per capita) *','value added > constant LCU','value added > current LCU','value added > current US$ *','value added > current US$ (per $ GDP) *','value added > current US$ (per capita) *','... more Industry Stats');
      break;
    case 'Internet':
      var ids = new Array('','int_bro_acc-internet-broadband-access','int_bro_acc_percap-internet-broadband-access-per-capita','int_bro_int_acc_bro_wor_cab-internet-broadband-access-worldwide-cable','int_bro_int_acc_bro_wor_dsl-internet-broadband-access-worldwide-dsl','int_bro_int_acc_bro_wor_oth-internet-broadband-access-worldwide-other','int_bro_int_acc_bro_wor_tot-internet-broadband-access-worldwide-total','int_bro_int_acc_bro_wor_tot_sub-broadband-access-worldwide-total-subscribers','int_bro_int_acc_wor_bro_sub_in_oec_cou_cab-worldwide-subscribers-oecd-countries-cable','int_bro_int_acc_wor_bro_sub_in_oec_cou_dsl-worldwide-subscribers-oecd-countries-dsl','int_bro_int_acc_wor_bro_sub_in_oec_cou_oth-worldwide-subscribers-oecd-countries-other','int_bro_int_acc_wor_bro_sub_in_oec_cou_tot-worldwide-subscribers-oecd-countries-total','int_bro_int_acc_wor_bro_sub_in_oec_cou_tot_sub-worldwide-subscribers-oecd-countries-total','int_bro_sub-internet-broadband-subscribers','int_bro_sub_percap-internet-broadband-subscribers-per-capita','int_com_tec_pat-internet-communication-technology-patents','int_cou_cod-internet-country-code','int_gay_soc_cov_and_imp_reg_use_use-coverage-impact-registered-users-user','int_hos-internet-hosts','int_hos_percap-internet-hosts-per-capita','int_int_int_ban_mbp-internet-international-bandwidth-mbps','int_int_int_ban_mbp_pergdp-international-bandwidth-mbps-per-gdp','int_int_int_ban_mbp_percap-international-bandwidth-mbps-per-capita','int_int_cha-internet-charges','int_int_ser_pro-internet-service-providers','int_int_ser_pro_percap-internet-service-providers-per-capita','int_isp-internet-isp','int_isp_percap-internet-isp-per-capita','int_lin_web_ser-internet-linux-web-servers','int_lin_web_ser_percap-linux-web-servers-per-capita','int_liv_use-internet-livejournal-users','int_pri_bas_for_int_us_per_mon-price-basket-us-per-month','int_sec_int_ser-internet-secure-servers','int_sec_int_ser_percap-internet-secure-servers-per-capita','int_sec_ser-internet-secure-servers','int_tld-internet-tld','int_use-internet-users','int_use_percap-internet-users-per-capita','int_web_sit-internet-web-sites','int-more');
      var wss = new Array('Select Internet Stat','Broadband access *','Broadband access (per capita) *','Broadband Internet access > Broadband worldwide > Cable *','Broadband Internet access > Broadband worldwide > DSL *','Broadband Internet access > Broadband worldwide > Other *','Broadband Internet access > Broadband worldwide > Total *','Broadband Internet access > Broadband worldwide > Total Subscribers *','Broadband Internet access worldwide > Broadband subscribers in OECD countries > Cable *','Broadband Internet access worldwide > Broadband subscribers in OECD countries > DSL *','Broadband Internet access worldwide > Broadband subscribers in OECD countries > Other *','Broadband Internet access worldwide > Broadband subscribers in OECD countries > Total *','Broadband Internet access worldwide > Broadband subscribers in OECD countries > Total subscribers *','Broadband subscribers *','Broadband subscribers (per capita) *','Communication technology patents *','Country code','GayRomeo > Social Coverage and Impact > Registered Users > User *','Hosts *','Hosts (per capita) *','International Internet bandwidth > Mbps *','International Internet bandwidth > Mbps (per $ GDP) *','International Internet bandwidth > Mbps (per capita) *','Internet charges *','Internet Service Providers *','Internet Service Providers (per capita) *','ISP *','ISP (per capita) *','Linux web servers *','Linux web servers (per capita) *','Livejournal users *','Price basket for US$ per month *','Secure Internet servers *','Secure Internet servers (per capita) *','Secure servers *','TLD','Users *','Users (per capita) *','Web sites *','... more Internet Stats');
      break;
    case 'Labor':
      var ids = new Array('','lab_agr_wor_fem-labor-agricultural-workers-female','lab_agr_wor_mal-labor-agricultural-workers-male','lab_chi_emp_in_man_of_eco_act_chi_age_714-active-children-ages-7-14','lab_chi_emp_in_man_mal_of_mal_eco_act_chi_age_714-active-children-ages-7-14','lab_chi_emp_in_ser_of_eco_act_chi_age_714-active-children-ages-7-14','lab_com_of_emp_of_exp-labor-compensation-of-employees-expense','lab_com_of_emp_cur_lcu-labor-compensation-employees-current-lcu','lab_day_off_wor-labor-days-off-work','lab_eco_act_bot_sex_age_10_14-both-sexes-aged-10-14','lab_eco_act_men_age_65_plu-activity-men-aged-65-plus','lab_emp_agr_fem_of_fem_emp-labor-employees-agriculture-female-employment','lab_emp_agr_mal_of_mal_emp-labor-employees-agriculture-male-employment','lab_emp_ind_fem_of_fem_emp-labor-employees-industry-female-employment','lab_emp_ind_mal_of_mal_emp-labor-employees-industry-male-employment','lab_emp_ser_fem_of_fem_emp-labor-employees-services-female-employment','lab_emp_ser_mal_of_mal_emp-labor-employees-services-male-employment','lab_emp_in_agr_of_tot_emp-labor-employment-agriculture-total','lab_emp_in_ind_of_tot_emp-labor-employment-industry-total','lab_emp_in_ser_of_tot_emp-labor-employment-services-total','lab_emp_rat_of_hig_edu_wom-employment-rate-highly-educated-women','lab_emp_rat_of_les_edu_wom-employment-rate-lesser-educated-women','lab_fem_dec_mak-labor-female-decision-makers','lab_fem_doc-labor-female-doctors','lab_fem_eco_act-labor-female-economic-activity','lab_fem_eco_act_gro-labor-female-economic-activity-growth','lab_fem_pro-labor-female-professionals','lab_fir_cos_wee_of_wag-labor-firing-cost-weeks-wages','lab_for_par_rat_fem_of_fem_pop_age_1564-female-population-ages-15-64','lab_for_wit_sec_edu_of_tot-labor-force-secondary-education-total','lab_for_wit_ter_edu_of_tot-labor-force-tertiary-education-total','lab_for_fem_of_tot_lab_for-labor-force-female-of-total','lab_for_tot-labor-force-total','lab_for_tot_percap-labor-force-total-per-capita','lab_for_lab_for-labor-foreign-force','lab_gen_div_of_hou-labor-gender-division-of-housework','lab_hou_wor-labor-hours-worked','lab_ind_wor_fem-labor-industrial-workers-female','lab_ind_wor_mal-labor-industrial-workers-male','lab_lab_for-labor-force','lab_lab_for_percap-labor-force-per-capita','lab_lab_for_a_not-labor-force-a-note','lab_lab_for_by_occ-labor-force-by-occupation','lab_lab_for_by_occ_agr-labor-force-by-occupation-agriculture','lab_lab_for_by_occ_ind-labor-force-by-occupation-industry','lab_lab_for_by_occ_ind_and_ser-labor-force-occupation-industry-services','lab_lab_for_by_occ_ser-labor-force-by-occupation-services','lab_lab_for_not-labor-force-note','lab_lon_ter_une-labor-long-term-unemployment','lab_lon_une_of_tot_une-labor-long-term-unemployment-total','lab_lon_une_fem_of_fem_une-labor-long-term-unemployment-female','lab_par_lea_pai_mat_lea-labor-parental-leave-paid-maternity','lab_par_lea_pai_pat_lea-labor-parental-leave-paid-paternity','lab_reg-labor-regulation','lab_reg_emp_con-labor-regulation-employment-conditions','lab_reg_fir-labor-regulation-firing','lab_rig_of_emp_ind-labor-rigidity-of-employment-index','lab_ser_wor_mal-labor-service-workers-male','lab_sha_of_wom_emp_in_the_non_sec_of_tot_non_emp-employed-nonagricultural-sector-total-employment','lab_str-labor-strikes','lab_tec_in_ram_per_mil_peo-amp-d-per-million-people','lab_tem_emp_sha-labor-temporary-employment-share','lab_tot_wor_tim_fem-labor-total-work-time-females','lab_tot_wor_tim_fem_ove_mal-work-time-females-over-males','lab_tot_wor_tim_mal-labor-total-work-time-males','lab_tra_uni_mem-labor-trade-union-membership','lab_une-labor-unemployment','lab_une_and_edu_ter-labor-unemployment-and-education-tertiary','lab_une_ben_as_of_gdp-labor-unemployment-benefit-gdp','lab_une_ben_rep-labor-unemployment-benefit-replacement','lab_une_gen_rat-labor-unemployment-gender-ratio','lab_une_rat-labor-unemployment-rate','lab_une_wit_sec_edu_fem_of_fem_une-labor-unemployment-secondary-education-female','lab_une_wit_sec_edu_mal_of_mal_une-labor-unemployment-secondary-education-male','lab_une_wit_ter_edu_of_tot_une-labor-unemployment-tertiary-education-total','lab_une_wit_ter_edu_fem_of_fem_une-labor-unemployment-tertiary-education-female','lab_une_fem_of_fem_lab_for-labor-unemployment-female-of-force','lab_une_mal_of_mal_lab_for-labor-unemployment-male-of-force','lab_une_tot_of_tot_lab_for-labor-unemployment-total-of-force','lab_une_you_fem_of_fem_lab_for_age_1524-female-force-ages-15-24','lab_une_you_mal_of_mal_lab_for_age_1524-male-force-ages-15-24','lab_une_you_tot_of_tot_lab_for_age_1524-total-force-ages-15-24','lab_vac_min_vac_tim_aro_the_wor_leg_req-time-around-world-legally-required','lab_wor_tim_mar_ori-labor-work-time-market-oriented','lab_wor_tim_mor_tha_40_hou-time-more-than-40-hours','lab_wor_tim_non_mar_ori-work-time-non-market-oriented','lab_wor_rem_and_com_of_emp_pai_us-remittances-compensation-employees-paid-us','lab_wor_rem_and_com_of_emp_rec_us-remittances-compensation-employees-received-us','lab_wor_rem_rec_bop_cur_us-remittances-receipts-bop-current-us','lab_wor_mot-labor-working-mothers','lab_wor_tim_to_buy_a_car-labor-working-time-buy-car','lab_wor_tim_to_buy_a_ref-labor-working-time-buy-refrigerator','lab_wor_tim_to_buy_a_tel_set-working-time-buy-television-set','lab_wor_tim_to_buy_bee-labor-working-time-buy-beef','lab_wor_tim_to_buy_bre-labor-working-time-buy-bread','lab_wor_tim_to_buy_chi-labor-working-time-buy-chicken','lab_wor_tim_to_buy_fis-labor-working-time-buy-fish','lab_wor_tim_to_buy_mil-labor-working-time-buy-milk','lab_wor_saf_dan_cou_to_wor_in_the_eu_fat-dangerous-countries-work-eu-fatalities','lab_wor_saf_in_the_eu_fat-labor-workplace-safety-eu-fatalities','lab_you_une-labor-youth-unemployment','lab-more');
      var wss = new Array('Select Labor Stat','Agricultural workers > Female *','Agricultural workers > Male *','Child employment in manufacturing > % of economically active children ages 7-14 *','Child employment in manufacturing, male > % of male economically active children ages 7-14 *','Child employment in services > % of economically active children ages 7-14 *','Compensation of employees > % of expense *','Compensation of employees > current LCU','Days off work *','Economic activity > Both sexes aged 10-14 *','Economic activity > Men aged 65 plus *','Employees, agriculture, female > % of female employment *','Employees, agriculture, male > % of male employment *','Employees, industry, female > % of female employment *','Employees, industry, male > % of male employment *','Employees, services, female > % of female employment *','Employees, services, male > % of male employment *','Employment in agriculture > % of total employment *','Employment in industry > % of total employment *','Employment in services > % of total employment *','Employment rate of highly educated women *','Employment rate of lesser educated women *','Female decision makers *','Female doctors *','Female economic activity *','Female economic activity growth *','Female professionals *','Firing cost > weeks of wages *','force participation rate, female > % of female population ages 15-64 *','force with secondary education > % of total *','force with tertiary education > % of total *','force, female > % of total labor force *','force, total *','force, total (per capita) *','Foreign labor force *','Gender division of housework *','Hours worked *','Industrial workers > Female *','Industrial workers > Male *','Labor force *','Labor force (per capita) *','Labor force > A note','Labor force > By occupation','Labor force > By occupation > Agriculture *','Labor force > By occupation > Industry *','Labor force > By occupation > Industry and services *','Labor force > By occupation > Services *','Labor force > Note','Long term unemployment *','Long-term unemployment > % of total unemployment *','Long-term unemployment, female > % of female unemployment *','Parental leave > Paid maternity leave','Parental leave > Paid paternity leave','Regulation *','Regulation > Employment Conditions *','Regulation > Firing *','Rigidity of employment index *','Service workers > Male *','Share of women employed in the nonagricultural sector > % of total nonagricultural employment *','Strikes *','Technicians in R&amp;D > per million people *','Temporary employment share *','Total work time > Females *','Total work time > Females over males *','Total work time > Males *','Trade union membership *','Unemployment *','Unemployment and education > Tertiary *','Unemployment benefit as % of GDP *','Unemployment benefit replacement *','Unemployment gender ratio *','Unemployment rate *','Unemployment with secondary education, female > % of female unemployment *','Unemployment with secondary education, male > % of male unemployment *','Unemployment with tertiary education > % of total unemployment *','Unemployment with tertiary education, female > % of female unemployment *','Unemployment, female > % of female labor force *','Unemployment, male > % of male labor force *','Unemployment, total > % of total labor force *','Unemployment, youth female > % of female labor force ages 15-24 *','Unemployment, youth male > % of male labor force ages 15-24 *','Unemployment, youth total > % of total labor force ages 15-24 *','Vacation > Minimum vacation time around the world > legally required','Work time > Market-oriented *','Work Time > More than 40 hours *','Work time > Non-market-oriented *','Workers&#39; remittances and compensation of employees, paid > US$ *','Workers&#39; remittances and compensation of employees, received > US$ *','Workers&#39; remittances, receipts > BoP, current US$ *','Working mothers *','Working time to buy a car *','Working time to buy a refrigerator *','Working time to buy a television set *','Working time to buy beef *','Working time to buy bread *','Working time to buy chicken *','Working time to buy fish *','Working time to buy milk *','Workplace safety > Dangerous Countries to Work In the EU > Fatalities *','Workplace safety in the EU > Fatalities *','Youth unemployment *','... more Labor Stats');
      break;
    case 'Language':
      var ids = new Array('','lan_cou_whe_eng_is_an_off_lan_pop-where-english-an-official-population','lan_eng_spe-language-english-speakers','lan_eng_spe_pergdp-language-english-speakers-per-gdp','lan_eng_spe_percap-language-english-speakers-per-capita','lan_eng_sta-language-english-status','lan_eng_pop_as_an_add_lan-english-speaking-population-an-additional','lan_eng_pop_fir_lan-language-english-speaking-population-first','lan_eng_pop_tot-language-english-speaking-population-total','lan_fre_spe-language-french-speakers','lan_fre_spe_percap-language-french-speakers-per-capita','lan_fre_sta-language-french-status','lan_hun_lan_geo_dis_spe-language-hungarian-geographic-distribution-speakers','lan_joh_doe_inf_nam_for_unk_or_uns_per_in_var_cou-unspecified-persons-various-countries-regions','lan_lan-language-languages','lan_lan_a_not-language-languages-a-note','lan_lan_not-language-languages-note','lan_lan_of_the_afr_uni_ill_lit_rat-african-union-illiteracy-literacy-rate','lan_lin_cap_of_mod_wor_lea_eng-capabilities-modern-world-leaders-english','lan_lin_cap_of_mod_wor_lea_fre-capabilities-modern-world-leaders-french','lan_lin_cap_of_mod_wor_lea_ger-capabilities-modern-world-leaders-german','lan_lin_cap_of_mod_wor_lea_ita-capabilities-modern-world-leaders-italian','lan_lin_cap_of_mod_wor_lea_jap-capabilities-modern-world-leaders-japanese','lan_lin_cap_of_mod_wor_lea_por-capabilities-modern-world-leaders-portuguese','lan_lin_cap_of_mod_wor_lea_rus-capabilities-modern-world-leaders-russian','lan_lin_cap_of_mod_wor_lea_spa-capabilities-modern-world-leaders-spanish','lan_lin_cap_of_mod_wor_lea_swe-capabilities-modern-world-leaders-swedish','lan_nob_pri_in_lit_mos_awa_cou-prize-literature-most-awarded-countries','lan_nob_pri_in_lit_mos_awa_cou_lau-literature-most-awarded-countries-laureates','lan_rom_rom_spe_rom_pop_2000-romani-speaking-roma-population-2000','lan_rom_rom_spe_rom_pop_fro_tot_rom_pop_2000-speaking-roma-population-total-2000','lan_ski_of_eu_cit_oth_tha_mot_ton_eng-other-than-mother-tongue-english','lan_ski_of_eu_cit_oth_tha_mot_ton_fre-other-than-mother-tongue-french','lan_ski_of_eu_cit_oth_tha_mot_ton_ger-other-than-mother-tongue-german','lan_spa_lan_his_cou_spe-language-spanish-hispanic-countries-speakers','lan_spa_spe-language-spanish-speakers','lan_spa_spe_percap-language-spanish-speakers-per-capita','lan_spa_sta-language-spanish-status','lan_wor_esp_ass_yea_of_pre-world-esperanto-association-years-presidency','lan-more');
      var wss = new Array('Select Language Stat','countries where English is an official language > Population *','English speakers *','English speakers (per $ GDP) *','English speakers (per capita) *','English status','English-speaking population > As an additional language *','English-speaking population > First language *','English-speaking population > Total *','French speakers *','French speakers (per capita) *','French status','Hungarian language > Geographic distribution > Speakers *','John Doe > Informal names for unknown or unspecified persons in various countries/regions','Languages','Languages > A note','Languages > Note','Languages of the African Union > Illiteracy > Literacy rate *','Linguistic capabilities of modern world leaders > English','Linguistic capabilities of modern world leaders > French','Linguistic capabilities of modern world leaders > German','Linguistic capabilities of modern world leaders > Italian','Linguistic capabilities of modern world leaders > Japanese','Linguistic capabilities of modern world leaders > Portuguese','Linguistic capabilities of modern world leaders > Russian','Linguistic capabilities of modern world leaders > Spanish','Linguistic capabilities of modern world leaders > Swedish','Nobel Prize in Literature > Most awarded countries > % *','Nobel Prize in Literature > Most awarded countries > Laureates *','Romani > Romani speaking Roma population > 2000 *','Romani > Romani speaking Roma population from total Roma population > 2000 *','Skills of EU citizens > Other than mother tongue > English *','Skills of EU citizens > Other than mother tongue > French *','Skills of EU citizens > Other than mother tongue > German *','Spanish language > Hispanic countries > Speakers *','Spanish speakers *','Spanish speakers (per capita) *','Spanish status','World Esperanto Association > Years of presidency *','... more Language Stats');
      break;
    case 'Lifestyle':
      var ids = new Array('','lif_pov-lifestyle-poverty','lif_ama_rad_ope-lifestyle-amateur-radio-operators','lif_amp_use-lifestyle-amphetamine-use','lif_can_use-lifestyle-cannabis-use','lif_con_in_soc_ins_arm_for-confidence-social-institutions-armed-forces','lif_con_in_soc_ins_chu-lifestyle-confidence-social-institutions-church','lif_con_in_soc_ins_civ_ser-confidence-social-institutions-civil-service','lif_con_in_soc_ins_com-lifestyle-confidence-social-institutions-companies','lif_con_in_soc_ins_leg_sys-confidence-social-institutions-legal-system','lif_con_in_soc_ins_par-lifestyle-confidence-social-institutions-parliament','lif_con_in_soc_ins_pol-lifestyle-confidence-social-institutions-police','lif_con_in_soc_ins_pre-lifestyle-confidence-social-institutions-press','lif_con_in_soc_ins_tra_uni-confidence-social-institutions-trade-unions','lif_dis_pol_fre-lifestyle-discuss-politics-frequently','lif_fin_sat-lifestyle-financial-satisfaction','lif_for_ret_dur_rec-lifestyle-forced-retirement-during-recession','lif_fre_in_dec_mak-lifestyle-freedom-in-decision-making','lif_hap_lev_not_ver_or_not_at_all_hap-level-not-very-all-happy','lif_hap_lev_qui_hap-lifestyle-happiness-level-quite-happy','lif_hap_lev_ver_hap-lifestyle-happiness-level-very-happy','lif_hap_net-lifestyle-happiness-net','lif_hap_pla_ind-lifestyle-happy-planet-index','lif_hap_pla_ind_lif_sat-happy-planet-index-life-satisfaction','lif_hap_pla_ind_un_pov_ind-happy-planet-index-un-poverty','lif_job_pri_for_men_dur_rec-job-priority-men-during-recession','lif_job_for_nat_cit_dur_rec-jobs-native-citizens-during-recession','lif_lif_sat-lifestyle-life-satisfaction','lif_lif_sat_ine-lifestyle-life-satisfaction-inequality','lif_mem_of_vol_org_cha-lifestyle-members-voluntary-organisations-charity','lif_mem_of_vol_org_edu-lifestyle-members-voluntary-organisations-education','lif_mem_of_vol_org_env-lifestyle-members-voluntary-organisations-environmental','lif_mem_of_vol_org_par-lifestyle-members-voluntary-organisations-parties','lif_mem_of_vol_org_pro-lifestyle-members-voluntary-organisations-professional','lif_mem_of_vol_org_spo-lifestyle-members-voluntary-organisations-sport','lif_mem_of_vol_org_uni-lifestyle-members-voluntary-organisations-unions','lif_not_pro_of_the_nat-lifestyle-not-proud-their-nationality','lif_pol_act_att_a_dem-lifestyle-political-action-attended-demonstration','lif_pol_act_joi_a_boy-lifestyle-political-action-joined-boycott','lif_pol_act_sig_a_pet-lifestyle-political-action-signed-petition','lif_pol_ori_far_lef-lifestyle-political-orientation-far-left','lif_pol_ori_far_rig-lifestyle-political-orientation-far-right','lif_rol_coa-lifestyle-roller-coasters','lif_rol_coa_percap-lifestyle-roller-coasters-per-capita','lif_som_int_in_pol-lifestyle-somewhat-interested-in-politics','lif_tru_peo-lifestyle-trust-people','lif_und_nei_cri_rec_hol-undesirable-neighbours-criminal-record-holders','lif_und_nei_dif_rac-lifestyle-undesirable-neighbours-different-race','lif_und_nei_dru_add-lifestyle-undesirable-neighbours-drug-addicts','lif_und_nei_emo_uns_peo-undesirable-neighbours-emotionally-unstable-people','lif_und_nei_hea_dri-lifestyle-undesirable-neighbours-heavy-drinkers','lif_und_nei_hom-lifestyle-undesirable-neighbours-homosexuals','lif_und_nei_imm-lifestyle-undesirable-neighbours-immigrants','lif_und_nei_peo_wit_aid-lifestyle-undesirable-neighbours-people-aids','lif_und_nei_pol_ext-lifestyle-undesirable-neighbours-political-extremists','lif_ver_pro_of_the_nat-lifestyle-very-proud-their-nationality','lif_wil_fig_for_cou-lifestyle-will-fight-for-country','lif-more');
      var wss = new Array('Select Lifestyle Stat','% poverty','Amateur radio operators *','Amphetamine use *','Cannabis use *','Confidence in social institutions > Armed forces *','Confidence in social institutions > Church *','Confidence in social institutions > Civil service *','Confidence in social institutions > Companies *','Confidence in social institutions > Legal system *','Confidence in social institutions > Parliament *','Confidence in social institutions > Police *','Confidence in social institutions > Press *','Confidence in social institutions > Trade unions *','Discuss politics frequently *','Financial satisfaction *','Forced retirement during recession *','Freedom in decision making *','Happiness level > Not very or not at all happy *','Happiness level > Quite happy *','Happiness level > Very happy *','Happiness net *','Happy Planet Index *','Happy Planet Index > Life Satisfaction *','Happy Planet Index > UN Poverty Index *','Job priority for men during recession *','Jobs for native citizens during recession *','Life satisfaction *','Life satisfaction inequality *','Members of voluntary organisations > Charity *','Members of voluntary organisations > Education *','Members of voluntary organisations > Environmental *','Members of voluntary organisations > Parties *','Members of voluntary organisations > Professional *','Members of voluntary organisations > Sport *','Members of voluntary organisations > Unions *','Not proud of their nationality *','Political action > Attended a demonstration *','Political action > Joined a boycott *','Political action > Signed a petition *','Political orientation > Far left *','Political orientation > Far right *','Roller coasters *','Roller coasters (per capita) *','Somewhat interested in politics *','Trust people *','Undesirable neighbours > Criminal record holders *','Undesirable neighbours > Different race *','Undesirable neighbours > Drug addicts *','Undesirable neighbours > Emotionally unstable people *','Undesirable neighbours > Heavy drinkers *','Undesirable neighbours > Homosexuals *','Undesirable neighbours > Immigrants *','Undesirable neighbours > People with AIDS *','Undesirable neighbours > Political extremists *','Very proud of their nationality *','Will fight for country *','... more Lifestyle Stats');
      break;
    case 'Media':
      var ids = new Array('','med_adv_rev_sha_of_tel-media-advertising-revenue-share-television','med_ave_cos_of_loc_cal-media-average-cost-local-call','med_boo_pro_tit_by_the_uni_dec_cla_app_sci-universal-decimal-classification-applied-sciences','med_boo_pro_tit_by_the_uni_dec_cla_art_and_rec-universal-decimal-classification-arts-recreation','med_boo_pro_tit_by_the_uni_dec_cla_lit-titles-universal-decimal-classification-literature','med_boo_pro_tit_by_the_uni_dec_cla_rel_the-universal-decimal-classification-religion-theology','med_cab_tv_sub-media-cable-tv-subscribers','med_cin_att-media-cinema-attendance','med_cin_att_percap-media-cinema-attendance-per-capita','med_cin-media-cinemas','med_cin_percap-media-cinemas-per-capita','med_cin_ann_att-media-cinemas-annual-attendance','med_cin_sea-media-cinemas-seats','med_cin_sea_percap-media-cinemas-seats-per-capita','med_dai_new_per_1000_peo-newspapers-per-1-000-people','med_dvd_reg-media-dvd-region','med_e_gov_rat-media-e-government-rating','med_eur_son_con_1963_res_poi-song-contest-1963-results-points','med_eur_son_con_win_sta_thi-song-contest-winners-statistics-third','med_fax_mac-media-fax-machines','med_fil_pro-media-films-produced','med_fil_pro_percap-media-films-produced-per-capita','med_fix_lin_and_mob_pho_sub_per_1000_peo-subscribers-per-1-000-people','med_ham_rad_pre-media-ham-radio-prefixes','med_hou_wit_tel-media-households-with-television','med_inf_and_com_tec_exp_cur_us_percap-expenditure-current-us-per-capita','med_int_dia_cod-media-international-dialling-code','med_int_voi_tra_out_and_in_min-international-voice-traffic-out-minutes','med_int_voi_tra_out_and_in_min_percap-traffic-out-minutes-per-capita','med_inv_in_tel_wit_pri_par_cur_us_pergdp-participation-current-us-per-gdp','med_jun_eur_son_con_2006_par_art-song-contest-2006-participants-artist','med_kid_kei_jib_for_bro_sta-keiji-jiban-foreign-broadcast-station','med_mob_pho_sub-media-mobile-phone-subscribers','med_mob_pho_sub_percap-mobile-phone-subscribers-per-capita','med_mob_pho-media-mobile-phones','med_mtv_vid_mus_awa_lat_ame_awa_tot-music-awards-latin-america-total','med_new_cir-media-newspaper-circulation','med_new_cir_percap-media-newspaper-circulation-per-capita','med_new-media-newspapers','med_new_percap-media-newspapers-per-capita','med_new_and_per_cir_dai-media-newspapers-periodicals-circulation-daily','med_new_and_per_cir_dai_percap-periodicals-circulation-daily-per-capita','med_new_and_per_num_of_tit_dai-newspapers-periodicals-number-titles-daily','med_new_and_per_num_of_tit_dai_percap-number-titles-daily-per-capita','med_new_and_per_num_of_tit_non_percap-titles-non-daily-per-capita','med_new_and_per_num_of_tit_per-media-newspapers-periodicals-number-titles','med_nip_int_bro_alt_tit-international-broadcasters-alternate-title-translation','med_pc-media-number-of-pcs','med_pc_percap-media-number-pcs-per-capita','med_pay_tv_sub-media-pay-tv-subscribers','med_per_com-media-personal-computers','med_per_com_percap-media-personal-computers-per-capita','med_pho_sub-media-phone-subscribers','med_rad_bro_sta-media-radio-broadcast-stations','med_rad_rec-media-radio-receivers','med_rad_rec_percap-media-radio-receivers-per-capita','med_rad-media-radios','med_rad_percap-media-radios-per-capita','med_sta_aca_sta_aca_aro_the_wor_win-star-academy-around-world-winner','med_tel_rev_gdp-media-telecommunications-revenue-gdp','med_tel_ave_cos_of_cal_to_us_us_per_thr_min-call-us-per-three-minutes','med_tel_fau_per_100_mai-telephone-faults-per-100-mainlines','med_tel_mai-media-telephone-mainlines','med_tel_mai_percap-media-telephone-mainlines-per-capita','med_tel_sub-media-telephone-subscribers','med_tel_sub_percap-media-telephone-subscribers-per-capita','med_tel_sub_per_emp-media-telephone-subscribers-per-employee','med_tel_sys_dom-media-telephone-system-domestic','med_tel_sys_gen_ass-media-telephone-system-general-assessment','med_tel_sys_int-media-telephone-system-international','med_tel_sys_reg-media-telephone-system-regulation','med_tel_mai_lin_in_use-media-telephones-main-lines-use','med_tel_mai_lin_in_use_percap-main-lines-use-per-capita','med_tel_mob_cel-media-telephones-mobile-cellular','med_tel_mob_cel_percap-telephones-mobile-cellular-per-capita','med_tel_dig_tv_hou-media-television-digital-tv-households','med_tel_sub_tv_rev-media-television-subscription-tv-revenues','med_tel_bro_sta-media-television-broadcast-stations','med_tel_bro_sta_percap-television-broadcast-stations-per-capita','med_tel_rec-media-television-receivers','med_tel_rec_percap-media-television-receivers-per-capita','med_tel_rec_thr_cab-media-television-reception-through-cable','med_tel_rec_thr_sat-media-television-reception-through-satellite','med_tel_sta_uhf-media-television-standard-uhf','med_tel_sta_vhf-media-television-standard-vhf','med_tel_vie-media-television-viewing','med_tel-media-televisions','med_tel_percap-media-televisions-per-capita','med_tot_bro_rev_per_cap-total-broadcasters-revenue-per-capita','med_web_def-media-website-defacements','med_wom_in_lov_cha_dat-media-woman-love-charts-date','med_wor_mus_mar_alb_sal_sha-music-market-album-sales-share','med_wor_mus_mar_dig_sin_sal_sha_in_2005-digital-singles-sales-share-2005','med_wor_mus_mar_val_sha-world-music-market-value-share','med_wor_sal_and_cer_for_mad_ame_lif_cer-sales-certifications-madonna-american-life','med_wor_sal_and_cer_for_mad_con_on_a_dan_flo_sal-certifications-madonna-confessions-dance-floor','med_wor_sal_and_cer_for_mad_ghv_cer-world-sales-certifications-madonna-ghv2','med_wor_sal_and_cer_for_mad_mus_sal-world-sales-certifications-madonna-music','med_wor_sal_and_cer_for_mad_you_can_dan_sal-sales-certifications-madonna-can-dance','med_you_giv_me_som_cha_pea_pos-me-something-charts-peak-position','med-more');
      var wss = new Array('Select Media Stat','Advertising revenue > Share of television *','Average cost of local call *','Book production, titles by the Universal Decimal Classification > Applied sciences *','Book production, titles by the Universal Decimal Classification > Arts and recreation *','Book production, titles by the Universal Decimal Classification > Literature *','Book production, titles by the Universal Decimal Classification > Religion, theology *','Cable TV subscribers *','Cinema attendance *','Cinema attendance (per capita) *','Cinemas *','Cinemas (per capita) *','Cinemas > Annual attendance *','Cinemas > Seats *','Cinemas > Seats (per capita) *','Daily newspapers > per 1,000 people *','DVD region *','E-Government rating *','Eurovision Song Contest 1963 > Results > Points *','Eurovision Song Contest winners > Statistics > Third *','Fax machines *','Films produced *','Films produced (per capita) *','Fixed line and mobile phone subscribers > per 1,000 people *','HAM radio prefixes','Households with television > % *','Information and communication technology expenditure > current US$ (per capita) *','International dialling code','International voice traffic > out and in, minutes *','International voice traffic > out and in, minutes (per capita) *','Investment in telecoms with private participation > current US$ (per $ GDP) *','Junior Eurovision Song Contest 2006 > participants > Artist','Kidou Keiji Jiban > Foreign Broadcast > Station','Mobile phone subscribers *','Mobile phone subscribers (per capita) *','Mobile phones *','MTV Video Music Awards Latin America > Awards > Total *','Newspaper circulation *','Newspaper circulation (per capita) *','Newspapers *','Newspapers (per capita) *','Newspapers and periodicals > Circulation > Daily *','Newspapers and periodicals > Circulation > Daily (per capita) *','Newspapers and periodicals > Number of titles > Daily *','Newspapers and periodicals > Number of titles > Daily (per capita) *','Newspapers and periodicals > Number of titles > Non-daily (per capita) *','Newspapers and periodicals > Number of titles > Periodicals *','Nip/Tuck > International broadcasters > Alternate title/Translation','Number of PCs *','Number of PCs (per capita) *','Pay TV subscribers *','Personal computers *','Personal computers (per capita) *','Phone subscribers *','Radio broadcast stations','Radio receivers *','Radio receivers (per capita) *','Radios *','Radios (per capita) *','Star Academy > Star Academy around the world > Winner','Telecommunications revenue > % GDP *','Telephone average cost of call to US > US$ per three minutes *','Telephone faults > per 100 mainlines *','Telephone mainlines *','Telephone mainlines (per capita) *','Telephone subscribers *','Telephone subscribers (per capita) *','Telephone subscribers per employee *','Telephone system > Domestic','Telephone system > General assessment','Telephone system > International','Telephone system > Regulation','Telephones > Main lines in use *','Telephones > Main lines in use (per capita) *','Telephones > Mobile cellular *','Telephones > Mobile cellular (per capita) *','Television > Digital TV households *','Television > Subscription TV revenues *','Television broadcast stations *','Television broadcast stations (per capita) *','Television receivers *','Television receivers (per capita) *','Television reception through cable *','Television reception through satellite *','Television standard > UHF','Television standard > VHF','Television viewing *','Televisions *','Televisions (per capita) *','Total broadcasters revenue per capita *','Website defacements *','Woman in Love > Charts > Date','World music market > Album Sales Share','World music market > Digital Singles Sales Share in 2005','World music market > Value share','World sales and certifications for Madonna > American Life > Certifications','World sales and certifications for Madonna > Confessions on a Dance Floor > Sales','World sales and certifications for Madonna > GHV2 > Certifications','World sales and certifications for Madonna > Music > Sales *','World sales and certifications for Madonna > You Can Dance > Sales *','You Give Me Something > Charts > Peak > position *','... more Media Stats');
      break;
    case 'Military':
      var ids = new Array('','mil_aid_to_afg_gro_dis_as_a_per_of_oda-afghanistan-gross-disbursements-percent-oda','mil_aid_to_afg_tot_dev_aid_est-aid-afghanistan-total-development-estimates','mil_aid_to_afg_tot_dev_aid_est_percap-total-development-estimates-per-capita','mil_air_for_off_ran_gen_off_of6-ranks-generals-marshals-officers-6','mil_air_for_per-military-air-force-personnel','mil_air_for_per_percap-air-force-personnel-per-capita','mil_all_of_wor_war_i_cas_as_of_tot_per-world-war-casualties-total-personnel','mil_all_of_wor_war_i_tot_cas-allies-world-war-total-casualties','mil_arm_for_gro-military-armed-forces-growth','mil_arm_for_per-military-armed-forces-personnel','mil_arm_for_per_percap-armed-forces-personnel-per-capita','mil_arm_exp_con_1990_us-arms-exports-constant-1990-us','mil_arm_imp_con_1990_us-arms-imports-constant-1990-us','mil_arm_per-military-army-personnel','mil_arm_per_percap-military-army-personnel-per-capita','mil_bra-military-branches','mil_con-military-conscription','mil_con_arm_exp-military-conventional-arms-exports','mil_con_arm_exp_pergdp-conventional-arms-exports-per-gdp','mil_con_arm_exp_percap-conventional-arms-exports-per-capita','mil_con_arm_imp-military-conventional-arms-imports','mil_con_arm_imp_percap-conventional-arms-imports-per-capita','mil_emp_in_arm_pro-military-employment-in-arms-production','mil_emp_in_arm_pro_percap-employment-arms-production-per-capita','mil_exp_of_cen_gov_exp-military-expenditure-of-central-government','mil_exp_of_gdp-military-expenditure-of-gdp','mil_exp_cur_lcu-military-expenditure-current-lcu','mil_exp-military-expenditures','mil_exp_dol_fig-military-expenditures-dollar-figure','mil_exp_dol_fig_pergdp-expenditures-dollar-figure-per-gdp','mil_exp_dol_fig_percap-expenditures-dollar-figure-per-capita','mil_exp_per_of_gdp-military-expenditures-percent-of-gdp','mil_exp_to_dev_nat-military-exports-to-developing-nations','mil_for_in_eur_acv-military-forces-in-europe-acvs','mil_for_in_eur_air-military-forces-in-europe-aircraft','mil_for_in_eur_air_percap-forces-europe-aircraft-per-capita','mil_for_in_eur_art-military-forces-in-europe-artillery','mil_for_in_eur_bat_tan-military-forces-europe-battle-tanks','mil_for_in_eur_bat_tan_percap-europe-battle-tanks-per-capita','mil_for_in_eur_hel-military-forces-in-europe-helicopters','mil_gul_war_coa_for-military-gulf-war-coalition-forces','mil_ira_coa_cas-military-iraq-coalition-casualties','mil_ira_coa_cas_percap-iraq-coalition-casualties-per-capita','mil_ira_coa_for_tro_str-iraq-coalition-forces-troop-strength','mil_ira_coa_for_tro_str_percap-forces-troop-strength-per-capita','mil_ira_ple_of_rec_aid-military-iraq-pledges-reconstruction-aid','mil_ira_ins_for_fig_nat_dis_sor_alp-fighter-nationality-distribution-sorted-alphabeticallyality','mil_m2_bro_mac_gun_int_usa_nat_mem-gun-international-usage-nato-member','mil_man_ava_fem-military-manpower-availability-females','mil_man_ava_mal-military-manpower-availability-males','mil_man_ava_mal_age_15_49-availability-males-age-15-49','mil_man_ava_mal_age_1549-availability-males-age-15-49','mil_man_fit_for_mil_ser_fem-military-manpower-fit-service-females','mil_man_fit_for_mil_ser_mal-military-manpower-fit-service-males','mil_man_fit_for_mil_ser_mal_age_1549-service-males-age-15-49','mil_man_fit_for_mil_ser_mal_age_1549_percap-age-15-49-per-capita','mil_man_mil_age-military-manpower-age','mil_man_rea_mil_age_ann_mal-manpower-reaching-age-annually-males','mil_man_ava_for_mil_ser_mal_age_1849-service-males-age-18-49','mil_mil_cap_mil_cap_act_tro-military-capabilities-active-troops','mil_mil_cap_mil_cap_def_bud-military-capabilities-defense-budget','mil_mil_cap_mil_cap_fri-military-capabilities-frigates','mil_mil_cap_mil_cap_tan-military-capabilities-tanks','mil_mil_exp_sto_int_pea_res_ins_fig_dat_of_inf-research-institute-figures-date-information','mil_mil_exp_sto_int_pea_res_ins_fig_mil_exp_usd-peace-research-institute-figures-usd','mil_nat_cur_mem_dat-military-nato-current-members-date','mil_nat_cur_mem_exp-military-nato-current-members-expansion','mil_nat_mem_act_pla_par_for_pea-membership-action-plan-partnership-peace','mil_nav_off_ran_fla_off_of8-officer-ranks-flag-officers-8','mil_nav_off_ran_fla_off_of9-officer-ranks-flag-officers-9','mil_nav_off_ran_oth_off_of2-officer-ranks-other-officers-2','mil_nav_off_ran_oth_off_of5-officer-ranks-other-officers-5','mil_nav_per-military-navy-personnel','mil_nav_per_percap-military-navy-personnel-per-capita','mil_not-military-note','mil_ong_con_sta_of_con-military-ongoing-conflicts-start-conflict','mil_ope_end_fre_afg_coa_fat-enduring-freedom-afghanistan-coalition-fatalities','mil_ope_end_fre_afg_coa_fat_percap-afghanistan-coalition-fatalities-per-capita','mil_per-military-personnel','mil_per_percap-military-personnel-per-capita','mil_per_of_tot_lab_for-military-personnel-total-labor-force','mil_ser_age_and_obl-military-service-age-and-obligation','mil_tan-military-tanks','mil_tan_percap-military-tanks-per-capita','mil_tom_of_the_unk_sol_nat_exa_des-unknown-soldier-national-examples-description','mil_us_dep-military-us-deployment','mil_us_mil_exp-military-us-exports','mil_us_mil_exp_percap-military-us-exports-per-capita','mil_wea_hol-military-weapon-holdings','mil_wea_hol_percap-military-weapon-holdings-per-capita','mil_wmd_bio-military-wmd-biological','mil_wmd_che-military-wmd-chemical','mil_wmd_mis-military-wmd-missile','mil_wmd_nuc-military-wmd-nuclear','mil_wmd_ove-military-wmd-overview','mil_wor_war_ii_fat-military-world-war-ii-fatalities','mil_wor_war_ii_fat_percap-war-ii-fatalities-per-capita','mil_wwi_jew_kil-military-wwii-jew-killed','mil_wwi_jew_pop_bef_war-wwii-jewish-population-before-war','mil_wwi_per_of_jew_kil-military-wwii-percent-jew-killed','mil-more');
      var wss = new Array('Select Military Stat','Aid to Afghanistan > Gross disbursements as a percent of ODA *','Aid to Afghanistan > Total development aid, estimates *','Aid to Afghanistan > Total development aid, estimates (per capita) *','Air force officer ranks > Generals/Marshals/Air Officers > OF-6','Air force personnel *','Air force personnel (per capita) *','Allies of World War I > Casualties as % of total personnel *','Allies of World War I > Total casualties *','Armed forces growth *','Armed forces personnel *','Armed forces personnel (per capita) *','Arms exports > constant 1990 US$ *','Arms imports > constant 1990 US$ *','Army personnel *','Army personnel (per capita) *','Branches','Conscription','Conventional arms exports *','Conventional arms exports (per $ GDP) *','Conventional arms exports (per capita) *','Conventional arms imports *','Conventional arms imports (per capita) *','Employment in arms production *','Employment in arms production (per capita) *','expenditure > % of central government expenditure *','expenditure > % of GDP *','expenditure > current LCU','Expenditures *','Expenditures > Dollar figure *','Expenditures > Dollar figure (per $ GDP) *','Expenditures > Dollar figure (per capita) *','Expenditures > Percent of GDP *','Exports to developing nations *','Forces in Europe > ACVs *','Forces in Europe > Aircraft *','Forces in Europe > Aircraft (per capita) *','Forces in Europe > Artillery *','Forces in Europe > Battle Tanks *','Forces in Europe > Battle Tanks (per capita) *','Forces in Europe > Helicopters *','Gulf War Coalition Forces *','Iraq Coalition casualties *','Iraq Coalition casualties (per capita) *','Iraq coalition forces > Troop strength *','Iraq coalition forces > Troop strength (per capita) *','Iraq pledges of reconstruction aid *','Iraqi insurgency > Foreign fighter nationality distribution > Sorted alphabeticallyality *','M2 Browning machine gun > International usage > NATO Member','Manpower > Availability > Females *','Manpower > Availability > Males *','Manpower > Availability > Males age 15-49 *','Manpower > Availability > Males age 15-49 *','Manpower > Fit for military service > Females *','Manpower > Fit for military service > Males *','Manpower > Fit for military service > Males age 15-49 *','Manpower > Fit for military service > Males age 15-49 (per capita) *','Manpower > Military age','Manpower > Reaching military age annually > Males *','Manpower available for military service > Males age 18-49 *','Military Capabilities > Active Troops *','Military Capabilities > Defense Budget *','Military Capabilities > Military Capabilities > Frigates *','Military Capabilities > Tanks *','military expenditures > Stockholm International Peace Research Institute Figures > Date of information','military expenditures > Stockholm International Peace Research Institute Figures > Military expenditures, USD *','NATO > Current members > Date','NATO > Current members > Expansion','NATO > Membership Action Plan > Partnership for Peace','Naval officer ranks > Flag Officers > OF-8','Naval officer ranks > Flag Officers > OF-9','Naval officer ranks > Other officers > OF-2','Naval officer ranks > Other officers > OF-5','Navy personnel *','Navy personnel (per capita) *','Note','Ongoing conflicts > Start of Conflict','Operation Enduring Freedom > Afghanistan coalition fatalities *','Operation Enduring Freedom > Afghanistan coalition fatalities (per capita) *','personnel *','personnel (per capita) *','personnel > % of total labor force *','Service age and obligation','Tanks *','Tanks (per capita) *','Tomb of the Unknown Soldier > National examples > Description','US deployment','US military exports *','US military exports (per capita) *','Weapon holdings *','Weapon holdings (per capita) *','WMD > Biological','WMD > Chemical','WMD > Missile','WMD > Nuclear','WMD > Overview','World War II Fatalities *','World War II Fatalities (per capita) *','WWII > Jew killed *','WWII > Jewish population before war *','WWII > Percent of Jew killed *','... more Military Stats');
      break;
    case 'Mortality':
      var ids = new Array('','mor_acn-mortality-acne','mor_acu_hep_a-mortality-acute-hepatitis-a','mor_acu_nas_com_col-mortality-acute-nasopharyngitis-common-cold','mor_alc_liv_dis-mortality-alcoholic-liver-disease','mor_all_cau-mortality-all-causes','mor_amy-mortality-amyloidosis','mor_ank_spo-mortality-ankylosing-spondylitis','mor_ant-mortality-anthrax','mor_ant_percap-mortality-anthrax-per-capita','mor_ass_by_blu_obj-mortality-assault-by-blunt-object','mor_ass_by_han_dis_percap-assault-handgun-discharge-per-capita','mor_ass_by_oth_spe_mea-mortality-assault-other-specified-means','mor_ass_by_rif_sho_and_lar_fir_dis-rifle-shotgun-larger-firearm-discharge','mor_ass_by_sha_obj-mortality-assault-by-sharp-object','mor_ast-mortality-asthma','mor_ath-mortality-atherosclerosis','mor_bac_inf_of_uns_sit_percap-infection-unspecified-site-per-capita','mor_bac_men_not_els_cla-bacterial-meningitis-not-elsewhere-classified','mor_bip_aff_dis-mortality-bipolar-affective-disorder','mor_bit_by_rat-mortality-bitten-by-rat','mor_can-mortality-candidiasis','mor_car_occ_col_wit_car_pic_up_tru_or_van-collision-pick-up-truck-van','mor_car_occ_inj_in_non_tra_acc-occupant-injured-noncollision-transport-accident','mor_car_arr-mortality-cardiac-arrest','mor_car-mortality-cardiomyopathy','mor_cel-mortality-cellulitis','mor_cha_dis-mortality-chagas-disease','mor_cho-mortality-cholera','mor_chr_ren_fai-mortality-chronic-renal-failure','mor_cle_pal_wit_cle_lip-mortality-cleft-palate-with-lip','mor_con_wit_hot_hou_app-mortality-contact-hot-household-appliances','mor_con_wit_pla_tho_and_spi_and_sha_lea-plant-thorns-spines-sharp-leaves','mor_con_wit_pow_law_percap-contact-powered-lawnmower-per-capita','mor_con_wit_sco-mortality-contact-with-scorpions','mor_con_wit_ven_sna_and_liz-mortality-contact-venomous-snakes-lizards','mor_con_wit_ven_spi-mortality-contact-with-venomous-spiders','mor_cor_and_cal-mortality-corns-and-callosities','mor_cys_fib-mortality-cystic-fibrosis','mor_dea_rat_cru_per_1000_peo-crude-per-1-000-people','mor_dor-mortality-dorsalgia','mor_dow_syn-mortality-down-syndrome','mor_dow_syn_percap-mortality-down-syndrome-per-capita','mor_dro-mortality-drowning','mor_eat_dis-mortality-eating-disorders','mor_eat_dis_percap-mortality-eating-disorders-per-capita','mor_emp-mortality-emphysema','mor_epi-mortality-epilepsy','mor_ero_and_ect_of_cer_ute-mortality-erosion-ectropion-cervix-uteri','mor_exp-mortality-explosions','mor_exp_to_ign_or_mel_of_oth_clo_and_app-ignition-melting-other-clothing-apparel','mor_fal_fro_cli-mortality-fall-from-cliff','mor_fal_fro_tre-mortality-fall-from-tree','mor_fal_inv_bed-mortality-fall-involving-bed','mor_fal_on_and_fro_sta_and_ste-mortality-fall-stairs-steps','mor_fla_and_rel_con-mortality-flatulence-and-related-conditions','mor_gla-mortality-glaucoma','mor_hea_fai-mortality-heart-failure','mor_imp-mortality-impetigo','mor_inf_mon-mortality-infectious-mononucleosis','mor_inf_mon_percap-mortality-infectious-mononucleosis-per-capita','mor_int_der_of_kne-mortality-internal-derangement-of-knee','mor_irr_bow_syn-mortality-irritable-bowel-syndrome','mor_kwa-mortality-kwashiorkor','mor_lac_int-mortality-lactose-intolerance','mor_lep-mortality-leptospirosis','mor_lup_ery-mortality-lupus-erythematosus','mor_mal_mel_of_ski-mortality-malignant-melanoma-of-skin','mor_mig-mortality-migraine','mor_mil_men_ret-mortality-mild-mental-retardation','mor_mot_or_non_veh_acc_typ_of_veh_uns_percap-accident-type-unspecified-per-capita','mor_mul_scl-mortality-multiple-sclerosis','mor_mul_scl_percap-mortality-multiple-sclerosis-per-capita','mor_mum-mortality-mumps','mor_nau_and_vom-mortality-nausea-and-vomiting','mor_obe-mortality-obesity','mor_obe_percap-mortality-obesity-per-capita','mor_obs_com_dis-mortality-obsessive-compulsive-disorder','mor_oth_con_mal_of_bra-mortality-other-congenital-malformations-brain','mor_rat_adu_fem_per_1000_fem_adu-female-per-1-000-adults','mor_rat_adu_mal_per_1000_mal_adu-male-per-1-000-adults','mor_rat_inf_per_1000_liv_bir-per-1-000-live-births','mor_rat_und_per_1000-under-5-per-1-000','mor_sar-mortality-sarcoidosis','mor_sca-mortality-scabies','mor_sca_fev-mortality-scarlet-fever','mor_sch-mortality-schizophrenia','mor_sco-mortality-scoliosis','mor_sic_cel_dis-mortality-sickle-cell-disorders','mor_spi_bif-mortality-spina-bifida','mor_str_by_thr_pro_or_fal_obj-struck-thrown-projected-falling-object','mor_sud_inf_dea_syn-mortality-sudden-infant-death-syndrome','mor_tes_dys-mortality-testicular-dysfunction','mor_urt-mortality-urticaria','mor_var_chi-mortality-varicella-chickenpox','mor_var_vei_of_low_ext-mortality-varicose-veins-lower-extremities','mor_vic_of_flo-mortality-victim-of-flood','mor_vic_of_lig-mortality-victim-of-lightning','mor_vic_of_vol_eru-mortality-victim-of-volcanic-eruption','mor_wat_inj_oth_tha_dro_or_sub-injury-other-than-drowning-submersion','mor_yel_fev-mortality-yellow-fever','mor-more');
      var wss = new Array('Select Mortality Stat','Acne *','Acute hepatitis A *','Acute nasopharyngitis [common cold] *','Alcoholic liver disease *','All causes *','Amyloidosis *','Ankylosing spondylitis *','Anthrax *','Anthrax (per capita) *','Assault by blunt object *','Assault by handgun discharge (per capita) *','Assault by other specified means *','Assault by rifle, shotgun and larger firearm discharge *','Assault by sharp object *','Asthma *','Atherosclerosis *','Bacterial infection of unspecified site (per capita) *','Bacterial meningitis, not elsewhere classified *','Bipolar affective disorder *','Bitten by rat *','Candidiasis *','Car occupant collision with car, pick-up truck or van *','Car occupant injured in noncollision transport accident *','Cardiac arrest *','Cardiomyopathy *','Cellulitis *','Chagas\' disease *','Cholera *','Chronic renal failure *','Cleft palate with cleft lip *','Contact with hot household appliances *','Contact with plant thorns and spines and sharp leaves *','Contact with powered lawnmower (per capita) *','Contact with scorpions *','Contact with venomous snakes and lizards *','Contact with venomous spiders *','Corns and callosities *','Cystic fibrosis *','Death rate, crude > per 1,000 people *','Dorsalgia *','Down syndrome *','Down syndrome (per capita) *','Drowning *','Eating disorders *','Eating disorders (per capita) *','Emphysema *','Epilepsy *','Erosion and ectropion of cervix uteri *','Explosions *','Exposure to ignition or melting of other clothing and apparel *','Fall from cliff *','Fall from tree *','Fall involving bed *','Fall on and from stairs and steps *','Flatulence and related conditions *','Glaucoma *','Heart failure *','Impetigo *','Infectious mononucleosis *','Infectious mononucleosis (per capita) *','Internal derangement of knee *','Irritable bowel syndrome *','Kwashiorkor *','Lactose intolerance *','Leptospirosis *','Lupus erythematosus *','Malignant melanoma of skin *','Migraine *','Mild mental retardation *','Motor- or nonmotor-vehicle accident, type of vehicle unspecified (per capita) *','Multiple sclerosis *','Multiple sclerosis (per capita) *','Mumps *','Nausea and vomiting *','Obesity *','Obesity (per capita) *','Obsessive-compulsive disorder *','Other congenital malformations of brain *','rate, adult, female > per 1,000 female adults *','rate, adult, male > per 1,000 male adults *','rate, infant > per 1,000 live births *','rate, under-5 > per 1,000 *','Sarcoidosis *','Scabies *','Scarlet fever *','Schizophrenia *','Scoliosis *','Sickle-cell disorders *','Spina bifida *','Struck by thrown, projected or falling object *','Sudden infant death syndrome *','Testicular dysfunction *','Urticaria *','Varicella [chickenpox] *','Varicose veins of lower extremities *','Victim of flood *','Victim of lightning *','Victim of volcanic eruption *','Water injury other than drowning or submersion *','Yellow fever *','... more Mortality Stats');
      break;
    case 'People':
      var ids = new Array('','peo_afr_cou_by_pop_den_pop-people-african-countries-population-density','peo_afr_dia_pop-people-african-diaspora-population','peo_age_at_fir_mar_for_men-people-age-first-marriage-men','peo_age_at_fir_mar_for_wom-people-age-first-marriage-women','peo_age_dep_rat_dep_to_wor_pop-dependency-ratio-dependents-working-population','peo_age_str_0_14_yea-age-structure-0-14-years','peo_age_str_014_yea-age-structure-0-14-years','peo_age_str_014_yea_fem-structure-0-14-years-females','peo_age_str_15_64_yea-age-structure-15-64-years','peo_age_str_65_yea_and_ove-age-structure-65-years-over','peo_age_str_65_yea_and_ove_fro_tot-structure-65-years-over-total','peo_att_of_wom_sho_hav_equ_rig-attitude-women-should-equal-rights','peo_att_of_wom_wom_are_hap_now-people-attitude-women-happier-now','peo_att_of_wom_wom_do_hav_equ_rig-attitude-women-do-equal-rights','peo_ave_siz_of_hou-people-average-size-of-households','peo_bir_rat-people-birth-rate','peo_chi_pro_chi_lab_5_14_yea_of_poo_20-5-14-years-poorest-20','peo_chi_pop-people-chinese-population','peo_chi_pop_percap-people-chinese-population-per-capita','peo_cou_wit_chi-people-couples-with-children','peo_dea_rat-people-death-rate','peo_div_rat-people-divorce-rate','peo_div_per_100_mar-people-divorces-per-100-marriages','peo_edu_exp-people-education-expenditures','peo_eld_liv_in_ins-people-elderly-living-in-institution','peo_eld_liv_wit_chi-people-elderly-living-with-children','peo_eth_gro-people-ethnic-groups','peo_eth_gro_a_not-people-ethnic-groups-a-note','peo_eth_lon-people-ethnicity-london','peo_gen_dev-people-gender-development','peo_gen_dev_ind-people-gender-development-index','peo_gen_emp-people-gender-empowerment','peo_gen_emp_mea-people-gender-empowerment-measure','peo_gre_dia_num_of_gre_in_all_cou_num_of_eth_gre-number-greeks-all-countries-ethnic','peo_hom_own-people-home-ownership','peo_hou_wit_mor_tha_5_peo-people-households-more-than-5','peo_jew_pop_by_cou_jew_jew-people-jewish-population-country-jews','peo_lon_par_fam-people-lone-parent-families','peo_mar_rat-people-marriage-rate','peo_med_age_mal-people-median-age-male','peo_med_age_tot-people-median-age-total','peo_nat_adj-people-nationality-adjective','peo_nat_nou-people-nationality-noun','peo_nob_pri_lau-people-nobel-prize-laureates','peo_nob_pri_lau_percap-nobel-prize-laureates-per-capita','peo_one_per_hou-people-one-person-households','peo_per_liv_in_rur_are-people-percentage-living-rural-areas','peo_per_liv_in_urb_are-people-percentage-living-urban-areas','peo_per_per_roo-people-persons-per-room','peo_pop-people-population','peo_pop_cia_fac-people-population-cia-factbook','peo_pop_not-people-population-note','peo_pop_age_014_of_tot-population-ages-0-14-total','peo_pop_dec_mai_rea_for_dec-population-decline-main-reason-decrease','peo_pop_dec_rat_of_nat_dec_in_per-decline-rate-natural-decrease-percent','peo_pop_gro_ann-people-population-growth-annual','peo_pop_gro_rat-people-population-growth-rate','peo_pop_in_201-people-population-in-2015','peo_pop_in_lar_cit-people-population-in-largest-city','peo_pop_fem_of_tot-people-population-female-of-total','peo_pro_pop_gro-people-projected-population-growth','peo_rig_of_the_chi_con_sig-people-rights-child-convention-signatories','peo_rom_pop-people-romani-population','peo_rom_dia_rom_pop-people-romanian-diaspora-population','peo_rur_pop-people-rural-population','peo_rur_pop_percap-people-rural-population-per-capita','peo_rur_pop_gro_ann-people-rural-population-growth-annual','peo_sex_rat_15_64_yea-sex-ratio-15-64-years','peo_sex_rat_1564_yea-sex-ratio-15-64-years','peo_sex_rat_65_yea_and_ove-sex-ratio-65-years-over','peo_sex_rat_at_bir-people-sex-ratio-at-birth','peo_sex_rat_sex_rat_tot-people-sex-ratio-ratios-total','peo_sex_rat_tot_pop-people-sex-ratio-total-population','peo_sex_rat_und_15_yea-sex-ratio-under-15-years','peo_siz_of_hou-people-size-of-houses','peo_sou_ame_cou_by_pop_den_pop-south-american-countries-population-density','peo_tee_bir_rat-people-teenage-birth-rate','peo_tot_fer_rat-people-total-fertility-rate','peo_tot_pop-people-total-population','peo_tot_pop_age_101-total-population-age-10-14','peo_tot_pop_age_100_of_the_tot-total-population-age-100-104','peo_tot_pop_age_151-total-population-age-15-19','peo_tot_pop_age_202-total-population-age-20-24','peo_tot_pop_age_202_of_the_tot-total-population-age-20-24','peo_tot_pop_age_252_of_the_tot-total-population-age-25-29','peo_tot_pop_age_959_of_the_tot-total-population-age-95-99','peo_tot_pop_fem-people-total-population-female','peo_tot_pop_mal-people-total-population-male','peo_tot_pop_tho-people-total-population-thousands','peo_urb_pop-people-urban-population','peo_urb_pop_percap-people-urban-population-per-capita','peo_urb_pop_gro_ann-people-urban-population-growth-annual','peo_urb-people-urbanization','peo_urb_in_197-people-urbanization-in-1975','peo_urb_in_201-people-urbanization-in-2015','peo_wom_adu_lit_rat_fem_as_a_of_mal-adult-literacy-rate-females-males','peo_wom_con_pre-people-women-contraceptive-prevalence','peo_wom_lif_exp_fem_as_a_of_mal-women-life-expectancy-females-males','peo_wom_mat_mor_rat_rep-women-maternal-mortality-ratio-reported','peo_wom_ski_att_at_del-people-women-skilled-attendant-delivery','peo-more');
      var wss = new Array('Select People Stat','African countries by population density > population *','African diaspora > Population *','Age at first marriage for men *','Age at first marriage for women *','Age dependency ratio > dependents to working-age population *','Age structure > 0-14 years *','Age structure > 0-14 years *','Age structure > 0-14 years > Females *','Age structure > 15-64 years *','Age structure > 65 years and over *','Age structure > 65 years and over > From total *','Attitude of women > Should have equal rights *','Attitude of women > Women are happier now *','Attitude of women > Women do have equal rights *','Average size of households *','Birth rate *','Child Protection > Child labour 5-14 years, % of poorest 20% *','Chinese population *','Chinese population (per capita) *','Couples with children *','Death rate *','Divorce rate *','Divorces per 100 marriages *','Education expenditures *','Elderly living in institution *','Elderly living with children *','Ethnic groups','Ethnic groups > A note','Ethnicity > London *','Gender development *','Gender development index *','Gender empowerment *','Gender empowerment measure *','Greek diaspora > Number of Greeks in all countries > Number of ethnic Greeks','Home ownership *','Households with more than 5 people *','Jewish population > By country > Jews > % Jewish *','Lone parent families *','Marriage rate *','Median age > Male *','Median age > Total *','Nationality > Adjective','Nationality > Noun','Nobel prize laureates *','Nobel prize laureates (per capita) *','One person households *','Percentage living in rural areas. *','Percentage living in urban areas *','Persons per room *','Population *','Population > CIA Factbook *','Population > Note','Population ages 0-14 > % of total *','Population decline > Main reason for decrease','Population decline > Rate of natural decrease in percent *','Population growth > annual % *','Population growth rate *','Population in 2015 *','Population in largest city *','Population, female > % of total *','Projected population growth *','Rights of the Child Convention > Signatories','Romani population','Romanian diaspora > Romanian Population','Rural population *','Rural population (per capita) *','Rural population growth > annual % *','Sex ratio > 15-64 years *','Sex ratio > 15-64 years *','Sex ratio > 65 years and over *','Sex ratio > At birth *','Sex ratio > sex ratios > total *','Sex ratio > Total population *','Sex ratio > Under 15 years *','Size of houses *','South American countries by population density > Population *','Teenage birth rate *','Total fertility rate *','Total Population *','Total population > Age 10-14 *','Total population > Age 100-104 > % of the total *','Total population > Age 15-19 *','Total population > Age 20-24 *','Total population > Age 20-24 > % of the total *','Total population > Age 25-29 > % of the total *','Total population > Age 95-99 > % of the total *','Total Population > Female *','Total Population > Male *','Total Population, thousands *','Urban population *','Urban population (per capita) *','Urban population growth > annual % *','Urbanization *','Urbanization in 1975 *','Urbanization in 2015 *','Women > Adult literacy rate females as a % of males *','Women > Contraceptive prevalence % *','Women > Life expectancy females as a % of males *','Women > Maternal mortality ratio > reported *','Women > Skilled attendant at delivery % *','... more People Stats');
      break;
    case 'Religion':
      var ids = new Array('','rel_bud_by_cou_bud_of_bud-religion-buddhism-country-buddhists','rel_bud_by_cou_bud_bud_tot-religion-buddhism-country-buddhist-total','rel_cat_car_ele-religion-catholic-cardinal-electors','rel_cat_car-religion-catholic-cardinals','rel_cat_car_pergdp-religion-catholic-cardinals-per-gdp','rel_cat_car_percap-religion-catholic-cardinals-per-capita','rel_cat_dio_pri-religion-catholic-diocesan-priests','rel_cat_dio_pri_percap-catholic-diocesan-priests-per-capita','rel_cat_dio-religion-catholic-dioceses','rel_cat_dio_percap-religion-catholic-dioceses-per-capita','rel_cat_par-religion-catholic-parishes','rel_cat_par_percap-religion-catholic-parishes-per-capita','rel_cat_per_dea-religion-catholic-permanent-deacons','rel_cat_per_dea_percap-catholic-permanent-deacons-per-capita','rel_cat_rel_pri-religion-catholic-religious-priests','rel_cat_rel_pri_percap-catholic-religious-priests-per-capita','rel_cat_tot_pri-religion-catholic-total-priests','rel_cat_tot_pri_percap-catholic-total-priests-per-capita','rel_cat-religion-catholics','rel_cat_as_per-religion-catholics-as-percentage','rel_chu_att-religion-church-attendance','rel_isl_num_of_mus-religion-islam-number-of-muslim','rel_isl_pop_percap-religion-islam-percentage','rel_isl_per_mus-religion-islam-percentage-muslim','rel_isl_pop-religion-islam-population','rel_isl_shi-religion-islam-shia','rel_isl_shi_to_mus-religion-islam-shia-to-muslim','rel_isl_sun-religion-islam-sunni','rel_isl_sun_to_mus-religion-islam-sunni-to-muslim','rel_isl_in_afr_isl_pop_in_afr_and_pop_per_pop-islam-africa-islamic-population-percentage','rel_jeh_wit-religion-jehovahs-witnesses','rel_jeh_wit_percap-religion-jehovahs-witnesses-per-capita','rel_jew-religion-jews','rel_jew_percap-religion-jews-per-capita','rel_mus-religion-muslim','rel_neo_way_sta_of_the_neo_way_in_eur_com-religion-neocatechumenal-way-statistics-communities','rel_pro_by_cou_pro-religion-protestantism-by-country-protestants','rel_pro_by_cou_pro_pro-religion-protestantism-country-protestants-protestant','rel_rel_in_nat_fla_chr_rel_cha-national-flags-christianity-religious-characteristics','rel_rel_in_nat_fla_isl_rel_cha-national-flags-islam-religious-characteristics','rel_rel-religion-religions','rel_rel_a_not-religion-religions-a-note','rel_rel_all-religion-religions-all','rel_rel_hin-religion-religions-hindu','rel_rel_jew-religion-religions-jewish','rel_rel_mus-religion-religions-muslim','rel_rel_pro-religion-religions-protestant','rel_rel_rom_cat-religion-religions-roman-catholic','rel_rom_cat_by_cou_rom_cat_cat-religion-roman-catholicism-country-catholic','rel_rom_cat_by_cou_rom_cat_cat_tot-roman-catholicism-country-catholic-total','rel_sev_adv_mem-religion-seventh-day-adventist-membership','rel_sev_adv_mem_percap-day-adventist-membership-per-capita','rel_sou_asi_rel-religion-southeast-asia-religions','rel_sta_rel_est_chu_and_for_sta_chu_in_eur_den-state-established-churches-former-denomination','rel_sta_rel_est_chu_and_for_sta_chu_in_eur_dis-state-established-churches-former-disestablished','rel-more');
      var wss = new Array('Select Religion Stat','Buddhism > By country > Buddhism > % of Buddhists *','Buddhism > By country > Buddhism > Buddhist total *','Catholic > Cardinal electors *','Catholic > Cardinals *','Catholic > Cardinals (per $ GDP) *','Catholic > Cardinals (per capita) *','Catholic > Diocesan priests *','Catholic > Diocesan priests (per capita) *','Catholic > Dioceses *','Catholic > Dioceses (per capita) *','Catholic > Parishes *','Catholic > Parishes (per capita) *','Catholic > Permanent Deacons *','Catholic > Permanent Deacons (per capita) *','Catholic > Religious Priests *','Catholic > Religious Priests (per capita) *','Catholic > Total Priests *','Catholic > Total Priests (per capita) *','Catholics *','Catholics as percentage *','Church attendance *','Islam > Number of Muslim *','Islam > Percentage *','Islam > Percentage Muslim *','Islam > Population *','Islam > Shia *','Islam > Shia to Muslim *','Islam > Sunni *','Islam > Sunni to Muslim *','Islam in Africa > Islamic population in Africa and population percentage > Population *','Jehovahs Witnesses *','Jehovahs Witnesses (per capita) *','Jews *','Jews (per capita) *','Muslim *','Neocatechumenal Way > Statistics of the Neocatechumenal Way > Communities *','Protestantism > By country > Protestants *','Protestantism > By country > Protestants > % Protestant *','Religion in national flags > Christianity > Religious characteristics','Religion in national flags > Islam > Religious characteristics','Religions','Religions > A note','Religions > All','Religions > Hindu *','Religions > Jewish *','Religions > Muslim *','Religions > Protestant *','Religions > Roman Catholic *','Roman Catholicism > By country > Roman Catholicism > % Catholic *','Roman Catholicism > By country > Roman Catholicism > Catholic total *','Seventh-day Adventist Membership *','Seventh-day Adventist Membership (per capita) *','Southeast Asia > Religions','State religion > Established churches and former state churches > Denomination','State religion > Established churches and former state churches > Disestablished','... more Religion Stats');
      break;
    case 'Sports':
      var ids = new Array('','spo_1954_asi_gam_med_tal_bro-asian-games-medal-tally-bronze','spo_1965_pan_ara_gam_med_won_bro-arab-games-medals-won-bronze','spo_1965_pan_ara_gam_med_won_sil-arab-games-medals-won-silver','spo_1970_bri_com_gam_med_pos-british-commonwealth-games-medals-pos','spo_1982_com_gam_med_tab_pos-commonwealth-games-medals-table-pos','spo_1985_pan_ara_gam_med_won_bro-arab-games-medals-won-bronze','spo_1986_com_gam_med_pos-1986-commonwealth-games-medals-pos','spo_2000_sum_par_sil-sports-2000-summer-paralympics-silver','spo_2004_wor_jun_ice_hoc_cha_gro_a_pts-ice-hockey-championships-group-pts','spo_2005_men_wor_ice_hoc_cha_gro_b_gp-hockey-championships-group-b-gp','spo_2005_wor_jun_ice_hoc_cha_gro_a_ga-ice-hockey-championships-group-ga','spo_2005_wor_jun_ice_hoc_cha_gro_b_gf-hockey-championships-group-b-gf','spo_2005_wor_jun_ice_hoc_cha_gro_b_gp-hockey-championships-group-b-gp','spo_2006_in_nor_foo_nat_tea_res-norwegian-football-national-team-res','spo_2006_men_wor_ice_hoc_cha_gro_b_gp-hockey-championships-group-b-gp','spo_200_cro_ski_wor_cup_nat_cup_poi-skiing-world-cup-nations-points','spo_24_hou_of_le_man_win_dri_win_win_dri-winners-driver-wins-winning-drivers','spo_air_gam_bro_med-sports-air-games-bronze-medals','spo_air_gam_gol_med-sports-air-games-gold-medals','spo_air_gam_gol_med_percap-games-gold-medals-per-capita','spo_air_gam_tot_med-sports-air-games-total-medals','spo_air_gam_tot_med_percap-games-total-medals-per-capita','spo_all_bla_ove_pla-sports-all-blacks-overall-played','spo_all_med_tal_of_com_gam_2006_com_gam_sil-tally-commonwealth-games-2006-silver','spo_che_gra-sports-chess-grandmasters','spo_che_gra_percap-sports-chess-grandmasters-per-capita','spo_che_int_mas-sports-chess-international-masters','spo_wor_che_ran-sports-chess-world-rankings','spo_cri_clo_and_equ_tea_col_bac-clothing-equipment-team-colours-background','spo_ehf_cha_lea_by_cou_fin-ehf-champions-league-country-finalist','spo_eur_2005_wom_top_10_sco_ppg-women-top-10-scorers-ppg','spo_fia_int_cou_of_app_200_dep_mem-appeal-2006-2007-deputy-member','spo_fib_wor_cha_fir_app-fiba-world-championship-first-appearance','spo_fif_100_top_ran_cou_pla-100-top-ranking-countries-players','spo_fif_wor_ran-sports-fifa-world-ranking-men','spo_fif_wor_ran_percap-world-ranking-men-per-capita','spo_fif_wor_ran_wom-sports-fifa-world-ranking-women','spo_fif_wor_ran_wom_percap-world-ranking-women-per-capita','spo_fro_hc_pla_pla_nat_pla-lunda-hc-players-player-nationalities','spo_gre_bri_and_ire_at_the_1908_sum_oly_wre_per-1908-summer-olympics-wrestling-percent','spo_hom_wor_cup_tea_nam-homeless-world-cup-team-name','spo_hon_nat_foo_tea_rec_ver_oth_nat_dif-records-versus-other-nations-difference','spo_hon_nat_foo_tea_rec_ver_oth_nat_won-records-versus-other-nations-won','spo_icc_nat_mem_fed_icc_ema_con-national-member-federations-email-contact','spo_icc_nat_mem_fed_oth-iccf-national-member-federations-other','spo_ice_hoc_num_of_reg_pla_of_pop-hockey-number-registered-players-population','spo_ice_hoc_num_of_reg_pla_pla-ice-hockey-number-registered-players','spo_int_cri_cou_mem_aff_mem_mem_sin-council-members-affiliate-member-since','spo_int_rug_lea_tea_tes_nat_fir_yea_in_int_com-test-nations-first-year-competition','spo_int_rug_lea_tea_tes_nat_nic-league-teams-test-nations-nickname','spo_jac_mar_ach_ext-sports-jackline-maranga-achievements-extra','spo_jac_mar_ach_yea-sports-jackline-maranga-achievements-year','spo_nat_spo_cri_pop-sports-national-sport-cricket-population','spo_nat_tea_app_in_the_wor_men_han_cha_yea-39-s-handball-championship-year','spo_nic_nat_foo_tea_rec_ver_oth_nat_aga-records-versus-other-nations-against','spo_nic_nat_foo_tea_rec_ver_oth_nat_dif-records-versus-other-nations-difference','spo_nic_nat_foo_tea_rec_ver_oth_nat_los-records-versus-other-nations-lost','spo_nic_nat_foo_tea_rec_ver_oth_nat_poi-records-versus-other-nations-points','spo_oly_med_gol_syd_200-olympic-medals-gold-sydney-2000','spo_oly_med_gol_syd_200_percap-gold-sydney-2000-per-capita','spo_oly_med_tot_syd_200-olympic-medals-total-sydney-2000','spo_oly_med_tot_syd_200_percap-total-sydney-2000-per-capita','spo_oly_poi_tot_syd_200-olympic-point-totals-sydney-2000','spo_rug_lea_in_2006_int_win-rugby-league-2006-internationals-wins','spo_rug_wor_cup_200_sta-rugby-world-cup-2003-standings','spo_rug_wor_cup_200_sta_percap-cup-2003-standings-per-capita','spo_rug_wor_cup_ove_rec_198-cup-overall-record-1987-2003','spo_rug_wor_cup_ove_rec_198_f-overall-record-1987-2003-f','spo_rug_wor_cup_ove_rec_198_w-overall-record-1987-2003-w','spo_sho_at_the_1968_sum_oly_med_cou_tot-summer-olympics-medal-count-total','spo_sho_at_the_1996_sum_oly_med_cou_tot-summer-olympics-medal-count-total','spo_sum_oly_med_all_tim-summer-olympic-medals-all-time','spo_sum_oly_med_all_tim_percap-medals-all-time-per-capita','spo_swi_1992_sum_oly_men_4_x_100_med_rel_non_nam-medley-relay-non-qualifiers-names','spo_swi_1992_sum_oly_men_400_ind_med_non_nam-individual-medley-non-qualifiers-names','spo_swi_1996_sum_oly_wom_4_x_100_fre_rel_non_nam-freestyle-relay-non-qualifiers-names','spo_swi_1996_sum_oly_wom_4_x_200_fre_rel_non_tim-freestyle-relay-non-qualifiers-time','spo_swi_at_the_2007_wor_aqu_cha_med_tab_tot-aquatics-championships-medals-table-total','spo_tab_ten_at_the_2006_com_gam_men_tea_los-men-39-s-team-losses','spo_top_hom_run_hit_out_the_usa_nam-run-hitters-outside-usa-name','spo_top_int_goa_sco-sports-top-international-goal-scorers','spo_top_int_goa_sco_nam-top-international-goal-scorers-name','spo_uef_cha_lea_by_nat_run_up-champions-league-nation-runners-up','spo_uef_cha_lea_by_nat_win_clu-champions-league-nation-winning-clubs','spo_uef_cup_uef_cup_rec_and_sta_win-uefa-cup-records-statistics-winners','spo_uef_cup_rec_and_sta_per_run_clu-statistics-performance-runner-up-clubs','spo_uef_int_cup_win_win_clu-intertoto-cup-winners-winning-clubs','spo_vol_wor_cha_med_per_nat_nda_men_sil-per-nation-ndash-men-silver','spo_win_oly_med_all_tim-winter-olympic-medals-all-time','spo_win_oly_med_all_tim_percap-medals-all-time-per-capita','spo_wor_cup_tot_dra-sports-world-cup-totals-draws','spo_wor_cup_tot_goa_aga-world-cup-totals-goals-against','spo_wor_cup_tot_goa_for-sports-world-cup-totals-goals','spo_wor_cup_tot_mat_pla-world-cup-totals-matches-played','spo_wor_cup_tot_poi-sports-world-cup-totals-points','spo_wor_cup_tot_win-sports-world-cup-totals-wins','spo_wor_cup_tot_win_percap-cup-totals-wins-per-capita','spo_wor_ral_cha_rec_eve_win_win-rally-championship-records-event-wins','spo_wre_at_the_1980_sum_oly_med_pos-1980-summer-olympics-medals-pos','spo_wre_at_the_1980_sum_oly_med_tot-1980-summer-olympics-medals-total','spo-more');
      var wss = new Array('Select Sports Stat','1954 Asian Games > Medal tally > Bronze *','1965 Pan Arab Games > Medals won > Bronze *','1965 Pan Arab Games > Medals won > Silver *','1970 British Commonwealth Games > Medals > Pos *','1982 Commonwealth Games > Medals table > Pos *','1985 Pan Arab Games > Medals won > Bronze *','1986 Commonwealth Games > Medals > Pos *','2000 Summer Paralympics > Silver *','2004 World Junior Ice Hockey Championships > Group A > Pts *','2005 Men&#39;s World Ice Hockey Championships > Group B > GP *','2005 World Junior Ice Hockey Championships > Group A > GA *','2005 World Junior Ice Hockey Championships > Group B > GF *','2005 World Junior Ice Hockey Championships > Group B > GP *','2006 in Norwegian football > National Team > Res. *','2006 Men&#39;s World Ice Hockey Championships > Group B > GP *','2006-07 Cross-Country Skiing World Cup > Nations Cup > Points *','24 Hours of Le Mans winners > Driver Wins > Winning > Drivers *','Air Games > Bronze medals *','Air Games > Gold Medals *','Air Games > Gold Medals (per capita) *','Air Games > Total medals *','Air Games > Total medals (per capita) *','All Blacks > Overall > Played *','All-time medal tally of Commonwealth Games > 2006 Commonwealth Games > Silver *','Chess > GrandMasters *','Chess > GrandMasters (per capita) *','Chess > International Masters *','Chess > World Chess Rankings *','Cricket clothing and equipment > Team colours > Background','EHF Champions League > By Country > Finalist *','Eurobasket 2005 Women > Top 10 scorers > PPG *','FIA International Court of Appeal > 2006-2007 > Deputy member','FIBA World Championship > First appearance','FIFA 100 > Top ranking countries > Players *','FIFA World Ranking > Men *','FIFA World Ranking > Men (per capita) *','FIFA World Ranking > Women *','FIFA World Ranking > Women (per capita) *','Fr&ouml;lunda HC players > Player nationalities > Players *','Great Britain and Ireland at the 1908 Summer Olympics > Wrestling > Percent','Homeless World Cup > Team Name','Honduras national football team > Records versus other nations > Difference *','Honduras national football team > Records versus other nations > Won *','ICCF national member federations > ICCF Email Contact','ICCF national member federations > Other','Ice hockey > Number of registered players > % of Population *','Ice hockey > Number of registered players > Players *','International Cricket Council members > Affiliate Members > Member Since','international rugby league teams > Test Nations > First year in > international competition','international rugby league teams > Test Nations > Nickname','Jackline Maranga > Achievements > Extra *','Jackline Maranga > Achievements > Year','National sport > Cricket > Population *','National team appearances in the World Men&#39;s Handball Championship > Year','Nicaragua national football team > Records versus other nations > Against *','Nicaragua national football team > Records versus other nations > Difference *','Nicaragua national football team > Records versus other nations > Lost *','Nicaragua national football team > Records versus other nations > Points *','Olympic medals > Gold > Sydney 2000 *','Olympic medals > Gold > Sydney 2000 (per capita) *','Olympic medals > Total > Sydney 2000 *','Olympic medals > Total > Sydney 2000 (per capita) *','Olympic point totals > Sydney 2000 *','Rugby league in 2006 > Internationals > Wins *','Rugby World Cup > 2003 standings *','Rugby World Cup > 2003 standings (per capita) *','Rugby World Cup Overall Record > 1987-2003 > % *','Rugby World Cup Overall Record > 1987-2003 > F *','Rugby World Cup Overall Record > 1987-2003 > W *','Shooting at the 1968 Summer Olympics > Medal count > Total *','Shooting at the 1996 Summer Olympics > Medal count > Total *','Summer olympic medals > All time *','Summer olympic medals > All time (per capita) *','Swimming > 1992 Summer Olympics - Men&#39;s 4 x 100m medley relay > Non-Qualifiers > Names','Swimming > 1992 Summer Olympics - Men&#39;s 400m individual medley > Non-Qualifiers > Names','Swimming > 1996 Summer Olympics - Women&#39;s 4 x 100 freestyle relay > Non-Qualifiers > Names','Swimming > 1996 Summer Olympics - Women&#39;s 4 x 200m freestyle relay > Non-Qualifiers > Time','Swimming at the 2007 World Aquatics Championships > Medals table > Total *','Table Tennis at the 2006 Commonwealth Games > Men&#39;s Team > Losses *','top home run hitters > Outside the USA > Name','Top international goal scorers > # *','Top international goal scorers > Name','UEFA Champions League > By Nation > Runners Up *','UEFA Champions League > By Nation > Winning Clubs','UEFA Cup > UEFA Cup records and statistics > Winners *','UEFA Cup records and statistics > Performance > Runner-up clubs','UEFA Intertoto Cup > Winners > Winning Clubs','Volleyball World Championship > Medals per nation &ndash; Men > Silver *','Winter olympic medals > All time *','Winter olympic medals > All time (per capita) *','World Cup Totals > Draws *','World Cup Totals > Goals against *','World Cup Totals > Goals for *','World Cup Totals > Matches played *','World Cup Totals > Points *','World Cup Totals > Wins *','World Cup Totals > Wins (per capita) *','World Rally Championship records > Event wins > Wins *','Wrestling at the 1980 Summer Olympics > Medals > Pos *','Wrestling at the 1980 Summer Olympics > Medals > Total: *','... more Sports Stats');
      break;
    case 'Taxation':
      var ids = new Array('','tax_ave_tim_to_cle_cus_day-average-time-clear-customs-days','tax_com_of_tax_cor_inc_tax-taxation-components-corporate-income-tax','tax_com_of_tax_goo_and_ser_tax-taxation-components-goods-service-tax','tax_com_of_tax_pay_and_wor_tax-taxation-components-payroll-workforce-taxes','tax_com_of_tax_per_inc_tax-taxation-components-personal-income-tax','tax_com_of_tax_pro_tax-taxation-components-of-property-tax','tax_com_of_tax_soc_sec_con_by_emp-components-social-security-contribution-employer','tax_com_of_tax_soc_sec_emp_con-components-social-security-employees-contribution','tax_con_by_mid_40-taxation-contribution-by-middle-40','tax_con_by_poo_30-taxation-contribution-by-poorest-30','tax_con_by_ric_30-taxation-contribution-by-richest-30','tax_cpi_fis_pol_rat-taxation-cpia-fiscal-policy-rating','tax_cus_and_oth_imp_dut_of_tax_rev-other-import-duties-tax-revenue','tax_cus_and_oth_imp_dut_cur_lcu-other-import-duties-current-lcu','tax_hig_mar_tax_rat_cor_rat-highest-marginal-tax-rate-corporate','tax_hig_mar_tax_rat_ind_on_inc_exc_us-rate-individual-income-exceeding-us','tax_hig_mar_tax_rat_ind_rat-highest-marginal-tax-rate-individual','tax_net_tax_on_pro_con_lcu-net-taxes-products-constant-lcu','tax_net_tax_on_pro_cur_lcu-net-taxes-products-current-lcu','tax_net_tax_on_pro_cur_us-net-taxes-products-current-us','tax_net_tax_on_pro_cur_us_pergdp-products-current-us-per-gdp','tax_net_tax_on_pro_cur_us_percap-products-current-us-per-capita','tax_oth_tax_of_rev-taxation-other-taxes-of-revenue','tax_oth_tax_cur_lcu-taxation-other-taxes-current-lcu','tax_soc_con_of_rev-taxation-social-contributions-of-revenue','tax_soc_con_cur_lcu-taxation-social-contributions-current-lcu','tax_tax_fre_day_bur-taxation-tax-freedom-day-burden','tax_tax_fre_day_dat_of_yea-tax-freedom-day-date-year','tax_tax_fre_day_day_of_yea-taxation-tax-freedom-day-year','tax_tax_fre_day_sou_tha_cal_it-tax-freedom-day-source-calculates','tax_tax_pay_num-taxation-tax-payments-number','tax_tax_pay_num_percap-tax-payments-number-per-capita','tax_tax_rat_of_man_sur_ran_thi_as_a_maj_bus_con-surveyed-ranking-major-business-constraint','tax_tax_rev_of_gdp-taxation-tax-revenue-of-gdp','tax_tax_rev_cur_lcu-taxation-tax-revenue-current-lcu','tax_tax_on_exp_of_tax_rev-taxation-taxes-exports-tax-revenue','tax_tax_on_exp_cur_lcu-taxation-taxes-exports-current-lcu','tax_tax_on_goo_and_ser_of_rev-taxation-taxes-goods-services-revenue','tax_tax_on_goo_and_ser_val_add_of_ind_and_ser-goods-services-value-added-industry','tax_tax_on_goo_and_ser_cur_lcu-taxes-goods-services-current-lcu','tax_tax_on_inc_pro_and_cap_gai_of_rev-income-profits-capital-gains-revenue','tax_tax_on_inc_pro_and_cap_gai_of_tot_tax-income-profits-capital-gains-total','tax_tax_on_inc_pro_and_cap_gai_cur_lcu-profits-capital-gains-current-lcu','tax_tax_on_int_tra_of_rev-taxation-taxes-international-trade-revenue','tax_tax_on_int_tra_cur_lcu-taxes-international-trade-current-lcu','tax_tot_tax_rat_of_pro-taxation-total-tax-rate-profit','tax_tot_tax_wed_sin_wor-total-tax-wedge-single-worker','tax_tot_tax_wed_sin_inc_fam-tax-wedge-single-income-family','tax_tot_tax_as_of_gdp-taxation-total-as-of-gdp','tax_val_add_tax_low_rat_for_dwe-added-tax-lower-rate-dwellings','tax_val_add_tax_pro_ser-value-added-tax-professional-services','tax_val_add_tax_sta_rat-value-added-tax-standard-rate','tax-more');
      var wss = new Array('Select Taxation Stat','Average time to clear customs > days *','Components of taxation > Corporate income tax *','Components of taxation > Goods and service tax *','Components of taxation > Payroll and workforce taxes *','Components of taxation > Personal income tax *','Components of taxation > Property tax *','Components of taxation > Social security > Contribution by employer *','Components of taxation > Social security > Employees contribution *','Contribution by middle 40% *','Contribution by poorest 30% *','Contribution by richest 30% *','CPIA fiscal policy rating *','Customs and other import duties > % of tax revenue *','Customs and other import duties > current LCU','Highest marginal tax rate, corporate rate > % *','Highest marginal tax rate, individual > on income exceeding, US$ *','Highest marginal tax rate, individual rate > % *','Net taxes on products > constant LCU','Net taxes on products > current LCU','Net taxes on products > current US$ *','Net taxes on products > current US$ (per $ GDP) *','Net taxes on products > current US$ (per capita) *','Other taxes > % of revenue *','Other taxes > current LCU','Social contributions > % of revenue *','Social contributions > current LCU','Tax Freedom Day > % Burden *','Tax Freedom Day > Date of Year','Tax Freedom Day > Day of Year *','Tax Freedom Day > Source that calculates it','Tax payments > number *','Tax payments > number (per capita) *','Tax rates > % of managers surveyed ranking this as a major business constraint *','Tax revenue > % of GDP *','Tax revenue > current LCU','Taxes on exports > % of tax revenue *','Taxes on exports > current LCU','Taxes on goods and services > % of revenue *','Taxes on goods and services > % value added of industry and services *','Taxes on goods and services > current LCU','Taxes on income, profits and capital gains > % of revenue *','Taxes on income, profits and capital gains > % of total taxes *','Taxes on income, profits and capital gains > current LCU','Taxes on international trade > % of revenue *','Taxes on international trade > current LCU','Total tax rate > % of profit *','Total tax wedge > Single worker *','Total tax wedge > Single-income family *','Total taxation as % of GDP *','Value Added Tax > Lower rate for dwellings *','Value Added Tax > Professional services *','Value Added Tax > Standard rate *','... more Taxation Stats');
      break;
    case 'Terrorism':
      var ids = new Array('','ter_2002_bal_bom_dea-terrorism-2002-bali-bombings-deaths','ter_col_pol_vio_in_the_199_com-political-violence-1990-s-combined','ter_pol_vio_wit_199-violence-1990s-excessive-targeting-civilians','ter_col_pol_vio_in_the_199_wit_exc_tar_of_civ-1990s-without-excessive-targeting-civilians','ter_ter_con_on_air_off-terrorism-convention-on-aircraft-offences','ter_ter_con_on_civ_avi_saf-terrorism-convention-civil-aviation-safety','ter_ter_con_on_cri_aga_pro_per-convention-crimes-against-protected-persons','ter_ter_con_on_hos-terrorism-convention-on-hostages','ter_ter_con_on_pro_of_nuc_mat-terrorism-convention-protection-nuclear-material','ter_ter_con_on_saf_of_mar_nav-terrorism-convention-safety-maritime-navigation','ter_ter_con_on_sei_of_air-terrorism-convention-seizure-aircraft','ter_glo_ter_ind-terrorism-global-indicator','ter_num_of_kno_ter_org_pre-number-known-terrorist-organizations-present','ter_ter_pro_aga_vio_at_int_air-protocol-against-violence-international-airports','ter_ter_act_196_dea_to_inc_rat-1968-2006-deaths-incidences-ratio','ter_ter_act_196_fat-terrorist-acts-1968-2006-fatalities','ter_ter_act_196_fat_percap-1968-2006-fatalities-per-capita','ter_ter_act_196_inc-terrorist-acts-1968-2006-incidences','ter_ter_act_196_inc_percap-1968-2006-incidences-per-capita','ter_ter_act_196_inj-terrorist-acts-1968-2006-injuries','ter_ter_act_196_inj_percap-1968-2006-injuries-per-capita','ter_ter_act_200_fat-terrorist-acts-2000-2006-fatalities','ter_ter_act_200_fat_percap-2000-2006-fatalities-per-capita','ter_ter_act_200_inc-terrorist-acts-2000-2006-incidences','ter_ter_act_200_inc_percap-2000-2006-incidences-per-capita','ter_ter_act_200_inj-terrorist-acts-2000-2006-injuries','ter_ter_act_200_inj_percap-2000-2006-injuries-per-capita','ter_vic_of_the_sep_11t_200_att-victims-september-11th-2001-attacks','ter_vic_of_the_sep_11t_200_att_percap-11th-2001-attacks-per-capita','ter-more');
      var wss = new Array('Select Terrorism Stat','2002 Bali bombings > Deaths *','Collective Political Violence in the 1990\'s combined *','Collective Political Violence in the 1990s with Excessive Targeting of Civilians *','Collective Political Violence in the 1990s without Excessive Targeting of Civilians *','Convention on aircraft offences','Convention on civil aviation safety','Convention on crimes against protected persons','Convention on hostages','Convention on protection of nuclear material','Convention on safety of maritime navigation','Convention on seizure of aircraft','Global Terrorism Indicator *','Number of Known Terrorist Organizations Present *','Protocol against violence at international airports','Terrorist Acts > 1968-2006 > Deaths to incidences ratio *','Terrorist Acts > 1968-2006 > Fatalities *','Terrorist Acts > 1968-2006 > Fatalities (per capita) *','Terrorist Acts > 1968-2006 > Incidences *','Terrorist Acts > 1968-2006 > Incidences (per capita) *','Terrorist Acts > 1968-2006 > Injuries *','Terrorist Acts > 1968-2006 > Injuries (per capita) *','Terrorist Acts > 2000-2006 > Fatalities *','Terrorist Acts > 2000-2006 > Fatalities (per capita) *','Terrorist Acts > 2000-2006 > Incidences *','Terrorist Acts > 2000-2006 > Incidences (per capita) *','Terrorist Acts > 2000-2006 > Injuries *','Terrorist Acts > 2000-2006 > Injuries (per capita) *','Victims of the September 11th 2001 attacks *','Victims of the September 11th 2001 attacks (per capita) *','... more Terrorism Stats');
      break;
    case 'Transportation':
      var ids = new Array('','tra_air_tra_fre_mil_ton_per_km-freight-million-tons-per-km','tra_air_tra_pas_car-transportation-air-transport-passengers-carried','tra_air_tra_pas_car_percap-transport-passengers-carried-per-capita','tra_air_tra_reg_car_dep_wor_percap-carrier-departures-worldwide-per-capita','tra_air_dep-transportation-aircraft-departures','tra_air_dep_percap-transportation-aircraft-departures-per-capita','tra_air-transportation-airports','tra_air_percap-transportation-airports-per-capita','tra_air_wit_pav_run_152_to_243_m-paved-runways-1524-2437-m','tra_air_wit_pav_run_1524_to_2437_m-paved-runways-1524-2437-m','tra_air_wit_pav_run_152_to_243_m_percap-1524-2437-m-per-capita','tra_air_wit_pav_run_914_to_152_m-paved-runways-914-1523-m','tra_air_wit_pav_run_ove_3047_m-paved-runways-over-3047-m','tra_air_wit_pav_run_ove_304_m-paved-runways-over-3047-m','tra_air_wit_pav_run_ove_304_m_percap-over-3047-m-per-capita','tra_air_wit_pav_run_tot-transportation-airports-paved-runways-total','tra_air_wit_pav_run_tot_percap-paved-runways-total-per-capita','tra_air_wit_pav_run_und_914_m-paved-runways-under-914-m','tra_air_wit_unp_run_152_to_243_m-unpaved-runways-1524-2437-m','tra_air_wit_unp_run_2438_to_3047_m-unpaved-runways-2438-3047-m','tra_air_wit_unp_run_914_to_152_m-unpaved-runways-914-1523-m','tra_air_wit_unp_run_ove_3047_m-unpaved-runways-over-3047-m','tra_air_wit_unp_run_tot-transportation-airports-unpaved-runways-total','tra_air_wit_unp_run_und_914_m-unpaved-runways-under-914-m','tra_car-transportation-cars','tra_con_por_tra-transportation-container-port-traffic','tra_dri_sid_of_the_roa_lef_or_rig-driving-side-road-left-right','tra_hel-transportation-heliports','tra_hel_percap-transportation-heliports-per-capita','tra_hig_pav-transportation-highways-paved','tra_hig_pav_percap-transportation-highways-paved-per-capita','tra_hig_tot-transportation-highways-total','tra_hig_tot_percap-transportation-highways-total-per-capita','tra_hig_unp-transportation-highways-unpaved','tra_hig_unp_percap-transportation-highways-unpaved-per-capita','tra_inv_in_tra_wit_pri_par_cur_us-transport-private-participation-current-us','tra_inv_in_tra_wit_pri_par_cur_us_pergdp-participation-current-us-per-gdp','tra_inv_in_tra_wit_pri_par_cur_us_percap-participation-current-us-per-capita','tra_mer_mar_a_not-transportation-merchant-marine-a-note','tra_mer_mar_by_typ-transportation-merchant-marine-by-type','tra_mer_mar_for-transportation-merchant-marine-foreign-owned','tra_mer_mar_reg_in_oth_cou-merchant-marine-registered-other-countries','tra_mer_mar_shi_by_typ-transportation-merchant-marine-ships-type','tra_mer_mar_tot-transportation-merchant-marine-total','tra_mer_mar_tot_pergdp-merchant-marine-total-per-gdp','tra_mer_mar_tot_dwt-transportation-merchant-marine-total-dwt','tra_mer_mar_tot_dwt_pergdp-marine-total-dwt-per-gdp','tra_mer_mar_tot_dwt_percap-marine-total-dwt-per-capita','tra_mer_mar_tot_grt-transportation-merchant-marine-total-grt','tra_mer_mar_tot_grt_pergdp-marine-total-grt-per-gdp','tra_mot_veh-transportation-motor-vehicles','tra_nor_car_num_pla_cor_dip_ide_cou_ide-corpse-diplomatique-identifiers-country-identifier','tra_pip-transportation-pipelines','tra_pip_all_typ-transportation-pipelines-all-types','tra_pip_gas-transportation-pipelines-gas','tra_pip_liq_pet_gas-transportation-pipelines-liquid-petroleum-gas','tra_pip_oil-transportation-pipelines-oil','tra_pip_oil_pergdp-transportation-pipelines-oil-per-gdp','tra_pip_tot_len-transportation-pipelines-total-length','tra_por_and_har-transportation-ports-and-harbors','tra_por_and_ter-transportation-ports-and-terminals','tra_rai_lin_tot_rou-rail-lines-total-route-km','tra_rai_usa_sta_dis_tra_by_rai_per_inh_in_kmy_kil-per-inhabitant-km-year-kilometres','tra_rai_usa_sta_fre_rai_by_bil_of_ton_bil_ton-billions-tonne-kilometers-billion-kilometres','tra_rai_usa_sta_pas_of_rai_tra_in_bil_bil_pas-km-transport-billion-year-kilometres','tra_rai-transportation-railways','tra_rai_percap-transportation-railways-per-capita','tra_rai_a_not-transportation-railways-a-note','tra_rai_bro_gau-transportation-railways-broad-gauge','tra_rai_nar_gau-transportation-railways-narrow-gauge','tra_rai_not-transportation-railways-note','tra_rai_sta_gau-transportation-railways-standard-gauge','tra_rai_sta_gau_pergdp-railways-standard-gauge-per-gdp','tra_rai_tot-transportation-railways-total','tra_rai_tot_pergdp-transportation-railways-total-per-gdp','tra_rai_tot_percap-transportation-railways-total-per-capita','tra_rai_goo_tra_mil_ton-goods-transported-million-ton-km','tra_rai_goo_tra_mil_ton_percap-million-ton-km-per-capita','tra_rai_pas_car_mil_pas-passengers-carried-million-passenger-km','tra_rai_pas_car_mil_pas_percap-million-passenger-km-per-capita','tra_roa_goo_tra_mil_ton-goods-transported-million-ton-km','tra_roa_goo_tra_mil_ton_percap-million-ton-km-per-capita','tra_roa_pas_car_mil_pas-passengers-carried-million-passenger-km','tra_roa_pas_car_mil_pas_percap-million-passenger-km-per-capita','tra_roa_pav_of_tot_roa-transportation-roads-paved-of-total','tra_roa_tot_net_km-transportation-roads-total-network-km','tra_roa_not-transportation-roadways-note','tra_roa_pav-transportation-roadways-paved','tra_roa_tot-transportation-roadways-total','tra_roa_unp-transportation-roadways-unpaved','tra_spe_lim_spe_lim_in_spe_cou_wit_tow-limits-specific-countries-within-towns','tra_iss_dis_int-transportation-transnational-issues-disputes-international','tra_tra_not-transportation-note','tra_tra_ser_of_com_ser_exp-travel-services-commercial-service-exports','tra_tra_ser_of_com_ser_imp-travel-services-commercial-service-imports','tra_veh_abu-transportation-vehicle-abundance','tra_wat-transportation-waterways','tra_wat_a_not-transportation-waterways-a-note','tra_wat_not-transportation-waterways-note','tra_wor_for_for_har_of_veh_reg_par_cou_cod-vehicle-regulations-participating-countries-code','tra-more');
      var wss = new Array('Select Transportation Stat','Air transport, freight > million tons per km *','Air transport, passengers carried *','Air transport, passengers carried (per capita) *','Air transport, registered carrier departures worldwide (per capita) *','Aircraft departures *','Aircraft departures (per capita) *','Airports *','Airports (per capita) *','Airports > With paved runways > 1524 to 2437 m *','Airports > With paved runways > 1524 to 2437 m *','Airports > With paved runways > 1524 to 2437 m (per capita) *','Airports > With paved runways > 914 to 1523 m *','Airports > With paved runways > Over 3047 m *','Airports > With paved runways > Over 3047 m *','Airports > With paved runways > Over 3047 m (per capita) *','Airports > With paved runways > Total *','Airports > With paved runways > Total (per capita) *','Airports > With paved runways > Under 914 m *','Airports > With unpaved runways > 1524 to 2437 m *','Airports > With unpaved runways > 2438 to 3047 m *','Airports > With unpaved runways > 914 to 1523 m *','Airports > With unpaved runways > Over 3047 m *','Airports > With unpaved runways > Total *','Airports > With unpaved runways > Under 914 m *','Cars *','Container port traffic *','Driving side of the road > Left or right','Heliports *','Heliports (per capita) *','Highways > Paved *','Highways > Paved (per capita) *','Highways > Total *','Highways > Total (per capita) *','Highways > Unpaved *','Highways > Unpaved (per capita) *','Investment in transport with private participation > current US$ *','Investment in transport with private participation > current US$ (per $ GDP) *','Investment in transport with private participation > current US$ (per capita) *','Merchant marine > A note','Merchant marine > By type','Merchant marine > Foreign-owned *','Merchant marine > Registered in other countries *','Merchant marine > Ships by type','Merchant marine > Total *','Merchant marine > Total (per $ GDP) *','Merchant marine > Total > Dwt *','Merchant marine > Total > Dwt (per $ GDP) *','Merchant marine > Total > Dwt (per capita) *','Merchant marine > Total > GRT *','Merchant marine > Total > GRT (per $ GDP) *','Motor vehicles *','Norwegian car number plates > Corpse Diplomatique Identifiers > Country identifier *','Pipelines','Pipelines > All types','Pipelines > Gas *','Pipelines > Liquid petroleum gas *','Pipelines > Oil *','Pipelines > Oil (per $ GDP) *','Pipelines > Total length *','Ports and harbors','Ports and terminals','Rail lines > total route-km *','Rail usage statistics > Distance travelled by rail per inhabitant in km/year Kilometres/year *','Rail usage statistics > Freight rail by billions of tonne-kilometers > Billion tonne-kilometres *','Rail usage statistics > Passenger-km of rail transport, in billion/year > Billion passenger-kilometres *','Railways *','Railways (per capita) *','Railways > A note','Railways > Broad gauge','Railways > Narrow gauge','Railways > Note','Railways > Standard gauge *','Railways > Standard gauge (per $ GDP) *','Railways > Total *','Railways > Total (per $ GDP) *','Railways > Total (per capita) *','Railways, goods transported > million ton-km *','Railways, goods transported > million ton-km (per capita) *','Railways, passengers carried > million passenger-km *','Railways, passengers carried > million passenger-km (per capita) *','Roads, goods transported > million ton-km *','Roads, goods transported > million ton-km (per capita) *','Roads, passengers carried > million passenger-km *','Roads, passengers carried > million passenger-km (per capita) *','Roads, paved > % of total roads *','Roads, total network > km *','Roadways > Note','Roadways > Paved *','Roadways > Total *','Roadways > Unpaved *','Speed limit > Speed limits in specific countries > Within Towns','Transnational Issues > Disputes > international','Note','Travel services > % of commercial service exports *','Travel services > % of commercial service imports *','Vehicle abundance *','Waterways *','Waterways > A note','Waterways > Note','World Forum for Harmonization of Vehicle Regulations > participating countries > Code *','... 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','OECD','CAC','EUR','OCE','ASI','NAM','SAM','OPEC','AFR','SEA','MID','af','ax','al','ag','aq','an','ao','av','ay','ac','xq','ar','am','aa','at','zh','as','au','aj','bf','ba','fq','bg','bb','bs','bo','be','bh','bn','bd','bt','bl','bk','bc','bv','br','io','vi','bx','bu','uv','bm','by','cb','cm','ca','cv','cj','iv','ct','cd','ci','ch','kt','ip','ck','co','cn','cg','cf','cw','cr','cs','hr','cu','cy','ez','cz','da','dx','dj','do','dr','ge','tt','ec','eg','es','ex','ek','er','en','et','eu','ew','fk','fo','fj','fi','fr','fg','fp','fs','gb','ga','gz','gg','gm','gh','gi','go','gr','gl','gj','gp','gq','gt','gk','gv','pu','gy','ha','hm','vt','ho','hk','hq','hu','ic','in','xo','id','ir','iz','ei','is','it','jm','jn','ja','dq','je','jq','jo','ju','kz','ke','kq','kr','kn','ks','ku','kg','la','lg','le','lt','li','ly','ls','lh','lu','mc','mk','ma','mi','my','mv','ml','mt','im','rm','mb','mr','mp','mf','mx','fm','mq','md','mn','mg','mj','mh','mo','mz','wa','nr','bq','np','nl','nt','nc','nz','nu','ng','ni','ne','nf','nx','cq','no','mu','zn','pk','ps','lq','pm','pp','pf','pa','pe','rp','pc','pl','po','rq','qa','re','ro','rs','rw','tb','sh','sc','st','rn','sb','vc','ws','sm','sa','tp','sd','sg','yi','se','sl','sn','lo','si','bp','so','sf','sx','oo','sr','sp','pg','ce','su','ns','sv','wz','sw','sz','sy','tw','ti','tz','th','to','tl','tn','td','te','ts','tu','tx','tk','tv','ug','up','tc','uk','us','uy','uz','nh','ve','vm','vq','wq','ww','wf','we','gw','wi','ym','yu','za','zi');
  var wss = new Array('All countries','OECD','Central America and the Caribbean','Europe','Oceania','Asia','North America','South America','OPEC','Africa','Southeast Asia','Middle East','Afghanistan','Akrotiri','Albania','Algeria','American Samoa','Andorra','Angola','Anguilla','Antarctica','Antigua and Barbuda','Arctic Ocean','Argentina','Armenia','Aruba','Ashmore and Cartier Islands','Atlantic Ocean','Australia','Austria','Azerbaijan','Bahamas, The','Bahrain','Baker Island','Bangladesh','Barbados','Bassas da India','Belarus','Belgium','Belize','Benin','Bermuda','Bhutan','Bolivia','Bosnia and Herzegovina','Botswana','Bouvet Island','Brazil','British Indian Ocean Territory','British Virgin Islands','Brunei','Bulgaria','Burkina Faso','Burma','Burundi','Cambodia','Cameroon','Canada','Cape Verde','Cayman Islands','Côte d\'Ivoire','Central African Republic','Chad','Chile','China','Christmas Island','Clipperton Island','Cocos (Keeling) Islands','Colombia','Comoros','Congo, Democratic Republic of the','Congo, Republic of the','Cook Islands','Coral Sea Islands','Costa Rica','Croatia','Cuba','Cyprus','Czech Republic','Czechoslovakia','Denmark','Dhekelia','Djibouti','Dominica','Dominican Republic','East Germany','East Timor','Ecuador','Egypt','El Salvador','England','Equatorial Guinea','Eritrea','Estonia','Ethiopia','Europa Island','European Union','Falkland Islands (Islas Malvinas)','Faroe Islands','Fiji','Finland','France','French Guiana','French Polynesia','French Southern and Antarctic Lands','Gabon','Gambia, The','Gaza Strip','Georgia','Germany','Ghana','Gibraltar','Glorioso Islands','Greece','Greenland','Grenada','Guadeloupe','Guam','Guatemala','Guernsey','Guinea','Guinea-Bissau','Guyana','Haiti','Heard Island and McDonald Islands','Holy See (Vatican City)','Honduras','Hong Kong','Howland Island','Hungary','Iceland','India','Indian Ocean','Indonesia','Iran','Iraq','Ireland','Israel','Italy','Jamaica','Jan Mayen','Japan','Jarvis Island','Jersey','Johnston Atoll','Jordan','Juan de Nova Island','Kazakhstan','Kenya','Kingman Reef','Kiribati','Korea, North','Korea, South','Kuwait','Kyrgyzstan','Laos','Latvia','Lebanon','Lesotho','Liberia','Libya','Liechtenstein','Lithuania','Luxembourg','Macau','Macedonia, Republic of','Madagascar','Malawi','Malaysia','Maldives','Mali','Malta','Man, Isle of','Marshall Islands','Martinique','Mauritania','Mauritius','Mayotte','Mexico','Micronesia, Federated States of','Midway Islands','Moldova','Monaco','Mongolia','Montenegro','Montserrat','Morocco','Mozambique','Namibia','Nauru','Navassa Island','Nepal','Netherlands','Netherlands Antilles','New Caledonia','New Zealand','Nicaragua','Niger','Nigeria','Niue','Norfolk Island','Northern Ireland','Northern Mariana Islands','Norway','Oman','Pacific Ocean','Pakistan','Palau','Palmyra Atoll','Panama','Papua New Guinea','Paracel Islands','Paraguay','Peru','Philippines','Pitcairn Islands','Poland','Portugal','Puerto Rico','Qatar','Réunion','Romania','Russia','Rwanda','Saint Barthelemy','Saint Helena','Saint Kitts and Nevis','Saint Lucia','Saint Martin','Saint Pierre and Miquelon','Saint Vincent and the Grenadines','Samoa','San Marino','Saudi Arabia','São Tomé and Príncipe','Scotland','Senegal','Serbia and Montenegro','Seychelles','Sierra Leone','Singapore','Slovakia','Slovenia','Solomon Islands','Somalia','South Africa','South Georgia and the South Sandwich Islands','Southern Ocean','Soviet Union','Spain','Spratly Islands','Sri Lanka','Sudan','Suriname','Svalbard','Swaziland','Sweden','Switzerland','Syria','Taiwan','Tajikistan','Tanzania','Thailand','Togo','Tokelau','Tonga','Trinidad and Tobago','Tromelin Island','Tunisia','Turkey','Turkmenistan','Turks and Caicos Islands','Tuvalu','Uganda','Ukraine','United Arab Emirates','United Kingdom','United States','Uruguay','Uzbekistan','Vanuatu','Venezuela','Vietnam','Virgin Islands','Wake Island','Wales','Wallis and Futuna','West Bank','West Germany','Western Sahara','Yemen','Yugoslavia','Zambia','Zimbabwe');
	
	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 country 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);
}
}

