//list of drop down with the city spirit code. The Country dropdown has to be hard coded in the actual page.
// *********** DO NOT MODIFY THIS WITHOUT FIRST CHANGING THE XLS IN EROOM *********************************
// USED WITH ...to populate the dropdown
//  \corporate\specialoffers\finder.jhtml
//  \corporate\hyattpalooza\finder.jhtml
//	\reservations\i_regions.jhtml

var hyatt = new Array();
hyatt[0] = new Array('Country/Region','Destination City','');
hyatt[1] = new Array('Mexico and Hawaii','Acapulco','Acapulco');
hyatt[2] = new Array('Australia','Adelaide','Adelaide');
hyatt[3] = new Array('New Mexico and Texas','Albuquerque','Albuquerque');
hyatt[4] = new Array('Kazakhstan','Almaty','Almaty');
hyatt[5] = new Array('Jordan','Amman','Amman');
hyatt[6] = new Array('East USA','Arlington','Arlington');
hyatt[7] = new Array('Caribbean','Aruba','Aruba');
hyatt[8] = new Array('Southeast USA','Atlanta','Atlanta');
hyatt[9] = new Array('New Zealand','Auckland','Auckland');
hyatt[10] = new Array('New Mexico and Texas','Austin','Austin');
hyatt[11] = new Array('Azerbaijan','Baku','Baku');
hyatt[12] = new Array('Indonesia','Bali','Bali');
hyatt[13] = new Array('East USA','Baltimore','Baltimore');
hyatt[14] = new Array('Indonesia','Bandung','Bandung');
hyatt[15] = new Array('Thailand','Bangkok','Bangkok');
hyatt[16] = new Array('Central USA','Beaver Creek','Beaver Creek');
hyatt[17] = new Array('China','Beijing','Beijing');
hyatt[18] = new Array('Serbia and Montenegro','Belgrade','Belgrade');
hyatt[19] = new Array('Northwest USA','Bellevue','Bellevue');
hyatt[20] = new Array('Germany','Berlin','Berlin');
hyatt[21] = new Array('East USA','Bethesda','Bethesda');
hyatt[22] = new Array('England','Birmingham','Birmingham');
hyatt[23] = new Array('Kyrgyz Republic','Bishkek','Bishkek');
hyatt[24] = new Array('Southeast USA','Bonita Springs','Bonita Springs');
hyatt[25] = new Array('East USA','Boston','Boston');
hyatt[26] = new Array('East USA','Buffalo','Buffalo');
hyatt[27] = new Array('Egypt','Cairo','Garden City, Cairo');
hyatt[28] = new Array('Canada','Calgary','Calgary');
hyatt[29] = new Array('East USA','Cambridge','Cambridge');
hyatt[30] = new Array('Australia','Canberra','Yarralumla');
hyatt[31] = new Array('Mexico and Hawaii','Cancun','Cancun');
hyatt[32] = new Array('West USA','Carmel','Carmel');
hyatt[33] = new Array('Morocco','Casablanca','Casablanca');
hyatt[34] = new Array('East USA','Charlotte','Charlotte');
hyatt[35] = new Array('South Korea','Cheju','Seoul');
hyatt[36] = new Array('Central USA','Chicago','Chicago');
hyatt[37] = new Array('China','Chongqing','Chongqing');
hyatt[38] = new Array('East USA','Cincinnati','Cincinnati');
hyatt[39] = new Array('East USA','Cleveland','Cleveland');
hyatt[40] = new Array('Germany','Cologne','Cologne');
hyatt[41] = new Array('East USA','Columbus','Columbus');
hyatt[42] = new Array('New Mexico and Texas','Dallas','Dallas');
hyatt[43] = new Array('New Mexico and Texas','Dallas/Ft. Worth Airport','Dallas');
hyatt[44] = new Array('East USA','Dearborn','Detroit');
hyatt[45] = new Array('Central USA','Denver','Denver');
hyatt[46] = new Array('United Arab Emirates','Dubai','Dubai');
hyatt[47] = new Array('East USA','Fairfax','Fairfax');
hyatt[48] = new Array('Southeast USA','Ft. Lauderdale','Fort Lauderdale');
hyatt[49] = new Array('Japan','Fukuoka','Fukuoka');
hyatt[50] = new Array('Australia','Gold Coast, Sanctuary Cove','Gold Coast');
hyatt[51] = new Array('Caribbean','Grand Cayman','Grand Cayman');
hyatt[52] = new Array('Southeast USA','Greenville','Greenville');
hyatt[53] = new Array('East USA','Greenwich','Greenwich');
hyatt[54] = new Array('Guam','Guam','Guam');
hyatt[55] = new Array('Germany','Hamburg','Hamburg');
hyatt[56] = new Array('China','Hangzhou','Hangzhou');
hyatt[57] = new Array('East USA','Herndon','Herndon');
hyatt[58] = new Array('Vietnam','Ho Chi Minh City','Ho Chi Minh City');
hyatt[59] = new Array('China','Hong Kong','Hong Kong');
hyatt[60] = new Array('Mexico and Hawaii','Honolulu','Honolulu');
hyatt[61] = new Array('New Mexico and Texas','Houston','Houston');
hyatt[62] = new Array('Thailand','Hua Hin','Hua Hin');
hyatt[63] = new Array('West USA','Huntington Beach','Huntington Beach');
hyatt[64] = new Array('South Korea','Incheon','Incheon');
hyatt[65] = new Array('Central USA','Indianapolis','Indianapolis');
hyatt[66] = new Array('Turkey','Istanbul','Istanbul');
hyatt[67] = new Array('Indonesia','Jakarta','Jakarta');
hyatt[68] = new Array('East USA','Jersey City','Jersey City');
hyatt[69] = new Array('South Africa','Johannesburg','Johannesburg');
hyatt[70] = new Array('Malaysia','Johor Bahru','Johor Bahru');
hyatt[71] = new Array('Central USA','Kansas City','Kansas City');
hyatt[72] = new Array('Nepal','Kathmandu','Kathmandu');
hyatt[73] = new Array('Mexico and Hawaii','Kauai','Kauai');
hyatt[74] = new Array('Southeast USA','Key West','Key West');
hyatt[75] = new Array('India','Kolkata','Kolkata');
hyatt[76] = new Array('China','Kowloon','Hong Kong');
hyatt[77] = new Array('Malaysia','Kuantan','Kuantan');
hyatt[78] = new Array('West USA','Lake Tahoe','Lake Tahoe');
hyatt[79] = new Array('West USA','Las Vegas','Las Vegas');
hyatt[80] = new Array('East USA','Lexington','Lexington');
hyatt[81] = new Array('England','London','London');
hyatt[82] = new Array('West USA','Long Beach','Long Beach');
hyatt[83] = new Array('East USA','Long Island','Long Island');
hyatt[84] = new Array('West USA','Los Angeles','Los Angeles');
hyatt[85] = new Array('East USA','Louisville','Louisville');
hyatt[86] = new Array('China','Macau','Macau');
hyatt[87] = new Array('Spain','Madrid','Madrid');
hyatt[88] = new Array('Germany','Mainz','Mainz');
hyatt[89] = new Array('Philippines','Manila','Manila');
hyatt[90] = new Array('Mexico and Hawaii','Maui','Maui');
hyatt[91] = new Array('Australia','Melbourne','Melbourne');
hyatt[92] = new Array('Argentina','Mendoza','Mendoza');
hyatt[93] = new Array('Mexico and Hawaii','Merida','Merida');
hyatt[94] = new Array('Southeast USA','Miami','Miami');
hyatt[95] = new Array('Italy','Milan','Milan');
hyatt[96] = new Array('Central USA','Milwaukee','Milwaukee');
hyatt[97] = new Array('Central USA','Minneapolis','Minneapolis');
hyatt[98] = new Array('West USA','Monterey','Monterey');
hyatt[99] = new Array('Canada','Montreal','Montreal');
hyatt[100] = new Array('Russia','Moscow','Moscow');
hyatt[101] = new Array('India','Mumbai','Mumbai');
hyatt[102] = new Array('Spain','Murcia','Cartagena');
hyatt[103] = new Array('Oman','Muscat','Muscat');
hyatt[104] = new Array('Southeast USA','Naples','Bonita Springs');
hyatt[105] = new Array('East USA','New Brunswick','New Brunswick');
hyatt[106] = new Array('India','New Delhi','New Delhi');
hyatt[107] = new Array('Southeast USA','New Orleans','New Orleans');
hyatt[108] = new Array('East USA','New York','New York');
hyatt[109] = new Array('East USA','Newport','Newport');
hyatt[110] = new Array('West USA','Newport Beach','Newport Beach');
hyatt[111] = new Array('West USA','Orange County','Orange County');
hyatt[112] = new Array('Southeast USA','Orlando','Orlando');
hyatt[113] = new Array('Japan','Osaka','Osaka');
hyatt[114] = new Array('West USA','Palm Springs','Palm Springs');
hyatt[115] = new Array('France','Paris','Paris');
hyatt[116] = new Array('Australia','Perth','Perth');
hyatt[117] = new Array('East USA','Philadelphia','Philadelphia');
hyatt[118] = new Array('West USA','Phoenix','Phoenix');
hyatt[119] = new Array('East USA','Pittsburgh','Pittsburgh');
hyatt[120] = new Array('East USA','Princeton','Princeton');
hyatt[121] = new Array('Caribbean','Puerto Rico','Puerto Rico');
hyatt[122] = new Array('East USA','Reston','Reston');
hyatt[123] = new Array('East USA','Rising Sun','Rising Sun');
hyatt[124] = new Array('East USA','Rochester','Rochester');
hyatt[125] = new Array('Malaysia','Sabah','Sabah');
hyatt[126] = new Array('West USA','Sacramento','Sacramento');
hyatt[127] = new Array('Mariana Islands','Saipan','Saipan');
hyatt[128] = new Array('New Mexico and Texas','San Antonio','San Antonio');
hyatt[129] = new Array('West USA','San Diego','San Diego');
hyatt[130] = new Array('West USA','San Francisco','San Francisco');
hyatt[131] = new Array('West USA','San Jose','San Jose');
hyatt[132] = new Array('New Mexico and Texas','Santa Ana Pueblo','Santa Ana Pueblo');
hyatt[133] = new Array('West USA','Santa Rosa','Santa Rosa');
hyatt[134] = new Array('Chile','Santiago','Santiago');
hyatt[135] = new Array('Brazil','Sao Paulo','Sao Paulo');
hyatt[136] = new Array('Southeast USA','Sarasota','Sarasota');
hyatt[137] = new Array('Southeast USA','Savannah','Savannah');
hyatt[138] = new Array('West USA','Scottsdale','Scottsdale');
hyatt[139] = new Array('Northwest USA','Seattle','Seattle');
hyatt[140] = new Array('South Korea','Seoul','Seoul');
hyatt[141] = new Array('China','Shanghai','Shanghai');
hyatt[142] = new Array('Egypt','Sharm El Sheikh','Sharm El Sheikh');
hyatt[143] = new Array('Singapore','Singapore','Singapore');
hyatt[144] = new Array('West USA','Sonoma County','Sonoma County');
hyatt[145] = new Array('India','South Goa','South Goa');
hyatt[146] = new Array('Central USA','St. Louis','St. Louis');
hyatt[147] = new Array('Malaysia','Subang','Subang');
hyatt[148] = new Array('Australia','Sunshine Coast, Coolum','Sunshine Coast');
hyatt[149] = new Array('Indonesia','Surabaya','Surabaya');
hyatt[150] = new Array('Australia','Sydney','Sydney');
hyatt[151] = new Array('Egypt','Taba','Taba');
hyatt[152] = new Array('Taiwan','Taipei','Taipei');
hyatt[153] = new Array('Southeast USA','Tampa','Tampa');
hyatt[154] = new Array('Greece','Thessaloniki','Thessaloniki');
hyatt[155] = new Array('China','Tianjin','Tianjin');
hyatt[156] = new Array('Japan','Tokyo','Tokyo');
hyatt[157] = new Array('Canada','Toronto','Toronto');
hyatt[158] = new Array('Canada','Vancouver','Vancouver');
hyatt[159] = new Array('Mexico and Hawaii','Villahermosa','Villahermosa');
hyatt[160] = new Array('Poland','Warsaw','Warsaw');
hyatt[161] = new Array('East USA','Washington D.C.','Washington D.C.');
hyatt[162] = new Array('Central USA','Wichita','Wichita');
hyatt[163] = new Array('China','Xian','Xian');
hyatt[164] = new Array('Indonesia','Yogyakarta','Yogyakarta');
hyatt[165] = new Array('Switzerland','Zurich','Zurich');




