var region = new Array();
var locationsByCountry  = new Array();
var locationsByRegion  = new Array();
var urlByLocation = new Array();
var urlByLocation = {
"Antigua and Barbuda":"http://antigua-and-barbuda.tourcorp.com/",
"Antigua":"http://antigua-and-barbuda.tourcorp.com/",
"St Johns":"http://antigua-and-barbuda.tourcorp.com/destinations/st-johns",
"Argentina":"http://argentina.tourcorp.com/",
"Buenos Aires":"http://buenos-aires.tourcorp.com/",
"Mendoza":"http://argentina.tourcorp.com/destinations/mendoza",
"Misiones":"http://argentina.tourcorp.com/destinations/misiones",
"Puerto Iguazu":"http://argentina.tourcorp.com/destinations/puerto-iguazu",
"Santa Cruz":"http://argentina.tourcorp.com/destinations/santa-cruz",
"El Calafate":"http://argentina.tourcorp.com/destinations/el-calafate",
"Ushuaia":"http://argentina.tourcorp.com/destinations/ushuaia",
"Aruba":"http://aruba.tourcorp.com/",
"Oranjestad":"http://aruba.tourcorp.com/destinations/oranjestad",
"Australia":"http://australia.tourcorp.com/",
"Australian Capital Territory":"http://australia.tourcorp.com/destinations/australian-capital-territory",
"Canberra":"http://canberra.tourcorp.com/",
"New South Wales":"http://australia.tourcorp.com/destinations/new-south-wales",
"Sydney":"http://sydney.tourcorp.com/",
"Northern Territory":"http://australia.tourcorp.com/destinations/northern-territory",
"Alice Springs":"http://alice-springs.tourcorp.com/",
"Ayers Rock":"http://ayers-rock.tourcorp.com/",
"Darwin":"http://darwin.tourcorp.com/",
"Queensland":"http://australia.tourcorp.com/destinations/queensland",
"Brisbane":"http://brisbane.tourcorp.com/",
"Cairns":"http://cairns-and-tropical-north.tourcorp.com/",
"Fraser Island":"http://fraser-island.tourcorp.com/",
"Gold Coast":"http://gold-coast.tourcorp.com/",
"Noosa":"http://noosa-and-sunshine-coast.tourcorp.com/",
"Palm Cove":"http://palm-cove.tourcorp.com/",
"Port Douglas":"http://port-douglas.tourcorp.com/",
"Shute Harbour":"http://australia.tourcorp.com/destinations/shute-harbour",
"Sunshine Coast":"http://noosa-and-sunshine-coast.tourcorp.com/",
"Whitsundays":"http://the-whitsundays-hamilton-island.tourcorp.com/",
"South Australia":"http://australia.tourcorp.com/destinations/south-australia",
"Adelaide":"http://adelaide.tourcorp.com/",
"Tasmania":"http://australia.tourcorp.com/destinations/tasmania",
"Hobart":"http://hobart.tourcorp.com/",
"Launceston":"http://australia.tourcorp.com/destinations/launceston",
"Strahan":"http://australia.tourcorp.com/destinations/strahan",
"Victoria":"http://victoria.tourcorp.com/",
"Melbourne":"http://melbourne.tourcorp.com/",
"Phillip Island":"http://australia.tourcorp.com/destinations/phillip-island",
"Western Australia":"http://australia.tourcorp.com/destinations/western-australia",
"Broome":"http://broome.tourcorp.com/",
"Kununurra":"http://australia.tourcorp.com/destinations/kununurra",
"Perth":"http://perth.tourcorp.com/",
"Austria":"http://austria.tourcorp.com/",
"Salzburg and Upper Austria":"http://austria.tourcorp.com/destinations/salzburg-and-upper-austria",
"Salzburg":"http://salzburg.tourcorp.com/",
"Vienna and Burgenland":"http://austria.tourcorp.com/destinations/vienna-and-burgenland",
"Vienna":"http://vienna.tourcorp.com/",
"Bahamas":"http://bahamas.tourcorp.com/",
"Grand Bahama":"http://bahamas.tourcorp.com/destinations/grand-bahama",
"Freeport":"http://freeport.tourcorp.com/",
"New Providence":"http://bahamas.tourcorp.com/destinations/new-providence",
"Nassau":"http://nassau.tourcorp.com/",
"Barbados":"http://barbados.tourcorp.com/",
"Bridgetown":"http://barbados.tourcorp.com/destinations/bridgetown",
"St James":"http://barbados.tourcorp.com/destinations/st-james",
"Belgium":"http://belgium.tourcorp.com/",
"Wallonia":"http://belgium.tourcorp.com/destinations/wallonia",
"Brussels":"http://brussels.tourcorp.com/",
"Belize":"http://belize.tourcorp.com/",
"Belize City":"http://belize.tourcorp.com/destinations/belize-city",
"Brazil":"http://brazil.tourcorp.com/",
"Northeast":"http://brazil.tourcorp.com/destinations/northeast",
"Fortaleza":"http://fortaleza.tourcorp.com/",
"Natal":"http://natal.tourcorp.com/",
"Salvador":"http://salvador-da-bahia.tourcorp.com/",
"Southeast":"http://brazil.tourcorp.com/destinations/southeast",
"Rio de Janeiro":"http://rio-de-janeiro.tourcorp.com/",
"Cambodia":"http://cambodia.tourcorp.com/",
"Canary Islands":"http://spain.tourcorp.com/destinations/canary-islands",
"Fuerteventura":"http://spain.tourcorp.com/destinations/fuerteventura",
"Phnom Penh":"http://phnom-penh.tourcorp.com/",
"Siem Reap":"http://cambodia.tourcorp.com/destinations/siem-reap",
"Canada":"http://canada.tourcorp.com/",
"Alberta":"http://canada.tourcorp.com/destinations/alberta",
"Banff":"http://banff.tourcorp.com/",
"Calgary":"http://calgary.tourcorp.com/",
"Edmonton":"http://canada.tourcorp.com/destinations/edmonton",
"Jasper":"http://canada.tourcorp.com/destinations/jasper",
"British Columbia":"http://canada.tourcorp.com/destinations/british-columbia",
"Vancouver":"http://vancouver.tourcorp.com/",
"Whistler":"http://whistler.tourcorp.com/",
"Ontario":"http://canada.tourcorp.com/destinations/ontario",
"Niagara Falls":"http://niagara-falls.tourcorp.com/",
"Niagara-on-the-Lake":"http://canada.tourcorp.com/destinations/niagara-on-the-lake",
"Ottawa":"http://ottawa.tourcorp.com/",
"Toronto":"http://toronto.tourcorp.com/",
"Quebec":"http://quebec.tourcorp.com/",
"Montreal":"http://montreal.tourcorp.com/",
"Quebec City":"http://quebec-city.tourcorp.com/",
"Cayman Islands":"http://cayman-islands.tourcorp.com/",
"Grand Cayman":"http://cayman-islands.tourcorp.com/destinations/grand-cayman",
"Georgetown":"http://cayman-islands.tourcorp.com/destinations/georgetown",
"Chile":"http://chile.tourcorp.com/",
"Central Chile":"http://chile.tourcorp.com/destinations/central-chile",
"Santiago":"http://santiago.tourcorp.com/",
"Easter Island":"http://easter-island.tourcorp.com/",
"Hanga Roa":"http://chile.tourcorp.com/destinations/hanga-roa",
"North Chile":"http://north-chile.tourcorp.com/",
"San Pedro de Atacama":"http://chile.tourcorp.com/destinations/san-pedro-de-atacama",
"Patagonia":"http://patagonia.tourcorp.com/",
"Puerto Natales":"http://chile.tourcorp.com/destinations/puerto-natales",
"Punta Arenas":"http://chile.tourcorp.com/destinations/punta-arenas",
"South Chile":"http://chile.tourcorp.com/destinations/south-chile",
"Puerto Montt":"http://chile.tourcorp.com/destinations/puerto-montt",
"China":"http://china.tourcorp.com/",
"Beijing":"http://beijing.tourcorp.com/",
"Guilin":"http://guilin.tourcorp.com/",
"Shanghai":"http://shanghai.tourcorp.com/",
"Xian":"http://xian.tourcorp.com/",
"Costa Rica":"http://costa-rica.tourcorp.com/",
"Central Pacific":"http://costa-rica.tourcorp.com/destinations/central-pacific",
"Central Valley":"http://costa-rica.tourcorp.com/destinations/central-valley",
"San Jose":"http://san-jose.tourcorp.com/",
"North Pacific":"http://costa-rica.tourcorp.com/destinations/north-pacific",
"Guanacaste":"http://costa-rica.tourcorp.com/destinations/guanacaste",
"Croatia":"http://croatia.tourcorp.com/",
"Dalmatia":"http://croatia.tourcorp.com/destinations/dalmatia",
"Dubrovnik":"http://croatia.tourcorp.com/destinations/dubrovnik",
"Czech Republic":"http://czech-republic.tourcorp.com/",
"Bohemia":"http://czech-republic.tourcorp.com/destinations/bohemia",
"Prague":"http://prague.tourcorp.com/",
"Denmark":"http://denmark.tourcorp.com/",
"Copenhagen":"http://copenhagen.tourcorp.com/",
"Dominica":"http://dominica.tourcorp.com/",
"Roseau":"http://dominica.tourcorp.com/destinations/roseau",
"Dominican Republic":"http://dominican-republic.tourcorp.com/",
"North":"http://cairns-and-tropical-north.tourcorp.com/",
"Puerto Plata":"http://puerto-plata.tourcorp.com/",
"La Romana":"http://dominican-republic.tourcorp.com/destinations/la-romana",
"Punta Cana":"http://punta-cana.tourcorp.com/",
"Santo Domingo":"http://dominican-republic.tourcorp.com/destinations/santo-domingo",
"Ecuador":"http://ecuador.tourcorp.com/",
"Azay Cuenca":"http://ecuador.tourcorp.com/destinations/azay-cuenca",
"Cuenca":"http://ecuador.tourcorp.com/destinations/cuenca",
"Guayas":"http://ecuador.tourcorp.com/destinations/guayas",
"Guayaquil":"http://ecuador.tourcorp.com/destinations/guayaquil",
"Pichincha":"http://ecuador.tourcorp.com/destinations/pichincha",
"Quito":"http://quito.tourcorp.com/",
"Egypt":"http://egypt.tourcorp.com/",
"Nile Valley":"http://egypt.tourcorp.com/destinations/nile-valley",
"Aswan":"http://aswan.tourcorp.com/",
"Cairo":"http://cairo.tourcorp.com/",
"Luxor":"http://luxor.tourcorp.com/",
"Red Sea Coast":"http://egypt.tourcorp.com/destinations/red-sea-coast",
"Hurghada":"http://hurghada.tourcorp.com/",
"Sinai":"http://egypt.tourcorp.com/destinations/sinai",
"Sharm el-Sheikh":"http://sharm-el-sheikh.tourcorp.com/",
"Fiji":"http://fiji.tourcorp.com/",
"Nadi and Surrounds":"http://fiji.tourcorp.com/destinations/nadi-and-surrounds",
"Nadi":"http://fiji.tourcorp.com/destinations/nadi",
"Finland":"http://finland.tourcorp.com/",
"Helsinki":"http://helsinki.tourcorp.com/",
"Lapland":"http://arctic-finland-and-lapland.tourcorp.com/",
"Levi":"http://finland.tourcorp.com/destinations/levi",
"Rovaniemi":"http://finland.tourcorp.com/destinations/rovaniemi",
"France":"http://france.tourcorp.com/",
"Alsace":"http://france.tourcorp.com/destinations/alsace",
"Strasbourg":"http://france.tourcorp.com/destinations/strasbourg",
"Aquitaine":"http://france.tourcorp.com/destinations/aquitaine",
"Bordeaux":"http://bordeaux.tourcorp.com/",
"Burgundy":"http://france.tourcorp.com/destinations/burgundy",
"Dijon":"http://france.tourcorp.com/destinations/dijon",
"Centre Loire Valley":"http://france.tourcorp.com/destinations/centre-loire-valley",
"Nantes":"http://france.tourcorp.com/destinations/nantes",
"Champagne-Ardenne":"http://france.tourcorp.com/destinations/champagne-ardenne",
"Reims":"http://france.tourcorp.com/destinations/reims",
"French Riviera":"http://france.tourcorp.com/destinations/french-riviera",
"Cannes":"http://cannes.tourcorp.com/",
"Nice":"http://nice.tourcorp.com/",
"Ile de France and Paris":"http://france.tourcorp.com/destinations/ile-de-france-and-paris",
"Paris":"http://paris.tourcorp.com/",
"Languedoc-Roussillon":"http://france.tourcorp.com/destinations/languedoc-roussillon",
"Nimes":"http://france.tourcorp.com/destinations/nimes",
"Midi-Pyrenees":"http://france.tourcorp.com/destinations/midi-pyrenees",
"Toulouse":"http://toulouse.tourcorp.com/",
"Nord-Pas de Calais":"http://france.tourcorp.com/destinations/nord-pas-de-calais",
"Lille":"http://lille.tourcorp.com/",
"Normandy":"http://france.tourcorp.com/destinations/normandy",
"Bayeux":"http://france.tourcorp.com/destinations/bayeux",
"Provence Alpes Cote d'Azur":"http://france.tourcorp.com/destinations/provence-alpes-cote-d'azur",
"Avignon":"http://avignon.tourcorp.com/",
"Marseille":"http://marseille.tourcorp.com/",
"Rhone Alpes":"http://france.tourcorp.com/destinations/rhone-alpes",
"Lyon":"http://lyon.tourcorp.com/",
"French Polynesia":"destinations/french-polynesia",
"Bora Bora":"destinations/bora-bora",
"Moorea":"destinations/moorea",
"Tahiti":"http://tahiti.tourcorp.com/",
"Papeete":"destinations/papeete",
"Germany":"http://germany.tourcorp.com/",
"Bavaria":"http://germany.tourcorp.com/destinations/bavaria",
"Munich":"http://munich.tourcorp.com/",
"Brandenburg":"http://germany.tourcorp.com/destinations/brandenburg",
"Berlin":"http://berlin.tourcorp.com/",
"Potsdam":"http://germany.tourcorp.com/destinations/potsdam",
"Hamburg":"http://hamburg.tourcorp.com/",
"Hesse":"http://germany.tourcorp.com/destinations/hesse",
"Frankfurt":"http://frankfurt.tourcorp.com/",
"North Rhine-Westphalia":"http://germany.tourcorp.com/destinations/north-rhine-westphalia",
"Bonn":"http://germany.tourcorp.com/destinations/bonn",
"Cologne":"http://germany.tourcorp.com/destinations/cologne",
"Dusseldorf":"http://germany.tourcorp.com/destinations/dusseldorf",
"Rhineland Palatinate":"http://germany.tourcorp.com/destinations/rhineland-palatinate",
"Koblenz":"http://germany.tourcorp.com/destinations/koblenz",
"Mainz":"http://germany.tourcorp.com/destinations/mainz",
"Greece":"http://greece.tourcorp.com/",
"Attica and the Saronic Isles":"http://greece.tourcorp.com/destinations/attica-and-the-saronic-isles",
"Athens":"http://athens.tourcorp.com/",
"Crete":"http://greece.tourcorp.com/destinations/crete",
"Heraklion":"http://greece.tourcorp.com/destinations/heraklion",
"Dodecanese Islands":"http://greece.tourcorp.com/destinations/dodecanese-islands",
"Kos":"http://greece.tourcorp.com/destinations/kos",
"Ionian Islands":"http://greece.tourcorp.com/destinations/ionian-islands",
"Corfu":"http://greece.tourcorp.com/destinations/corfu",
"Hong Kong":"http://hong-kong.tourcorp.com/",
"Hungary":"http://hungary.tourcorp.com/",
"Budapest and Northern Transdanubia":"http://hungary.tourcorp.com/destinations/budapest-and-northern-transdanubia",
"Budapest":"http://budapest.tourcorp.com/",
"Iceland":"http://iceland.tourcorp.com/",
"Reykjavik":"http://iceland.tourcorp.com/destinations/reykjavik",
"India":"http://india.tourcorp.com/",
"Delhi":"http://new-delhi.tourcorp.com/",
"Indonesia":"http://indonesia.tourcorp.com/",
"Bali":"http://bali.tourcorp.com/",
"Ireland":"http://ireland.tourcorp.com/",
"County Clare":"http://ireland.tourcorp.com/destinations/county-clare",
"Shannon":"http://ireland.tourcorp.com/destinations/shannon",
"County Cork":"http://ireland.tourcorp.com/destinations/county-cork",
"Cork":"http://ireland.tourcorp.com/destinations/cork",
"County Dublin":"http://ireland.tourcorp.com/destinations/county-dublin",
"Dublin":"http://dublin.tourcorp.com/",
"County Galway":"http://ireland.tourcorp.com/destinations/county-galway",
"Galway":"http://ireland.tourcorp.com/destinations/galway",
"County Kerry":"http://ireland.tourcorp.com/destinations/county-kerry",
"Killarney":"http://ireland.tourcorp.com/destinations/killarney",
"County Kilkenny":"http://ireland.tourcorp.com/destinations/county-kilkenny",
"Kilkenny":"http://ireland.tourcorp.com/destinations/kilkenny",
"Italy":"http://italy.tourcorp.com/",
"Campania and Naples":"http://italy.tourcorp.com/destinations/campania-and-naples",
"Amalfi":"http://italy.tourcorp.com/destinations/amalfi",
"Naples":"http://naples.tourcorp.com/",
"Positano":"http://italy.tourcorp.com/destinations/positano",
"Sorrento":"http://italy.tourcorp.com/destinations/sorrento",
"Emilia-Romagna":"http://italy.tourcorp.com/destinations/emilia-romagna",
"Bologna":"http://bologna.tourcorp.com/",
"Latium and Rome":"http://italy.tourcorp.com/destinations/latium-and-rome",
"Rome":"http://rome.tourcorp.com/",
"Lombardy and Milan":"http://italy.tourcorp.com/destinations/lombardy-and-milan",
"Milan":"http://milan.tourcorp.com/",
"Piedmont":"http://italy.tourcorp.com/destinations/piedmont",
"Turin":"http://turin.tourcorp.com/",
"Sicily":"http://italy.tourcorp.com/destinations/sicily",
"Palermo":"http://italy.tourcorp.com/destinations/palermo",
"Tuscany and Florence":"http://italy.tourcorp.com/destinations/tuscany-and-florence",
"Florence":"http://florence.tourcorp.com/",
"Livorno":"http://italy.tourcorp.com/destinations/livorno",
"Pisa":"http://italy.tourcorp.com/destinations/pisa",
"Veneto and Venice":"http://italy.tourcorp.com/destinations/veneto-and-venice",
"Padua":"http://italy.tourcorp.com/destinations/padua",
"Venice":"http://venice.tourcorp.com/",
"Jamaica":"http://jamaica.tourcorp.com/",
"Montego Bay":"http://montego-bay.tourcorp.com/",
"Negril":"http://negril.tourcorp.com/",
"Ocho Rios":"http://ocho-rios.tourcorp.com/",
"Japan":"http://japan.tourcorp.com/",
"Hiroshima":"http://japan.tourcorp.com/destinations/hiroshima",
"Kyoto":"http://kyoto.tourcorp.com/",
"Osaka":"http://osaka.tourcorp.com/",
"Tokyo":"http://tokyo.tourcorp.com/",
"Jordan":"http://jordan.tourcorp.com/",
"Mountain Heights Plateau":"http://jordan.tourcorp.com/destinations/mountain-heights-plateau",
"Amman":"http://jordan.tourcorp.com/destinations/amman",
"Kenya":"http://kenya.tourcorp.com/",
"Central Kenya":"http://kenya.tourcorp.com/destinations/central-kenya",
"Nairobi":"http://kenya.tourcorp.com/destinations/nairobi",
"Eastern Coast":"http://kenya.tourcorp.com/destinations/eastern-coast",
"Mombasa":"http://kenya.tourcorp.com/destinations/mombasa",
"Lithuania":"http://lithuania.tourcorp.com/",
"Vilnius":"http://lithuania.tourcorp.com/destinations/vilnius",
"Luxembourg":"http://luxembourg.tourcorp.com/",
"Malaysia":"http://malaysia.tourcorp.com/",
"Central Region":"http://malaysia.tourcorp.com/destinations/central-region",
"Kuala Lumpur":"http://kuala-lumpur.tourcorp.com/",
"Northern Region":"http://malaysia.tourcorp.com/destinations/northern-region",
"Langkawi":"http://langkawi.tourcorp.com/",
"Penang":"http://penang.tourcorp.com/",
"Sabah and Sarawak":"http://sabah-and-sarawak.tourcorp.com/",
"Sabah":"http://sabah-and-sarawak.tourcorp.com/",
"Sarawak":"http://sabah-and-sarawak.tourcorp.com/",
"Mexico":"http://mexico.tourcorp.com/",
"Baja California Sur":"http://mexico.tourcorp.com/destinations/baja-california-sur",
"Los Cabos":"http://los-cabos.tourcorp.com/",
"Distrito Federal":"http://mexico.tourcorp.com/destinations/distrito-federal",
"Mexico City":"http://mexico-city.tourcorp.com/",
"Guerrero":"http://mexico.tourcorp.com/destinations/guerrero",
"Acapulco":"http://acapulco.tourcorp.com/",
"Jalisco":"http://mexico.tourcorp.com/destinations/jalisco",
"Puerto Vallarta":"http://puerto-vallarta.tourcorp.com/",
"Nayarit":"http://mexico.tourcorp.com/destinations/nayarit",
"Nuevo Vallarta":"http://mexico.tourcorp.com/destinations/nuevo-vallarta",
"Quintana Roo":"http://mexico.tourcorp.com/destinations/quintana-roo",
"Cancun":"http://cancun.tourcorp.com/",
"Cozumel":"http://cozumel.tourcorp.com/",
"Riviera Maya":"http://mexico.tourcorp.com/destinations/riviera-maya",
"Morocco":"http://morocco.tourcorp.com/",
"Haut Atlas":"http://morocco.tourcorp.com/destinations/haut-atlas",
"Marrakech":"http://morocco.tourcorp.com/destinations/marrakech",
"Netherlands":"http://netherlands.tourcorp.com/",
"Eastern Holland":"http://netherlands.tourcorp.com/destinations/eastern-holland",
"Amsterdam":"http://amsterdam.tourcorp.com/",
"Noord-Holland":"http://netherlands.tourcorp.com/destinations/noord-holland",
"Netherlands Antilles":"http://netherlands-antilles.tourcorp.com/",
"Curacao":"http://curacao.tourcorp.com/",
"St Maarten":"http://st-maarten.tourcorp.com/",
"Philipsburg":"http://netherlands-antilles.tourcorp.com/destinations/philipsburg",
"St Martin":"http://netherlands-antilles.tourcorp.com/destinations/st-martin",
"Nevis- St Kitts":"destinations/nevis--st-kitts",
"Nevis":"http://st-kitts-nevis.tourcorp.com/",
"Charlestown":"destinations/charlestown",
"New Zealand":"http://new-zealand.tourcorp.com/",
"North Island":"http://new-zealand.tourcorp.com/destinations/north-island",
"Auckland":"http://auckland.tourcorp.com/",
"Bay of Islands":"http://bay-of-islands.tourcorp.com/",
"Rotorua":"http://rotorua.tourcorp.com/",
"Taupo":"http://new-zealand.tourcorp.com/destinations/taupo",
"Waitomo":"http://new-zealand.tourcorp.com/destinations/waitomo",
"Wellington":"http://wellington.tourcorp.com/",
"South Island":"http://new-zealand.tourcorp.com/destinations/south-island",
"Akaroa":"http://new-zealand.tourcorp.com/destinations/akaroa",
"Christchurch":"http://christchurch.tourcorp.com/",
"Dunedin":"http://new-zealand.tourcorp.com/destinations/dunedin",
"Fox Glacier":"http://franz-jose-and-fox-glacier.tourcorp.com/",
"Franz Josef":"http://new-zealand.tourcorp.com/destinations/franz-josef",
"Greymouth":"http://new-zealand.tourcorp.com/destinations/greymouth",
"Milford Sound":"http://fiordland-and-milford-sound.tourcorp.com/",
"Mount Cook":"http://mount-cook.tourcorp.com/",
"Picton":"http://new-zealand.tourcorp.com/destinations/picton",
"Queenstown":"http://queenstown.tourcorp.com/",
"Te Anau":"http://new-zealand.tourcorp.com/destinations/te-anau",
"Norway":"http://norway.tourcorp.com/",
"Oslo Fjord Region":"http://norway.tourcorp.com/destinations/oslo-fjord-region",
"Oslo":"http://norway.tourcorp.com/destinations/oslo",
"Oman":"http://oman.tourcorp.com/",
"Muscat and Capital Area":"http://oman.tourcorp.com/destinations/muscat-and-capital-area",
"Muscat":"http://oman.tourcorp.com/destinations/muscat",
"Poland":"http://poland.tourcorp.com/",
"Central Poland":"http://poland.tourcorp.com/destinations/central-poland",
"Warsaw":"http://warsaw.tourcorp.com/",
"Southern Poland":"http://poland.tourcorp.com/destinations/southern-poland",
"Krakow":"http://krakow.tourcorp.com/",
"Portugal":"http://portugal.tourcorp.com/",
"Azores":"http://portugal.tourcorp.com/destinations/azores",
"Faial Island":"http://portugal.tourcorp.com/destinations/faial-island",
"Flores Island":"http://portugal.tourcorp.com/destinations/flores-island",
"Graciosa Island":"http://portugal.tourcorp.com/destinations/graciosa-island",
"Pico Island":"http://portugal.tourcorp.com/destinations/pico-island",
"Ponta Delgada":"http://portugal.tourcorp.com/destinations/ponta-delgada",
"Sao Jorge Island":"http://portugal.tourcorp.com/destinations/sao-jorge-island",
"Terceira Island":"http://portugal.tourcorp.com/destinations/terceira-island",
"East Algarve":"http://portugal.tourcorp.com/destinations/east-algarve",
"Faro":"http://portugal.tourcorp.com/destinations/faro",
"Lisbon and Central Portugal":"http://portugal.tourcorp.com/destinations/lisbon-and-central-portugal",
"Lisbon":"http://lisbon.tourcorp.com/",
"Madeira Island":"http://portugal.tourcorp.com/destinations/madeira-island",
"Funchal":"http://portugal.tourcorp.com/destinations/funchal",
"Porto and Northern Portugal":"http://porto-and-northern-portugal.tourcorp.com/",
"Porto":"http://porto-and-northern-portugal.tourcorp.com/",
"West Algarve":"http://portugal.tourcorp.com/destinations/west-algarve",
"Albufeira":"http://portugal.tourcorp.com/destinations/albufeira",
"Puerto Rico":"http://puerto-rico.tourcorp.com/",
"San Juan":"http://puerto-rico.tourcorp.com/destinations/san-juan",
"Russia":"http://russia.tourcorp.com/",
"Central":"http://russia.tourcorp.com/destinations/central",
"Moscow":"http://russia.tourcorp.com/destinations/moscow",
"North-Western":"http://russia.tourcorp.com/destinations/north-western",
"St Petersburg":"http://st-petersburg.tourcorp.com/",
"Saint Lucia":"destinations/saint-lucia",
"St Lucia":"http://st-lucia.tourcorp.com/",
"Castries":"destinations/castries",
"Soufriere":"destinations/soufriere",
"Vieux Fort":"destinations/vieux-fort",
"Singapore":"http://singapore.tourcorp.com/",
"Slovenia":"http://slovenia.tourcorp.com/",
"Ljubljana":"http://slovenia.tourcorp.com/destinations/ljubljana",
"South Africa":"http://south-africa.tourcorp.com/",
"Gauteng":"http://south-africa.tourcorp.com/destinations/gauteng",
"Johannesburg":"http://johannesburg.tourcorp.com/",
"Kwazulu-Natal":"http://south-africa.tourcorp.com/destinations/kwazulu-natal",
"Durban":"http://durban.tourcorp.com/",
"Western Cape":"http://south-africa.tourcorp.com/destinations/western-cape",
"Cape Town":"http://cape-town.tourcorp.com/",
"Spain":"http://spain.tourcorp.com/",
"Andalucia and Costa del Sol":"http://spain.tourcorp.com/destinations/andalucia-and-costa-del-sol",
"Cadiz":"http://spain.tourcorp.com/destinations/cadiz",
"Cordoba":"http://spain.tourcorp.com/destinations/cordoba",
"Costa del Sol":"http://costa-del-sol.tourcorp.com/",
"Granada":"http://granada.tourcorp.com/",
"Malaga":"http://spain.tourcorp.com/destinations/malaga",
"Seville":"http://seville.tourcorp.com/",
"Aragon":"http://spain.tourcorp.com/destinations/aragon",
"Zaragoza":"http://spain.tourcorp.com/destinations/zaragoza",
"Balearic Islands":"http://spain.tourcorp.com/destinations/balearic-islands",
"Majorca":"http://spain.tourcorp.com/destinations/majorca",
"Menorca":"http://spain.tourcorp.com/destinations/menorca",
"Basque Country":"http://spain.tourcorp.com/destinations/basque-country",
"Bilbao":"http://spain.tourcorp.com/destinations/bilbao",
"San Sebastian":"http://spain.tourcorp.com/destinations/san-sebastian",
"Gran Canaria":"http://gran-canaria.tourcorp.com/",
"Lanzarote":"http://spain.tourcorp.com/destinations/lanzarote",
"Tenerife":"http://spain.tourcorp.com/destinations/tenerife",
"Cantabria":"http://spain.tourcorp.com/destinations/cantabria",
"Santander":"http://spain.tourcorp.com/destinations/santander",
"Catalonia and Barcelona":"http://spain.tourcorp.com/destinations/catalonia-and-barcelona",
"Barcelona":"http://barcelona.tourcorp.com/",
"Costa Brava":"http://spain.tourcorp.com/destinations/costa-brava",
"Gerona":"http://spain.tourcorp.com/destinations/gerona",
"Galicia":"http://spain.tourcorp.com/destinations/galicia",
"La Coruna":"http://la-coruna.tourcorp.com/",
"Santiago de Compostela":"http://santiago-de-compostela.tourcorp.com/",
"Madrid":"http://madrid.tourcorp.com/",
"Navarra":"http://spain.tourcorp.com/destinations/navarra",
"Haro":"http://spain.tourcorp.com/destinations/haro",
"Valencian Community":"http://spain.tourcorp.com/destinations/valencian-community",
"Alicante":"http://spain.tourcorp.com/destinations/alicante",
"Valencia":"http://valencia.tourcorp.com/",
"Sweden":"http://sweden.tourcorp.com/",
"Central Sweden":"http://sweden.tourcorp.com/destinations/central-sweden",
"Stockholm":"http://sweden.tourcorp.com/destinations/stockholm",
"West Sweden":"http://sweden.tourcorp.com/destinations/west-sweden",
"Gothenburg":"http://sweden.tourcorp.com/destinations/gothenburg",
"Switzerland":"http://switzerland.tourcorp.com/",
"Central Switzerland":"http://switzerland.tourcorp.com/destinations/central-switzerland",
"Lucerne":"http://lucerne.tourcorp.com/",
"Zurich":"http://zurich.tourcorp.com/",
"Lake Geneva and Western Switzerland":"http://switzerland.tourcorp.com/destinations/lake-geneva-and-western-switzerland",
"Geneva":"http://geneva.tourcorp.com/",
"Taiwan":"http://taiwan.tourcorp.com/",
"Northern Taiwan":"http://taiwan.tourcorp.com/destinations/northern-taiwan",
"Taipei":"http://taipei.tourcorp.com/",
"Thailand":"http://thailand.tourcorp.com/",
"Bangkok":"http://bangkok.tourcorp.com/",
"East Coast":"http://thailand.tourcorp.com/destinations/east-coast",
"Pattaya":"http://pattaya.tourcorp.com/",
"Chiang Mai":"http://chiang-mai-chiang-rai.tourcorp.com/",
"Chiang Rai":"http://chiang-mai-chiang-rai.tourcorp.com/",
"South":"http://south.tourcorp.com/",
"Koh Samui":"http://koh-samui.tourcorp.com/",
"Krabi":"http://krabi.tourcorp.com/",
"Phuket":"http://phuket.tourcorp.com/",
"Trinidad and Tobago":"http://trinidad-and-tobago.tourcorp.com/",
"Tobago":"http://trinidad-and-tobago.tourcorp.com/",
"Scarborough":"http://trinidad-and-tobago.tourcorp.com/destinations/scarborough",
"Trinidad":"http://trinidad-and-tobago.tourcorp.com/",
"Port of Spain":"http://trinidad-and-tobago.tourcorp.com/destinations/port-of-spain",
"Turkey":"http://turkey.tourcorp.com/",
"Aegean":"http://turkey.tourcorp.com/destinations/aegean",
"Izmir":"http://izmir.tourcorp.com/",
"Kusadasi":"http://kusadasi.tourcorp.com/",
"Marmaris":"http://turkey.tourcorp.com/destinations/marmaris",
"Cappadocia":"http://turkey.tourcorp.com/destinations/cappadocia",
"Urgup":"http://turkey.tourcorp.com/destinations/urgup",
"Central Anatolia":"http://turkey.tourcorp.com/destinations/central-anatolia",
"Ankara":"http://ankara.tourcorp.com/",
"Marmara":"http://turkey.tourcorp.com/destinations/marmara",
"Istanbul":"http://istanbul.tourcorp.com/",
"Mediterranean":"http://turkey.tourcorp.com/destinations/mediterranean",
"Antalya":"http://antalya.tourcorp.com/",
"United Arab Emirates":"http://united-arab-emirates.tourcorp.com/",
"Abu Dhabi Emirate":"http://united-arab-emirates.tourcorp.com/destinations/abu-dhabi-emirate",
"Abu Dhabi":"http://united-arab-emirates.tourcorp.com/destinations/abu-dhabi",
"Dubai Emirate":"http://united-arab-emirates.tourcorp.com/destinations/dubai-emirate",
"Dubai":"http://dubai.tourcorp.com/",
"Sharjah Emirate":"http://united-arab-emirates.tourcorp.com/destinations/sharjah-emirate",
"Sharjah":"http://united-arab-emirates.tourcorp.com/destinations/sharjah",
"United Kingdom":"http://united-kingdom.tourcorp.com/",
"England":"http://england.tourcorp.com/",
"Bath":"http://united-kingdom.tourcorp.com/destinations/bath",
"Blackpool":"http://united-kingdom.tourcorp.com/destinations/blackpool",
"Brighton":"http://united-kingdom.tourcorp.com/destinations/brighton",
"Cambridge":"http://united-kingdom.tourcorp.com/destinations/cambridge",
"Chester":"http://united-kingdom.tourcorp.com/destinations/chester",
"Eastbourne":"http://united-kingdom.tourcorp.com/destinations/eastbourne",
"Liverpool":"http://united-kingdom.tourcorp.com/destinations/liverpool",
"London":"http://london.tourcorp.com/",
"Manchester":"http://united-kingdom.tourcorp.com/destinations/manchester",
"Newcastle Upon Tyne":"http://united-kingdom.tourcorp.com/destinations/newcastle-upon-tyne",
"Newport":"http://united-kingdom.tourcorp.com/destinations/newport",
"Norwich":"http://united-kingdom.tourcorp.com/destinations/norwich",
"Oxford":"http://united-kingdom.tourcorp.com/destinations/oxford",
"Stratford-upon-Avon":"http://united-kingdom.tourcorp.com/destinations/stratford-upon-avon",
"Warwick":"http://united-kingdom.tourcorp.com/destinations/warwick",
"Windermere":"http://united-kingdom.tourcorp.com/destinations/windermere",
"Windsor":"http://united-kingdom.tourcorp.com/destinations/windsor",
"York":"http://united-kingdom.tourcorp.com/destinations/york",
"Northern Ireland":"http://northern-ireland.tourcorp.com/",
"Belfast":"http://belfast.tourcorp.com/",
"Scotland":"http://scotland.tourcorp.com/",
"Edinburgh":"http://edinburgh.tourcorp.com/",
"Glasgow":"http://glasgow.tourcorp.com/",
"Inverness":"http://united-kingdom.tourcorp.com/destinations/inverness",
"John O'Groats":"http://united-kingdom.tourcorp.com/destinations/john-o'groats",
"Wales":"http://united-kingdom.tourcorp.com/destinations/wales",
"Cardiff":"http://united-kingdom.tourcorp.com/destinations/cardiff",
"Llandudno":"http://united-kingdom.tourcorp.com/destinations/llandudno",
"United States":"http://united-states.tourcorp.com/",
"Alaska":"http://alaska.tourcorp.com/",
"Anchorage":"http://anchorage.tourcorp.com/",
"Juneau":"http://juneau.tourcorp.com/",
"Skagway":"http://skagway.tourcorp.com/",
"Talkeetna":"http://talkeetna.tourcorp.com/",
"Arizona":"http://arizona.tourcorp.com/",
"Flagstaff":"http://sedona.tourcorp.com/",
"Phoenix":"http://phoenix.tourcorp.com/",
"Phoenix - Scottsdale":"http://phoenix.tourcorp.com/",
"Sedona":"http://sedona.tourcorp.com/",
"Williams":"http://kauai-hawaii.tourcorp.com/",
"California":"http://california.tourcorp.com/",
"Anaheim - Buena Park":"http://anaheim.tourcorp.com/",
"Carlsbad":"http://san-diego.tourcorp.com/",
"Los Angeles":"http://los-angeles.tourcorp.com/",
"Palm Springs":"http://palm-springs.tourcorp.com/",
"Sacramento":"http://sacramento.tourcorp.com/",
"San Diego":"http://san-diego.tourcorp.com/",
"San Francisco":"http://san-francisco.tourcorp.com/",
"South Lake Tahoe":"http://united-states.tourcorp.com/destinations/south-lake-tahoe",
"Colorado":"http://colorado.tourcorp.com/",
"Buena Vista":"http://buena-vista.tourcorp.com/",
"Denver":"http://denver.tourcorp.com/",
"District of Columbia":"http://united-states.tourcorp.com/destinations/district-of-columbia",
"Washington DC":"http://washington-dc.tourcorp.com/",
"Florida":"http://florida.tourcorp.com/",
"Clearwater Beach":"http://clearwater-beach.tourcorp.com/",
"Fort Lauderdale":"http://miami.tourcorp.com/",
"Key West":"http://key-west.tourcorp.com/",
"Miami":"http://miami.tourcorp.com/",
"Orlando":"http://orlando.tourcorp.com/",
"St Augustine":"http://st-augustine.tourcorp.com/",
"Tampa":"http://tampa.tourcorp.com/",
"Georgia":"http://georgia.tourcorp.com/",
"Atlanta":"http://atlanta.tourcorp.com/",
"Savannah":"http://savannah.tourcorp.com/",
"Hawaii":"http://hawaii.tourcorp.com/",
"Kauai":"http://kauai-hawaii.tourcorp.com/",
"Maui":"http://maui-hawaii.tourcorp.com/",
"Maui-Kahului":"http://united-states.tourcorp.com/destinations/maui-kahului",
"Oahu":"http://oahu-hawaii.tourcorp.com/",
"Illinois":"http://illinois.tourcorp.com/",
"Chicago":"http://chicago.tourcorp.com/",
"Louisiana":"http://louisiana.tourcorp.com/",
"New Orleans":"http://new-orleans.tourcorp.com/",
"Maryland":"http://maryland.tourcorp.com/",
"Annapolis":"http://washington-dc.tourcorp.com/",
"Baltimore":"http://washington-dc.tourcorp.com/",
"Massachusetts":"http://massachusetts.tourcorp.com/",
"Boston":"http://boston.tourcorp.com/",
"Minnesota":"http://minnesota.tourcorp.com/",
"Minneapolis-St Paul":"http://minneapolis-st-paul.tourcorp.com/",
"Missouri":"http://missouri.tourcorp.com/",
"Branson":"http://branson.tourcorp.com/",
"Nevada":"http://nevada.tourcorp.com/",
"Lake Tahoe":"http://lake-tahoe.tourcorp.com/",
"Las Vegas":"http://las-vegas.tourcorp.com/",
"New York":"http://new-york.tourcorp.com/",
"New York City":"http://new-york.tourcorp.com/",
"Pennsylvania":"http://pennsylvania.tourcorp.com/",
"Gettysburg":"http://philadelphia.tourcorp.com/",
"Philadelphia":"http://philadelphia.tourcorp.com/",
"Pittsburgh":"http://pittsburgh.tourcorp.com/",
"South Carolina":"http://south-carolina.tourcorp.com/",
"Myrtle Beach":"http://myrtle-beach.tourcorp.com/",
"Tennessee":"http://tennessee.tourcorp.com/",
"Memphis":"http://memphis.tourcorp.com/",
"Nashville":"http://nashville.tourcorp.com/",
"Texas":"http://texas.tourcorp.com/",
"Dallas":"http://dallas.tourcorp.com/",
"Houston":"http://houston.tourcorp.com/",
"San Antonio":"http://san-antonio.tourcorp.com/",
"Washington State":"http://seattle.tourcorp.com/",
"Friday Harbor":"http://seattle.tourcorp.com/",
"Seattle":"http://seattle.tourcorp.com/",
"Vietnam":"http://vietnam.tourcorp.com/",
"Hanoi":"http://vietnam.tourcorp.com/destinations/hanoi",
"Ho Chi Minh City":"http://vietnam.tourcorp.com/destinations/ho-chi-minh-city",
"Virgin Islands-British":"http://virgin-islands-british.tourcorp.com/",
"Tortola":"http://virgin-islands-british.tourcorp.com/destinations/tortola",
"Road Town":"http://virgin-islands-british.tourcorp.com/destinations/road-town",
"Virgin Islands-US":"http://virgin-islands-us.tourcorp.com/",
"US Virgin Islands":"http://www.buyusvirginislandstours.com/",
"St John":"http://virgin-islands-us.tourcorp.com/destinations/st-john",
"St Thomas":"http://virgin-islands-us.tourcorp.com/destinations/st-thomas"};
   

    locationsByCountry['Antigua and Barbuda'] = new Array("St Johns", "-----", "Antigua");
    locationsByCountry['Argentina'] = new Array("Buenos Aires", "El Calafate", "Mendoza", "Puerto Iguazu", "Ushuaia", "-----", "Buenos Aires", "Mendoza", "Misiones", "Santa Cruz", "Ushuaia");
    locationsByCountry['Aruba'] = new Array("Oranjestad", "-----", "Aruba");
    locationsByCountry['Australia'] = new Array("Adelaide", "Alice Springs", "Ayers Rock", "Brisbane", "Broome", "Cairns", "Canberra", "Darwin", "Fraser Island", "Gold Coast", "Hobart", "Kununurra", "Launceston", "Melbourne", "Noosa", "Palm Cove", "Perth", "Phillip Island", "Port Douglas", "Shute Harbour", "Strahan", "Sunshine Coast", "Sydney", "Whitsundays", "-----", "Australian Capital Territory", "New South Wales", "Northern Territory", "Queensland", "South Australia", "Tasmania", "Victoria", "Western Australia");
    locationsByCountry['Austria'] = new Array("Salzburg", "Vienna", "-----", "Salzburg and Upper Austria", "Vienna and Burgenland");
    locationsByCountry['Bahamas'] = new Array("Freeport", "Nassau", "-----", "Grand Bahama", "New Providence");
    locationsByCountry['Barbados'] = new Array("Barbados", "Bridgetown", "St James", "-----", "Barbados", "Bridgetown", "St James");
    locationsByCountry['Belgium'] = new Array("Brussels", "-----", "Wallonia");
    locationsByCountry['Belize'] = new Array("Belize City", "-----", "Belize");
    locationsByCountry['Brazil'] = new Array("Fortaleza", "Natal", "Rio de Janeiro", "Salvador", "-----", "Northeast", "Southeast");
    locationsByCountry['Cambodia'] = new Array("Fuerteventura", "Phnom Penh", "Siem Reap", "-----", "Canary Islands", "Phnom Penh", "Siem Reap");
    locationsByCountry['Canada'] = new Array("Banff", "Calgary", "Edmonton", "Jasper", "Montreal", "Niagara Falls", "Niagara-on-the-Lake", "Ottawa", "Quebec City", "Toronto", "Vancouver", "Victoria", "Whistler", "-----", "Alberta", "British Columbia", "Ontario", "Quebec");
    locationsByCountry['Cayman Islands'] = new Array("Georgetown", "-----", "Grand Cayman");
    locationsByCountry['Chile'] = new Array("Hanga Roa", "Puerto Montt", "Puerto Natales", "Punta Arenas", "San Pedro de Atacama", "Santiago", "-----", "Central Chile", "Easter Island", "North Chile", "Patagonia", "South Chile");
    locationsByCountry['China'] = new Array("Beijing", "Guilin", "Shanghai", "Xian", "-----", "Beijing", "Guilin", "Shanghai", "Xian");
    locationsByCountry['Costa Rica'] = new Array("Central Pacific", "Guanacaste", "San Jose", "-----", "Central Pacific", "Central Valley", "North Pacific");
    locationsByCountry['Croatia'] = new Array("Dubrovnik", "-----", "Dalmatia");
    locationsByCountry['Czech Republic'] = new Array("Prague", "-----", "Bohemia");
    locationsByCountry['Denmark'] = new Array("Copenhagen", "-----", "Copenhagen");
    locationsByCountry['Dominica'] = new Array("Roseau", "-----", "Dominica");
    locationsByCountry['Dominican Republic'] = new Array("La Romana", "Puerto Plata", "Punta Cana", "Santo Domingo", "-----", "North", "Southeast");
    locationsByCountry['Ecuador'] = new Array("Cuenca", "Guayaquil", "Quito", "-----", "Azay Cuenca", "Guayas", "Pichincha");
    locationsByCountry['Egypt'] = new Array("Aswan", "Cairo", "Hurghada", "Luxor", "Sharm el-Sheikh", "-----", "Nile Valley", "Red Sea Coast", "Sinai");
    locationsByCountry['Fiji'] = new Array("Nadi", "-----", "Nadi and Surrounds");
    locationsByCountry['Finland'] = new Array("Helsinki", "Levi", "Rovaniemi", "-----", "Finland", "Lapland");
    locationsByCountry['France'] = new Array("Avignon", "Bayeux", "Bordeaux", "Cannes", "Dijon", "Lille", "Lyon", "Marseille", "Nantes", "Nice", "Nimes", "Paris", "Reims", "Strasbourg", "Toulouse", "-----", "Alsace", "Aquitaine", "Burgundy", "Centre Loire Valley", "Champagne-Ardenne", "French Riviera", "Ile de France and Paris", "Languedoc-Roussillon", "Midi-Pyrenees", "Nord-Pas de Calais", "Normandy", "Provence Alpes Cote d'Azur", "Rhone Alpes");
    locationsByCountry['French Polynesia'] = new Array("Bora Bora", "Moorea", "Papeete", "-----", "Bora Bora", "Moorea", "Tahiti");
    locationsByCountry['Germany'] = new Array("Berlin", "Bonn", "Cologne", "Dusseldorf", "Frankfurt", "Hamburg", "Koblenz", "Mainz", "Munich", "Potsdam", "-----", "Bavaria", "Brandenburg", "Hamburg", "Hesse", "North Rhine-Westphalia", "Rhineland Palatinate");
    locationsByCountry['Greece'] = new Array("Athens", "Corfu", "Heraklion", "Kos", "-----", "Attica and the Saronic Isles", "Crete", "Dodecanese Islands", "Ionian Islands");
    locationsByCountry['Hong Kong'] = new Array("Hong Kong", "-----", "Hong Kong");
    locationsByCountry['Hungary'] = new Array("Budapest", "-----", "Budapest and Northern Transdanubia");
    locationsByCountry['Iceland'] = new Array("Reykjavik", "-----", "Iceland");
    locationsByCountry['India'] = new Array("Delhi", "-----", "Delhi");
    locationsByCountry['Indonesia'] = new Array("Bali", "-----", "Bali");
    locationsByCountry['Ireland'] = new Array("Cork", "Dublin", "Galway", "Kilkenny", "Killarney", "Shannon", "-----", "County Clare", "County Cork", "County Dublin", "County Galway", "County Kerry", "County Kilkenny");
    locationsByCountry['Italy'] = new Array("Amalfi", "Bologna", "Florence", "Livorno", "Milan", "Naples", "Padua", "Palermo", "Pisa", "Positano", "Rome", "Sorrento", "Turin", "Venice", "-----", "Campania and Naples", "Emilia-Romagna", "Latium and Rome", "Lombardy and Milan", "Piedmont", "Sicily", "Tuscany and Florence", "Veneto and Venice");
    locationsByCountry['Jamaica'] = new Array("Montego Bay", "Negril", "Ocho Rios", "-----", "Montego Bay", "Negril", "Ocho Rios");
    locationsByCountry['Japan'] = new Array("Hiroshima", "Kyoto", "Osaka", "Tokyo", "-----", "Hiroshima", "Kyoto", "Osaka", "Tokyo");
    locationsByCountry['Jordan'] = new Array("Amman", "-----", "Mountain Heights Plateau");
    locationsByCountry['Kenya'] = new Array("Mombasa", "Nairobi", "-----", "Central Kenya", "Eastern Coast");
    locationsByCountry['Lithuania'] = new Array("Vilnius", "-----", "Vilnius");
    locationsByCountry['Luxembourg'] = new Array("Luxembourg", "-----", "Luxembourg");
    locationsByCountry['Malaysia'] = new Array("Kuala Lumpur", "Langkawi", "Penang", "Sabah", "Sarawak", "-----", "Central Region", "Northern Region", "Sabah and Sarawak");
    locationsByCountry['Mexico'] = new Array("Acapulco", "Cancun", "Cozumel", "Los Cabos", "Mexico City", "Nuevo Vallarta", "Puerto Vallarta", "Riviera Maya", "-----", "Baja California Sur", "Distrito Federal", "Guerrero", "Jalisco", "Nayarit", "Quintana Roo");
    locationsByCountry['Morocco'] = new Array("Marrakech", "-----", "Haut Atlas");
    locationsByCountry['Netherlands'] = new Array("Amsterdam", "-----", "Eastern Holland", "Noord-Holland");
    locationsByCountry['Netherlands Antilles'] = new Array("Curacao", "Philipsburg", "St Maarten", "St Martin", "-----", "Curacao", "St Maarten", "St Martin");
    locationsByCountry['Nevis- St Kitts'] = new Array("Charlestown", "-----", "Nevis");
    locationsByCountry['New Zealand'] = new Array("Akaroa", "Auckland", "Bay of Islands", "Christchurch", "Dunedin", "Fox Glacier", "Franz Josef", "Greymouth", "Milford Sound", "Mount Cook", "Picton", "Queenstown", "Rotorua", "Taupo", "Te Anau", "Waitomo", "Wellington", "-----", "North Island", "South Island");
    locationsByCountry['Norway'] = new Array("Oslo", "-----", "Oslo Fjord Region");
    locationsByCountry['Oman'] = new Array("Muscat", "-----", "Muscat and Capital Area");
    locationsByCountry['Poland'] = new Array("Krakow", "Warsaw", "-----", "Central Poland", "Southern Poland");
    locationsByCountry['Portugal'] = new Array("Albufeira", "Faial Island", "Faro", "Flores Island", "Funchal", "Graciosa Island", "Lisbon", "Pico Island", "Ponta Delgada", "Porto", "Sao Jorge Island", "Terceira Island", "-----", "Azores", "East Algarve", "Lisbon and Central Portugal", "Madeira Island", "Porto and Northern Portugal", "West Algarve");
    locationsByCountry['Puerto Rico'] = new Array("San Juan", "-----", "San Juan");
    locationsByCountry['Russia'] = new Array("Moscow", "St Petersburg", "-----", "Central", "North-Western");
    locationsByCountry['Saint Lucia'] = new Array("Castries", "Soufriere", "Vieux Fort", "-----", "St Lucia");
    locationsByCountry['Singapore'] = new Array("Singapore", "-----", "Singapore");
    locationsByCountry['Slovenia'] = new Array("Ljubljana", "-----", "Ljubljana");
    locationsByCountry['South Africa'] = new Array("Cape Town", "Durban", "Johannesburg", "-----", "Gauteng", "Kwazulu-Natal", "Western Cape");
    locationsByCountry['Spain'] = new Array("Alicante", "Barcelona", "Bilbao", "Cadiz", "Cordoba", "Costa Brava", "Costa del Sol", "Fuerteventura", "Gerona", "Gran Canaria", "Granada", "Haro", "La Coruna", "Lanzarote", "Madrid", "Majorca", "Malaga", "Menorca", "San Sebastian", "Santander", "Santiago de Compostela", "Seville", "Tenerife", "Valencia", "Zaragoza", "-----", "Andalucia and Costa del Sol", "Aragon", "Balearic Islands", "Basque Country", "Canary Islands", "Cantabria", "Catalonia and Barcelona", "Galicia", "Madrid", "Navarra", "Valencian Community");
    locationsByCountry['Sweden'] = new Array("Gothenburg", "Stockholm", "-----", "Central Sweden", "West Sweden");
    locationsByCountry['Switzerland'] = new Array("Geneva", "Lucerne", "Zurich", "-----", "Central Switzerland", "Lake Geneva and Western Switzerland");
    locationsByCountry['Taiwan'] = new Array("Taipei", "-----", "Northern Taiwan");
    locationsByCountry['Thailand'] = new Array("Bangkok", "Chiang Mai", "Chiang Rai", "Koh Samui", "Krabi", "Pattaya", "Phuket", "-----", "Central Region", "East Coast", "North", "South");
    locationsByCountry['Trinidad and Tobago'] = new Array("Port of Spain", "Scarborough", "-----", "Tobago", "Trinidad");
    locationsByCountry['Turkey'] = new Array("Ankara", "Antalya", "Istanbul", "Izmir", "Kusadasi", "Marmaris", "Urgup", "-----", "Aegean", "Cappadocia", "Central Anatolia", "Marmara", "Mediterranean");
    locationsByCountry['United Arab Emirates'] = new Array("Abu Dhabi", "Dubai", "Sharjah", "-----", "Abu Dhabi Emirate", "Dubai Emirate", "Sharjah Emirate");
    locationsByCountry['United Kingdom'] = new Array("Bath", "Belfast", "Blackpool", "Brighton", "Cambridge", "Cardiff", "Chester", "Eastbourne", "Edinburgh", "Glasgow", "Inverness", "John O'Groats", "Liverpool", "Llandudno", "London", "Manchester", "Newcastle Upon Tyne", "Newport", "Norwich", "Oxford", "Stratford-upon-Avon", "Warwick", "Windermere", "Windsor", "York", "-----", "England", "Northern Ireland", "Scotland", "Wales");
    locationsByCountry['United States'] = new Array("Anaheim - Buena Park", "Anchorage", "Annapolis", "Atlanta", "Baltimore", "Boston", "Branson", "Buena Vista", "Carlsbad", "Chicago", "Clearwater Beach", "Dallas", "Denver", "Flagstaff", "Fort Lauderdale", "Friday Harbor", "Gettysburg", "Hawaii", "Houston", "Juneau", "Kauai", "Key West", "Lake Tahoe", "Las Vegas", "Los Angeles", "Maui", "Maui-Kahului", "Memphis", "Miami", "Minneapolis-St Paul", "Myrtle Beach", "Nashville", "New Orleans", "New York City", "Oahu", "Orlando", "Palm Springs", "Philadelphia", "Phoenix", "Phoenix - Scottsdale", "Pittsburgh", "Sacramento", "San Antonio", "San Diego", "San Francisco", "Savannah", "Seattle", "Sedona", "Skagway", "South Lake Tahoe", "St Augustine", "Talkeetna", "Tampa", "Washington DC", "Williams", "-----", "Alaska", "Arizona", "California", "Colorado", "District of Columbia", "Florida", "Georgia", "Hawaii", "Illinois", "Louisiana", "Maryland", "Massachusetts", "Minnesota", "Missouri", "Nevada", "New York", "Pennsylvania", "South Carolina", "Tennessee", "Texas", "Washington State");
    locationsByCountry['Vietnam'] = new Array("Hanoi", "Ho Chi Minh City", "-----", "Hanoi", "Ho Chi Minh City");
    locationsByCountry['Virgin Islands-British'] = new Array("Road Town", "-----", "Tortola");
    locationsByCountry['Virgin Islands-US'] = new Array("St John", "St Thomas", "-----", "US Virgin Islands");
 

   locationsByRegion["Antigua"] = new Array("St Johns");
   locationsByRegion["Buenos Aires"] = new Array("Buenos Aires");
   locationsByRegion["Mendoza"] = new Array("Mendoza");
   locationsByRegion["Misiones"] = new Array("Puerto Iguazu");
   locationsByRegion["Santa Cruz"] = new Array("El Calafate");
   locationsByRegion["Ushuaia"] = new Array("Ushuaia");
   locationsByRegion["Aruba"] = new Array("Oranjestad");
   locationsByRegion["Australian Capital Territory"] = new Array("Canberra");
   locationsByRegion["New South Wales"] = new Array("Sydney");
   locationsByRegion["Northern Territory"] = new Array("Alice Springs", "Ayers Rock", "Darwin");
   locationsByRegion["Queensland"] = new Array("Brisbane", "Cairns", "Fraser Island", "Gold Coast", "Noosa", "Palm Cove", "Port Douglas", "Shute Harbour", "Sunshine Coast", "Whitsundays");
   locationsByRegion["South Australia"] = new Array("Adelaide");
   locationsByRegion["Tasmania"] = new Array("Hobart", "Launceston", "Strahan");
   locationsByRegion["Victoria"] = new Array("Melbourne", "Phillip Island");
   locationsByRegion["Western Australia"] = new Array("Broome", "Kununurra", "Perth");
   locationsByRegion["Salzburg and Upper Austria"] = new Array("Salzburg");
   locationsByRegion["Vienna and Burgenland"] = new Array("Vienna");
   locationsByRegion["Grand Bahama"] = new Array("Freeport");
   locationsByRegion["New Providence"] = new Array("Nassau");
   locationsByRegion["Barbados"] = new Array("Barbados");
   locationsByRegion["Bridgetown"] = new Array("Bridgetown");
   locationsByRegion["St James"] = new Array("St James");
   locationsByRegion["Wallonia"] = new Array("Brussels");
   locationsByRegion["Belize"] = new Array("Belize City");
   locationsByRegion["Northeast"] = new Array("Fortaleza", "Natal", "Salvador");
   locationsByRegion["Southeast"] = new Array("Rio de Janeiro");
   locationsByRegion["Canary Islands"] = new Array("Fuerteventura");
   locationsByRegion["Phnom Penh"] = new Array("Phnom Penh");
   locationsByRegion["Siem Reap"] = new Array("Siem Reap");
   locationsByRegion["Alberta"] = new Array("Banff", "Calgary", "Edmonton", "Jasper");
   locationsByRegion["British Columbia"] = new Array("Vancouver", "Victoria", "Whistler");
   locationsByRegion["Ontario"] = new Array("Niagara Falls", "Niagara-on-the-Lake", "Ottawa", "Toronto");
   locationsByRegion["Quebec"] = new Array("Montreal", "Quebec City");
   locationsByRegion["Grand Cayman"] = new Array("Georgetown");
   locationsByRegion["Central Chile"] = new Array("Santiago");
   locationsByRegion["Easter Island"] = new Array("Hanga Roa");
   locationsByRegion["North Chile"] = new Array("San Pedro de Atacama");
   locationsByRegion["Patagonia"] = new Array("Puerto Natales", "Punta Arenas");
   locationsByRegion["South Chile"] = new Array("Puerto Montt");
   locationsByRegion["Beijing"] = new Array("Beijing");
   locationsByRegion["Guilin"] = new Array("Guilin");
   locationsByRegion["Shanghai"] = new Array("Shanghai");
   locationsByRegion["Xian"] = new Array("Xian");
   locationsByRegion["Central Pacific"] = new Array("Central Pacific");
   locationsByRegion["Central Valley"] = new Array("San Jose");
   locationsByRegion["North Pacific"] = new Array("Guanacaste");
   locationsByRegion["Dalmatia"] = new Array("Dubrovnik");
   locationsByRegion["Bohemia"] = new Array("Prague");
   locationsByRegion["Copenhagen"] = new Array("Copenhagen");
   locationsByRegion["Dominica"] = new Array("Roseau");
   locationsByRegion["North"] = new Array("Puerto Plata");
   locationsByRegion["Southeast"] = new Array("La Romana", "Punta Cana", "Santo Domingo");
   locationsByRegion["Azay Cuenca"] = new Array("Cuenca");
   locationsByRegion["Guayas"] = new Array("Guayaquil");
   locationsByRegion["Pichincha"] = new Array("Quito");
   locationsByRegion["Nile Valley"] = new Array("Aswan", "Cairo", "Luxor");
   locationsByRegion["Red Sea Coast"] = new Array("Hurghada");
   locationsByRegion["Sinai"] = new Array("Sharm el-Sheikh");
   locationsByRegion["Nadi and Surrounds"] = new Array("Nadi");
   locationsByRegion["Finland"] = new Array("Helsinki");
   locationsByRegion["Lapland"] = new Array("Levi", "Rovaniemi");
   locationsByRegion["Alsace"] = new Array("Strasbourg");
   locationsByRegion["Aquitaine"] = new Array("Bordeaux");
   locationsByRegion["Burgundy"] = new Array("Dijon");
   locationsByRegion["Centre Loire Valley"] = new Array("Nantes");
   locationsByRegion["Champagne-Ardenne"] = new Array("Reims");
   locationsByRegion["French Riviera"] = new Array("Cannes", "Nice");
   locationsByRegion["Ile de France and Paris"] = new Array("Paris");
   locationsByRegion["Languedoc-Roussillon"] = new Array("Nimes");
   locationsByRegion["Midi-Pyrenees"] = new Array("Toulouse");
   locationsByRegion["Nord-Pas de Calais"] = new Array("Lille");
   locationsByRegion["Normandy"] = new Array("Bayeux");
   locationsByRegion["Provence Alpes Cote d'Azur"] = new Array("Avignon", "Marseille");
   locationsByRegion["Rhone Alpes"] = new Array("Lyon");
   locationsByRegion["Bora Bora"] = new Array("Bora Bora");
   locationsByRegion["Moorea"] = new Array("Moorea");
   locationsByRegion["Tahiti"] = new Array("Papeete");
   locationsByRegion["Bavaria"] = new Array("Munich");
   locationsByRegion["Brandenburg"] = new Array("Berlin", "Potsdam");
   locationsByRegion["Hamburg"] = new Array("Hamburg");
   locationsByRegion["Hesse"] = new Array("Frankfurt");
   locationsByRegion["North Rhine-Westphalia"] = new Array("Bonn", "Cologne", "Dusseldorf");
   locationsByRegion["Rhineland Palatinate"] = new Array("Koblenz", "Mainz");
   locationsByRegion["Attica and the Saronic Isles"] = new Array("Athens");
   locationsByRegion["Crete"] = new Array("Heraklion");
   locationsByRegion["Dodecanese Islands"] = new Array("Kos");
   locationsByRegion["Ionian Islands"] = new Array("Corfu");
   locationsByRegion["Hong Kong"] = new Array("Hong Kong");
   locationsByRegion["Budapest and Northern Transdanubia"] = new Array("Budapest");
   locationsByRegion["Iceland"] = new Array("Reykjavik");
   locationsByRegion["Delhi"] = new Array("Delhi");
   locationsByRegion["Bali"] = new Array("Bali");
   locationsByRegion["County Clare"] = new Array("Shannon");
   locationsByRegion["County Cork"] = new Array("Cork");
   locationsByRegion["County Dublin"] = new Array("Dublin");
   locationsByRegion["County Galway"] = new Array("Galway");
   locationsByRegion["County Kerry"] = new Array("Killarney");
   locationsByRegion["County Kilkenny"] = new Array("Kilkenny");
   locationsByRegion["Campania and Naples"] = new Array("Amalfi", "Naples", "Positano", "Sorrento");
   locationsByRegion["Emilia-Romagna"] = new Array("Bologna");
   locationsByRegion["Latium and Rome"] = new Array("Rome");
   locationsByRegion["Lombardy and Milan"] = new Array("Milan");
   locationsByRegion["Piedmont"] = new Array("Turin");
   locationsByRegion["Sicily"] = new Array("Palermo");
   locationsByRegion["Tuscany and Florence"] = new Array("Florence", "Livorno", "Pisa");
   locationsByRegion["Veneto and Venice"] = new Array("Padua", "Venice");
   locationsByRegion["Montego Bay"] = new Array("Montego Bay");
   locationsByRegion["Negril"] = new Array("Negril");
   locationsByRegion["Ocho Rios"] = new Array("Ocho Rios");
   locationsByRegion["Hiroshima"] = new Array("Hiroshima");
   locationsByRegion["Kyoto"] = new Array("Kyoto");
   locationsByRegion["Osaka"] = new Array("Osaka");
   locationsByRegion["Tokyo"] = new Array("Tokyo");
   locationsByRegion["Mountain Heights Plateau"] = new Array("Amman");
   locationsByRegion["Central Kenya"] = new Array("Nairobi");
   locationsByRegion["Eastern Coast"] = new Array("Mombasa");
   locationsByRegion["Vilnius"] = new Array("Vilnius");
   locationsByRegion["Luxembourg"] = new Array("Luxembourg");
   locationsByRegion["Central Region"] = new Array("Kuala Lumpur");
   locationsByRegion["Northern Region"] = new Array("Langkawi", "Penang");
   locationsByRegion["Sabah and Sarawak"] = new Array("Sabah", "Sarawak");
   locationsByRegion["Baja California Sur"] = new Array("Los Cabos");
   locationsByRegion["Distrito Federal"] = new Array("Mexico City");
   locationsByRegion["Guerrero"] = new Array("Acapulco");
   locationsByRegion["Jalisco"] = new Array("Puerto Vallarta");
   locationsByRegion["Nayarit"] = new Array("Nuevo Vallarta");
   locationsByRegion["Quintana Roo"] = new Array("Cancun", "Cozumel", "Riviera Maya");
   locationsByRegion["Haut Atlas"] = new Array("Marrakech");
   locationsByRegion["Eastern Holland"] = new Array("Amsterdam");
   locationsByRegion["Noord-Holland"] = new Array("Amsterdam");
   locationsByRegion["Curacao"] = new Array("Curacao");
   locationsByRegion["St Maarten"] = new Array("Philipsburg", "St Maarten");
   locationsByRegion["St Martin"] = new Array("St Martin");
   locationsByRegion["Nevis"] = new Array("Charlestown");
   locationsByRegion["North Island"] = new Array("Auckland", "Bay of Islands", "Rotorua", "Taupo", "Waitomo", "Wellington");
   locationsByRegion["South Island"] = new Array("Akaroa", "Christchurch", "Dunedin", "Fox Glacier", "Franz Josef", "Greymouth", "Milford Sound", "Mount Cook", "Picton", "Queenstown", "Te Anau");
   locationsByRegion["Oslo Fjord Region"] = new Array("Oslo");
   locationsByRegion["Muscat and Capital Area"] = new Array("Muscat");
   locationsByRegion["Central Poland"] = new Array("Warsaw");
   locationsByRegion["Southern Poland"] = new Array("Krakow");
   locationsByRegion["Azores"] = new Array("Faial Island", "Flores Island", "Graciosa Island", "Pico Island", "Ponta Delgada", "Sao Jorge Island", "Terceira Island");
   locationsByRegion["East Algarve"] = new Array("Faro");
   locationsByRegion["Lisbon and Central Portugal"] = new Array("Lisbon");
   locationsByRegion["Madeira Island"] = new Array("Funchal");
   locationsByRegion["Porto and Northern Portugal"] = new Array("Porto");
   locationsByRegion["West Algarve"] = new Array("Albufeira");
   locationsByRegion["San Juan"] = new Array("San Juan");
   locationsByRegion["Central"] = new Array("Moscow");
   locationsByRegion["North-Western"] = new Array("St Petersburg");
   locationsByRegion["St Lucia"] = new Array("Castries", "Soufriere", "Vieux Fort");
   locationsByRegion["Singapore"] = new Array("Singapore");
   locationsByRegion["Ljubljana"] = new Array("Ljubljana");
   locationsByRegion["Gauteng"] = new Array("Johannesburg");
   locationsByRegion["Kwazulu-Natal"] = new Array("Durban");
   locationsByRegion["Western Cape"] = new Array("Cape Town");
   locationsByRegion["Andalucia and Costa del Sol"] = new Array("Cadiz", "Cordoba", "Costa del Sol", "Granada", "Malaga", "Seville");
   locationsByRegion["Aragon"] = new Array("Zaragoza");
   locationsByRegion["Balearic Islands"] = new Array("Majorca", "Menorca");
   locationsByRegion["Basque Country"] = new Array("Bilbao", "San Sebastian");
   locationsByRegion["Canary Islands"] = new Array("Fuerteventura", "Gran Canaria", "Lanzarote", "Tenerife");
   locationsByRegion["Cantabria"] = new Array("Santander");
   locationsByRegion["Catalonia and Barcelona"] = new Array("Barcelona", "Costa Brava", "Gerona");
   locationsByRegion["Galicia"] = new Array("La Coruna", "Santiago de Compostela");
   locationsByRegion["Madrid"] = new Array("Madrid");
   locationsByRegion["Navarra"] = new Array("Haro");
   locationsByRegion["Valencian Community"] = new Array("Alicante", "Valencia");
   locationsByRegion["Central Sweden"] = new Array("Stockholm");
   locationsByRegion["West Sweden"] = new Array("Gothenburg");
   locationsByRegion["Central Switzerland"] = new Array("Lucerne", "Zurich");
   locationsByRegion["Lake Geneva and Western Switzerland"] = new Array("Geneva");
   locationsByRegion["Northern Taiwan"] = new Array("Taipei");
   locationsByRegion["Central Region"] = new Array("Bangkok");
   locationsByRegion["East Coast"] = new Array("Pattaya");
   locationsByRegion["North"] = new Array("Chiang Mai", "Chiang Rai");
   locationsByRegion["South"] = new Array("Koh Samui", "Krabi", "Phuket");
   locationsByRegion["Tobago"] = new Array("Scarborough");
   locationsByRegion["Trinidad"] = new Array("Port of Spain");
   locationsByRegion["Aegean"] = new Array("Izmir", "Kusadasi", "Marmaris");
   locationsByRegion["Cappadocia"] = new Array("Urgup");
   locationsByRegion["Central Anatolia"] = new Array("Ankara");
   locationsByRegion["Marmara"] = new Array("Istanbul");
   locationsByRegion["Mediterranean"] = new Array("Antalya");
   locationsByRegion["Abu Dhabi Emirate"] = new Array("Abu Dhabi");
   locationsByRegion["Dubai Emirate"] = new Array("Dubai");
   locationsByRegion["Sharjah Emirate"] = new Array("Sharjah");
   locationsByRegion["England"] = new Array("Bath", "Blackpool", "Brighton", "Cambridge", "Chester", "Eastbourne", "Liverpool", "London", "Manchester", "Newcastle Upon Tyne", "Newport", "Norwich", "Oxford", "Stratford-upon-Avon", "Warwick", "Windermere", "Windsor", "York");
   locationsByRegion["Northern Ireland"] = new Array("Belfast");
   locationsByRegion["Scotland"] = new Array("Edinburgh", "Glasgow", "Inverness", "John O'Groats");
   locationsByRegion["Wales"] = new Array("Cardiff", "Llandudno");
   locationsByRegion["Alaska"] = new Array("Anchorage", "Juneau", "Skagway", "Talkeetna");
   locationsByRegion["Arizona"] = new Array("Flagstaff", "Phoenix", "Phoenix - Scottsdale", "Sedona", "Williams");
   locationsByRegion["California"] = new Array("Anaheim - Buena Park", "Carlsbad", "Los Angeles", "Palm Springs", "Sacramento", "San Diego", "San Francisco", "South Lake Tahoe");
   locationsByRegion["Colorado"] = new Array("Buena Vista", "Denver");
   locationsByRegion["District of Columbia"] = new Array("Washington DC");
   locationsByRegion["Florida"] = new Array("Clearwater Beach", "Fort Lauderdale", "Key West", "Miami", "Orlando", "St Augustine", "Tampa");
   locationsByRegion["Georgia"] = new Array("Atlanta", "Savannah");
   locationsByRegion["Hawaii"] = new Array("Hawaii", "Kauai", "Maui", "Maui-Kahului", "Oahu");
   locationsByRegion["Illinois"] = new Array("Chicago");
   locationsByRegion["Louisiana"] = new Array("New Orleans");
   locationsByRegion["Maryland"] = new Array("Annapolis", "Baltimore");
   locationsByRegion["Massachusetts"] = new Array("Boston");
   locationsByRegion["Minnesota"] = new Array("Minneapolis-St Paul");
   locationsByRegion["Missouri"] = new Array("Branson");
   locationsByRegion["Nevada"] = new Array("Lake Tahoe", "Las Vegas");
   locationsByRegion["New York"] = new Array("New York City");
   locationsByRegion["Pennsylvania"] = new Array("Gettysburg", "Philadelphia", "Pittsburgh");
   locationsByRegion["South Carolina"] = new Array("Myrtle Beach");
   locationsByRegion["Tennessee"] = new Array("Memphis", "Nashville");
   locationsByRegion["Texas"] = new Array("Dallas", "Houston", "San Antonio");
   locationsByRegion["Washington State"] = new Array("Friday Harbor", "Seattle");
   locationsByRegion["Hanoi"] = new Array("Hanoi");
   locationsByRegion["Ho Chi Minh City"] = new Array("Ho Chi Minh City");
   locationsByRegion["Tortola"] = new Array("Road Town");
   locationsByRegion["US Virgin Islands"] = new Array("St John", "St Thomas");
    

