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_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_lan_of_lan_are-agriculture-arable-land-of-area','agr_ara_lan_hec-agriculture-arable-land-hectares','agr_are_cor-agriculture-area-corn','agr_are_cot-agriculture-area-cotton','agr_are_ric-agriculture-area-rice','agr_are_soy-agriculture-area-soybean','agr_are_whe-agriculture-area-wheat','agr_ban_exp-agriculture-banana-exports','agr_ban_imp-agriculture-banana-imports','agr_ban_pro-agriculture-banana-production','agr_cer_pro-agriculture-cereal-production','agr_cot_exp-agriculture-cotton-exports','agr_cot_imp-agriculture-cotton-imports','agr_cot_pro-agriculture-cotton-production','agr_cot_sto-agriculture-cotton-stocks','agr_cro_pro_ind-agriculture-crop-production-index','agr_exp_to_usa_apr-agriculture-exports-to-usa-apricots','agr_exp_to_usa_ban-agriculture-exports-to-usa-bananas','agr_exp_to_usa_bea-agriculture-exports-to-usa-beans','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-agriculture-exports-to-usa-cassava','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_dat-agriculture-exports-to-usa-dates','agr_exp_to_usa_fig-agriculture-exports-to-usa-figs','agr_exp_to_usa_fru-agriculture-exports-to-usa-fruits','agr_exp_to_usa_gar-agriculture-exports-to-usa-garlic','agr_exp_to_usa_gra-agriculture-exports-to-usa-grapes','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_mus-agriculture-exports-to-usa-mushrooms','agr_exp_to_usa_nut_edi-agriculture-exports-usa-nuts-edible','agr_exp_to_usa_oli-agriculture-exports-to-usa-olives','agr_exp_to_usa_oni_and_sha-agriculture-exports-usa-onions-shallots','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_exp_to_usa_tur-agriculture-exports-to-usa-turnips','agr_exp_to_usa_wal-agriculture-exports-to-usa-walnuts','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_con-agriculture-grains-coarse-grain-consumption','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_exp-agriculture-grains-corn-exports','agr_gra_cor_imp-agriculture-grains-corn-imports','agr_gra_cor_pro-agriculture-grains-corn-production','agr_gra_oat_con-agriculture-grains-oats-consumption','agr_gra_oat_exp-agriculture-grains-oats-exports','agr_gra_ric_con-agriculture-grains-rice-consumption','agr_gra_ric_exp-agriculture-grains-rice-exports','agr_gra_ric_pro-agriculture-grains-rice-production','agr_gra_whe_con-agriculture-grains-wheat-consumption','agr_gra_whe_exp-agriculture-grains-wheat-exports','agr_gra_whe_imp-agriculture-grains-wheat-imports','agr_gra_whe_pro-agriculture-grains-wheat-production','agr_hog_pro-agriculture-hog-production','agr_irr_lan_of_cro-agriculture-irrigated-land-of-cropland','agr_lab_sha-agriculture-labor-share','agr_lan_und_cer_pro_hec-land-under-cereal-production-hectares','agr_liv_pro_ind-agriculture-livestock-production-index','agr_man_pro_and_con_top_12_man_pro_2005_hec-mango-top-12-producers-area','agr_org_cro-agriculture-organic-cropland','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_whe-agriculture-production-wheat','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_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_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_pea-agriculture-yield-peanut','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 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 land > % of land area *','Arable land > hectares *','Area > Corn *','Area > Cotton *','Area > Rice *','Area > Soybean *','Area > Wheat *','Banana exports *','Banana imports *','Banana production *','Cereal production *','Cotton exports *','Cotton imports *','Cotton production *','Cotton stocks *','Crop production index *','Exports to USA > Apricots *','Exports to USA > Bananas *','Exports to USA > Beans *','Exports to USA > Black red or white currants and gooseberries *','Exports to USA > Brazil nuts *','Exports to USA > Cassava *','Exports to USA > Cherries *','Exports to USA > Cucumbers and gherkins *','Exports to USA > Dates *','Exports to USA > Figs *','Exports to USA > Fruits *','Exports to USA > Garlic *','Exports to USA > Grapes *','Exports to USA > Hazelnuts or filberts *','Exports to USA > Mangoes guavas and mangosteens *','Exports to USA > Mushrooms *','Exports to USA > Nuts edible *','Exports to USA > Olives *','Exports to USA > Onions and shallots *','Exports to USA > Orange juice *','Exports to USA > Plantains *','Exports to USA > Raspberries blackberries mulberries and loganberries *','Exports to USA > Turnips *','Exports to USA > Walnuts *','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 consumption *','Grains > Coarse grain exports *','Grains > Coarse grain imports *','Grains > Coarse grain production *','Grains > Corn consumption *','Grains > Corn exports *','Grains > Corn imports *','Grains > Corn production *','Grains > Oats consumption *','Grains > Oats exports *','Grains > Rice consumption *','Grains > Rice exports *','Grains > Rice production *','Grains > Wheat consumption *','Grains > Wheat exports *','Grains > Wheat imports *','Grains > Wheat production *','Hog production *','Irrigated land > % of cropland *','Labor share *','Land under cereal production > hectares *','Livestock production index *','Mango > Top 12 Producers > Area *','Organic cropland *','Permanent crops *','Pesticide use *','Production > Barley *','Production > Corn *','Production > Rice *','Production > Soybean *','Production > Wheat *','Root and tuber production *','Root and tuber production growth *','Tractor concentration *','Tractors *','Value added *','value added > annual % growth *','value added > constant 2000 US$ *','value added > current LCU','value added > current US$ *','value added per worker > constant 2000 US$ *','Workers per hectare *','Yield > Cotton *','Yield > Peanut *','Yield > Rice *','Yield > Total Coarse Grain *','Yield > Wheat *','... more Agriculture Stats');
      break;
    case 'Background':
      var ids = new Array('','bac_bac-background','bac_bri_ove_ter_cur_ove_ter_mot-british-overseas-territories-current-motto','bac_cou_nam_aft_peo_sou_of_nam-named-after-people-source-name','bac_dep_ter_uni_kin_adm-dependent-territory-united-kingdom-administration','bac_fat_of_the_nat_lis_tit_nat-father-nation-list-title-native','bac_fat_of_the_nat_lis_tit_tra-father-nation-list-title-translation','bac_fat_of_the_nat_nam-background-father-nation-name','bac_fir_hum_set_loc-background-first-human-settlement-location','bac_gen_avi_in_eur_eur_gen_avi_ass_lin-aviation-europe-european-associations-link','bac_gen_avi_in_eur_eur_gen_avi_ass_mic_ass-europe-european-associations-micro-light','bac_iso_cou_cod-background-iso-country-code','bac_nat_bir-background-national-bird','bac_nat_col_fur_inf-background-national-colours-further-information','bac_nat_col_pri_col-background-national-colours-primary','bac_nat_col_sec_col-background-national-colours-secondary','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_nat_fla_est_dat-background-national-flag-establishment-date','bac_nor_ame_are_cod_car_and_ber_cod-american-area-codes-caribbean-bermuda','bac_nor_ame_num_pla_are_cod_car_and_ber_cod-plan-area-codes-caribbean-bermuda','bac_rel_to_fra-background-relationship-to-france','bac-more');
      var wss = new Array('Select Background Stat','Background','British Overseas Territories > Current overseas territories > Motto','Countries named after people > Source of name','Dependent territory > United Kingdom > Administration','Father of the Nation > List > Title (native)','Father of the Nation > List > Title (translation)','Father of the Nation > Name','First human settlement > Location','General aviation in Europe > European General Aviation associations > Link','General aviation in Europe > European General Aviation associations > Micro-light associations','ISO country code','National bird','National colours > Further information','National colours > Primary colours','National colours > Secondary colours','National colours > Some well-known national colours > Primary colours','National colours > Some well-known national colours > Secondary colours','National flag > establishment date','North American area codes > Caribbean and Bermuda > Codes','North American Numbering Plan area codes > Caribbean and Bermuda > Codes','Relationship to France','... 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_ann_ter_fat-crime-annual-terrorism-fatalities','cri_ann_ter_inc-crime-annual-terrorism-incidents','cri_ass_vic-crime-assault-victims','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_cap_pun_num_exe-crime-capital-punishment-number-executed','cri_car_the-crime-car-thefts','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_met-crime-death-penalty-abolition-method','cri_dea_pen_abo_yea_of_las_use_war-abolition-year-last-use-wartime','cri_dea_pen_abo_yea_of_las_use_pea-abolition-year-last-use-peacetime','cri_dea_pen_abo_dat-crime-death-penalty-abolition-date','cri_dea_pen_abo_dat_pea-death-penalty-abolition-date-peacetime','cri_dea_pen_abo_dat_war-death-penalty-abolition-date-wartime','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_exe-crime-executions','cri_fem_pro-crime-females-prosecuted','cri_fra-crime-frauds','cri_gun_own_gun_per_100_res_2007-guns-per-100-residents-2007','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_int_cou_of_jus_cur_com_ele_jud-justice-current-composition-elected-judge','cri_int_cou_of_jus_cur_com_jud_nam-current-composition-judge-s-name','cri_int_cou_of_jus_cur_com_jud_pos-current-composition-judge-s-position','cri_int_cou_of_jus_cur_com_ter_end-justice-current-composition-term-end','cri_int_org_in_eur_icc_cri_cou_39_mem_fro_eur-icc-criminal-court-39-members','cri_jai-crime-jails','cri_jud_and_mag-crime-judges-and-magistrates','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_lif_sen_ava-crime-life-sentence-available','cri_lif_sen_ava_und_age_of_18_or_21-available-under-age-18-21','cri_lif_sen_cri_tha_can_lea_to_lif_sen_at_jud_dis-can-lead-judge-s-discretion','cri_lif_sen_cri_tha_lea_to_man_lif_sen-life-sentence-crimes-lead-mandatory','cri_lif_sen_max_sen_len-crime-life-sentence-maximum-length','cri_lif_sen_mea_of_par_amn_oth_rel-means-pardon-amnesty-other-release','cri_lif_sen_min_to_ser_bef_eli_for_req_par-serve-before-eligibility-requesting-parole','cri_man-crime-manslaughters','cri_mur_rat-crime-murder-rate','cri_mur_rat_sou-crime-murder-rate-sources','cri_mur_percap-crime-murders-per-capita','cri_mur_per_100_peo-murders-per-100-000-people','cri_mur_who-crime-murders-who','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_per_of_saf_bur-crime-perception-of-safety-burglary','cri_per_of_saf_wal_in_dar-crime-perception-safety-walking-dark','cri_pol_per_cap-crime-police-per-capita','cri_pri_pop-crime-prison-population','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_rad_det_leg-crime-radar-detector-legality','cri_rad_det_leg_com-crime-radar-detector-legality-comment','cri_rap_rat-crime-rape-rate','cri_rap_vic-crime-rape-victims','cri_rap-crime-rapes','cri_rep_to_pol-crime-reporting-to-police','cri_rob_vic-crime-robbery-victims','cri_sen_len-crime-sentence-length','cri_ser_ass-crime-serious-assaults','cri_smu_of_mig_num_pro-crime-smuggling-migrants-number-prosecuted','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_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 *','Annual Terrorism Fatalities *','Annual Terrorism Incidents *','Assault victims *','Believe in police efficiency *','Bribe payers index *','Bribery victims *','Capital punishment > Number executed *','Car thefts *','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 > Method','Death penalty > Abolition > Year of last use (wartime)','Death penalty > Abolition > Year of last use > Peacetime *','Death penalty > Abolition date *','Death penalty > Abolition date > peacetime *','Death penalty > Abolition date > wartime','Death penalty > Abolition for ordinary crimes *','Death penalty > Last executed *','Drug offences *','Embezzlements *','Executions *','Females prosecuted *','Frauds *','Gun ownership > Guns per 100 residents > 2007 *','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','International Court of Justice > Current composition > Elected judge *','International Court of Justice > Current composition > Judge\'s name','International Court of Justice > Current composition > Judge\'s position','International Court of Justice > Current composition > Term End','International organisations in Europe > ICC(International Criminal Court 39 members from Europe)','Jails *','Judges and Magistrates *','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','Life sentence > Available','Life sentence > Available under age of 18 (or 21)','Life sentence > Crimes that can lead to life sentence at judge\'s discretion','Life sentence > Crimes that lead to mandatory life sentence','Life sentence > Maximum sentence length','Life sentence > Means of pardon, amnesty, other release','Life sentence > Minimum to serve before eligibility for requesting parole','Manslaughters *','Murder rate','Murder rate > Sources','Murders (per capita) *','Murders > per 100,000 people *','Murders > WHO *','Murders committed by youths *','Murders committed by youths per capita *','Murders with firearms *','Perception of safety > Burglary *','Perception of safety > Walking in dark *','Police per capita *','Prison population *','Prisoners *','Prisoners > Female *','Prisoners > Foreign prisoners *','Prisoners > Per capita *','Prisoners > Pre-trial detainees *','Prisoners > Share of prison capacity filled *','Property crime victims *','Radar detector > Legality','Radar detector > Legality > Comment','Rape rate *','Rape victims *','Rapes *','Reporting to police *','Robbery victims *','Sentence Length *','Serious assaults *','Smuggling of migrants > Number prosecuted *','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 *','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_2_cen_eur_coi_rev_com_sid_ima-coins-reverse-common-side-image','cur_2_eur_coi_obv_nat_sid_ima-coins-obverse-national-sides-image','cur_5_cen_eur_coi_rev_com_sid_ima-coins-reverse-common-side-image','cur_50_cen_eur_coi_obv_nat_sid_ima-coins-obverse-national-sides-image','cur_cur-currency','cur_dec_alt_con_fac_lcu_per_us-conversion-factor-lcu-per-us','cur_eur_eco_com_mem-currency-european-economic-community-members','cur_exc_rat_to_eur-currency-exchange-rate-to-euro','cur_exc_rat_to_kuw_din-currency-exchange-rate-kuwaiti-dinars','cur_exc_rat_to_us_dol-currency-exchange-rate-us-dollars','cur_for_exc_res-currency-foreign-exchange-reserves','cur_for_exc_res_usd-currency-foreign-exchange-reserves-usd','cur_hig_val_coi-currency-highest-valued-coin','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_hig_cur_uni_hig_cur_uni_cod-highest-valued-unit-units-code','cur_iso_cod-currency-iso-code','cur_lar_den_bil_ban-currency-largest-denomination-bill-banknote','cur_lea_val_cur_uni_abb-currency-least-valued-unit-abbreviation','cur_lea_val_cur_uni_exc_rat_to_1_eur-unit-exchange-rate-1-euro','cur_lea_val_cur_uni_exc_rat_to_1_us_dol-exchange-rate-1-us-dollar','cur_new_cur_ado_aft_uss_con_rat_fro_rub-after-ussr-conversion-rate-ruble','cur_new_cur_ado_aft_uss_new_cur_nam-new-adoption-after-ussr-name','cur_new_cur_ado_aft_uss_rub_zon_lea_dat-ussr-ruble-zone-leaving-date','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_pri_and_int_rat_con_pri_ind_cpi_cpi_all_ite-price-indices-cpi-all-items','cur_pri_and_int_rat_con_pri_ind_cpi_cpi_ene-consumer-price-indices-cpi-energy','cur_pri_and_int_rat_con_pri_ind_cpi_cpi_foo-consumer-price-indices-cpi-food','cur_pri_and_int_rat_lon_int_rat_lon_int_rat-prices-interest-rates-long-term','cur_pri_and_int_rat_pro_pri_ind_ppi_ppi_man-producer-price-indices-ppi-manufacturing','cur_pur_pow_and_exc_rat_eff_exc_rat_nom_eff_exc_ra-power-exchange-rates-effective-nominal','cur_pur_pow_and_exc_rat_eff_exc_rat_rel_con_pri_in-effective-relative-consumer-price-indices','cur_pur_pow_and_exc_rat_eff_exc_rat_rel_uni_lab_co-relative-unit-labour-costs-manufacturing','cur_pur_pow_and_exc_rat_rat_of_con_exc_rat-purchasing-power-exchange-rates-conversion','cur_pur_pow_and_exc_rat_rat_of_con_ind_of_pri_lev-rates-conversion-indices-price-levels','cur_pur_pow_and_exc_rat_rat_of_con_pur_pow_par-power-exchange-rates-conversion-parities','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','2 cent euro coins > Reverse (common) side > Image','2 euro coins > Obverse (national) sides > Image[2]','5 cent euro coins > Reverse (common) side > Image','50 cent euro coins > Obverse (national) sides > Image','Currency','DEC alternative conversion factor > LCU per US$','European Economic Community > Members','Exchange rate to Euro','Exchange rate to Kuwaiti dinars','Exchange rate to US dollars','Foreign exchange reserves','Foreign exchange reserves > USD','Highest valued coin','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','Highest-valued currency unit > highest-valued currency units > Code','ISO code','Largest denomination bill (banknote) *','Least valued currency unit > Abbreviation','Least valued currency unit > Exchange rate to 1 Euro *','Least valued currency unit > Exchange rate to 1 US dollar *','New currency adoption after USSR > Conversion rate > from ruble','New currency adoption after USSR > New currency name','New currency adoption after USSR > Ruble zone leaving date','Official exchange rate > LCU per US$, period average','PPP conversion factor to official exchange rate ratio *','Prices and interest rates > Consumer Price Indices (CPI) > CPI: all items','Prices and interest rates > Consumer Price Indices (CPI) > CPI: energy','Prices and interest rates > Consumer Price Indices (CPI) > CPI: food','Prices and interest rates > Long-term interest rates > Long-term interest rates *','Prices and interest rates > Producer Price Indices (PPI) > PPI: manufacturing','Purchasing power and exchange rates > Effective exchange rates > Nominal effective exchange rates','Purchasing power and exchange rates > Effective exchange rates > Relative consumer price indices','Purchasing power and exchange rates > Effective exchange rates > Relative unit labour costs in manufacturing','Purchasing power and exchange rates > Rates of conversion > Exchange rates *','Purchasing power and exchange rates > Rates of conversion > Indices of price levels','Purchasing power and exchange rates > Rates of conversion > Purchasing power parities *','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_201_mid_eas_and_nor_afr_pro_out-east-north-africa-protests-outcome','dem_201_mid_eas_and_nor_afr_pro_typ_of_pro-north-africa-protests-type-s','dem_201_mid_eas_and_nor_afr_pro_dea-east-north-africa-protests-deaths','dem_bac-democracy-background','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_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_sec_bal_dat_of_int-democracy-secret-ballot-date-introduction','dem_vot_cou_tec-democracy-vote-counting-technology','dem-more');
      var wss = new Array('Select Democracy Stat','2010-2011 Middle East and North Africa protests   > Outcome','2010-2011 Middle East and North Africa protests   > Type(s) of protests','2010-2011 Middle East and North Africa protests  > Deaths','Background','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 *','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 *','Secret ballot > Date of introduction','Vote counting technology','... more Democracy Stats');
      break;
    case 'Disasters':
      var ids = new Array('','dis_2004_box_day_tsu_don-2004-boxing-day-tsunami-donations','dis_2004_box_day_tsu_tot_ple_amo-day-tsunami-total-pledged-amounts','dis_cen_eme_res_fun_con_ple-emergency-response-fund-contributors-pledged','dis_cyc_sid_int_res_des-cyclone-sidr-international-response-description','dis_cyc_sid_int_res_don_usd-sidr-international-response-donations-usd','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_eme_aid-funds-committed-emergency-tsunami-aid','dis_fun_com_to_eme_aid_pergdp-emergency-tsunami-aid-per-gdp','dis_hum_res_to_the_2004_ind_oce_ear_amo_as_per_of_gdp_2003_or_ear_usd_bil-amounts-percentages-gdp-2003-earlier','dis_hum_res_to_the_2004_ind_oce_ear_don_gov-indian-ocean-earthquake-donors-government','dis_hum_res_to_the_2004_ind_oce_ear_ple_amo_aid_by_gov_us_mil-amounts-aid-government-us-milli','dis_hum_res_to_the_2004_ind_oce_ear_ple_amo_as_per_of_gdp_aid_tot_us_mil-pledged-amounts-percentages-gdp-aid','dis_hum_res_to_the_2004_ind_oce_ear_ple_amo_as_per_of_gdp_gdp_2003_or_ear_usd_bi-pledged-amounts-percentages-gdp-200','dis_hum_res_to_the_2004_ind_oce_ear_ple_amo_on_a_per_cap_bas_aid_by_gov_usd_mil-per-capita-basis-aid-g','dis_hur_all_car_isl_dea_and_dam_dam_usd-caribbean-islands-deaths-damage-usd','dis_hur_all_car_isl_dea_and_dam_tot_dea-caribbean-islands-deaths-damage-total','dis_hur_dea_imp_dea_and_dam_dam_usd-dean-impact-deaths-damage-usd','dis_hur_dea_imp_dea_and_dam_dir_dea-dean-impact-deaths-damage-direct','dis_hur_dea_imp_dea_and_dam_tot_dea-dean-impact-deaths-damage-total','dis_hur_gil_imp_imp_dam-disasters-hurricane-gilbert-impact-damage','dis_hur_gil_imp_imp_dea-disasters-hurricane-gilbert-impact-deaths','dis_hur_iva_imp_dea_and_dam_dam_2004_usd-impact-deaths-damage-2004-usd','dis_hur_iva_imp_dea_and_dam_dir_dea-ivan-impact-deaths-damage-direct','dis_hur_iva_imp_dea_and_dam_tot_dea-ivan-impact-deaths-damage-total','dis_hur_kat_int_aid_res-hurricane-katrina-international-aid-response','dis_sto_dea_2009-disasters-storm-deaths-2009','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_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_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_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-more');
      var wss = new Array('Select Disasters Stat','2004 Boxing day tsunami > donations','2004 Boxing day tsunami > Total pledged amounts','Central Emergency Response Fund > Contributors > Pledged *','Cyclone Sidr > International response > Description','Cyclone Sidr > International response > Donations > USD *','Funds commited to Tsunami aid *','Funds commited to Tsunami aid (per $ GDP) *','Funds committed to emergency Tsunami aid *','Funds committed to emergency Tsunami aid (per $ GDP) *','Humanitarian response to the 2004 Indian Ocean earthquake > Amounts as percentages of GDP (2003 or earlier)  *','Humanitarian response to the 2004 Indian Ocean earthquake > donors > Government','Humanitarian response to the 2004 Indian Ocean earthquake > Pledged amounts > Aid by government > (US$ milli','Humanitarian response to the 2004 Indian Ocean earthquake > Pledged amounts as percentages of GDP >  Aid (to','Humanitarian response to the 2004 Indian Ocean earthquake > Pledged amounts as percentages of GDP > GDP (200 *','Humanitarian response to the 2004 Indian Ocean earthquake > Pledged amounts on a per capita basis > Aid by g *','Hurricane Allen > Caribbean islands > Deaths and damage > Damage > (USD)','Hurricane Allen > Caribbean islands > Deaths and damage > Total > deaths *','Hurricane Dean > Impact > Deaths and damage > Damage > (USD)','Hurricane Dean > Impact > Deaths and damage > Direct > deaths *','Hurricane Dean > Impact > Deaths and damage > Total > deaths *','Hurricane Gilbert > Impact > Impact > Damage','Hurricane Gilbert > Impact > Impact > Deaths','Hurricane Ivan > Impact > Deaths and damage > Damage > (2004 USD)','Hurricane Ivan > Impact > Deaths and damage > Direct > deaths','Hurricane Ivan > Impact > Deaths and damage > Total > deaths','Hurricane Katrina > International aid response','Storm deaths > 2009 *','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 by NGOs and public *','Tsunami > Funds pledged by NGOs and public (per $ GDP) *','Tsunami > International aid packages','Tsunami > Total aid package *','Tsunami > Total aid package (per $ GDP) *','Tsunami aid commitments as a percent of pledges *','Tsunami aid recipients *','Tsunami aid recipients (per $ GDP) *','... more Disasters Stats');
      break;
    case 'Economy':
      var ids = new Array('','eco_afr_cou_by_gdp_per_cap_gdp_per_cap-african-countries-gdp-per-capita','eco_aid_as_of_gdp-economy-aid-as-of-gdp','eco_asi_cou_by_gdp_per_cap_gdp_per_cap-asian-countries-gdp-per-capita','eco_ban_cap_to_ass_rat-economy-bank-capital-assets-ratio','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_bus_eff-economy-business-efficiency','eco_cas_sur_of_gdp-economy-cash-surplus-deficit-gdp','eco_cen_ban-economy-central-bank','eco_cen_gov_deb_tot_of_gdp-central-government-debt-total-gdp','eco_cer_iso_com-economy-certified-iso-companies','eco_cha_in_net_res_bop_cur_us_pergdp-bop-current-us-per-gdp','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_com_pri_lev-economy-comparative-price-levels','eco_con_pri_ind-economy-consumer-price-index','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_ser-economy-debt-service','eco_dep_int_rat-economy-deposit-interest-rate','eco_eco_aid_don-economy-economic-aid-donor','eco_eco_aid_rec-economy-economic-aid-recipient','eco_eco_fre-economy-economic-freedom','eco_eco_imp-economy-economic-importance','eco_exp_goo_and_ser-economy-exports-goods-and-services','eco_exp_hig_tec-economy-exports-high-technology','eco_exp_man-economy-exports-manufactured','eco_exp_pri-economy-exports-primary','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_ppp-economy-gdp-ppp','eco_gdp_def-economy-gdp-deflator','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_goo_imp_bop_cur_us-goods-imports-bop-current-us','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_con_lcu-gross-national-income-constant-lcu','eco_gro_com_sco-economy-growth-competitiveness-score','eco_hou_fin_con_exp_etc_con_2000_us-expenditure-etc-constant-2000-us','eco_hum_dev_ind-economy-human-development-index','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_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_inc_equ_un_gin_ind-income-equality-un-gini-index','eco_inc_rec_bop_cur_us-income-receipts-bop-current-us','eco_inf_dur_200_200-economy-inflation-duration-2000-2003','eco_inf_con_pri_ann-economy-inflation-consumer-prices-annual','eco_inf_gdp_def_ann-economy-inflation-gdp-deflator-annual','eco_inf_eco-economy-informal','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_mar_cap_of_lis_com_cur_us-capitalization-listed-companies-current-us','eco_mon_and_qua_mon_m2_cur_lcu-money-quasi-m2-current-lcu','eco_net_bar_ter_of_tra-economy-net-barter-terms-trade','eco_net_for_inv-economy-net-foreign-investment','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_und_1_a_day-economy-population-under-1-day','eco_pop_und_11_a_day-economy-population-under-11-day','eco_pop_und_2_a_day-economy-population-under-2-day','eco_pop_und_4_a_day-economy-population-under-4-day','eco_pov_sha_of_all_poo_peo-poverty-share-all-poor-people','eco_pov_hea_rat_at_nat_pov_lin_of_pop-headcount-ratio-national-line-population','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_cur_us-etc-value-added-current-us','eco_sto_exc-economy-stock-exchange','eco_tec_ach-economy-technological-achievement','eco_tec_ind-economy-technology-index','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_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_tou_arr_by_reg_of_ori_sou_asi-arrivals-region-origin-southern-asia','eco_tra_bal_wit_us-economy-trade-balance-with-us','eco_tra_wit_us_us_exp_of_tex_sew_mac-us-exports-textile-sewing-machines','eco_wor_tra_exp_pas_car_etc-trade-exports-passenger-cars-etc','eco_wor_tra_imp_mec_tra_equ-trade-imports-mech-transmission-equipment','eco_wor_tra_imp_spe_tra_nes-trade-imports-special-transactions-nes','eco-more');
      var wss = new Array('Select Economy Stat','African countries by GDP per capita > GDP Per Capita *','Aid as % of GDP *','Asian countries by GDP per capita > GDP Per capita *','Bank capital to assets ratio > % *','Bank liquid reserves to bank assets ratio *','Big Mac Index *','Big Mac Index (per $ GDP) *','Business efficiency *','Cash surplus/deficit > % of GDP *','Central bank','Central government debt, total > % of GDP *','Certified ISO companies *','Changes in net reserves > BoP, current US$ (per $ GDP) *','Child poverty *','Claims on private sector > annual growth as % of M2 *','Commitment to foreign aid *','Comparative price levels *','Consumer price index *','Current transfers, receipts > BoP, current US$ *','Current transfers, receipts > BoP, current US$ (per $ GDP) *','Debt service *','Deposit interest rate > % *','Economic aid > Donor *','Economic aid > Recipient *','Economic freedom *','Economic importance *','Exports > Goods and services *','Exports > High technology *','Exports > Manufactured *','Exports > Primary *','Exports to US *','Foreign direct investment, net > BoP, current US$ *','Foreign investment *','GDP > PPP *','GDP deflator *','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 $ *','Goods imports > BoP, current US$ *','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 > constant LCU','Growth competitiveness score *','Household final consumption expenditure, etc. > constant 2000 US$ *','Human Development Index *','Imports > Goods and services *','Imports of goods and services > BoP, current US$ *','Imports of goods and services > current US$ (per $ GDP) *','Imports of goods, services and income > BoP, current US$ *','Income category','Income distribution > Poorest 10% *','Income distribution > Richest 10% *','Income distribution > Richest 20% *','income equality > UN Gini index *','Income receipts > BoP, current US$ *','Inflation > Duration 2000-2003','Inflation, consumer prices > annual % *','Inflation, GDP deflator > annual % *','Informal economy *','Innovation *','International tourism, number of arrivals *','International tourism, number of departures *','Market capitalization of listed companies > current US$ *','Money and quasi money > M2 > current LCU','Net barter terms of trade *','Net foreign investment *','Overall productivity > PPP *','Patents granted *','Population below median income *','Population under $1 a day *','Population under $11 a day *','Population under $2 a day *','Population under $4 a day *','Poverty > Share of all poor people *','Poverty headcount ratio at national poverty line > % of population *','Research and development spending *','Services, etc., value added > constant 2000 US$ *','Services, etc., value added > current US$ *','Stock exchange','Technological achievement *','Technology index *','Total reserves minus gold > current US$ *','Total reserves minus gold > current US$ (per $ GDP) *','Tourist arrivals by region of origin > Africa *','Tourist arrivals by region of origin > Europe *','Tourist arrivals by region of origin > Southern Asia *','Trade balance with US *','Trade with US > US exports of textile, sewing machines *','World Trade > Exports > Passenger cars etc *','World Trade > Imports > Mech transmission equipment *','World Trade > Imports > Special transactions nes *','... 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_enr_rat_net_pri_lev-enrolment-ratio-net-primary-level','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_exp_per_stu_pri_of_gdp_per_cap-per-student-primary-gdp-capita','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_men-rates-sex-aged-15-men','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_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_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_18_yea_old_in_sec_edu-proportion-18-year-olds-secondary','edu_pro_of_18_yea_old_in_ter_edu-proportion-18-year-olds-tertiary','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_pup-education-secondary-pupils','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_pri_sch_stu_pergdp-per-primary-school-student-gdp','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_mor_tha_25_boo_age_9-than-25-books-age-9','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_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_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 enrolment ratio, net, primary 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 *','Expenditure per student, primary > % of GDP per capita *','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+ > Men *','Illiteracy rates by sex, aged 15+ > Women *','Illiterate population by sex, aged 15+ > Women *','Library books *','Literacy > Adults at high literacy level *','Literacy > Adults at low literacy level *','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 18 year olds in secondary education *','Proportion of 18 year olds in tertiary 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, pupils *','Share of university qualifications awarded to females > First degree *','Spending on teaching materials *','Spending per primary school student *','Spending per primary school student (per $ GDP) *','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 more than 25 books > Age 9 *','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 200 *','Universities > Top 50 (per $ GDP) *','Universities > Top 500 *','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_mil_ton_oil_equ-consumption-million-tonnes-oil-equivalent','ene_coa_con_mil_ton_oil_equ_pergdp-tonnes-oil-equivalent-per-gdp','ene_coa_pro_mil_ton-energy-coal-production-million-tonnes','ene_coa_pro_mil_ton_oil_equ-production-million-tonnes-oil-equivalent','ene_coa_pro_res_ant_and_bit-coal-proved-reserves-anthracite-bituminous','ene_coa_pro_res_sha_of_tot-coal-proved-reserves-share-total','ene_coa_pro_res_tot-energy-coal-proved-reserves-total','ene_com_ren_and_was_of_tot_ene-energy-combustible-renewables-waste-total','ene_com_ene_use-energy-commercial-use','ene_dir_on_ele_pro_fro_ren_ene_sou_nat_tar_in_1997-renewable-sources-national-targets-1997','ene_ele_gen_abi-energy-electric-generation-ability','ene_ele_pow_con_kwh-energy-electric-power-consumption-kwh','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_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_gen_ter_hou-energy-electricity-generation-terawatt-hours','ene_ele_pro_fro_coa_sou_of_tot-electricity-production-coal-sources-total','ene_ele_pro_fro_coa_sou_kwh-electricity-production-coal-sources-kwh','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_ele_pro_fro_nat_gas_sou_of_tot-production-natural-gas-sources-total','ene_ele_pro_fro_nuc_sou_of_tot-electricity-production-nuclear-sources-total','ene_ele_pro_fro_nuc_sou_kwh-electricity-production-nuclear-sources-kwh','ene_ele_pro_fro_oil_sou_of_tot-electricity-production-oil-sources-total','ene_ele_pro_fro_oil_sou_kwh-electricity-production-oil-sources-kwh','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_mil_ton_oil_equ-consumption-million-tonnes-oil-equivalent','ene_hyd_con_mil_ton_oil_equ_pergdp-tonnes-oil-equivalent-per-gdp','ene_hyd_con_ter_hou-energy-hydroelectricity-consumption-terawatt-hours','ene_hyd_con_ter_hou_percap-consumption-terawatt-hours-per-capita','ene_hyd_con_in_196-energy-hydroelectricity-consumption-in-1965','ene_imp_kt_of_oil_equ-energy-imports-kt-oil-equivalent','ene_imp_net_of_ene_use-energy-imports-net-of-use','ene_inv_in_ene_wit_pri_par_cur_us-investment-private-participation-current-us','ene_inv_in_ene_wit_pri_par_cur_us_pergdp-participation-current-us-per-gdp','ene_inv_in_ene_wit_pri_par_cur_us_percap-participation-current-us-per-capita','ene_nat_gas_con_bil_cub_fee_per_day-billion-cubic-feet-per-day','ene_nat_gas_con_bil_cub_met-gas-consumption-billion-cubic-metres','ene_nat_gas_pro_bil_cub_fee_per_day-billion-cubic-feet-per-day','ene_nat_gas_pro_res_tri_cub_met-proved-reserves-trillion-cubic-metres','ene_nat_gas_res-energy-natural-gas-reserves','ene_nuc_con_mil_ton_oil_equ-consumption-million-tonnes-oil-equivalent','ene_nuc_con_ter_hou-energy-nuclear-consumption-terawatt-hours','ene_nuc_ele_gen-energy-nuclear-electricity-generation','ene_nuc_ene_con-energy-nuclear-consumption','ene_nuc_rea_ope-energy-nuclear-reactors-operable','ene_nuc_rea_ope_mwe-energy-nuclear-reactors-operable-mwe','ene_nuc_rea_pla-energy-nuclear-reactors-planned','ene_nuc_rea_und_con-energy-nuclear-reactors-under-construction','ene_nuc_rea_und_con_mwe-nuclear-reactors-under-construction-mwe','ene_nuc_rea_ura_req-energy-nuclear-reactors-uranium-required','ene_nuc_was_gen-energy-nuclear-waste-generated','ene_oil_con_mil_ton-energy-oil-consumption-million-tonnes','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_sha_of_tot-thousand-barrels-daily-share-total','ene_oil_con_tes_percap-oil-consumption-test-per-capita','ene_oil_con_tes_tes_pergdp-oil-consumption-test-per-gdp','ene_oil_exp_net-energy-oil-exports-net','ene_oil_imp_net-energy-oil-imports-net','ene_oil_pro_tho_bar_dai-oil-production-thousand-barrels-daily','ene_oil_pro_tho_bar_dai_sha_of_tot-thousand-barrels-daily-share-total','ene_oil_pro_in_197-energy-oil-production-in-1972','ene_oil_pro_in_198-energy-oil-production-in-1982','ene_oil_pro_in_199-energy-oil-production-in-1992','ene_oil_pro_res_tho_mil_bar-proved-reserves-thousand-million-barrels','ene_oil_pro_res_tho_mil_bar_sha_of_tot-thousand-million-barrels-share-total','ene_oil_ref_cap_tho_bar_dai-refinery-capacities-thousand-barrels-daily','ene_oil_ref_cap_tho_bar_dai_sha_of_tot-thousand-barrels-daily-share-total','ene_oil_ref_abi-energy-oil-refining-ability','ene_oil_res-energy-oil-reserves','ene_oil_res_oil_res_hig_est-energy-oil-reserves-highest-estimate','ene_oil_res_oil_res_low_est-energy-oil-reserves-lowest-estimate','ene_ope_abo_ope_ope_quo_and_pro_cap-opec-about-quotas-production-capacity','ene_pet_dem_dem_in_dol_bbl-petroeuro-demand-dollars-bbl-day','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_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 > Million tonnes oil equivalent *','Coal consumption > Million tonnes oil equivalent (per $ GDP) *','Coal Production > Million tonnes *','Coal Production > Million tonnes oil equivalent *','Coal Proved Reserves > Anthracite and bituminous *','Coal Proved Reserves > Share of total *','Coal Proved Reserves > Total *','Combustible renewables and waste > % of total energy *','Commercial energy use *','Directive on Electricity Production from Renewable Energy Sources > National targets > % in 1997','Electric generation ability *','Electric power consumption > kWh *','Electric power transmission and distribution losses > % of output *','Electric power transmission and distribution losses > million kWh *','Electrical outages > days *','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 Generation > Terawatt-hours *','Electricity production from coal sources > % of total *','Electricity production from coal sources > kwh *','Electricity production from hydroelectric sources > % of total *','Electricity production from hydroelectric sources > kwh *','Electricity production from natural gas sources > % of total *','Electricity production from nuclear sources > % of total *','Electricity production from nuclear sources > kwh *','Electricity production from oil sources > % of total *','Electricity production from oil sources > kwh *','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 > Million tonnes oil equivalent *','Hydroelectricity Consumption > Million tonnes oil equivalent (per $ GDP) *','Hydroelectricity Consumption > Terawatt-hours *','Hydroelectricity Consumption > Terawatt-hours (per capita) *','Hydroelectricity consumption in 1965 *','imports > kt of oil equivalent *','imports, net > % of energy use *','Investment in energy with private participation > current US$ *','Investment in energy with private participation > current US$ (per $ GDP) *','Investment in energy with private participation > current US$ (per capita) *','Natural Gas Consumption > Billion cubic feet per day *','Natural Gas Consumption > Billion cubic metres *','Natural Gas Production > Billion cubic feet per day *','Natural Gas Proved reserves > Trillion cubic metres *','Natural gas reserves *','Nuclear Consumption > Million tonnes oil equivalent *','Nuclear Consumption > Terawatt-hours *','Nuclear electricity generation *','Nuclear energy consumption *','Nuclear reactors operable *','Nuclear reactors operable > MWe *','Nuclear reactors planned *','Nuclear reactors under construction *','Nuclear reactors under construction > MWe *','Nuclear reactors uranium required *','Nuclear waste generated *','Oil Consumption > Million tonnes *','Oil Consumption > Million tonnes > Share of total *','Oil Consumption > Thousand barrels daily *','Oil Consumption > Thousand barrels daily > Share of total *','Oil Consumption Test (per capita) *','Oil Consumption Test Test (per $ GDP) *','Oil exports > Net *','Oil imports > Net *','Oil Production > Thousand barrels daily *','Oil Production > Thousand barrels daily > Share of total *','Oil production in 1972 *','Oil production in 1982 *','Oil production in 1992 *','Oil Proved reserves > Thousand million barrels *','Oil Proved reserves > Thousand million barrels > Share of total *','Oil Refinery capacities > Thousand barrels daily *','Oil Refinery capacities > Thousand barrels daily > Share of total *','Oil refining ability *','Oil reserves *','Oil reserves > Oil reserves > Highest estimate *','Oil reserves > Oil reserves > Lowest estimate *','OPEC > About OPEC > OPEC Quotas and Production  > Capacity *','Petroeuro > Demand > Demand in Dollars > bbl/day *','Primary Energy Consumption > Million tonnes oil equivalent *','Primary Energy Consumption > Million tonnes oil equivalent (per $ GDP) *','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_bio_ric-environment-biodiversity-richness','env_bio_res_are-environment-biosphere-reserves-area','env_bre_bir_thr-environment-breeding-birds-threatened','env_car_dio_emi_per_cap_per_tot-emissions-per-capita-percent-total','env_car_dio_emi_per_cap_tho_met_ton_tot-capita-thousand-metric-tons-total','env_car_eff-environment-carbon-efficiency','env_cfc_con-environment-cfc-consumption','env_co2_emi-environment-co2-emissions','env_co2_emi_kg_per_2000_ppp_of_gdp-kg-per-2000-ppp-gdp','env_co2_emi_kt-environment-co2-emissions-kt','env_cor_ree_are-environment-coral-reefs-area','env_cor_ree_are_pergdp-coral-reefs-area-per-gdp','env_cor_ree_sha-environment-coral-reefs-share','env_cpi_pol_and_ins_for_env_sus_rat-policy-institutions-environmental-sustainability-rating','env_eco_foo-environment-ecological-footprint','env_emi_oth_gre_gas_emi_hfc_pfc_and_sf6_tho_met_ton_of_co2_equ-thousand-metric-tons-co2-equivalent','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_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_kno_bre_bir_spe-environment-known-breeding-bird-species','env_kno_mam_spe-environment-known-mammal-species','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_kyo_pro_sig_sig_and_rat_for_rat-protocol-signatories-signed-ratified-ratification','env_kyo_pro_sig_sig_and_rat_dat-protocol-signatories-signed-ratified-date','env_kyo_pro_sig_sig_and_rat_rat-signatories-signed-ratified-ratification-acceptance','env_mar_are_und_pro-environment-marine-areas-under-protection','env_mar_fis_cat-environment-marine-fish-catch','env_mar_pro_are_int_eff_pla_of_act-area-international-efforts-plan-action','env_mun_was_gen-environment-municipal-waste-generation','env_mun_was_tre_exp-environment-municipal-waste-treatment-expenditure','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_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_sno_leo_pop_est-environment-snow-leopard-population-estimated','env_sno_leo_pop_hab_siz_km_squ-population-habitit-size-km-squared','env_so2_emi_per_pop_are-so2-emissions-per-populated-area','env_so2_exp-environment-so2-exports','env_str_hye_pop-environment-striped-hyena-population','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_wat_pol_met_ind_of_tot_bod_emi-metal-industry-total-bod-emissions','env_wat_pol_wat_pol_oth_ind_of_tot_bod_emi-other-industry-total-bod-emissions','env_wat_pol_wat_pol_pap_and_pul_ind_of_tot_bod_emi-pulp-industry-total-bod-emissions','env_wat_pol_wat_pol_tex_ind_of_tot_bod_emi-textile-industry-total-bod-emissions','env_wat_pol_wat_pol_woo_ind_of_tot_bod_emi-wood-industry-total-bod-emissions','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_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 *','Biodiversity richness *','Biosphere reserves area *','Breeding birds threatened *','Carbon dioxide emissions per capita > percent total *','Carbon dioxide emissions per capita > thousand metric tons, total *','Carbon efficiency *','CFC consumption *','CO2 Emissions *','CO2 emissions > kg per 2000 PPP $ of GDP *','CO2 emissions > kt *','Coral reefs > Area *','Coral reefs > Area (per $ GDP) *','Coral reefs > Share','CPIA policy and institutions for environmental sustainability rating *','Ecological footprint *','Emissions > Other greenhouse gas emissions, HFC, PFC and SF6 > thousand metric tons of CO2 equivalent *','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 *','Freshwater withdrawal *','Freshwater withdrawal > Agricultural *','Freshwater withdrawal > Domestic *','Freshwater withdrawal > Industrial *','Groundwater withdrawals *','Known breeding bird species *','Known mammal species *','Known reptile species *','Kyoto Protocol > Results to date > EU Assigned Objective > for 2012 *','Kyoto Protocol > Treaty Obligation 2008-2012 *','Kyoto Protocol signatories > Signed and ratified > % for ratification','Kyoto Protocol signatories > Signed and ratified > Date','Kyoto Protocol signatories > Signed and ratified > Ratification/Acceptance','Marine areas under protection *','Marine fish catch *','Marine Protected Area > International efforts > Plan of Action','Municipal waste generation *','Municipal waste treatment expenditure *','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 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. *','Snow leopard population > estimated','Snow leopard population > Habitit size > km squared *','SO2 emissions per populated area *','SO2 exports *','Striped Hyena > Population','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 > Water pollution, metal industry > % of total BOD emissions *','Water pollution > Water pollution, other industry > % of total BOD emissions *','Water pollution > Water pollution, paper and pulp industry > % of total BOD emissions *','Water pollution > Water pollution, textile industry > % of total BOD emissions *','Water pollution > Water pollution, wood industry > % of total BOD emissions *','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 *','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_alc_dri_sho_gla_vol_dou-drinks-shot-glass-volume-double','foo_alc_dri_sho_gla_vol_sin-drinks-shot-glass-volume-single','foo_alc_dri_sho_gla_vol_sma-drinks-shot-glass-volume-small','foo_bac-food-background','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_cof_con_per_cap-food-coffee-consumption-per-capita','foo_exp-food-exports','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_oli_oil_con_2005-food-olive-oil-consumption-2005','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_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 *','Alcoholic drinks > Shot glass volume > Double','Alcoholic drinks > Shot glass volume > Single','Alcoholic drinks > Shot glass volume > Small','Background','Beer consumption *','beverages and tobacco > % of value added in manufacturing *','Bottled water consumption *','Coffee consumption *','Coffee consumption per capita','Exports *','exports > % of merchandise exports *','Fruit juice consumption *','imports > % of merchandise imports *','McDonalds restaurants *','McDonalds restaurants (per $ GDP) *','Olive oil consumption > 2005 *','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 *','Tea consumption *','Total spirit consumption *','Wine consumption *','... more Food Stats');
      break;
    case 'Geography':
      var ids = new Array('','geo_agr_lan_of_lan_are-geography-agricultural-land-of-area','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_ave_rai_in_dep_mm_per_yea-rainfall-depth-mm-per-year','geo_bac-geography-background','geo_bor_of_bra_len_km-geography-borders-brazil-length-km','geo_bri_ove_ter_cur_ove_ter_are-british-overseas-territories-current-area','geo_sta_cap-geography-capital-city-with-population','geo_cap_reg_cap_reg_nam-geography-capital-region-name','geo_cap_and_lar_cit_cou_cit_lar_tha_the_cap-cities-countries-larger-than-capital','geo_cit_lar_tha_the_cap-geography-cities-larger-than-capital','geo_cli-geography-climate','geo_coa-geography-coastline','geo_com_gaz_of_ant_nam-geography-composite-gazetteer-antarctica-names','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_are_of_lan_are-geography-forest-area-of-land','geo_for_are_sq_km-geography-forest-area-sq-km','geo_for_lan-geography-forested-land','geo_fre_wit_per_cap-geography-freshwater-withdrawal-per-capita','geo_fre_wit_tot-geography-freshwater-withdrawal-total','geo_geo_coo-geography-geographic-coordinates','geo_geo_not-geography-note','geo_hig_poi_fee-geography-highest-point-feet','geo_hig_poi_met-geography-highest-point-metres','geo_hig_poi_nam-geography-highest-point-name','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-geography-land-boundaries','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_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_haz_vol-geography-natural-hazards-volcanism','geo_nat_res-geography-natural-resources','geo_new_sev_won_of_the_wor_oth_fin_won-wonders-world-other-finalists-wonder','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_tot_are_sq_km-geography-total-area-sq-km','geo_tot_ren_wat_res-geography-total-renewable-water-resources','geo-more');
      var wss = new Array('Select Geography Stat','Agricultural land > % of land area *','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) *','Average rainfall in depth > mm per year *','Background','Borders of Brazil > Length (km) *','British Overseas Territories > Current overseas territories > Area','Capital city with population','Capital region > Capital region name','capitals and largest cities > Countries > Cities larger than the capital','Cities larger than the capital','Climate','Coastline *','Composite Gazetteer of Antarctica > Names *','County > Overview > Number','County > Overview > Plural','County > Overview > Singular','Elevation extremes > highest point','Elevation extremes > lowest point','Europe > Area *','Forest area > % of land area *','Forest area > sq. km *','Forested Land *','Freshwater withdrawal > per capita','Freshwater withdrawal > total','Geographic coordinates','note','Highest point > feet *','Highest point > metres','Highest point > name','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','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 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 hazards > volcanism','Natural resources','New Seven Wonders of the World > Other finalists > Wonder','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','Total area > sq. km *','Total renewable water resources','... more Geography Stats');
      break;
    case 'Government':
      var ids = new Array('','gov_adm_div_a_not-government-administrative-divisions-a-note','gov_amb_fro_fin_cur_fin_amb_amb-ambassadors-finland-current-finnish-ambassador','gov_cap_cit-government-capital-city','gov_com_hea_of_gov_cur_hea_hea_of_gov-government-commonwealth-heads-current-head','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_cop_ref-government-copyright-reference','gov_cop_law_cop_dur-government-copyright-laws-duration','gov_cou_of_eu_2005_eur_par_of_lea-eu-2005-european-party-leader','gov_cou_of_eu_2006_eur_par_of_lea-eu-2006-european-party-leader','gov_cou_of_eu_2007_eur_par_of_lea-eu-2007-european-party-leader','gov_cou_det_cur_lea_who_ass_pow_via_cou_det_nam-assumed-power-via-coups-name','gov_cpi_equ_of_pub_res_use_rat-equity-public-resource-use-rating','gov_dat_of_tra_to_rep_sys_of_gov_rep_sin-transition-republican-system-republic-since','gov_dip_rel_wit_chi_est_dat-diplomatic-relations-china-establishment-date','gov_dip_rep_fro_the_us_fax-government-diplomatic-representation-us-fax','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_fax-government-diplomatic-representation-us-fax','gov_dip_rep_in_the_us_tel-government-diplomatic-representation-us-telephone','gov_ele_hea_of_sta-government-elections-head-of-state','gov_emb_and_hig_com_in_ott_add-embassies-high-commissions-ottawa-address','gov_emb_and_hig_com_in_ott_nei-embassies-high-commissions-ottawa-neighbourhood','gov_eur_cou_cur_com_of_the_eur_cou_tit-european-council-current-composition-title','gov_exe_bra_a_not-government-executive-branch-a-note','gov_fed_rep_con_sty-government-federal-republic-contemporary-style','gov_fij_dip_mis_for_mis_res_in_fij_hea_of_mis-foreign-resident-fiji-head-mission','gov_fla_mod-government-flag-modification','gov_for_rel_cro_dat_of_est-foreign-relations-croatia-date-establishment','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_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_bic-constitution-international-comparisons-strongly-bicameral','gov_how_dem_is_the_ame_con_int_com_str-american-constitution-international-comparisons-structure','gov_ind_day_dat-government-independence-day-date','gov_key_min_agr-government-key-ministers-agriculture','gov_key_min_cul-government-key-ministers-culture','gov_key_min_def-government-key-ministers-defence','gov_key_min_edu-government-key-ministers-education','gov_key_min_env-government-key-ministers-environment','gov_key_min_fin-government-key-ministers-finance','gov_key_min_for_aff-government-key-ministers-foreign-affairs','gov_key_min_hea-government-key-ministers-health','gov_key_min_lab-government-key-ministers-labour','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_law_aga_hol_den_pen_for_vio_min-holocaust-denial-penalties-violation-minimum','gov_leg_ori-government-legal-origin','gov_leg_sys_com_law_bas-legal-systems-common-law-base','gov_leg_bra_a_not-government-legislative-branch-a-note','gov_man_tim_dea_wit_off_of_man_tim-government-management-time-dealing-officials','gov_mem_of_ase_ase_mem_sta_cap-members-asean-member-states-capital','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_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_par_in_the_cou_of_the_eur_uni_lea_vot-council-european-union-leaders-votes','gov_pat_tre_agr_on_tra_asp_of_int_pro_rig_acc_dat-intellectual-property-rights-accession-date','gov_pat_tre_bud_mic_rec_acc_dat-budapest-microorganism-recognition-accession-date','gov_pat_tre_par_con_for_the_pro_of_ind_pro_acc_dat-protection-industrial-property-accession-date','gov_pat_tre_pat_coo_tre_acc_dat-treaties-cooporation-treaty-accession-date','gov_pat_tre_pat_law_tre_acc_dat-treaties-law-treaty-accession-date','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_a_not-government-political-parties-leaders-note','gov_pos_sta_pol_pro_gov_and_tax_ave-states-political-problems-tax-average','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_cro-government-stabilisation-association-process-croatia','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_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_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 > A note','Ambassadors from Finland > Current Finnish Ambassadors > Ambassador','Capital city','Commonwealth Heads of Current Heads > Head of Government','Constitutional monarchy > current constitutional monarchies > Last constitution established','Constitutional monarchy > current constitutional monarchies > Monarch selected by','Constitutional monarchy > current constitutional monarchies > Type of monarchy','Copyright > Reference','Copyright laws > Copyright duration','Council of EU, 2005 > European party of leader','Council of EU, 2006 > European party of leader','Council of EU, 2007 > European party of leader','Coup d\'etat > Current leaders who assumed power via coups d\'etat > Name','CPIA equity of public resource use rating *','date of transition to republican system of government > Republic since','Diplomatic relations with China > Establishment date','Diplomatic representation from the US > FAX','Diplomatic representation in the US > Consulate(s)','Diplomatic representation in the US > Consulate(s) general','Diplomatic representation in the US > FAX','Diplomatic representation in the US > Telephone','Elections > Head of state','embassies and high commissions in Ottawa > Address','embassies and high commissions in Ottawa > Neighbourhood','European Council > Current composition of the European Council > Title','Executive branch > A note','Federal republic > Contemporary > Style','Fijian diplomatic missions > Foreign missions resident in Fiji > Head of Mission','Flag modification *','Foreign relations > Croatia > Date of Establishment','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) *','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 > Strongly bicameral?','How Democratic Is the American Constitution? > International comparisons > Structure','Independence Day > Date','Key ministers > Agriculture','Key ministers > Culture','Key ministers > Defence','Key ministers > Education','Key ministers > Environment','Key ministers > Finance','Key ministers > Foreign affairs','Key ministers > Health','Key ministers > Labour','Kuala Lumpur embassies > Neighborhood','Laws against Holocaust denial > Penalties for violation > Maximum','Laws against Holocaust denial > Penalties for violation > Minimum','Legal origin','Legal systems > Common law base','Legislative branch > A note','Management time dealing with officials > % of management time *','members of ASEAN > ASEAN member states > Capital','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','Parliamentary seats > Female *','Parties in the Council of the European Union > leaders > European > party','Parties in the Council of the European Union > leaders > Votes *','Patent treaties > Agreement on Trade-Related Aspects of Intellectual Property Rights > Accession date','Patent treaties > Budapest microorganism recognition > Accession date','Patent treaties > Paris Convention for the Protection of Industrial Property > Accession date','Patent treaties > Patent Cooporation Treaty > Accession date','Patent treaties > Patent Law Treaty > Accession date','political parties > Dominant party','political parties > Multi party','political parties > Two party','Political parties and leaders > A note','Post-Soviet states > Political problems > Government and Tax > Average *','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 > Croatia','Stabilisation and Association process > Stabilisation and Association process > Republic of > Macedonia','Start-up procedures to register a business > number *','Status','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 *','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_of_pop_usi_ade_san_fac_tot-using-adequate-sanitation-facilities-total','hea_abo-health-abortions','hea_acc_to_san-health-access-to-sanitation','hea_age_of_wom_at_fir_chi-health-age-women-first-childbirth','hea_bir_flu_h5n_con_hum_dea-flu-h5n1-confirmed-human-deaths','hea_bir_rat_cru_per_1000_peo-crude-per-1-000-people','hea_bir_low_bir_wei-health-births-low-birth-weight','hea_bir_att_by_ski_hea_sta_of_tot-births-attended-skilled-staff-total','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_dur_of_hos-health-duration-of-hospitalisation','hea_exp_per_cap_cur_us-expenditure-per-capita-current-us','hea_exp_pri_of_gdp-health-expenditure-private-of-gdp','hea_exp_pub_of_gdp-health-expenditure-public-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_gro_in_hea_exp_per_ann-health-growth-expenditure-per-annum','hea_hea_car_fun_pri_per_cap-care-funding-private-per-capita','hea_hea_car_fun_pub_per_cap-care-funding-public-per-capita','hea_hea_car_fun_tot_per_cap-care-funding-total-per-capita','hea_hea_dis_dea-health-heart-disease-deaths','hea_hos_bed-health-hospital-beds','hea_hos_bed_per_1000_peo-beds-per-1-000-people','hea_imp_wat_sou_of_pop_wit_acc-improved-water-source-population-access','hea_inc_of_tub_per_100_peo-tuberculosis-per-100-000-people','hea_inf_mor_rat-health-infant-mortality-rate','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_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_mal_pre_hei_for_age_of_chi_und_5-height-age-children-under-5','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_out_of_poc_exp_as_of_pri_hea_exp-health-out-pocket-expenditure-private','hea_per_cap_gov_exp_on_hea_in_int_dol-capita-government-expenditure-international-dollars','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_pra_phy-health-practising-physicians','hea_pre_of_hiv_tot_of_pop_age_1549-total-population-ages-15-49','hea_pre_of_und_of_pop-health-prevalence-of-undernourishment-population','hea_pri_exp_on_hea_as_of_tot_exp_on_hea-health-private-expenditure-total','hea_pro_of_dyi_bef_5_fem-probability-dying-before-5-females','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_gen_rat-health-suicide-rate-gender-ratio','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_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','% of population using adequate sanitation facilities > Total *','Abortions *','Access to sanitation *','Age of women at first childbirth *','Bird Flu (H5N1) > Confirmed human deaths *','Birth rate, crude > per 1,000 people *','Births > Low birth weight *','Births attended by skilled health staff > % of total *','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 *','Duration of hospitalisation *','expenditure per capita > current US$ *','expenditure, private > % of GDP *','expenditure, public > % of GDP *','expenditure, total > % of GDP *','Fertility rate, total > births per woman *','Growth in health expenditure > Per annum *','Health care funding > Private per capita *','Health care funding > Public per capita *','Health care funding > Total per capita *','Heart disease deaths *','Hospital beds *','Hospital beds > per 1,000 people *','Improved water source > % of population with access *','Incidence of tuberculosis > per 100,000 people *','Infant mortality rate *','Intestinal diseases death rate *','life expectancy > Date of information','Life expectancy > Healthy years *','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 *','Malnutrition prevalence, height for age > % of children under 5 *','Maternal mortality *','Motor vehicle deaths *','Nurses *','Obesity *','Obesity in men *','Obesity in women *','Out-of-pocket expenditure as % of private health expenditure *','Per capita government expenditure on health in international dollars *','Per capita total expenditure on health in international dollars *','Percentage of life lived in ill health > Female *','Physicians > per 1,000 people *','Practising physicians *','Prevalence of HIV, total > % of population ages 15-49 *','Prevalence of undernourishment > % of population *','Private expenditure on health as % of total expenditure on health *','Probability of dying before 5 > Females *','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 > Gender ratio *','Suicide rate > Middle aged *','Suicide rate > Young females *','Suicide rate > Young males *','Teen birth rate *','Teenage pregnancy *','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_cur_cod_ent-3166-2-current-codes-entry','ide_iso_316-3166-2-2004-03-08','ide_iso_316_sub_inc_in_iso_316_alp_cod-subdivisions-included-1-alpha-code','ide_iso_316_sub_inc_in_iso_316_cod-fr-subdivisions-included-1-code','ide_iso_316_sub_inc_in_iso_316_iso_316_cod-fr-subdivisions-included-1-codes','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 > Current codes > Entry','ISO 3166-2:2004-03-08','ISO 3166-2:FR > Subdivisions included in ISO 3166-1 > Alpha-2 code','ISO 3166-2:FR > Subdivisions included in ISO 3166-1 > Code','ISO 3166-2:FR > Subdivisions included in ISO 3166-1 > ISO 3166-2 codes','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_198-immigration-asylum-seekers-1980-89','imm_asy_see_198_pergdp-seekers-1980-89-per-gdp','imm_asy_see_199-immigration-asylum-seekers-1990-99','imm_asy_see_199_pergdp-seekers-1990-99-per-gdp','imm_asy_see_acc_rat_198-seekers-acceptance-rates-1980-89','imm_asy_see_acc_rat-seekers-acceptance-rates-1990-99','imm_bac-immigration-background','imm_che_dia_geo_che_dia_per_cou_cen_of_che_pop-geography-per-country-centres-population','imm_che_dia_geo_che_dia_per_cou_pop_of_che_est_mos_rel_bol_use_for_sor-country-population-chechens-current-estimates','imm_com_to_dev_ind_mig-immigration-commitment-development-index-migration','imm_com_to_dev_ind_ove-immigration-commitment-development-index-overall','imm_dem_of_new_and_lab_sou_of_mig-demographics-newfoundland-labrador-sources-migrants','imm_dem_of_nov_sco_imm_sou_of_mig-demographics-nova-scotia-sources-migrants','imm_emi_rat_of_ter_edu_of_tot_ter_edu_pop-rate-tertiary-educated-total-population','imm_eur_uni_agr_sch_tre-european-union-agreements-schengen-treaty','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_out-immigration-foreign-population-outflow','imm_for_pop_out_pergdp-foreign-population-outflow-per-gdp','imm_for_wor_sal-immigration-foreign-worker-salaries','imm_for_wor_sal_of_gdp-immigration-foreign-worker-salaries-gdp','imm_hau_pop_tho-immigration-hausa-population-thousands','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_aus_cou_of_bir_of_aus_res_est_res_pop-australian-residents-estimated-resident-population','imm_imm_to_spa_fro_oth_cou_asi_cha-other-countries-asia-change-44','imm_imm_to_spa_fro_oth_cou_asi_art-other-countries-asia-article-45','imm_imm_to_the_uni_sta_imm_sum_to-united-states-summary-1830-2000','imm_imm_to_the_uni_sta_ori-immigration-united-states-origin','imm_imm_to_the_uni_sta_ori_yea-immigration-united-states-origin-year','imm_imm_to_the_uni_sta_ori_per_yea-united-states-origin-per-year','imm_int_ado_of_sou_kor_chi_bre_by_rec_cou_ado_kor-breakdown-receiving-country-adopted-koreans','imm_int_mig_sto_of_pop-immigration-international-migrant-stock-population','imm_int_mig_sto_tot-immigration-international-migrant-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_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_con_on_ref-immigration-refugees-convention-on','imm_ref_inf_199-immigration-refugees-inflow-1990-99','imm_ref_out-immigration-refugees-outflow','imm_ref_us_acc_rat-immigration-refugees-us-acceptance-rates','imm_ref_us_app-immigration-refugees-us-applications','imm_ref_us_app_app-immigration-refugees-us-applications-approved','imm_ref_us_app_den-immigration-refugees-us-applications-denied','imm_ref_us_app_oth_clo-refugees-us-applications-otherwise-closed','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_aus_arr_by_bir_cou_jul_1949_jun_2000-countries-july-1949-june-2000','imm_to_aus_arr_by_bir_cou_jul_1959_jun_1970-countries-july-1959-june-1970','imm_to_aus_arr_by_bir_cou_jul_1970_jun_1980-countries-july-1970-june-1980','imm_to_swe-immigration-to-sweden','imm_to_the_usa_num_of_imm-immigration-usa-number-immigrants','imm_us_vis_lot_win-immigration-us-visa-lottery-winners','imm-more');
      var wss = new Array('Select Immigration Stat','Asylum Seekers *','Asylum Seekers (per $ GDP) *','Asylum Seekers > 1980-89 *','Asylum Seekers > 1980-89 (per $ GDP) *','Asylum Seekers > 1990-99 *','Asylum Seekers > 1990-99 (per $ GDP) *','Asylum seekers acceptance rates > 1980-89 *','Asylum seekers acceptance rates > 1990-99 *','Background','Chechen diaspora > Geography > Chechen Diaspora per country > Centres of Chechen population','Chechen diaspora > Geography > Chechen Diaspora per country > Population of Chechens((current estimates - ','Commitment to Development Index > Migration *','Commitment to Development Index > Overall *','Demographics of Newfoundland and Labrador > Sources of migrants *','Demographics of Nova Scotia > Sources of migrants *','Emigration rate of tertiary educated > % of total tertiary educated population *','European Union Agreements > Schengen treaty','Foreign population *','Foreign population inflow *','Foreign population inflow (per $ GDP) *','Foreign population outflow *','Foreign population outflow (per $ GDP) *','Foreign worker salaries *','Foreign worker salaries > % of GDP *','Hausa population >  thousands *','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 Australia > Country of birth of Australian residents > Estimated resident population','Immigration to Spain > From other countries - Asia > % Change[44]','Immigration to Spain > From other countries - Asia > Article[45]','Immigration to the United States > Immigration summary 1830 to 2000 *','Immigration to the United States > Origin','Immigration to the United States > Origin > #/year *','Immigration to the United States > Origin > per year *','International adoption of South Korean children > Breakdown by receiving country > Adopted > Koreans *','International migrant stock > % of population *','International migrant stock, total *','Net migration *','Net migration (per capita) *','Net migration rate *','Net migration rate > A note','New citizenships *','New citizenships (per $ GDP) *','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 > Convention on refugees','Refugees > Inflow 1990-99 *','Refugees > Outflow *','Refugees > US acceptance rates *','Refugees > US applications *','Refugees > US applications approved *','Refugees > US applications denied *','Refugees > US applications otherwise closed *','Refugees and internally displaced persons > IDPs *','Refugees and internally displaced persons > IDPs (per capita) *','Refugees and internally displaced persons > Refugees (country of origin)','To Australia > Arrivals by birth countries > July 1949 - June 2000','To Australia > Arrivals by birth countries > July 1959 - June 1970 *','To Australia > Arrivals by birth countries > July 1970 - June 1980 *','to Sweden *','To the USA > Number of immigrants','US visa lottery winners *','... more Immigration Stats');
      break;
    case 'Industry':
      var ids = new Array('','ind_adj_sav_min_dep_of_gni-adjusted-savings-mineral-depletion-gni','ind_alu_oxi_pro_ton-industry-aluminium-oxide-production-tonnes','ind_alu_pro_ton-industry-aluminium-production-tonnes','ind_bac-industry-background','ind_bio_fir-industry-biotechnology-firms','ind_bus_pro-industry-bus-production','ind_car_pro-industry-car-production','ind_car_pro_pergdp-industry-car-production-per-gdp','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_cop_pro_ton-industry-copper-production-tonnes','ind_ele_co2_emi-industry-electrolux-co2-emissions','ind_ele_fac-industry-electrolux-factories','ind_ele_haz_was_gen-industry-electrolux-hazardous-waste-generation','ind_gro-industry-growth','ind_hea_tru_pro-industry-heavy-truck-production','ind_iro_ore_min_cou-industry-iron-ore-mining-country','ind_lig_com_veh_pro-industry-light-commercial-vehicle-production','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_gro-industry-manufacturing-growth','ind_man_out-industry-manufacturing-output','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_mer_imp_cur_us-industry-merchandise-imports-current-us','ind_mot_veh_pro-industry-motor-vehicle-production','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_pro_to_bui_a_war_num-industry-procedures-build-warehouse-number','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_com_veh_pro-industry-van-truck-bus-production','ind-more');
      var wss = new Array('Select Industry Stat','Adjusted savings: mineral depletion > % of GNI *','Aluminium oxide production > tonnes *','Aluminium production > tonnes *','Background','Biotechnology firms *','Bus production *','Car production *','Car production (per $ GDP) *','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 *','Copper production > tonnes *','Electrolux CO2 emissions *','Electrolux Factories *','Electrolux hazardous waste generation *','Growth *','Heavy truck production *','Iron ore > Mining > Country *','Light commercial vehicle production *','Machinery and transport equipment > % of value added in manufacturing *','Manufactures exports > % of merchandise exports *','Manufactures imports > % of merchandise imports *','Manufacturing growth *','Manufacturing output *','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) *','Merchandise imports > current US$ *','Motor vehicle production *','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) *','Procedures to build a warehouse > number *','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) *','Van, truck and bus production *','... more Industry Stats');
      break;
    case 'Internet':
      var ids = new Array('','int_bac-internet-background','int_bro_acc-internet-broadband-access','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_isp-internet-isp','int_isp_percap-internet-isp-per-capita','int_lin_web_ser-internet-linux-web-servers','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','Background','Broadband access *','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 *','ISP *','ISP (per capita) *','Linux web servers *','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_agr_of_eco_act_chi_age_714-active-children-ages-7-14','lab_chi_emp_in_man_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_bot_sex_age_20_24-both-sexes-aged-20-24','lab_eco_act_bot_sex_age_25_29-both-sexes-aged-25-29','lab_eco_act_bot_sex_age_55_59-both-sexes-aged-55-59','lab_eco_act_men_age_20_24-activity-men-aged-20-24','lab_eco_act_men_age_30_34-activity-men-aged-30-34','lab_eco_act_men_age_65_plu-activity-men-aged-65-plus','lab_eco_act_wom_age_20_24-activity-women-aged-20-24','lab_eco_act_wom_age_65_plu-activity-women-aged-65-plus','lab_eco_act_chi_fem-labor-economically-active-children-female','lab_eco_act_chi_mal-labor-economically-active-children-male','lab_eco_act_chi_stu_and_wor-economically-active-children-study-work','lab_eco_act_chi_tot-labor-economically-active-children-total','lab_eco_act_chi_wor_onl_mal-active-children-work-only-male','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_par_rat_tot_of_tot_pop_age_1564-total-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_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_a_not-labor-force-a-note','lab_lab_for_by_occ-labor-force-by-occupation','lab_lon_ter_une-labor-long-term-unemployment','lab_lon_ter_une_sha-labor-long-term-unemployment-share','lab_lon_une_of_tot_une-labor-long-term-unemployment-total','lab_lon_une_fem_of_fem_une-labor-long-term-unemployment-female','lab_lon_une_mal_of_mal_une-labor-long-term-unemployment-male','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_res_in_lab_for-labor-researchers-in-force','lab_rig_to_org_and_col_bar_con_rat_dat-collective-bargaining-convention-ratifications-date','lab_rig_of_emp_ind-labor-rigidity-of-employment-index','lab_ser_wor_fem-labor-service-workers-female','lab_ser_wor_mal-labor-service-workers-male','lab_ski_of_man_sur_ran_thi_as_a_maj_bus_con-surveyed-ranking-major-business-constraint','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_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_wit_ter_edu_mal_of_mal_une-labor-unemployment-tertiary-education-male','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 agriculture > % of economically active children ages 7-14 *','Child employment in manufacturing > % 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 > Both sexes aged 20-24 *','Economic activity > Both sexes aged 25-29 *','Economic activity > Both sexes aged 55-59 *','Economic activity > Men aged 20-24 *','Economic activity > Men aged 30-34 *','Economic activity > Men aged 65 plus *','Economic activity > Women aged 20-24 *','Economic activity > Women aged 65 plus *','Economically active children, female *','Economically active children, male *','Economically active children, study and work *','Economically active children, total *','Economically active children, work only, male *','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 participation rate, total > % of total population ages 15-64 *','force with secondary education > % of total *','force with tertiary education > % of total *','force, female > % of total labor force *','force, total *','Foreign labor force *','Gender division of housework *','Hours worked *','Industrial workers > Female *','Industrial workers > Male *','Labor force > A note','Labor force > By occupation','Long term unemployment *','Long term unemployment > Share *','Long-term unemployment > % of total unemployment *','Long-term unemployment, female > % of female unemployment *','Long-term unemployment, male > % of male unemployment *','Parental leave > Paid maternity leave','Parental leave > Paid paternity leave','Regulation *','Regulation > Employment Conditions *','Regulation > Firing *','Researchers in labor force *','Right to Organise and Collective Bargaining Convention > Ratifications > Date','Rigidity of employment index *','Service workers > Female *','Service workers > Male *','skills > % of managers surveyed ranking this as a major business constraint *','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 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 with tertiary education, male > % of male 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_bac-language-background','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_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_sta-language-french-status','lan_hun_lan_geo_dis_spe-language-hungarian-geographic-distribution-speakers','lan_hun_spe-language-hungarian-speakers','lan_joh_doe_inf_nam_for_unk_or_uns_per_in_var_cou-unspecified-persons-various-countries-regions','lan_kur_spe_com-language-kurdish-speakers-comment','lan_kur_spe_max-language-kurdish-speakers-maximum','lan_kur_spe_min-language-kurdish-speakers-minimum','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_gyp_lan_of_rom_who_spe_rom-language-romani-gypsy-who-speak','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_rom_lan_gyp_spe-language-romani-gypsy-speakers','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_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','Background','countries where English is an official language > Population *','English speakers *','English speakers (per $ GDP) *','English status','English-speaking population > As an additional language *','English-speaking population > First language *','English-speaking population > Total *','French speakers *','French status','Hungarian language > Geographic distribution > Speakers *','Hungarian speakers *','John Doe > Informal names for unknown or unspecified persons in various countries/regions','Kurdish speakers > Comment','Kurdish speakers > Maximum','Kurdish speakers > Minimum','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 (gypsy) language > % of Romani who speak Romani *','Romani > Romani speaking Roma population > 2000 *','Romani > Romani speaking Roma population from total Roma population > 2000 *','Romani language (gypsy) > Speakers *','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 status','World Esperanto Association > Years of presidency *','... more Language Stats');
      break;
    case 'Lifestyle':
      var ids = new Array('','lif_pov-lifestyle-poverty','lif_afr_att_to_hom_dep_or_no_opi-attitudes-homosexuality-depends-no-opinion','lif_afr_att_to_hom_mor_acc_or_not_a_mor_iss-morally-acceptable-not-moral-issue','lif_afr_att_to_hom_mor_wro-african-attitudes-homosexuality-morally-wrong','lif_ama_rad_ope-lifestyle-amateur-radio-operators','lif_amp_use-lifestyle-amphetamine-use','lif_bac-lifestyle-background','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_gay_mar_rec-lifestyle-gay-marriage-recognition','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_inc_pov_pov_rat_and_pov_gap_pov_rat_and_pov_ga-income-poverty-rates-gaps-rate','lif_inc_pov_pov_rat_and_pov_gap_tre_in_pov_rat_cha-trends-changes-over-20-years','lif_ine_amo_reg_reg_acc_to_edu_and_hea_ser_reg_dif-education-health-services-differences-basi','lif_ine_amo_reg_reg_gdp_ran_in_reg_gdp_per_cap_sma-range-per-capita-small-minimum','lif_ine_amo_reg_reg_gdp_sha_of_gdp_inc_of_eac_cou_-each-country-due-ten-percent','lif_ine_amo_reg_reg_lab_mar_reg_dif_in_the_emp_rat-markets-difference-employment-rate-women','lif_ine_amo_reg_reg_lab_mar_reg_dif_in_the_inc_of_-differences-incidence-long-term-un','lif_ine_amo_reg_reg_lab_mar_sha_of_nat_emp_gro_due-employment-growth-due-10-per','lif_ine_in_edu_per_of_15y_by_imm_sta_stu_per_on_th-olds-immigrant-status-students-sc','lif_ine_in_edu_rea_pro_of_15y_stu_rat_bet_mea_sco_-ratio-between-mean-scores-stude','lif_ine_in_hea_acc_and_use_of_hea_car_pro_bia_in_u-pro-rich-bias-specialist-low','lif_ine_in_hea_hea_sta_tot_mor_rat_of_les_edu_peo_-educated-people-relative-more-educ','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_lei_lei_tim_lei_tim_acr_dem_gro_age_1524-demographic-groups-ages-15-24','lif_lei_lei_tim_lei_tim_acr_dem_gro_age_2544-demographic-groups-ages-25-44','lif_lei_lei_tim_lei_tim_acr_dem_gro_age_4564-demographic-groups-ages-45-64','lif_lei_lei_tim_lei_tim_acr_dem_gro_age_65_and_ove-demographic-groups-ages-65-over','lif_lei_lei_tim_lei_tim_acr_dem_gro_men-time-across-demographic-groups-men','lif_lei_lei_tim_lei_tim_acr_dem_gro_tot-time-across-demographic-groups-total','lif_lei_lei_tim_lei_tim_acr_dem_gro_wom-time-across-demographic-groups-women','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_qua_of_lif_2005-lifestyle-quality-of-life-2005','lif_rol_coa-lifestyle-roller-coasters','lif_sec_roa_mot_veh_and_roa_fat_roa_fat_per_mil_in-vehicles-fatalities-per-million-inhabitants','lif_sec_vic_rat_vic_by_typ_of_cri_all_con_vic-rates-type-crime-all-conventional','lif_sec_vic_rat_vic_by_typ_of_cri_con_cri_bur_and_-crime-conventional-crimes-burglary-other','lif_sec_vic_rat_vic_by_typ_of_cri_con_cri_con_cri_-crime-conventional-crimes-contact-sexual','lif_sec_vic_rat_vic_by_typ_of_cri_con_cri_veh_rel_-crime-conventional-crimes-vehicle-related','lif_sec_vic_rat_vic_by_typ_of_cri_non_cri_con_fra-non-conventional-crimes-consumer-fraud','lif_sec_vic_rat_vic_by_typ_of_cri_non_cri_con_fra_-conventional-crimes-consumer-fraud-co','lif_soc_sui_sui_rat-lifestyle-society-suicides-suicide-rates','lif_soc_sui_sui_rat_and_per_cap_gdp_gdp_per_cap-suicide-rates-per-capita-gdp','lif_soc_sui_sui_rat_and_per_cap_gdp_sui_rat-rates-per-capita-gdp-rate','lif_soc_sui_sui_rat_by_gen_bot_men_and_wom-rates-gender-both-men-women','lif_soc_sui_sui_rat_by_gen_men-suicides-suicide-rates-gender-men','lif_soc_sui_sui_rat_by_gen_wom-suicides-suicide-rates-gender-women','lif_soc_sui_sui_rat_and_sub_lif_sat_gal_wor_pol_li-life-satisfaction-gallup-world-poll','lif_soc_sui_sui_rat_and_sub_lif_sui_rat-rates-subjective-life-evaluations-suicide','lif_soc_vol_and_soc_sup_soc_sup_hel_a_str-volunteering-social-support-helped-stranger','lif_soc_vol_and_soc_sup_soc_sup_som_you_can_cou_on-social-support-someone-can-count','lif_soc_vol_and_soc_sup_vol_don_mon-volunteering-social-support-donated-money','lif_soc_vol_and_soc_sup_vol_vol_you_tim-social-support-volunteered-your-time','lif_soc_you_ina_you_age_bet_15_and_19_who_are_not_-not-education-nor-employment-male','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','African attitudes to homosexuality > Depends or no opinion *','African attitudes to homosexuality > Morally acceptable or not a moral issue *','African attitudes to homosexuality > Morally wrong *','Amateur radio operators *','Amphetamine use *','Background','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 *','Gay marriage > Recognition','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 *','Income poverty > Poverty rates and poverty gaps > Poverty rates and poverty gaps: poverty rate *','Income poverty > Poverty rates and poverty gaps > Trends in poverty rates: changes over 20 years *','Inequalities among regions > Regional access to education and health services > Regional differences is basi *','Inequalities among regions > Regional GDP > Range in regional GDP per capita, small regions: minimum *','Inequalities among regions > Regional GDP > Share of GDP increase of each country due to the ten percent of  *','Inequalities among regions > Regional labour markets > Regional difference in the employment rate of women,  *','Inequalities among regions > Regional labour markets > Regional differences in the incidence of long-term un *','Inequalities among regions > Regional labour markets > Share of national employment growth due to the 10 per *','Inequalities in education > Performance of 15-year-olds by immigrant status > Students performance on the sc','Inequalities in education > Reading proficiency of 15-year-old students > Ratio between mean scores of stude','Inequalities in health > Access and use of health care > Pro-rich bias in use of specialist care: low','Inequalities in health > Health status > Total mortality rates of less educated people relative to more educ','Job priority for men during recession *','Jobs for native citizens during recession *','Leisure > Leisure Time > Leisure time across demographic groups: ages 15-24 *','Leisure > Leisure Time > Leisure time across demographic groups: ages 25-44 *','Leisure > Leisure Time > Leisure time across demographic groups: ages 45-64 *','Leisure > Leisure Time > Leisure time across demographic groups: ages 65 and over *','Leisure > Leisure Time > Leisure time across demographic groups: men *','Leisure > Leisure Time > Leisure time across demographic groups: total *','Leisure > Leisure Time > Leisure time across demographic groups: women *','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 *','Quality of life > 2005','Roller coasters *','Security > Road motor vehicles and road fatalities > Road fatalities per million inhabitants','Security > Victimisation rates > Victimisation by type of crime: all conventional victimisation *','Security > Victimisation rates > Victimisation by type of crime: conventional crimes, burglary and other the *','Security > Victimisation rates > Victimisation by type of crime: conventional crimes, contact crimes, sexual *','Security > Victimisation rates > Victimisation by type of crime: conventional crimes, vehicle related crimes *','Security > Victimisation rates > Victimisation by type of crime: non-conventional crimes, consumer fraud *','Security > Victimisation rates > Victimisation by type of crime: non-conventional crimes, consumer fraud, co *','Society > Suicides > Suicide rates *','Society > Suicides > Suicide rates and per capita GDP: GDP per capita *','Society > Suicides > Suicide rates and per capita GDP: suicide rate *','Society > Suicides > Suicide rates by gender: both men and women *','Society > Suicides > Suicide rates by gender: men *','Society > Suicides > Suicide rates by gender: women *','Society > Suicides > Suicides rates and subjective life satisfaction: Gallup World Poll - Life satisfaction *','Society > Suicides > Suicides rates and subjective life-evaluations: suicide rates','Society > Volunteering and social support > Social support:  helped a stranger *','Society > Volunteering and social support > Social support:  someone you can count on *','Society > Volunteering and social support > Volunteering:  donated money *','Society > Volunteering and social support > Volunteering:  volunteered your time *','Society > Youth inactivity > Youths aged between 15 and 19 who are not in education nor in employment:  male *','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_75t_aca_awa_bes_for_fil_eng_tit-best-foreign-film-english-title','med_adv_rev_sha_of_tel-media-advertising-revenue-share-television','med_all_mcb_bro_tv_net-ally-mcbeal-broadcasters-tv-network','med_and_the_we_kis_cha_pea-then-we-kiss-charts-peak','med_ave_cos_of_loc_cal-media-average-cost-local-call','med_big_fou_pag_sta_mis_int-four-pageants-statistics-miss-international','med_big_fou_pag_sta_tot_gra_sla_win-statistics-total-grand-slam-wins','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_pur_sci-universal-decimal-classification-pure-sciences','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-media-cinemas','med_cin_ann_att-media-cinemas-annual-attendance','med_cin_sea-media-cinemas-seats','med_col_cas_int_tra-media-cold-case-international-translation','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_1974_res_poi-song-contest-1974-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_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_int_dia_cod-media-international-dialling-code','med_int_voi_tra_out_and_in_min-international-voice-traffic-out-minutes','med_inv_in_tel_wit_pri_par_cur_us_pergdp-participation-current-us-per-gdp','med_jun_eur_son_con_2003_par_tra-song-contest-2003-participants-translation','med_jun_eur_son_con_2006_par_art-song-contest-2006-participants-artist','med_jun_eur_son_con_2006_par_son-eurovision-song-contest-2006-participants','med_kid_kei_jib_for_bro_lan-keiji-jiban-foreign-broadcast-language','med_kid_kei_jib_for_bro_sta-keiji-jiban-foreign-broadcast-station','med_law_amp_ord_spe_vic_uni_int_bro_alt_tit-international-broadcasters-alternate-title-translation','med_mob_pho_sub-media-mobile-phone-subscribers','med_mob_pho-media-mobile-phones','med_mtv_vid_mus_awa_lat_ame_awa_tot-music-awards-latin-america-total','med_my_hap_end_cha_pea_pos-happy-ending-charts-peak-position','med_my_imm_cha_pea-media-my-immortal-charts-peak','med_new_cir-media-newspaper-circulation','med_new-media-newspapers','med_new_and_per_cir_dai-media-newspapers-periodicals-circulation-daily','med_new_and_per_num_of_tit_dai-newspapers-periodicals-number-titles-daily','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_non_dor_ver_man_fir_pub-doraemon-versions-manga-first-published','med_pc-media-number-of-pcs','med_nyp_blu_int_cha-media-nypd-blue-international-channel','med_pay_tv_sub-media-pay-tv-subscribers','med_per_com-media-personal-computers','med_pho_sub-media-phone-subscribers','med_pub_sha_of_bro_rev-media-public-share-broadcasting-revenue','med_rad_bro_sta-media-radio-broadcast-stations','med_rad_rec-media-radio-receivers','med_rad-media-radios','med_roy_and_fee-media-royalties-and-fees','med_sic_and_tir_cha_pea_pos-sick-tired-charts-peak-position','med_sta_aca_sta_aca_aro_the_wor_cha-star-academy-around-world-channel','med_sta_aca_sta_aca_aro_the_wor_loc_nam-academy-around-world-local-name','med_sta_aca_sta_aca_aro_the_wor_win-star-academy-around-world-winner','med_tel_inv_cur_lcu-media-telecommunications-investment-current-lcu','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_sub-media-telephone-subscribers','med_tel_sub_per_emp-media-telephone-subscribers-per-employee','med_tel_sys_reg-media-telephone-system-regulation','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_rec-media-television-receivers','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_the_new_adv_of_old_chr_int_bro_ser_pre-christine-international-broadcasters-series-premiere','med_tot_bro_rev_per_cap-total-broadcasters-revenue-per-capita','med_two_and_a_hal_men_int_bro_alt_tit-international-broadcasters-alternate-title-translation','med_two_and_a_hal_men_int_bro_ser_pre-men-international-broadcasters-series-premiere','med_web_def-media-website-defacements','med_wom_in_lov_cha_dat-media-woman-love-charts-date','med_wor_ido_res_ori_art-world-idol-results-original-artist','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_pea-madonna-confessions-dance-floor-peak','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_tru_blu_sal-sales-certifications-madonna-true-blue','med_wor_sal_and_cer_for_mad_who_tha_gir_pea-who-39-s-girl-peak','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','75th Academy Award > Best Foreign Film > English title','Advertising revenue > Share of television *','Ally McBeal > Broadcasters > TV network','And Then We Kiss > Charts > Peak *','Average cost of local call *','Big Four pageants > Statistics > Miss International *','Big Four pageants > Statistics > Total Grand Slam wins *','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 > Pure sciences *','Book production, titles by the Universal Decimal Classification > Religion, theology *','Cable TV subscribers *','Cinema attendance *','Cinemas *','Cinemas > Annual attendance *','Cinemas > Seats *','Cold Case > International > Translation','DVD region *','E-Government rating *','Eurovision Song Contest 1963 > Results > Points *','Eurovision Song Contest 1974 > Results > Points *','Eurovision Song Contest winners > Statistics > Third *','Fax machines *','Films produced *','Fixed line and mobile phone subscribers > per 1,000 people *','HAM radio prefixes','Households with television > % *','International dialling code','International voice traffic > out and in, minutes *','Investment in telecoms with private participation > current US$ (per $ GDP) *','Junior Eurovision Song Contest 2003 > participants > Translation','Junior Eurovision Song Contest 2006 > participants > Artist','Junior Eurovision Song Contest 2006 > participants > Song','Kidou Keiji Jiban > Foreign Broadcast > Language','Kidou Keiji Jiban > Foreign Broadcast > Station','Law &amp; Order: Special Victims Unit > International Broadcasters > Alternate title/Translation','Mobile phone subscribers *','Mobile phones *','MTV Video Music Awards Latin America > Awards > Total *','My Happy Ending > Charts > Peak > position *','My Immortal > Charts > Peak *','Newspaper circulation *','Newspapers *','Newspapers and periodicals > Circulation > Daily *','Newspapers and periodicals > Number of titles > Daily *','Newspapers and periodicals > Number of titles > Periodicals *','Nip/Tuck > International broadcasters > Alternate title/Translation','non-Japanese Doraemon versions > Manga first published','Number of PCs *','NYPD Blue > International > Channel','Pay TV subscribers *','Personal computers *','Phone subscribers *','Public share of broadcasting revenue *','Radio broadcast stations','Radio receivers *','Radios *','Royalties and fees *','Sick and Tired > Charts > Peak > position *','Star Academy > Star Academy around the world > Channel','Star Academy > Star Academy around the world > Local name','Star Academy > Star Academy around the world > Winner','Telecommunications investment > current LCU','Telecommunications revenue > % GDP *','Telephone average cost of call to US > US$ per three minutes *','Telephone faults > per 100 mainlines *','Telephone mainlines *','Telephone subscribers *','Telephone subscribers per employee *','Telephone system > Regulation','Television > Digital TV households *','Television > Subscription TV revenues *','Television broadcast stations *','Television receivers *','Television reception through cable *','Television reception through satellite *','Television standard > UHF','Television standard > VHF','Television viewing *','Televisions *','The New Adventures of Old Christine > International Broadcasters > Series Premiere','Total broadcasters revenue per capita *','Two and a Half Men > International Broadcasters > Alternate title/Translation','Two and a Half Men > International Broadcasters > Series Premiere','Website defacements *','Woman in Love > Charts > Date','World Idol > Results > Original artist','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 > Peak *','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 > True Blue > Sales *','World sales and certifications for Madonna > Who&#39;s That Girl > Peak *','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_pergdp-total-development-estimates-per-gdp','mil_air_for_off_ran_gen_off_of1-ranks-generals-marshals-officers-10','mil_air_for_off_ran_gen_off_of6-ranks-generals-marshals-officers-6','mil_air_for_off_ran_gen_off_of9-ranks-generals-marshals-officers-9','mil_air_for_off_ran_oth_off_of2-officer-ranks-other-officers-2','mil_air_for_off_ran_oth_off_of5-officer-ranks-other-officers-5','mil_air_for_per-military-air-force-personnel','mil_all_of_wor_war_i_cas_as_of_tot_per-world-war-casualties-total-personnel','mil_all_of_wor_war_i_kil_in_act-allies-world-war-killed-action','mil_all_of_wor_war_i_per-military-allies-world-war-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_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_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_imp-military-conventional-arms-imports','mil_con_arm_imp_pergdp-conventional-arms-imports-per-gdp','mil_emp_in_arm_pro-military-employment-in-arms-production','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_per_of_gdp-military-expenditures-percent-of-gdp','mil_exp_to_dev_nat-military-exports-to-developing-nations','mil_exp_to_dev_nat_pergdp-exports-developing-nations-per-gdp','mil_for_in_eur_acv-military-forces-in-europe-acvs','mil_for_in_eur_air-military-forces-in-europe-aircraft','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_hel-military-forces-in-europe-helicopters','mil_gul_war_coa_for-military-gulf-war-coalition-forces','mil_int_mil_tri_for_the_far_eas_pro_pro-tribunal-far-east-prosecutors-prosecutor','mil_ira_coa_cas-military-iraq-coalition-casualties','mil_ira_coa_for_tro_str-iraq-coalition-forces-troop-strength','mil_ira_ple_of_rec_aid-military-iraq-pledges-reconstruction-aid','mil_ira_ple_of_rec_aid_pergdp-pledges-reconstruction-aid-per-gdp','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_15_49-service-males-age-15-49','mil_man_mil_age-military-manpower-age','mil_man_rea_mil_age_ann_fem-manpower-reaching-age-annually-females','mil_man_rea_mil_age_ann_mal-manpower-reaching-age-annually-males','mil_man_ava_for_mil_ser_fem_age_1849-service-females-age-18-49','mil_man_ava_for_mil_ser_mal_age_1849-service-males-age-18-49','mil_man_fit_for_mil_ser_fem_age_1849-service-females-age-18-49','mil_man_fit_for_mil_ser_mal_age_1849-service-males-age-18-49','mil_man_rea_mil_ser_age_ann_fem_age_1849-age-annually-females-18-49','mil_man_rea_mil_ser_age_ann_mal_age_1849-age-annually-males-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_mem_act_pla-military-nato-membership-action-plan','mil_nat_mem_act_pla_par_for_pea-membership-action-plan-partnership-peace','mil_nav_off_ran_fla_off_of1-officer-ranks-flag-officers-10','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_of4-officer-ranks-other-officers-4','mil_nav_off_ran_oth_off_of5-officer-ranks-other-officers-5','mil_nav_per-military-navy-personnel','mil_ong_con_sta_of_con-military-ongoing-conflicts-start-conflict','mil_ope_end_fre_afg_coa_fat-enduring-freedom-afghanistan-coalition-fatalities','mil_per-military-personnel','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_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_wea_hol-military-weapon-holdings','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_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 $ GDP) *','Air force officer ranks > Generals/Marshals/Air Officers > OF-10','Air force officer ranks > Generals/Marshals/Air Officers > OF-6','Air force officer ranks > Generals/Marshals/Air Officers > OF-9','Air force officer ranks > Other officers > OF-2','Air force officer ranks > Other officers > OF-5','Air force personnel *','Allies of World War I > Casualties as % of total personnel *','Allies of World War I > Killed in action *','Allies of World War I > Personnel *','Allies of World War I > Total casualties *','Armed forces growth *','Armed forces personnel *','Arms exports > constant 1990 US$ *','Arms imports > constant 1990 US$ *','Army personnel *','Branches','Conscription','Conventional arms exports *','Conventional arms exports (per $ GDP) *','Conventional arms imports *','Conventional arms imports (per $ GDP) *','Employment in arms production *','expenditure > % of central government expenditure *','expenditure > % of GDP *','expenditure > current LCU','Expenditures *','Expenditures > Dollar figure *','Expenditures > Dollar figure (per $ GDP) *','Expenditures > Percent of GDP *','Exports to developing nations *','Exports to developing nations (per $ GDP) *','Forces in Europe > ACVs *','Forces in Europe > Aircraft *','Forces in Europe > Artillery *','Forces in Europe > Battle Tanks *','Forces in Europe > Helicopters *','Gulf War Coalition Forces *','International Military Tribunal for the Far East > Prosecutors > Prosecutor','Iraq Coalition casualties *','Iraq coalition forces > Troop strength *','Iraq pledges of reconstruction aid *','Iraq pledges of reconstruction aid (per $ GDP) *','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 *','Manpower > Military age','Manpower > Reaching military age annually > Females *','Manpower > Reaching military age annually > Males *','Manpower available for military service > Females age 18-49 *','Manpower available for military service > Males age 18-49 *','Manpower fit for military service > Females age 18-49 *','Manpower fit for military service > Males age 18-49 *','Manpower reaching military service age annually > Females age 18-49 *','Manpower reaching military service age annually > 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 > Membership Action Plan','NATO > Membership Action Plan > Partnership for Peace','Naval officer ranks > Flag Officers > OF-10','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-4','Naval officer ranks > Other officers > OF-5','Navy personnel *','Ongoing conflicts > Start of Conflict','Operation Enduring Freedom > Afghanistan coalition fatalities *','personnel *','personnel > % of total labor force *','Service age and obligation','Tanks *','Tomb of the Unknown Soldier > National examples > Description','US deployment','US military exports *','Weapon holdings *','WMD > Biological','WMD > Chemical','WMD > Missile','WMD > Nuclear','WMD > Overview','World War II Fatalities *','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_amo-mortality-amoebiasis','mor_amy-mortality-amyloidosis','mor_ank_spo-mortality-ankylosing-spondylitis','mor_ant-mortality-anthrax','mor_ass_by_blu_obj-mortality-assault-by-blunt-object','mor_ass_by_oth_and_uns_fir_dis-assault-other-unspecified-firearm-discharge','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_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_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_dip-mortality-diphtheria','mor_dor-mortality-dorsalgia','mor_dow_syn-mortality-down-syndrome','mor_dro-mortality-drowning','mor_dro_and_sub_whi_in_bat_tub-drowning-submersion-while-bath-tub','mor_eat_dis-mortality-eating-disorders','mor_emp-mortality-emphysema','mor_epi_bul-mortality-epidermolysis-bullosa','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_gou-mortality-gout','mor_hea_fai-mortality-heart-failure','mor_imp-mortality-impetigo','mor_inf_mon-mortality-infectious-mononucleosis','mor_int_der_of_kne-mortality-internal-derangement-of-knee','mor_irr_bow_syn-mortality-irritable-bowel-syndrome','mor_kwa-mortality-kwashiorkor','mor_lac_of_foo-mortality-lack-of-food','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_mal_neo_of_bro_and_lun-mortality-malignant-neoplasm-bronchus-lung','mor_mal_neo_of_vul-mortality-malignant-neoplasm-of-vulva','mor_mig-mortality-migraine','mor_mil_men_ret-mortality-mild-mental-retardation','mor_mul_scl-mortality-multiple-sclerosis','mor_mum-mortality-mumps','mor_nau_and_vom-mortality-nausea-and-vomiting','mor_obe-mortality-obesity','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_sun-mortality-sunburn','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 *','Amoebiasis *','Amyloidosis *','Ankylosing spondylitis *','Anthrax *','Assault by blunt object *','Assault by other and unspecified firearm discharge *','Assault by other specified means *','Assault by rifle, shotgun and larger firearm discharge *','Assault by sharp object *','Asthma *','Atherosclerosis *','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 scorpions *','Contact with venomous snakes and lizards *','Contact with venomous spiders *','Corns and callosities *','Cystic fibrosis *','Death rate, crude > per 1,000 people *','Diphtheria *','Dorsalgia *','Down syndrome *','Drowning *','Drowning and submersion while in bath-tub *','Eating disorders *','Emphysema *','Epidermolysis bullosa *','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 *','Gout *','Heart failure *','Impetigo *','Infectious mononucleosis *','Internal derangement of knee *','Irritable bowel syndrome *','Kwashiorkor *','Lack of food *','Lactose intolerance *','Leptospirosis *','Lupus erythematosus *','Malignant melanoma of skin *','Malignant neoplasm of bronchus and lung *','Malignant neoplasm of vulva *','Migraine *','Mild mental retardation *','Multiple sclerosis *','Mumps *','Nausea and vomiting *','Obesity *','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 *','Sunburn *','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_est_pop_and_dis_afr-people-african-diaspora-afro-descendants','peo_afr_dia_pop-people-african-diaspora-population','peo_afr_ame_idb_pop_est_com-american-idb-population-estimates-comments','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_fem-structure-0-14-years-females','peo_age_str_15_64_yea-age-structure-15-64-years','peo_age_str_1564_yea_fem-structure-15-64-years-females','peo_age_str_1564_yea_fro_tot-structure-15-64-years-total','peo_age_str_1564_yea_mal-structure-15-64-years-males','peo_age_str_65_yea_and_ove_fem-structure-65-years-over-females','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_bet_off_now-attitude-women-better-off-now','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_chi_pro_chi_lab_5_14_yea_of_fem-labour-5-14-years-female','peo_chi_pro_chi_lab_5_14_yea_of_poo_20-5-14-years-poorest-20','peo_chi_pop-people-chinese-population','peo_cou_wit_chi-people-couples-with-children','peo_dis_per_ear_cap-people-disabled-persons-earning-capacity','peo_div_rat-people-divorce-rate','peo_div_per_100_mar-people-divorces-per-100-marriages','peo_eld_liv_in_ins-people-elderly-living-in-institution','peo_eld_liv_wit_chi-people-elderly-living-with-children','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_cap-number-greeks-all-countries-capital','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_lon_par_fam-people-lone-parent-families','peo_mar_rat-people-marriage-rate','peo_nob_pri_lau-people-nobel-prize-laureates','peo_old_peo_by_nat_of_dea_or_cur_res_nam-nation-death-current-residence-name','peo_old_peo_by_nat_of_dea_or_cur_res_sex-nation-death-current-residence-sex','peo_one_per_hou-people-one-person-households','peo_ove_chi_2005_pop-people-overseas-chinese-2005-population','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_cia_fac-people-population-cia-factbook','peo_pop_age_014_of_tot-population-ages-0-14-total','peo_pop_dec_by_spe_cou_rat_of_nat_dec_in_per-countries-rate-natural-decrease-percent','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_in_lar_cit-people-population-in-largest-city','peo_pop_in_the_lar_cit_of_urb_pop-people-population-largest-city-urban','peo_pop_fem_of_tot-people-population-female-of-total','peo_pro_pop_gro-people-projected-population-growth','peo_rig_of_the_chi_con_rat_dat-rights-child-convention-ratification-dates','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_gro_ann-people-rural-population-growth-annual','peo_sex_rat_15_64_yea-sex-ratio-15-64-years','peo_sex_rat_sex_rat_at_bir-people-sex-ratio-ratios-birth','peo_sex_rat_sex_rat_tot-people-sex-ratio-ratios-total','peo_sex_rat_sex_rat_und_15-sex-ratio-ratios-under-15','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_pop-people-total-population','peo_tot_pop_age_101-total-population-age-10-14','peo_tot_pop_age_100-total-population-age-100-104','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_151_of_the_tot-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-total-population-age-25-29','peo_tot_pop_age_252_of_the_tot-total-population-age-25-29','peo_tot_pop_age_505_of_the_tot-total-population-age-50-54','peo_tot_pop_age_808-total-population-age-80-84','peo_tot_pop_age_959-total-population-age-95-99','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_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_mat_mor_rat_adj-women-maternal-mortality-ratio-adjusted','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 > Afro-descendants *','African diaspora > Population *','Afro-Latin American > IDB population estimates > Comments','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 > Females *','Age structure > 15-64 years *','Age structure > 15-64 years > Females *','Age structure > 15-64 years > From total *','Age structure > 15-64 years > Males *','Age structure > 65 years and over > Females *','Age structure > 65 years and over > From total *','Attitude of women > Should have equal rights *','Attitude of women > Women are better off now *','Attitude of women > Women are happier now *','Attitude of women > Women do have equal rights *','Average size of households *','Child Protection > Child labour 5-14 years, % of female *','Child Protection > Child labour 5-14 years, % of poorest 20% *','Chinese population *','Couples with children *','Disabled persons earning capacity *','Divorce rate *','Divorces per 100 marriages *','Elderly living in institution *','Elderly living with children *','Ethnic groups > A note','Ethnicity > London *','Gender development *','Gender development index *','Gender empowerment *','Gender empowerment measure *','Greek diaspora > Number of Greeks in all countries > Capital','Greek diaspora > Number of Greeks in all countries > Number of ethnic Greeks','Home ownership *','Households with more than 5 people *','Lone parent families *','Marriage rate *','Nobel prize laureates *','Oldest people > By nation of death or current residence > Name','Oldest people > By nation of death or current residence > Sex','One person households *','Overseas Chinese > 2005 Population *','Percentage living in rural areas. *','Percentage living in urban areas *','Persons per room *','Population > CIA Factbook *','Population ages 0-14 > % of total *','Population decline > By specific countries > Rate of natural decrease in percent *','Population decline > Main reason for decrease','Population decline > Rate of natural decrease in percent *','Population growth > annual % *','Population in largest city *','Population in the largest city > % of urban population *','Population, female > % of total *','Projected population growth *','Rights of the Child Convention > Ratification Dates','Rights of the Child Convention > Signatories','Romani population','Romanian diaspora > Romanian Population','Rural population *','Rural population growth > annual % *','Sex ratio > 15-64 years *','Sex ratio > sex ratios > at birth *','Sex ratio > sex ratios > total *','Sex ratio > sex ratios > under 15 *','Size of houses *','South American countries by population density > Population *','Teenage birth rate *','Total Population *','Total population > Age 10-14 *','Total population > Age 100-104 *','Total population > Age 100-104 > % of the total *','Total population > Age 15-19 *','Total population > Age 15-19 > % of the total *','Total population > Age 20-24 *','Total population > Age 20-24 > % of the total *','Total population > Age 25-29 *','Total population > Age 25-29 > % of the total *','Total population > Age 50-54 > % of the total *','Total population > Age 80-84 *','Total population > Age 95-99 *','Total population > Age 95-99 > % of the total *','Total Population > Female *','Total Population > Male *','Total Population, thousands *','Urban population *','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 > Maternal mortality ratio adjusted *','Women > Skilled attendant at delivery % *','... more People Stats');
      break;
    case 'Religion':
      var ids = new Array('','rel_bac-religion-background','rel_bud_by_cou_bud_bud-religion-buddhism-by-country-buddhist','rel_bud_by_cou_bud_of_bud-religion-buddhism-country-buddhists','rel_bud_by_cou_bud_bud_tot-religion-buddhism-country-buddhist-total','rel_bud_by_cou_bud_pop_200-buddhism-country-population-2007-49','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_dio_pri-religion-catholic-diocesan-priests','rel_cat_dio-religion-catholic-dioceses','rel_cat_par-religion-catholic-parishes','rel_cat_per_dea-religion-catholic-permanent-deacons','rel_cat_rel_pri-religion-catholic-religious-priests','rel_cat_tot_pri-religion-catholic-total-priests','rel_cat_chu_com_num_of-religion-catholic-church-communities-number','rel_cat-religion-catholics','rel_cat_as_per-religion-catholics-as-percentage','rel_chr_chr_pop_num-religion-christian-population-number','rel_chr_chr-religion-christianity-christian','rel_chr_num_of_chr-religion-christianity-number-of-christians','rel_chu_att-religion-church-attendance','rel_con_ref_to_god_ena_dat-constitutional-references-god-enactment-date','rel_con_ref_to_god_ori_tex_if_not_in_eng-original-text-if-not-english','rel_con_ref_to_god_typ_of_ref-constitutional-references-god-type-reference','rel_cop_ort_chu_dio_bis-coptic-orthodox-church-diocesan-bishop','rel_cop_ort_chu_num_of_chu-coptic-orthodox-church-number-churches','rel_cop_ort_chu_num_of_cle_mem-orthodox-church-number-clergy-members','rel_imp_of_rel_who_say_rel_is_imp-religion-importance-who-say-important','rel_isl_num_of_mus-religion-islam-number-of-muslim','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_isl_in_eur_mus_pop-religion-islam-europe-muslim-population','rel_jeh_wit_ave_bib_stu-s-witnesses-average-bible-studies','rel_jeh_wit_con-religion-jehovah-s-witnesses-congregations','rel_jeh_wit_mem_att-jehovah-s-witnesses-memorial-attendance','rel_jeh_wit_pop-religion-jehovah-s-witnesses-population','rel_jeh_wit_pub-religion-jehovah-s-witnesses-publishers','rel_jeh_wit-religion-jehovahs-witnesses','rel_jew-religion-jews','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_not-religion-religions-note','rel_rel_pro-religion-religions-protestant','rel_rel_rom_cat-religion-religions-roman-catholic','rel_rel_law-religion-religious-law','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_shi_isl_pop_num_of_shi_mus-shia-islam-population-number-muslims','rel_shi_isl_pop_num_of_shi_mus_hig_est-population-number-muslims-high-estimate','rel_shi_isl_pop_per_of_glo_shi_pop-shia-islam-population-percent-global','rel_shi_isl_pop_per_of_loc_mus_pop-islam-population-percent-local-muslim','rel_sou_asi_rel-religion-south-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','Background','Buddhism > By Country > Buddhism > % Buddhist','Buddhism > By country > Buddhism > % of Buddhists *','Buddhism > By Country > Buddhism > Buddhist total','Buddhism > By Country > Buddhism > Population > 2007[49] *','Catholic > Cardinal electors *','Catholic > Cardinals *','Catholic > Cardinals (per $ GDP) *','Catholic > Diocesan priests *','Catholic > Dioceses *','Catholic > Parishes *','Catholic > Permanent Deacons *','Catholic > Religious Priests *','Catholic > Total Priests *','Catholic church > Communities > Number of *','Catholics *','Catholics as percentage *','Christian > Christian population > number *','Christianity > % Christian','Christianity > Number of Christians *','Church attendance *','Constitutional references to God > Enactment date *','Constitutional references to God > Original text (if not in English)','Constitutional references to God > Type of reference','Coptic Orthodox Church > Diocesan Bishop','Coptic Orthodox Church > Number of churches','Coptic Orthodox Church > Number of clergy members','Importance of religion > % who say religion is important *','Islam > Number of Muslim *','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 *','Islam in Europe > Muslim population *','Jehovah\'s Witnesses > Average Bible Studies *','Jehovah\'s Witnesses > Congregations *','Jehovah\'s Witnesses > Memorial Attendance *','Jehovah\'s Witnesses > Population *','Jehovah\'s Witnesses > Publishers *','Jehovahs Witnesses *','Jews *','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 > note','Religions > Protestant *','Religions > Roman Catholic *','Religious law','Roman Catholicism > By country > Roman Catholicism > % Catholic *','Roman Catholicism > By country > Roman Catholicism > Catholic total *','Seventh-day Adventist Membership *','Shia Islam population > Number of Shia muslims','Shia Islam population > Number of Shia muslims > High estimate','Shia Islam population > Percent of global Shia population','Shia Islam population > Percent of local muslim population','South 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_1982_com_gam_med_tab_pos-commonwealth-games-medals-table-pos','spo_1997_wor_air_gam_res_bro_med-air-games-results-bronze-medals','spo_2001_gra_pri_mot_rac_sea_gra_pri_500_win-racing-season-grands-500-winner','spo_2006_iaa_wor_ind_cha_med_tab_tot-indoor-championships-medals-table-total','spo_2006_in_nor_foo_nat_tea_res-norwegian-football-national-team-res','spo_200_cro_ski_wor_cup_nat_cup_poi-skiing-world-cup-nations-points','spo_2007_eur_ath_ind_cha_med_tab_tot-indoor-championships-medals-table-total','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_tot_med-sports-air-games-total-medals','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_all_med_tal_of_com_gam_com_gam_gol-medal-tally-commonwealth-games-gold','spo_arc_at_the_2000_sum_oly_men_tea_arc-men-39-s-team-archers','spo_bea_vol_at_the_2006_lus_gam_pos-volleyball-2006-lusophony-games-pos','spo_bia_wor_cha_2007_wom_rel_res_p-39-s-relay-results-p','spo_bia_wor_cha_2007_wom_rel_res_res-39-s-relay-results-result','spo_bia_wor_cha_2007_wom_rel_res_s-women-39-s-relay-results','spo_box_at_the_1980_sum_oly_med_tot-1980-summer-olympics-medals-total','spo_bri_com_gam_med_pos-british-commonwealth-games-medals-pos','spo_che_gra-sports-chess-grandmasters','spo_che_int_mas-sports-chess-international-masters','spo_wor_che_ran-sports-chess-world-rankings','spo_cou_pla_aus_rul_foo_ame_maj_tea-football-america-major-teams-clubs','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_ehf_cha_lea_by_cou_fin_tot-champions-league-country-finals-total','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_wom-sports-fifa-world-ranking-women','spo_for_one_wor_dri_cha_by_nat_dri-world-drivers-39-champions-nationality','spo_fro_hc_pla_pla_nat_pla-lunda-hc-players-player-nationalities','spo_gra_pri_win_by_nat_rac_win-prix-winners-nationality-race-wins','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_tot_syd_200-olympic-medals-total-sydney-2000','spo_oly_poi_tot_syd_200-olympic-point-totals-sydney-2000','spo_pan_ara_gam_med_won_bro-arab-games-medals-won-bronze','spo_pan_ara_gam_med_won_sil-arab-games-medals-won-silver','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_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_per_cap_pop-olympics-medals-per-capita-population','spo_sum_oly_med_per_cap_tot-olympics-medals-per-capita-total','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_sum_oly_men_4_x_100_med_rel_non_nam-medley-relay-non-qualifiers-names','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_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_jun_ice_hoc_cha_gro_a_ga-ice-hockey-championships-group-ga','spo_wor_jun_ice_hoc_cha_gro_a_pts-ice-hockey-championships-group-pts','spo_wor_ral_cha_rec_eve_win_win-rally-championship-records-event-wins','spo_wor_ral_cha_sea_eve_sta_dat-season-events-start-end-date','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 *','1982 Commonwealth Games > Medals table > Pos *','1997 World Air Games > Results > Bronze medals *','2001 Grand Prix motorcycle racing season > Grands Prix > 500 winner','2006 IAAF World Indoor Championships > Medals table > Total *','2006 in Norwegian football > National Team > Res. *','2006-07 Cross-Country Skiing World Cup > Nations Cup > Points *','2007 European Athletics Indoor Championships > Medals table > Total *','24 Hours of Le Mans winners > Driver Wins > Winning > Drivers *','Air Games > Bronze medals *','Air Games > Gold Medals *','Air Games > Total medals *','All Blacks > Overall > Played *','All-time medal tally of Commonwealth Games > 2006 Commonwealth Games > Silver *','All-time medal tally of Commonwealth Games > Commonwealth Games > Gold *','Archery at the 2000 Summer Olympics > Men&#39;s team > Archers','Beach Volleyball at the 2006 Lusophony Games > Pos *','Biathlon World Championships 2007 - Women&#39;s Relay > Results > P','Biathlon World Championships 2007 - Women&#39;s Relay > Results > Result','Biathlon World Championships 2007 - Women&#39;s Relay > Results > S','Boxing at the 1980 Summer Olympics > Medals > Total: *','British Commonwealth Games > Medals > Pos *','Chess > GrandMasters *','Chess > International Masters *','Chess > World Chess Rankings *','Countries playing Australian rules football > America > Major teams/clubs','Cricket clothing and equipment > Team colours > Background','EHF Champions League > By Country > Finalist *','EHF Champions League > By Country > Finals Total *','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 > Women *','Formula One World Drivers&#39; Champions > By nationality > Drivers *','Fr&ouml;lunda HC players > Player nationalities > Players *','Grand Prix winners > By Nationality > Race Wins *','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 > Total > Sydney 2000 *','Olympic point totals > Sydney 2000 *','Pan Arab Games > Medals won > Bronze *','Pan Arab Games > Medals won > Silver *','Rugby league in 2006 > Internationals > Wins *','Rugby World Cup > 2003 standings *','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 Olympics medals per capita > Population','Summer Olympics medals per capita > Total *','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 > Summer Olympics - Men&#39;s 4 x 100m medley relay > Non-Qualifiers > Names','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 *','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 Junior Ice Hockey Championships > Group A > GA *','World Junior Ice Hockey Championships > Group A > Pts *','World Rally Championship records > Event wins > Wins *','World Rally Championship season > Events > Start-End Date','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_bac-taxation-background','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_gov_red_pub_ben_tax_and_inc_ine_siz_con_and_ef-income-inequality-size-concentration-effectiven','tax_gov_red_pub_ben_tax_and_inc_pov_eff_of_tax_and-income-poverty-effects-transfers-red','tax_gra_and_oth_rev_of_rev-taxation-grants-other-revenue','tax_gra_and_oth_rev_cur_lcu-grants-other-revenue-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_rev_exc_gra_cur_lcu-revenue-excluding-grants-current-lcu','tax_soc_con_of_rev-taxation-social-contributions-of-revenue','tax_soc_con_cur_lcu-taxation-social-contributions-current-lcu','tax_soc_sec_con-taxation-social-security-contributions','tax_soc_sec_con_cur_lcu-social-security-contributions-current-lcu','tax_tax_bur-taxation-tax-burden','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-taxation-tax-rates','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_goo_and_ser_inc_sal_tax_val_add_of_ind_and_ser-sales-tax-value-added-industry','tax_tax_on_goo_and_ser_inc_sal_tax_val_add_of_ind_-sales-tax-value-added-industry','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_inc_pro_and_cap_gai_inc_inc_tax_of_rev-capital-gains-including-tax-revenue','tax_tax_on_inc_pro_and_cap_gai_inc_inc_tax_of_tot_tax-capital-gains-including-tax-total','tax_tax_on_inc_pro_and_cap_gai_inc_inc_tax_of_tot_-capital-gains-including-tax-total','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_tim_to_pre_and_pay_tax_hou-time-prepare-pay-taxes-hours','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 *','Background','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 *','Government redistribution > Public benefits, taxes and income inequality > Size, concentration and effectiven *','Government redistribution > Public benefits, taxes and income poverty > Effects of taxes and transfers in red *','Grants and other revenue > % of revenue *','Grants and other revenue > 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 *','Revenue, excluding grants > current LCU *','Social contributions > % of revenue *','Social contributions > current LCU','Social security contributions > % *','Social security contributions > current LCU *','Tax burden','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 *','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 goods and services including sales tax > % value added of industry and services *','Taxes on goods and services including sales tax > % value added of industry and services *','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 income, profits and capital gains including income tax > % of revenue *','Taxes on income, profits and capital gains including income tax > % of total taxes *','Taxes on income, profits and capital gains including income tax > % of total taxes *','Taxes on international trade > % of revenue *','Taxes on international trade > current LCU *','Time to prepare and pay taxes > hours *','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_2002_bal_bom_fat-terrorism-2002-bali-bombings-fatalities','ter_bac-terrorism-background','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_inc-terrorist-acts-1968-2006-incidences','ter_ter_act_196_inj-terrorist-acts-1968-2006-injuries','ter_ter_act_200_fat-terrorist-acts-2000-2006-fatalities','ter_ter_act_200_inc-terrorist-acts-2000-2006-incidences','ter_ter_act_200_inj-terrorist-acts-2000-2006-injuries','ter_vic_of_the_sep_11t_200_att-victims-september-11th-2001-attacks','ter-more');
      var wss = new Array('Select Terrorism Stat','2002 Bali bombings > Deaths *','2002 Bali bombings > Fatalities *','Background','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 > Incidences *','Terrorist Acts > 1968-2006 > Injuries *','Terrorist Acts > 2000-2006 > Fatalities *','Terrorist Acts > 2000-2006 > Incidences *','Terrorist Acts > 2000-2006 > Injuries *','Victims of the September 11th 2001 attacks *','... more Terrorism Stats');
      break;
    case 'Transportation':
      var ids = new Array('','tra_veh_in_cir_tho-transportation-vehicles-in-circulation-thousands','tra_air_tra_fre_mil_ton-transport-freight-million-ton-km','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_reg_car_dep_wor-transport-registered-carrier-departures-worldwide','tra_air_a40_ord_eis-transportation-airbus-a400m-orders-eis','tra_air_dep-transportation-aircraft-departures','tra_air_wit_pav_run_152_to_243_m-paved-runways-1524-2437-m','tra_air_wit_pav_run_243_to_304_m-paved-runways-2438-3047-m','tra_air_wit_pav_run_914_to_152_m-paved-runways-914-1523-m','tra_air_wit_pav_run_ove_304_m-paved-runways-over-3047-m','tra_air_wit_unp_run_152_to_243_m-unpaved-runways-1524-2437-m','tra_air_wit_unp_run_243_to_304_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_304_m-unpaved-runways-over-3047-m','tra_bur_of_cus_pro_wef_1ex_ine_to_7ex_eff-1-extremely-inefficient-7-efficient','tra_car-transportation-cars','tra_civ_avi_aut_aut_nam_in_loc_lan-authorities-authority-name-local-language','tra_con_por_tra-transportation-container-port-traffic','tra_con_por_tra_teu_20_foo_equ_uni-teu-20-foot-equivalent-units','tra_dri_sid_of_the_roa_lef_or_rig-driving-side-road-left-right','tra_gas_pri_us_per_lit-gas-price-us-per-liter','tra_hig_a_not-transportation-highways-a-note','tra_hig_pav-transportation-highways-paved','tra_hig_tot-transportation-highways-total','tra_hig_unp-transportation-highways-unpaved','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_lin_shi_con_ind_max_val_in_2004_100-index-maximum-value-2004-100','tra_mer_mar_a_not-transportation-merchant-marine-a-note','tra_mer_mar_not-transportation-merchant-marine-note','tra_mer_mar_shi_by_typ-transportation-merchant-marine-ships-type','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_grt-transportation-merchant-marine-total-grt','tra_mer_mar_tot_grt_pergdp-marine-total-grt-per-gdp','tra_mot_veh_pro-transportation-motor-vehicle-production','tra_mot_veh-transportation-motor-vehicles','tra_mot_veh_per_1000_peo-vehicles-per-1-000-people','tra_nor_car_num_pla_cor_dip_ide_cou_ide-corpse-diplomatique-identifiers-country-identifier','tra_pas_car_per_1000_peo-cars-per-1-000-people','tra_pip_all_typ-transportation-pipelines-all-types','tra_pip_con-transportation-pipelines-condensate','tra_pip_con_pergdp-transportation-pipelines-condensate-per-gdp','tra_pip_tot_len-transportation-pipelines-total-length','tra_pip_tot_len_pergdp-pipelines-total-length-per-gdp','tra_por_and_har-transportation-ports-and-harbors','tra_pri_inv_tra-transportation-private-investment-transport','tra_pum_pri_for_die_fue_us_per_lit-diesel-fuel-us-per-liter','tra_qua_of_por_inf_wef_1ex_und_to_7we_dev_and_eff_by_int_sta-underdeveloped-7-well-developed-efficient','tra_qua_of_por_inf_wef_1ex_und_to_7we_dev_and_eff_-underdeveloped-7-well-developed-efficient','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_usa_sta_pas_of_rai_tra_in_bil_yea-passenger-km-transport-billion-year','tra_rai-transportation-railways','tra_rai_a_not-transportation-railways-a-note','tra_roa_den_km_of_roa_per_100_sq_km_of_lan_are-per-100-sq-land-area','tra_roa_net_len_km-transportation-road-network-length-km','tra_roa_net_sur_are_km_squ-network-surface-area-km-squared','tra_roa_sec_die_fue_con_kt_of_oil_equ-fuel-consumption-kt-oil-equivalent','tra_roa_sec_die_fue_con_per_cap_kt_of_oil_equ-per-capita-kt-oil-equivalent','tra_roa_sec_ene_con_of_tot_ene_con-road-sector-energy-consumption-total','tra_roa_sec_ene_con_kt_of_oil_equ-energy-consumption-kt-oil-equivalent','tra_roa_sec_ene_con_per_cap_kt_of_oil_equ-per-capita-kt-oil-equivalent','tra_roa_sec_gas_fue_con_kt_of_oil_equ-fuel-consumption-kt-oil-equivalent','tra_roa_sec_gas_fue_con_per_cap_kt_of_oil_equ-per-capita-kt-oil-equivalent','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_sea_bel_usa_rat_dri-seat-belt-usage-rate-driver','tra_sea_bel_usa_rat_bac_sea_pas-belt-usage-rates-back-passengers','tra_sea_bel_usa_rat_fro_sea_occ-belt-usage-rates-front-occupants','tra_spa_pay_spe_fli-transportation-space-payload-specialist-flights','tra_spa_tot_day_all_ast_spe_in_spa-days-all-astronauts-spent-space','tra_spe_lim_spe_lim_in_spe_cou_wit_tow-limits-specific-countries-within-towns','tra_tok_han_air_new_int_ter_fli_per_day-terminal-flights-per-day-56','tra_tra_acc_inc_car_cra_fat_per_cap-car-crashes-fatalities-per-capita','tra_tra_acc_inc_car_cra_fat_rat-inc-car-crashes-fatality-rate','tra_tra_pas_km_tra-transportation-trains-passenger-km-travelled','tra_iss_dis_int-transportation-transnational-issues-disputes-international','tra_tra_ser_of_all_ser_exp-transport-services-all-service-exports','tra_tra_ser_of_all_ser_imp-transport-services-all-service-imports','tra_tra_ser_of_com_ser_imp-transport-services-commercial-service-imports','tra_tra_not-transportation-note','tra_tra_of_all_ser_exp-transportation-travel-all-service-exports','tra_tra_of_all_ser_imp-transportation-travel-all-service-imports','tra_tra_ser_of_com_ser_exp-travel-services-commercial-service-exports','tra_veh_abu-transportation-vehicle-abundance','tra_veh_per_km_of_roa-transportation-vehicles-per-km-road','tra_veh_per_100_peo-transportation-vehicles-per-100-people','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',' Vehicles in circulation > thousands *','Air transport, freight > million ton-km *','Air transport, freight > million tons per km *','Air transport, passengers carried *','Air transport, registered carrier departures worldwide *','Airbus A400M > Orders > EIS','Aircraft departures *','Airports > With paved runways > 1524 to 2437 m *','Airports > With paved runways > 2438 to 3047 m *','Airports > With paved runways > 914 to 1523 m *','Airports > With paved runways > Over 3047 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 *','Burden of customs procedure, WEF > 1=extremely inefficient to 7=extremely efficient *','Cars *','Civil aviation authorities > Authority name in local language','Container port traffic *','Container port traffic > TEU > 20 foot equivalent units *','Driving side of the road > Left or right','Gas price > US$ per liter *','Highways > A note','Highways > Paved *','Highways > Total *','Highways > Unpaved *','Investment in transport with private participation > current US$ *','Investment in transport with private participation > current US$ (per $ GDP) *','Liner shipping connectivity index > maximum value in 2004 = 100 *','Merchant marine > A note','Merchant marine > Note','Merchant marine > Ships by type','Merchant marine > Total > Dwt *','Merchant marine > Total > Dwt (per $ GDP) *','Merchant marine > Total > GRT *','Merchant marine > Total > GRT (per $ GDP) *','Motor vehicle production *','Motor vehicles *','Motor vehicles > per 1,000 people *','Norwegian car number plates > Corpse Diplomatique Identifiers > Country identifier *','Passenger cars > per 1,000 people *','Pipelines > All types','Pipelines > Condensate *','Pipelines > Condensate (per $ GDP) *','Pipelines > Total length *','Pipelines > Total length (per $ GDP) *','Ports and harbors','Private investment > Transport *','Pump price for diesel fuel > US$ per liter *','Quality of port infrastructure, WEF > 1=extremely underdeveloped to 7=well developed and efficient by i *','Quality of port infrastructure, WEF > 1=extremely underdeveloped to 7=well developed and efficient by i *','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 *','Rail usage statistics > Passenger-km of rail transport, in billion/year > Year','Railways *','Railways > A note','Road density > km of road per 100 sq. km of land area *','Road network length > km','Road network surface area > km squared','Road sector diesel fuel consumption > kt of oil equivalent *','Road sector diesel fuel consumption per capita > kt of oil equivalent *','Road sector energy consumption > % of total energy consumption *','Road sector energy consumption > kt of oil equivalent *','Road sector energy consumption per capita > kt of oil equivalent *','Road sector gasoline fuel consumption > kt of oil equivalent *','Road sector gasoline fuel consumption per capita > kt of oil equivalent *','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 *','Seat belt usage rate > Driver *','Seat belt usage rates > Back seat passengers *','Seat belt usage rates > Front seat occupants *','Space > Payload specialist flights *','Spaceflight > Total days all astronauts spent in space','Speed limit > Speed limits in specific countries > Within Towns','Tokyo > Haneda Airport > New international terminal > Flights per day[56] *','Traffic accidents (inc car crashes) > Fatalities per capita *','Traffic accidents (inc car crashes) > Fatality rate *','Trains > Passenger km travelled *','Transnational Issues > Disputes > international','Transport services > % of all service exports *','Transport services > % of all service imports *','Transport services > % of commercial service imports *','note','Travel > % of all service exports *','Travel > % of all service imports *','Travel services > % of commercial service exports *','Vehicle abundance *','Vehicles > per km of road *','Vehicles per 100 people *','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);
}
}