//end of array
	
function sortCountry(objt,idx) {
//  alert(objt.selectedIndex);
	for(var i=0;i<hyatt.length;i++) {
		if (hyatt[i][idx] == objt.options[objt.selectedIndex].text) {
			for(var j=0;j<myform.selectCountry.options.length;j++) {
				if (hyatt[i][0] == myform.selectCountry.options[j].text) {
					myform.selectCountry.options[j].selected = true;
				}
			}
		}
	}
}

function sortCity(objt,idx) {
	var city = [];
	city[0] = [];
	city[1] = [];
	var cityIdx = 0;
	for(var i=0;i<hyatt.length;i++) {	
		if (hyatt[i][idx] == objt.options[objt.selectedIndex].text) { 
			city[0][cityIdx] = hyatt[i][1];
			city[1][cityIdx] = hyatt[i][2];
			cityIdx++;
		}
	}
	for(var i=0;i<myform.selectCity.options.length;i++) {
		myform.selectCity.options[i].text = '';
	}
	var tmp = [];
	tmp[0] = [];
	tmp[1] = [];
	var tmpIdx = 1;
	tmp[0][0] = " ";
	tmp[1][0] = " ";
	for(var i=0;i<city[0].length;i++) {
		if (city[0][i] != city[0][i-1]) {
			tmp[0][tmpIdx] = city[0][i];
			tmp[1][tmpIdx] = city[1][i];
			//This is what I added to make all cities come back
			/*	if(city[i] == "Select City") {
					var all = new Array();
					for(var i=0;i<hyatt.length;i++) {
					  all[i] = hyatt[i][1];
						//alert(all[i]);
					}				
					myform.selectCity.options[0].text = hyatt[0][1];
					for(var pat=1;pat<all.length;pat++) {
					myform.selectCity.options[pat].text = all[pat];
					}	
				myform.selectCity.options[0].selected = true;
				return true;
				}*/
				//end of new scripting	
			tmpIdx++;			
		}	
	}
	//tmp.sort();
	tmp[0][0] = hyatt[0][1];
	myform.selectCity.options.length = tmp[0].length;
	for(var i=0;i<tmp[0].length;i++) {
        myform.selectCity.options[i].text = tmp[0][i];
		myform.selectCity.options[i].value = tmp[1][i];
	}
	myform.selectCity.options[0].selected = true;
}

function myCompare() {
	return x;
}