/* this function is invoked when a selection is made on the top drop-down menu containing list of countries */

function refreshStates() {
    
    var countrySelected = document.locationMenu.countryList.value;
    var countrySelectedIndex = document.locationMenu.countryList.selectedIndex;
    var regionSelected = document.locationMenu.regionList.value;
    var regionSelectedIndex = document.locationMenu.regionList.selectedIndex;
    var citySelected = document.locationMenu.cityList.value;
    var citySelectedIndex = document.locationMenu.cityList.selectedIndex;
    
    if ( countrySelected != "0") {
        document.locationMenu.action = urlByLocation[ countrySelected ];
        document.getElementById('regionSelect').style.display = 'block';
        for ( i = document.locationMenu.regionList.options.length-1; i>=0; i-- ) {
            document.locationMenu.regionList.remove(i);
        }
        var optn = document.createElement("OPTION");
        optn.text = "Select a City/Region";
        optn.value = "0";
        document.locationMenu.regionList.options.add(optn);
        for ( var subdv in locationsByCountry[ document.locationMenu.countryList.value ] ) {
            optn = document.createElement("OPTION");
            optn.text = locationsByCountry[ document.locationMenu.countryList.value ][subdv];
            if ( optn.text == '-----' ) {
                optn.value = "0";
            }
            else {
                optn.value = locationsByCountry[ document.locationMenu.countryList.value ][subdv];
            }
            document.locationMenu.regionList.options.add(optn);
        }
    }
    else {
        for ( i = document.locationMenu.regionList.options.length-1; i>=0; i-- ) {
            document.locationMenu.regionList.remove(i);
        }
        var optn = document.createElement("OPTION");
        optn.text = "Select a City/Region";
        optn.value = "0";
        document.locationMenu.regionList.options.add(optn);
        document.getElementById('regionSelect').style.display = 'none';
    }
    
    if ( regionSelected != "0" ) {
        document.locationMenu.action = urlByLocation[ regionSelected ];
        if ( regionSelected in oc( locationsByCountry[ countrySelected ] )) {
            document.locationMenu.regionList.selectedIndex = regionSelectedIndex;
        }
    }
    if ( regionSelected != "0" && locationsByRegion[ regionSelected ] instanceof Array 
         && ( 
                    ( locationsByRegion[ regionSelected ].length == 1 &&  locationsByRegion[ regionSelected ][0] != regionSelected) 
                    ||  locationsByRegion[ regionSelected ].length > 1 
               ) 
          ){
        document.getElementById('citySelect').style.display = 'block';
        for ( i = document.locationMenu.cityList.options.length-1; i>=0; i-- ) {
            document.locationMenu.cityList.remove(i);
        }
        var optn = document.createElement("OPTION");
        optn.text = "Select a City";
        optn.value = "0";
        document.locationMenu.cityList.options.add(optn);
        for ( var subdv in locationsByRegion[ regionSelected ] ) {
            optn = document.createElement("OPTION");
            optn.text = locationsByRegion[ regionSelected ][subdv];
            optn.value = locationsByRegion[ regionSelected ][subdv];
            document.locationMenu.cityList.options.add(optn);
        }
    }
    else {
        for ( i = document.locationMenu.cityList.options.length-1; i>=0; i-- ) {
            document.locationMenu.cityList.remove(i);
        }
        var optn = document.createElement("OPTION");
        optn.text = "Select a City";
        optn.value = "0";
        document.locationMenu.cityList.options.add(optn);
        document.getElementById('citySelect').style.display = 'none';
    }
    
    if ( citySelected != "0") {
        document.locationMenu.action = urlByLocation[ citySelected ];
        document.locationMenu.cityList.selectedIndex = citySelectedIndex;
    }
}

function oc(a) {
    var o = {};
    if ( a ) {
        for(var i=0;i<a.length;i++) {
            o[a[i]]='';
        }
    }
    return o;
}