// HPWEB JAVASCRIPT hpweb_country_pulldown.js VERSION 1.0

    // Store URLs in an array. These must match the elements in the
    // pulldown. Note in this case that the name of the URL array is
    // mapped to that of the Menu. This is assumed in the function
    // below.


var countrySelect_URLs = new Array();
countrySelect_URLs[0] = "emea_africa/en/index.html";
countrySelect_URLs[1] = "emea_africa/fr/index.html";
countrySelect_URLs[2] = "ar/es/index.html";
countrySelect_URLs[3] = "other_asia/en/index.html";
countrySelect_URLs[4] = "au/en/index.html";
countrySelect_URLs[5] = "at/de/index.html";
countrySelect_URLs[6] = "be/fr/index.html";
countrySelect_URLs[7] = "be/nl/index.html";
countrySelect_URLs[8] = "br/pt/index.html";
countrySelect_URLs[9] = "lamerica_nsc_cnt_amer/en/index.html";
countrySelect_URLs[10] = "lamerica_nsc_cnt_amer/es/index.html";
countrySelect_URLs[11] = "ca/fr/index.html";
countrySelect_URLs[12] = "ca/en/index.html";
countrySelect_URLs[13] = "cl/es/index.html";
countrySelect_URLs[14] = "cn/zh/index.html";
countrySelect_URLs[15] = "co/es/index.html";
countrySelect_URLs[16] = "cz/cs/index.html";
countrySelect_URLs[17] = "other_europe/en/index.html";
countrySelect_URLs[18] = "other_europe/fr/index.html";

countrySelect_URLs[19] = "fr/fr/index.html";
countrySelect_URLs[20] = "de/de/index.html";
countrySelect_URLs[21] = "hk/en/index.html";
countrySelect_URLs[22] = "hk/zh/index.html";
countrySelect_URLs[23] = "hu/hu/index.html";
countrySelect_URLs[24] = "in/en/index.html";
countrySelect_URLs[25] = "id/en/index.html";
countrySelect_URLs[26] = "il/en/index.html";
countrySelect_URLs[27] = "it/it/index.html";
countrySelect_URLs[28] = "jp/ja/index.html";
countrySelect_URLs[29] = "kz/ru/index.html";
countrySelect_URLs[30] = "kr/ko/index.html";
countrySelect_URLs[31] = "my/en/index.html";
countrySelect_URLs[32] = "mx/es/index.html";
countrySelect_URLs[33] = "emea_middle_east/en/index.html";
countrySelect_URLs[34] = "nl/nl/index.html";
countrySelect_URLs[35] = "nz/en/index.html";

countrySelect_URLs[36] = "pe/es/index.html";
countrySelect_URLs[37] = "ph/en/index.html";
countrySelect_URLs[38] = "pl/pl/index.html";
countrySelect_URLs[39] = "pt/pt/index.html";
countrySelect_URLs[40] = "ru/ru/index.html";
countrySelect_URLs[41] = "cs/en/index.html";
countrySelect_URLs[42] = "sg/en/index.html";
countrySelect_URLs[43] = "es/es/index.html";
countrySelect_URLs[44] = "ch/fr/index.html";
countrySelect_URLs[45] = "ch/de/index.html";
countrySelect_URLs[46] = "tw/zh/index.html";
countrySelect_URLs[47] = "th/en/index.html";
countrySelect_URLs[48] = "ua/ru/index.html";
countrySelect_URLs[49] = "uk/en/index.html";
countrySelect_URLs[50] = "us/en/index.html";
countrySelect_URLs[51] = "ve/es/index.html";
countrySelect_URLs[52] = "vn/en/index.html";

	// Function to jump to a URL in a <select> menu
	//  In this case, the name of the array containing the URLs
	//  is determined based on the name of the pulldown menu.
    // Note that this function is duplicated in file selectCountry.js
    // except that this function assumes that the drop list does *not*
    // have a non-functional first element.
    function jumpToPyURL(event, formName, menuName)
      {
        var type = "unknown";
        if (event && typeof(event) != "undefined")
          {
            if (   event.type == 'keypress'
                && !(   event.which == 32
                     || event.which == 13))
              {
                return(false);
              }

            type = event.type;
          }
        else // OnClicked
          {
            type = "click";
          }

        var obj = eval("document." + formName + "." + menuName);
        var index = obj.selectedIndex;

        // Note this test is different between this version and selectCountry.js
        if (index >= 0)
          {
            var url = eval(menuName + "_URLs[" + index + "]");

            if (url != "")
              {
                location.href=url;
              }
          }
      }
