var isIE = (document.all)? true:false; var vMonths = new Array(12); vMonths[0] = new vMonthObj(31,"January","Jan"); vMonths[1] = new vMonthObj(28,"February","Feb"); vMonths[2] = new vMonthObj(31,"March","Mar"); vMonths[3] = new vMonthObj(30,"April","Apr"); vMonths[4] = new vMonthObj(31,"May","May"); vMonths[5] = new vMonthObj(30,"June","Jun"); vMonths[6] = new vMonthObj(31,"July","Jul"); vMonths[7] = new vMonthObj(31,"August","Aug"); vMonths[8] = new vMonthObj(30,"September","Sep"); vMonths[9] = new vMonthObj(31,"October","Oct"); vMonths[10] = new vMonthObj(30,"November","Nov"); vMonths[11] = new vMonthObj(31,"December","Dec"); function vMonthObj(days, name, shortName) { this.days = days; this.name = name; this.shortName = shortName; } var vDays = new Array(7); vDays[0] = new vDayObj("Sunday","Sun"); vDays[1] = new vDayObj("Monday","Mon"); vDays[2] = new vDayObj("Tuesday","Tue"); vDays[3] = new vDayObj("Wednesday","Wed"); vDays[4] = new vDayObj("Thursday","Thu"); vDays[5] = new vDayObj("Friday","Fri"); vDays[6] = new vDayObj("Saturday","Sat"); function vDayObj(name, shortName) { this.name = name; this.shortName = shortName; } function vGetMonthDays(theMonth, theYear) { theMonth = parseInt(theMonth, 10); if (theYear % 4 == 0 && theMonth == 1) { return 29; } else { return vMonths[theMonth].days; } } function vDestObj(destType, destName, countries, regions, cities, pois, themes) { destName = destName.replace(/&/g,"&"); this.destType = destType; this.destName = destName; this.countries = countries; this.regions = regions; this.cities = cities; this.pois = pois; this.themes = themes; } var vDest = new Array(); var vDest = new Array(); vDest[2] = new vDestObj("CONTINENT", "Asia",[12,13,14,723,15,16,17,18,778,20,21], [], [], [], []); vDest[12] = new vDestObj("COUNTRY", "Cambodia",[], [], [751], [], []); vDest[751] = new vDestObj("CITY", "Angkor Wat", [], [] ,[], [], []); vDest[13] = new vDestObj("COUNTRY", "China",[], [], [321,323,325,326], [], []); vDest[321] = new vDestObj("CITY", "Beijing", [], [] ,[], ["Great Wall of China"], ["Suggested Itineraries in Beijing"]); vDest[323] = new vDestObj("CITY", "Guilin", [], [] ,[], [], []); vDest[325] = new vDestObj("CITY", "Shanghai", [], [] ,[], [], []); vDest[326] = new vDestObj("CITY", "Xian", [], [] ,[], [], []); vDest[14] = new vDestObj("COUNTRY", "Hong Kong",[], [], [], [], []); vDest[723] = new vDestObj("COUNTRY", "India",[], [], [804], [], []); vDest[804] = new vDestObj("CITY", "New Delhi", [], [] ,[], [], []); vDest[15] = new vDestObj("COUNTRY", "Indonesia",[], [98], [], [], []); vDest[98] = new vDestObj("REGION", "Bali", [], [], [], [], []); vDest[16] = new vDestObj("COUNTRY", "Japan",[], [], [332,333,334], ["Hiroshima Tours"], []); vDest[332] = new vDestObj("CITY", "Kyoto", [], [] ,[], [], []); vDest[333] = new vDestObj("CITY", "Osaka", [], [] ,[], ["Hiroshima Tours"], []); vDest[334] = new vDestObj("CITY", "Tokyo", [], [] ,[], [], ["Suggested Itineraries in Tokyo"]); vDest[17] = new vDestObj("COUNTRY", "Malaysia",[], [106], [335,338,339], [], []); vDest[106] = new vDestObj("REGION", "Sabah and Sarawak", [], [], [], [], []); vDest[335] = new vDestObj("CITY", "Kuala Lumpur", [], [] ,[], [], []); vDest[338] = new vDestObj("CITY", "Langkawi", [], [] ,[], [], []); vDest[339] = new vDestObj("CITY", "Penang", [], [] ,[], [], []); vDest[18] = new vDestObj("COUNTRY", "Singapore",[], [], [], [], ["Suggested Itineraries in Singapore"]); vDest[778] = new vDestObj("COUNTRY", "Taiwan",[], [], [], [], []); vDest[20] = new vDestObj("COUNTRY", "Thailand",[], [], [343,752,347,348,344,349], [], ["Suggested Itineraries in Thailand"]); vDest[343] = new vDestObj("CITY", "Bangkok", [], [] ,[], [], []); vDest[752] = new vDestObj("CITY", "Chiang Mai & Chiang Rai", [], [] ,[], [], []); vDest[347] = new vDestObj("CITY", "Koh Samui", [], [] ,[], [], []); vDest[348] = new vDestObj("CITY", "Krabi", [], [] ,[], [], []); vDest[344] = new vDestObj("CITY", "Pattaya", [], [] ,[], [], []); vDest[349] = new vDestObj("CITY", "Phuket", [], [] ,[], [], []); vDest[21] = new vDestObj("COUNTRY", "Vietnam",[], [], [351,352], [], []); vDest[351] = new vDestObj("CITY", "Hanoi", [], [] ,[], [], []); vDest[352] = new vDestObj("CITY", "Ho Chi Minh City", [], [] ,[], [], []); vDest[3] = new vDestObj("CONTINENT", "Australia & the Pacific",[22,23,24,25], [], [], [], ["Australia and Pacific Trip Planner"]); vDest[22] = new vDestObj("COUNTRY", "Australia",[], [120,121,122,123,124,125,126], [376,358,359,363,789,754,819,360,366,367,379,384,374,788,389,787,357,753], [], ["Australian Outback Tours","Suggested Itineraries in Melbourne","Suggested Itineraries in Sydney"]); vDest[120] = new vDestObj("REGION", "New South Wales", [], [], [], ["Blue Mountains"], []); vDest[121] = new vDestObj("REGION", "Northern Territory", [], [], [], [], ["Australian Outback Tours"]); vDest[122] = new vDestObj("REGION", "Queensland", [], [], [], ["Great Barrier Reef"], []); vDest[123] = new vDestObj("REGION", "South Australia", [], [], [], [], []); vDest[124] = new vDestObj("REGION", "Tasmania", [], [], [], [], []); vDest[125] = new vDestObj("REGION", "Victoria", [], [], [], [], []); vDest[126] = new vDestObj("REGION", "Western Australia", [], [], [], [], []); vDest[376] = new vDestObj("CITY", "Adelaide", [], [] ,[], [], []); vDest[358] = new vDestObj("CITY", "Alice Springs", [], [] ,[], [], []); vDest[359] = new vDestObj("CITY", "Ayers Rock", [], [] ,[], [], ["Australian Outback Tours","Suggested Itineraries in Ayers Rock"]); vDest[363] = new vDestObj("CITY", "Brisbane", [], [] ,[], [], []); vDest[789] = new vDestObj("CITY", "Broome", [], [] ,[], ["The Kimberley"], []); vDest[754] = new vDestObj("CITY", "Cairns & the Tropical North", [], [] ,[], [], ["Suggested Itineraries in Cairns"]); vDest[819] = new vDestObj("CITY", "Canberra", [], [] ,[], [], []); vDest[360] = new vDestObj("CITY", "Darwin", [], [] ,[], [], []); vDest[366] = new vDestObj("CITY", "Fraser Island", [], [] ,[], [], []); vDest[367] = new vDestObj("CITY", "Gold Coast", [], [] ,[], [], []); vDest[379] = new vDestObj("CITY", "Hobart", [], [] ,[], [], []); vDest[384] = new vDestObj("CITY", "Melbourne", [], [] ,[], [], ["Hot Air Balloon Rides in Melbourne","Suggested Itineraries in Melbourne","Yarra Valley Wine Tours"]); vDest[374] = new vDestObj("CITY", "Noosa & Sunshine Coast", [], [] ,[], [], []); vDest[788] = new vDestObj("CITY", "Palm Cove", [], [] ,[], [], []); vDest[389] = new vDestObj("CITY", "Perth", [], [] ,[], [], []); vDest[787] = new vDestObj("CITY", "Port Douglas", [], [] ,[], [], []); vDest[357] = new vDestObj("CITY", "Sydney", [], [] ,[], ["Blue Mountains"], ["Suggested Itineraries in Sydney","Sydney Harbour Tours","Sydney Opera House Tours"]); vDest[753] = new vDestObj("CITY", "The Whitsundays & Hamilton Island", [], [] ,[], [], []); vDest[23] = new vDestObj("COUNTRY", "Fiji",[], [], [], [], []); vDest[24] = new vDestObj("COUNTRY", "New Zealand",[], [128,129], [391,755,400,758,756,757,405,407,395,409,399], [], []); vDest[128] = new vDestObj("REGION", "North Island", [], [], [], [], ["North Island Adventure Guide"]); vDest[129] = new vDestObj("REGION", "South Island", [], [], [], [], []); vDest[391] = new vDestObj("CITY", "Auckland", [], [] ,[], [], []); vDest[755] = new vDestObj("CITY", "Bay of Islands", [], [] ,[], [], []); vDest[400] = new vDestObj("CITY", "Christchurch", [], [] ,[], [], []); vDest[758] = new vDestObj("CITY", "Dunedin & The Otago Peninsula", [], [] ,[], [], []); vDest[756] = new vDestObj("CITY", "Fiordland & Milford Sound", [], [] ,[], [], []); vDest[757] = new vDestObj("CITY", "Franz Josef & Fox Glacier", [], [] ,[], [], []); vDest[405] = new vDestObj("CITY", "Mount Cook", [], [] ,[], [], []); vDest[407] = new vDestObj("CITY", "Queenstown", [], [] ,[], [], []); vDest[395] = new vDestObj("CITY", "Rotorua", [], [] ,[], [], []); vDest[409] = new vDestObj("CITY", "Wanaka", [], [] ,[], [], []); vDest[399] = new vDestObj("CITY", "Wellington", [], [] ,[], [], []); vDest[25] = new vDestObj("COUNTRY", "Tahiti",[], [], [], [], []); vDest[4] = new vDestObj("CONTINENT", "Caribbean",[27,28,29,30,809,31,725,814,32,34,36,37,38,728,39,40], [], [], [], []); vDest[27] = new vDestObj("COUNTRY", "Antigua and Barbuda",[], [], [], [], []); vDest[28] = new vDestObj("COUNTRY", "Aruba",[], [], [], [], []); vDest[29] = new vDestObj("COUNTRY", "Bahamas",[], [], [419,420], [], []); vDest[419] = new vDestObj("CITY", "Freeport", [], [] ,[], [], []); vDest[420] = new vDestObj("CITY", "Nassau", [], [] ,[], [], []); vDest[30] = new vDestObj("COUNTRY", "Barbados",[], [], [], [], []); vDest[809] = new vDestObj("COUNTRY", "British Virgin Islands",[], [], [], [], []); vDest[31] = new vDestObj("COUNTRY", "Cayman Islands",[], [], [], [], []); vDest[725] = new vDestObj("COUNTRY", "Curacao",[], [], [], [], []); vDest[814] = new vDestObj("COUNTRY", "Dominica",[], [], [], [], []); vDest[32] = new vDestObj("COUNTRY", "Dominican Republic",[], [], [795,794], [], []); vDest[795] = new vDestObj("CITY", "Puerto Plata", [], [] ,[], [], []); vDest[794] = new vDestObj("CITY", "Punta Cana", [], [] ,[], [], []); vDest[34] = new vDestObj("COUNTRY", "Jamaica",[], [], [432,433,434,435], [], []); vDest[432] = new vDestObj("CITY", "Montego Bay", [], [] ,[], [], []); vDest[433] = new vDestObj("CITY", "Negril", [], [] ,[], [], []); vDest[434] = new vDestObj("CITY", "Ocho Rios", [], [] ,[], [], []); vDest[435] = new vDestObj("CITY", "Trelawny", [], [] ,[], [], []); vDest[36] = new vDestObj("COUNTRY", "Puerto Rico",[], [], [], [], []); vDest[37] = new vDestObj("COUNTRY", "St Kitts - Nevis",[], [], [], [], []); vDest[38] = new vDestObj("COUNTRY", "St Lucia",[], [], [], [], []); vDest[728] = new vDestObj("COUNTRY", "St Maarten",[], [], [], [], []); vDest[39] = new vDestObj("COUNTRY", "Trinidad and Tobago",[], [], [], [], []); vDest[40] = new vDestObj("COUNTRY", "Virgin Islands-US",[], [], [], [], []); vDest[9] = new vDestObj("CONTINENT", "Central & South America",[78,746,79,80,747,727,748,749], [], [], [], []); vDest[78] = new vDestObj("COUNTRY", "Argentina",[], [], [], [], []); vDest[746] = new vDestObj("COUNTRY", "Belize",[], [], [], [], []); vDest[79] = new vDestObj("COUNTRY", "Brazil",[], [], [820,712,818], [], []); vDest[820] = new vDestObj("CITY", "Natal", [], [] ,[], [], []); vDest[712] = new vDestObj("CITY", "Rio de Janeiro", [], [] ,[], [], []); vDest[818] = new vDestObj("CITY", "Salvador da Bahia", [], [] ,[], [], []); vDest[80] = new vDestObj("COUNTRY", "Chile",[], [306,307,308], [713], [], []); vDest[306] = new vDestObj("REGION", "Easter Island", [], [], [], [], []); vDest[307] = new vDestObj("REGION", "North Chile", [], [], [], [], []); vDest[308] = new vDestObj("REGION", "Patagonia", [], [], [], [], []); vDest[713] = new vDestObj("CITY", "Santiago", [], [] ,[], [], []); vDest[747] = new vDestObj("COUNTRY", "Costa Rica",[], [], [793], [], ["Volcanoes and National Parks"]); vDest[793] = new vDestObj("CITY", "San Jose", [], [] ,[], [], []); vDest[727] = new vDestObj("COUNTRY", "Ecuador",[], [], [735], [], []); vDest[735] = new vDestObj("CITY", "Quito", [], [] ,[], [], []); vDest[748] = new vDestObj("COUNTRY", "Guatemala",[], [], [], [], []); vDest[749] = new vDestObj("COUNTRY", "Panama",[], [], [], [], []); vDest[6] = new vDestObj("CONTINENT", "Europe",[44,45,46,730,47,48,49,731,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,732,66,734,67,68,69,70], [], [], [], ["Da Vinci Code Tours","Europe for the First Time","Europe Trip Planner","Hop on Hop off Bus Tours in Europe"]); vDest[44] = new vDestObj("COUNTRY", "Austria",[], [], [451,454], [], []); vDest[451] = new vDestObj("CITY", "Salzburg", [], [] ,[], [], []); vDest[454] = new vDestObj("CITY", "Vienna", [], [] ,[], [], []); vDest[45] = new vDestObj("COUNTRY", "Belgium",[], [], [764,458], [], []); vDest[764] = new vDestObj("CITY", "Antwerp & Bruges", [], [] ,[], [], []); vDest[458] = new vDestObj("CITY", "Brussels", [], [] ,[], [], []); vDest[46] = new vDestObj("COUNTRY", "Bulgaria",[], [], [], [], []); vDest[730] = new vDestObj("COUNTRY", "Croatia",[], [], [], [], []); vDest[47] = new vDestObj("COUNTRY", "Cyprus",[], [], [], [], []); vDest[48] = new vDestObj("COUNTRY", "Czech Republic",[], [], [462], [], []); vDest[462] = new vDestObj("CITY", "Prague", [], [] ,[], [], []); vDest[49] = new vDestObj("COUNTRY", "Denmark",[], [], [463], [], []); vDest[463] = new vDestObj("CITY", "Copenhagen", [], [] ,[], [], []); vDest[731] = new vDestObj("COUNTRY", "England",[], [822,766], [737], ["Stonehenge"], ["Bus Tours in England","Wales Tours"]); vDest[822] = new vDestObj("REGION", "Lake District", [], [], [], [], []); vDest[766] = new vDestObj("REGION", "The North of England", [], [], [], [], []); vDest[737] = new vDestObj("CITY", "London", [], [] ,[], ["Buckingham Palace","London Eye Tickets","Stonehenge"], ["Showtime in London","Suggested Itineraries in London"]); vDest[50] = new vDestObj("COUNTRY", "Finland",[], [806], [803], [], []); vDest[806] = new vDestObj("REGION", "Arctic Finland & Lapland", [], [], [], [], []); vDest[803] = new vDestObj("CITY", "Helsinki", [], [] ,[], [], []); vDest[51] = new vDestObj("COUNTRY", "France",[], [174,175,177,813,179,183,184], [483,468,786,824,485,478,479,812,763], ["Omaha Beach"], ["Suggested Itineraries in France"]); vDest[174] = new vDestObj("REGION", "Alsace", [], [], [], [], []); vDest[175] = new vDestObj("REGION", "Aquitaine", [], [], [], [], []); vDest[177] = new vDestObj("REGION", "Burgundy & Dijon", [], [], [], [], []); vDest[813] = new vDestObj("REGION", "Champagne", [], [], [], [], []); vDest[179] = new vDestObj("REGION", "French Riviera", [], [], [], [], []); vDest[183] = new vDestObj("REGION", "Normandy", [], [], [], ["Omaha Beach"], []); vDest[184] = new vDestObj("REGION", "Provence", [], [], [], [], []); vDest[483] = new vDestObj("CITY", "Avignon", [], [] ,[], [], []); vDest[468] = new vDestObj("CITY", "Bordeaux", [], [] ,[], [], []); vDest[786] = new vDestObj("CITY", "Cannes", [], [] ,[], [], []); vDest[824] = new vDestObj("CITY", "Lille", [], [] ,[], [], []); vDest[485] = new vDestObj("CITY", "Marseille", [], [] ,[], [], []); vDest[478] = new vDestObj("CITY", "Nice", [], [] ,[], [], []); vDest[479] = new vDestObj("CITY", "Paris", [], [] ,[], ["Eiffel Tower","Giverny Tours","Moulin Rouge"], ["Paris Art and Architecture Tours","Paris Small Group Touring","Suggested Itineraries in Paris"]); vDest[812] = new vDestObj("CITY", "Toulouse", [], [] ,[], [], []); vDest[763] = new vDestObj("CITY", "Versailles", [], [] ,[], [], []); vDest[52] = new vDestObj("COUNTRY", "Germany",[], [767], [488,489,777,487], [], []); vDest[767] = new vDestObj("REGION", "Rhine River", [], [], [], [], []); vDest[488] = new vDestObj("CITY", "Berlin", [], [] ,[], ["Potsdam"], []); vDest[489] = new vDestObj("CITY", "Frankfurt", [], [] ,[], [], []); vDest[777] = new vDestObj("CITY", "Hamburg", [], [] ,[], [], []); vDest[487] = new vDestObj("CITY", "Munich", [], [] ,[], [], []); vDest[53] = new vDestObj("COUNTRY", "Greece",[], [], [496], [], []); vDest[496] = new vDestObj("CITY", "Athens", [], [] ,[], [], []); vDest[54] = new vDestObj("COUNTRY", "Hungary",[], [], [499], [], []); vDest[499] = new vDestObj("CITY", "Budapest", [], [] ,[], [], []); vDest[55] = new vDestObj("COUNTRY", "Iceland",[], [], [], [], []); vDest[56] = new vDestObj("COUNTRY", "Ireland",[], [], [738,503], [], []); vDest[738] = new vDestObj("CITY", "Belfast", [], [] ,[], [], []); vDest[503] = new vDestObj("CITY", "Dublin", [], [] ,[], [], []); vDest[57] = new vDestObj("COUNTRY", "Italy",[], [775,205,206], [791,519,512,508,520,511,802,522], [], []); vDest[775] = new vDestObj("REGION", "Piedmont & Liguria", [], [], [], [], []); vDest[205] = new vDestObj("REGION", "Sicily", [], [], [], [], []); vDest[206] = new vDestObj("REGION", "Tuscany", [], [], [], [], []); vDest[791] = new vDestObj("CITY", "Bologna", [], [] ,[], [], []); vDest[519] = new vDestObj("CITY", "Florence", [], [] ,[], [], ["Suggested Itineraries in Florence"]); vDest[512] = new vDestObj("CITY", "Milan", [], [] ,[], [], []); vDest[508] = new vDestObj("CITY", "Naples", [], [] ,[], ["Pompeii Tours"], []); vDest[520] = new vDestObj("CITY", "Pisa", [], [] ,[], [], []); vDest[511] = new vDestObj("CITY", "Rome", [], [] ,[], ["Pompeii Tours","Vatican and Sistine Chapel"], ["Suggested Itineraries in Rome"]); vDest[802] = new vDestObj("CITY", "Turin", [], [] ,[], [], []); vDest[522] = new vDestObj("CITY", "Venice", [], [] ,[], [], ["Venice Walking Tours"]); vDest[58] = new vDestObj("COUNTRY", "Lithuania",[], [], [], [], []); vDest[60] = new vDestObj("COUNTRY", "Netherlands",[], [], [525], [], []); vDest[525] = new vDestObj("CITY", "Amsterdam", [], [] ,[], [], ["Suggested Itineraries in Amsterdam"]); vDest[61] = new vDestObj("COUNTRY", "Norway",[], [], [], [], []); vDest[62] = new vDestObj("COUNTRY", "Poland",[], [], [529,528], [], []); vDest[529] = new vDestObj("CITY", "Krakow", [], [] ,[], [], []); vDest[528] = new vDestObj("CITY", "Warsaw", [], [] ,[], [], []); vDest[63] = new vDestObj("COUNTRY", "Portugal",[], [772,219,774], [538], [], []); vDest[772] = new vDestObj("REGION", "Islands of Portugal", [], [], [], [], []); vDest[219] = new vDestObj("REGION", "Porto & Northern Portugal", [], [], [], [], []); vDest[774] = new vDestObj("REGION", "The Algarve", [], [], [], [], []); vDest[538] = new vDestObj("CITY", "Lisbon", [], [] ,[], [], []); vDest[64] = new vDestObj("COUNTRY", "Romania",[], [], [], [], []); vDest[65] = new vDestObj("COUNTRY", "Russia",[], [], [], [], []); vDest[732] = new vDestObj("COUNTRY", "Scotland",[], [768], [739,740], [], []); vDest[768] = new vDestObj("REGION", "The Scottish Highlands", [], [], [], [], []); vDest[739] = new vDestObj("CITY", "Edinburgh", [], [] ,[], [], []); vDest[740] = new vDestObj("CITY", "Glasgow", [], [] ,[], [], []); vDest[66] = new vDestObj("COUNTRY", "Slovakia",[], [], [], [], []); vDest[734] = new vDestObj("COUNTRY", "Slovenia",[], [], [], [], []); vDest[67] = new vDestObj("COUNTRY", "Spain",[], [228,229,798,231,769,742], [562,790,792,554,741,566,565,556,811], [], []); vDest[228] = new vDestObj("REGION", "Andalucia & Costa del Sol", [], [], [], [], []); vDest[229] = new vDestObj("REGION", "Balearic Islands", [], [], [], [], []); vDest[798] = new vDestObj("REGION", "Basque Country", [], [], [], [], []); vDest[231] = new vDestObj("REGION", "Canary Islands", [], [], [], [], []); vDest[769] = new vDestObj("REGION", "Costa Blanca", [], [], [], [], []); vDest[742] = new vDestObj("REGION", "Costa Brava", [], [], [], [], []); vDest[562] = new vDestObj("CITY", "Barcelona", [], [] ,[], [], []); vDest[790] = new vDestObj("CITY", "Costa del Sol", [], [] ,[], [], []); vDest[792] = new vDestObj("CITY", "Gran Canaria", [], [] ,[], [], []); vDest[554] = new vDestObj("CITY", "Granada", [], [] ,[], [], []); vDest[741] = new vDestObj("CITY", "La Coruna", [], [] ,[], [], []); vDest[566] = new vDestObj("CITY", "Madrid", [], [] ,[], [], []); vDest[565] = new vDestObj("CITY", "Santiago de Compostela", [], [] ,[], [], []); vDest[556] = new vDestObj("CITY", "Seville", [], [] ,[], [], []); vDest[811] = new vDestObj("CITY", "Valencia", [], [] ,[], [], []); vDest[68] = new vDestObj("COUNTRY", "Sweden",[], [], [], [], []); vDest[69] = new vDestObj("COUNTRY", "Switzerland",[], [], [578,576,577], [], []); vDest[578] = new vDestObj("CITY", "Geneva", [], [] ,[], [], []); vDest[576] = new vDestObj("CITY", "Lucerne", [], [] ,[], [], []); vDest[577] = new vDestObj("CITY", "Zurich", [], [] ,[], [], []); vDest[70] = new vDestObj("COUNTRY", "Turkey",[], [], [584,586,585,581,582], [], []); vDest[584] = new vDestObj("CITY", "Ankara", [], [] ,[], [], []); vDest[586] = new vDestObj("CITY", "Antalya", [], [] ,[], [], []); vDest[585] = new vDestObj("CITY", "Istanbul", [], [] ,[], [], []); vDest[581] = new vDestObj("CITY", "Izmir", [], [] ,[], [], []); vDest[582] = new vDestObj("CITY", "Kusadasi", [], [] ,[], [], []); vDest[1] = new vDestObj("CONTINENT", "Middle East & Africa",[780,743,722,744,801,825,10,745,11,779], [], [], [], []); vDest[780] = new vDestObj("COUNTRY", "Botswana",[], [], [], [], []); vDest[743] = new vDestObj("COUNTRY", "Dubai (UAE)",[], [], [], [], []); vDest[722] = new vDestObj("COUNTRY", "Egypt",[], [], [782,800,796], [], []); vDest[782] = new vDestObj("CITY", "Cairo", [], [] ,[], [], ["Suggested Itineraries in Cairo"]); vDest[800] = new vDestObj("CITY", "Hurghada & Sharm el Sheikh", [], [] ,[], [], []); vDest[796] = new vDestObj("CITY", "Luxor & Aswan", [], [] ,[], [], ["Suggested Itineraries in Aswan"]); vDest[744] = new vDestObj("COUNTRY", "Jordan",[], [], [], [], []); vDest[801] = new vDestObj("COUNTRY", "Kenya",[], [], [], [], []); vDest[825] = new vDestObj("COUNTRY", "Morocco",[], [], [], [], []); vDest[10] = new vDestObj("COUNTRY", "Namibia",[], [], [], [], []); vDest[745] = new vDestObj("COUNTRY", "Oman",[], [], [], [], []); vDest[11] = new vDestObj("COUNTRY", "South Africa",[], [776], [318,315,314,313], [], []); vDest[776] = new vDestObj("REGION", "Kruger National Park", [], [], [], [], []); vDest[318] = new vDestObj("CITY", "Cape Town", [], [] ,[], [], []); vDest[315] = new vDestObj("CITY", "Durban", [], [] ,[], [], []); vDest[314] = new vDestObj("CITY", "Johannesburg", [], [] ,[], [], []); vDest[313] = new vDestObj("CITY", "Port Elizabeth", [], [] ,[], [], []); vDest[779] = new vDestObj("COUNTRY", "Zambia",[], [], [], ["Victoria Falls"], []); vDest[8] = new vDestObj("CONTINENT", "North America",[75,76,77], [], [], [], ["Hop on Hop off Bus Tours in North America"]); vDest[75] = new vDestObj("COUNTRY", "Canada",[], [260,261,263,264], [611,817,625,773,622,626,623,616,617,618], [], ["Suggested Itineraries in Canada","Whale Watching Tours"]); vDest[260] = new vDestObj("REGION", "Alberta", [], [], [], [], []); vDest[261] = new vDestObj("REGION", "British Columbia", [], [], [], [], []); vDest[263] = new vDestObj("REGION", "Ontario", [], [], [], [], []); vDest[264] = new vDestObj("REGION", "Quebec", [], [], [], [], []); vDest[611] = new vDestObj("CITY", "Banff", [], [] ,[], [], []); vDest[817] = new vDestObj("CITY", "Calgary", [], [] ,[], [], []); vDest[625] = new vDestObj("CITY", "Montreal", [], [] ,[], [], []); vDest[773] = new vDestObj("CITY", "Niagara Falls & Around", [], [] ,[], [], []); vDest[622] = new vDestObj("CITY", "Ottawa", [], [] ,[], [], []); vDest[626] = new vDestObj("CITY", "Quebec City", [], [] ,[], [], []); vDest[623] = new vDestObj("CITY", "Toronto", [], [] ,[], [], []); vDest[616] = new vDestObj("CITY", "Vancouver", [], [] ,[], [], []); vDest[617] = new vDestObj("CITY", "Victoria", [], [] ,[], [], []); vDest[618] = new vDestObj("CITY", "Whistler", [], [] ,[], [], []); vDest[76] = new vDestObj("COUNTRY", "Mexico",[], [770], [629,631,632,627,628,630], [], []); vDest[770] = new vDestObj("REGION", "Riviera Maya & the Yucatan", [], [], [], [], []); vDest[629] = new vDestObj("CITY", "Acapulco", [], [] ,[], [], []); vDest[631] = new vDestObj("CITY", "Cancun", [], [] ,[], [], []); vDest[632] = new vDestObj("CITY", "Cozumel", [], [] ,[], [], []); vDest[627] = new vDestObj("CITY", "Los Cabos", [], [] ,[], [], []); vDest[628] = new vDestObj("CITY", "Mexico City", [], [] ,[], [], []); vDest[630] = new vDestObj("CITY", "Puerto Vallarta", [], [] ,[], [], []); vDest[77] = new vDestObj("COUNTRY", "USA",[], [270,271,272,273,276,277,278,282,293,294,295,296,785,298], [797,784,669,678,673,660,815,670,661,816,684,645,671,783,662,799,675,687,672,663,648,639,736,651,704,750,823,666,808,657], [], ["Halloween Tours and Treats","Niagara Falls from New York","USA Trip Planner","Whale Watching Tours"]); vDest[270] = new vDestObj("REGION", "Alaska", [], [], [], [], []); vDest[271] = new vDestObj("REGION", "Arizona", [], [], [], [], ["Grand Canyon Skywalk"]); vDest[272] = new vDestObj("REGION", "California", [], [], [], ["Yosemite National Park"], ["Southern California Theme Parks","Suggested Itineraries in California","Suggested Itineraries in Los Angeles"]); vDest[273] = new vDestObj("REGION", "Colorado", [], [], [], [], []); vDest[276] = new vDestObj("REGION", "Florida", [], [], [], [], ["Florida Everglades Tours","Florida Theme Parks"]); vDest[277] = new vDestObj("REGION", "Georgia", [], [], [], [], []); vDest[278] = new vDestObj("REGION", "Hawaii", [], [], [], [], ["Suggested Itineraries in Maui"]); vDest[282] = new vDestObj("REGION", "Maryland", [], [], [], [], []); vDest[293] = new vDestObj("REGION", "Pennsylvania", [], [], [], [], []); vDest[294] = new vDestObj("REGION", "South Carolina", [], [], [], [], []); vDest[295] = new vDestObj("REGION", "Tennessee", [], [], [], [], []); vDest[296] = new vDestObj("REGION", "Texas", [], [], [], [], []); vDest[785] = new vDestObj("REGION", "Utah", [], [], [], [], []); vDest[298] = new vDestObj("REGION", "Washington", [], [], [], [], []); vDest[797] = new vDestObj("CITY", "Anaheim & Buena Park", [], [] ,[], [], []); vDest[784] = new vDestObj("CITY", "Atlanta", [], [] ,[], [], []); vDest[669] = new vDestObj("CITY", "Big Island of Hawaii", [], [] ,[], [], []); vDest[678] = new vDestObj("CITY", "Boston", [], [] ,[], [], []); vDest[673] = new vDestObj("CITY", "Chicago", [], [] ,[], [], []); vDest[660] = new vDestObj("CITY", "Fort Lauderdale", [], [] ,[], [], []); vDest[815] = new vDestObj("CITY", "Grand Canyon National Park", [], [] ,[], [], []); vDest[670] = new vDestObj("CITY", "Kauai", [], [] ,[], [], []); vDest[661] = new vDestObj("CITY", "Key West", [], [] ,[], [], []); vDest[816] = new vDestObj("CITY", "Lake Tahoe", [], [] ,[], [], []); vDest[684] = new vDestObj("CITY", "Las Vegas", [], [] ,[], [], ["Las Vegas Adventure Tours","Las Vegas Air and Helicopter Tours","Suggested Itineraries in Las Vegas"]); vDest[645] = new vDestObj("CITY", "Los Angeles", [], [] ,[], [], ["Movie Star Tours in Los Angeles","Southern California Theme Parks","Suggested Itineraries in Los Angeles"]); vDest[671] = new vDestObj("CITY", "Maui", [], [] ,[], [], ["Suggested Itineraries in Maui"]); vDest[783] = new vDestObj("CITY", "Memphis", [], [] ,[], [], []); vDest[662] = new vDestObj("CITY", "Miami", [], [] ,[], [], []); vDest[799] = new vDestObj("CITY", "Nashville", [], [] ,[], [], []); vDest[675] = new vDestObj("CITY", "New Orleans", [], [] ,[], [], ["Suggested Itineraries in New Orleans"]); vDest[687] = new vDestObj("CITY", "New York City", [], [] ,[], ["Empire State Building","Statue of Liberty"], ["New York City Helicopter Tours","Niagara Falls from New York","Suggested Itineraries in New York City"]); vDest[672] = new vDestObj("CITY", "Oahu", [], [] ,[], [], []); vDest[663] = new vDestObj("CITY", "Orlando", [], [] ,[], [], ["Florida Theme Parks","Suggested Itineraries in Orlando"]); vDest[648] = new vDestObj("CITY", "Palm Springs", [], [] ,[], [], []); vDest[639] = new vDestObj("CITY", "Phoenix", [], [] ,[], [], []); vDest[736] = new vDestObj("CITY", "San Diego", [], [] ,[], [], []); vDest[651] = new vDestObj("CITY", "San Francisco", [], [] ,[], ["Alcatraz","Yosemite National Park"], ["Suggested Itineraries in San Francisco"]); vDest[704] = new vDestObj("CITY", "Seattle", [], [] ,[], [], []); vDest[750] = new vDestObj("CITY", "Sedona & Flagstaff", [], [] ,[], [], []); vDest[823] = new vDestObj("CITY", "St Augustine ", [], [] ,[], [], []); vDest[666] = new vDestObj("CITY", "Tampa", [], [] ,[], [], []); vDest[808] = new vDestObj("CITY", "Tucson", [], [] ,[], [], []); vDest[657] = new vDestObj("CITY", "Washington DC", [], [] ,[], [], []); function vWriteDestOpts(destID, destType, selObj) { var dest = new vDestObj("CONTINENT", "", [], [], [], []); if (destType == "COUNTRY") { dest = new vDestObj("COUNTRY", "", [], [], [], []); } if (vDest[destID] != null) { dest = vDest[destID]; } var newOptArr = new Array(); var defOpt = document.createElement('option'); defOpt.value = ""; if (destType == "CONTINENT") { if (dest.countries.length > 0) { defOpt.text = "Select a country"; } else { defOpt.text = "No countries"; } } else if (destType == "COUNTRY") { if (dest.regions.length > 0 || dest.cities.length > 0) { defOpt.text = "Select a region/city"; } else { defOpt.text = "No regions/cities"; } } newOptArr[newOptArr.length] = defOpt; if (dest.destType == 'CONTINENT') { try { for(var i=0;i 0) { newOptArr = newOptArr.concat(vGetThemePoiOpts(vDest[thisDestID].pois, "POI", "20px")); } */ } } finally { // whatever } } else if (dest.destType == 'COUNTRY') { try { var optGrp = document.createElement('optgroup'); if (dest.cities.length > 0) { optGrp.label = "- Browse by city -"; newOptArr[newOptArr.length] = optGrp; for(var i=0;i 0) { newOptArr = newOptArr.concat(vGetThemePoiOpts(vDest[thisDestID].pois, "POI", "30px")); } } } } finally { // whatever } try { var optGrp = document.createElement('optgroup'); if (dest.regions.length > 0) { optGrp.label = "- Browse by region -"; newOptArr[newOptArr.length] = optGrp; for(var i=0;i 0) { newOptArr = newOptArr.concat(vGetThemePoiOpts(vDest[thisDestID].pois, "POI", "30px")); } */ } } } finally { // whatever } } vAddSelOpt(selObj, newOptArr, true); if (selObj.length < 2) { selObj.disabled = true; } else { selObj.disabled = false; } if (selObj.onchange != null) { selObj.onchange(); } } function vGetThemePoiOpts(themePoiList, listType, padLeft) { var optArr = []; for(var i=0;i 0) { return theField.options[theField.selectedIndex].value; } } function vSetSelVal(theField, theVal) { for(var i=0;i 30) { alert("Please verify your arrival and departure dates are within 30 days of one another. Unfortunately, we cannot process requests for trip durations greater than 30 days."); return false; } } if (pasForm.region.value.length > 0) { if (pasForm.region.options[pasForm.region.selectedIndex].isTheme) { pasForm.searchAction.value = "/themeProdSearch.jspa"; pasForm.categoryName.value = pasForm.region.value; } else if (pasForm.region.options[pasForm.region.selectedIndex].isPOI) { pasForm.searchAction.value = "/poiProdSearch.jspa"; pasForm.categoryName.value = pasForm.region.value; } else { pasForm.destinationID.value = pasForm.region.value; } } else if (pasForm.country.value.length > 0) { pasForm.destinationID.value = pasForm.country.value; if (pasForm.country.options[pasForm.country.selectedIndex].isTheme) { pasForm.searchAction.value = "/themeProdSearch.jspa"; } else if (pasForm.country.options[pasForm.country.selectedIndex].isPOI) { pasForm.searchAction.value = "/poiProdSearch.jspa"; } else { pasForm.destinationID.value = pasForm.country.value; } } /*else if (pasForm.continent.value.length > 0) { alert("You must select a country to search"); return false; }*/ else { //alert("You must select a continent and a country to search"); alert("You must select a country to search"); return false; } return true; } function vSetActivities() { document.vPasForm.activities[1].checked = true; } var vLaunchIntervalID = setInterval('vEnableContinent()', 200); function vEnableContinent() { if (document.vPasForm != null && typeof(document.vPasForm) != "undefined") { try { //document.vPasForm.continent.disabled = false; document.vPasForm.pascountry.disabled = false; document.vPasForm.activities[0].disabled = false; document.vPasForm.activities[1].disabled = false; document.vPasForm.from_mm.disabled = false; document.vPasForm.from_dd.disabled = false; document.vPasForm.from_yyyy.disabled = false; document.vPasForm.to_mm.disabled = false; document.vPasForm.to_dd.disabled = false; document.vPasForm.to_yyyy.disabled = false; clearInterval(vLaunchIntervalID); } finally { // just keep trying basically } } } function vCountryObj(destID, destName) { this.destID = destID; destName = destName.replace(/&/g,"&"); this.destName = destName; } var vAllCountries = new Array();