<!-- 

var listing_style = "states";
var state = new Array(); 
state["USA"] = "----United States----";
state["CA"] = "California";
state["CO"] = "Colorado";
state["CT"] = "Connecticut";
state["DC"] = "District of Columbia";
state["FL"] = "Florida";
state["GA"] = "Georgia";
state["HI"] = "Hawaii";
state["IL"] = "Illinois";
state["KY"] = "Kentucky";
state["LA"] = "Louisiana";
state["MA"] = "Massachusetts";
state["MD"] = "Maryland";
state["MO"] = "Missouri";
state["NJ"] = "New Jersey";
state["NV"] = "Nevada";
state["NY"] = "New York";
state["PA"] = "Pennsylvania";
state["UT"] = "Utah";
state["WA"] = "Washington";
state["CND"] = "-----Canada-----";
state["AB"] = "Alberta";
state["BC"] = "British Columbia";
state["ON"] = "Ontario";
state["QC"] = "Quebec";
state["ARGENTINA"] = "-----Argentina-----";
state["AU"] = "-----Australia-----";
state["BRAZIL"] = "-----Brazil-----";
state["CN"] = "-----China-----";
state["COSTARICA"] = "-----Costa Rica-----";
state["ECUADOR"] = "-----Ecuador-----";
state["EU"] = "-----Europe-----";
state["ISRAEL"] = "-----Israel-----";
state["MX"] = "-----Mexico-----";
state["NZD"] = "-----New Zealand-----";
state["PERU"] = "-----Peru-----";
 
 //-->
<!--
var tcities = new Array('Acapulco, MX', 'Adelaide, AU', 'Algarve, EU', 'Alice Spring, AU', 'Amsterdam, EU', 'Anaheim, CA', 'Athens, EU', 'Azores, EU', 'Baltimore, MD', 'Beijing, CN', 'Boston, MA', 'Branson, MO', 'Brisbane, AU', 'Brussels, EU', 'Budapest, EU', 'Buenos Aires, ARGENTINA', 'Cabo San Lucas, MX', 'Calgary, AB', 'Cancun, MX', 'Charlton, MA', 'Chengdu, CN', 'Chicago, IL', 'Christchurch, NZD', 'Cologne, EU', 'Darwin, AU', 'Denver, CO', 'Dublin, EU', 'Edinburgh, EU', 'Edison, NJ', 'Florence, EU', 'Flushing, NY', 'Frankfurt, EU', 'Gold Coast, AU', 'Guayaquil, ECUADOR', 'Guilin, CN', 'Hawaii, HI', 'Herzliya, ISRAEL', 'Hobart, AU', 'Hong Kong, CN', 'Jerusalem, ISRAEL', 'Jiayuguan, CN', 'Key West, FL', 'Kissimmee, FL', 'Kunming, CN', 'Lanzhou, CN', 'Las Vegas, NV', 'Lisbon, EU', 'London, EU', 'Los Angeles, CA', 'Luxembourg, EU', 'Lyon, EU', 'Madeira, EU', 'Madrid, EU', 'Marseille, EU', 'Melbourne, AU', 'Mexico City, MX', 'Miami, FL', 'Milan, EU', 'Milford, CT', 'Montreal, QC', 'Munich, EU', 'Nanjing, CN', 'Netanya, ISRAEL', 'New Orleans, LA', 'New York, NY', 'Newport, KY', 'Niagara Falls, NY', 'Nice, EU', 'Orlando, FL', 'Ottawa, ON', 'Palm Springs, CA', 'Palm Springs, FL', 'Paris, EU', 'Parsippany, NJ', 'Perth, AU', 'Philadelphia, PA', 'Pisa, EU', 'Porto Santo, EU', 'Porto, EU', 'Prague, EU', 'Puerto Vallarta, MX', 'Reykjavik, EU', 'Rio de Janeiro, BRAZIL', 'Rome, EU', 'Salt Lake City, UT', 'Salzburg, EU', 'San Diego, CA', 'San Francisco, CA', 'San Jose, CA', 'San Jose, COSTARICA', 'Sao Paulo, BRAZIL', 'Savannah, GA', 'Seattle, WA', 'Shanghai, CN', 'Silver Springs, FL', 'St Augustine, FL', 'Sydney, AU', 'Tel-Aviv, ISRAEL', 'Tibet, CN', 'Toronto, ON', 'Tuxtla Gutierrez, MX', 'Vancouver, BC', 'Venice, EU', 'Vienna, EU', 'Washington, DC', 'Worcester, MA', 'Xian, CN', 'Zurich, EU');
	var tcities_ar = new Array('Buenos Aires, ARGENTINA');
	var tcities_au = new Array('Adelaide, AU', 'Alice Spring, AU', 'Brisbane, AU', 'Darwin, AU', 'Gold Coast, AU', 'Hobart, AU', 'Melbourne, AU', 'Perth, AU', 'Sydney, AU');
	var tcities_br = new Array('Rio de Janeiro, BRAZIL', 'Sao Paulo, BRAZIL');
	var tcities_cn = new Array('Beijing, CN', 'Chengdu, CN', 'Guilin, CN', 'Hong Kong, CN', 'Jiayuguan, CN', 'Kunming, CN', 'Lanzhou, CN', 'Nanjing, CN', 'Shanghai, CN', 'Tibet, CN', 'Xian, CN');
	var tcities_cr = new Array('San Jose, COSTARICA');
	var tcities_ecuador = new Array('Guayaquil, ECUADOR');
var tcities_eu = new Array('Algarve, EU', 'Amsterdam, EU', 'Athens, EU', 'Azores, EU', 'Brussels, EU', 'Budapest, EU', 'Cologne, EU', 'Dublin, EU', 'Edinburgh, EU', 'Florence, EU', 'Frankfurt, EU', 'Lisbon, EU', 'London, EU', 'Luxembourg, EU', 'Lyon, EU', 'Madeira, EU', 'Madrid, EU', 'Marseille, EU', 'Milan, EU', 'Munich, EU', 'Nice, EU', 'Paris, EU', 'Pisa, EU', 'Porto Santo, EU', 'Porto, EU', 'Prague, EU', 'Reykjavik, EU', 'Rome, EU', 'Salzburg, EU', 'Venice, EU', 'Vienna, EU', 'Zurich, EU');
	var tcities_esrael = new Array('Herzliya, ISRAEL', 'Jerusalem, ISRAEL', 'Netanya, ISRAEL', 'Tel-Aviv, ISRAEL');
var tcities_mx = new Array('Acapulco, MX', 'Cabo San Lucas, MX', 'Cancun, MX', 'Mexico City, MX', 'Puerto Vallarta, MX', 'Tuxtla Gutierrez, MX');
	var tcities_nzd = new Array('Christchurch, NZD');
var tcities_pe = new Array('Lima, PERU');

var tgroup = new Object;
var attrGroup = new Object;
var attrGroupValue = new Object;
var tour_length = tcities.length;
	var tour_length_ar = tcities_ar.length;
	var tour_length_au = tcities_au.length;
	var tour_length_br = tcities_br.length;
	var tour_length_cn = tcities_cn.length;
	var tour_length_cr = tcities_cr.length;
	var tour_length_ecuador = tcities_ecuador.length;
var tour_length_eu = tcities_eu.length;
	var tour_length_esrael = tcities_esrael.length;
var tour_length_mx = tcities_mx.length;
	var tour_length_nzd = tcities_nzd.length;
var tour_length_pe = tcities_pe.length;

for (i=0; i<tour_length; i++)
  tgroup[tcities[i]]=new Array();
	for (i=0; i<tour_length_ar; i++)
	  tgroup[tcities_ar[i]]=new Array();
	for (i=0; i<tour_length_au; i++)
	  tgroup[tcities_au[i]]=new Array();
	for (i=0; i<tour_length_br; i++)
	  tgroup[tcities_br[i]]=new Array();
	for (i=0; i<tour_length_cn; i++)
	  tgroup[tcities_cn[i]]=new Array();
	for (i=0; i<tour_length_cr; i++)
	  tgroup[tcities_cr[i]]=new Array();
	for (i=0; i<tour_length_ecuador; i++)
	  tgroup[tcities_ecuador[i]]=new Array();
for (i=0; i<tour_length_eu; i++)
  tgroup[tcities_eu[i]]=new Array();
	for (i=0; i<tour_length_esrael; i++)
	  tgroup[tcities_esrael[i]]=new Array();
for (i=0; i<tour_length_mx; i++)
  tgroup[tcities_mx[i]]=new Array();
	for (i=0; i<tour_length_nzd; i++)
	  tgroup[tcities_nzd[i]]=new Array();
for (i=0; i<tour_length_pe; i++)
  tgroup[tcities_pe[i]]=new Array();
	
tgroup["Acapulco, MX"][0] = new Option("No preference", "")

tgroup["Adelaide, AU"][0] = new Option("No preference", "")

tgroup["Algarve, EU"][0] = new Option("No preference", "")

tgroup["Alice Spring, AU"][0] = new Option("No preference", "")

tgroup["Amsterdam, EU"][0] = new Option("No preference", "")

tgroup["Anaheim, CA"][0] = new Option("No preference", "")
tgroup["Anaheim, CA"][1] = new Option("Show All", "duration")
tgroup["Anaheim, CA"][2] = new Option("LA and Hollywood", "Hollywood")
tgroup["Anaheim, CA"][3] = new Option("Movie Stars' Homes", "Homes")
tgroup["Anaheim, CA"][4] = new Option("Orange County (OC)", "O.C.")
tgroup["Anaheim, CA"][5] = new Option("Tijuana and Mexico", "Mexico")
tgroup["Anaheim, CA"][6] = new Option("Knott's Berry Farm", "Berry")
tgroup["Anaheim, CA"][7] = new Option("Universal Studios", "Universal")
tgroup["Anaheim, CA"][8] = new Option("San Diego Zoo", "Zoo")
tgroup["Anaheim, CA"][9] = new Option("SeaWorld", "Sea World")
tgroup["Anaheim, CA"][10] = new Option("Six Flags Magic Mt", "Six Flags")
tgroup["Anaheim, CA"][11] = new Option("Grand Canyon", "Grand Canyon")
tgroup["Anaheim, CA"][12] = new Option("Las Vegas Overnight", "Las Vegas")
tgroup["Anaheim, CA"][13] = new Option("San Diego Overnight", "San Diego")
tgroup["Anaheim, CA"][14] = new Option("Medieval Times", "Medieval")
tgroup["Anaheim, CA"][15] = new Option("Los Angles by Night", "Night")
tgroup["Anaheim, CA"][16] = new Option("Pirate's Dinner", "Dinner")
tgroup["Anaheim, CA"][17] = new Option("Beverly Hills", "Beverly")
tgroup["Anaheim, CA"][18] = new Option("Citadel Outlets", "Citadel ")

attrGroup["Anaheim, CA"] = new Array();
attrGroupValue["Anaheim, CA"] = new Array();
attrGroup["Anaheim, CA"][0] = new Array("Tours & Sightseeing", "Show All", "LA and Hollywood", "Movie Stars' Homes", "Orange County (OC)", "Tijuana and Mexico");
attrGroupValue["Anaheim, CA"][0] = new Array("", "duration", "Hollywood", "Homes", "O.C.", "Mexico");
attrGroup["Anaheim, CA"][1] = new Array("Theme Parks Day Trips", "Knott's Berry Farm", "Universal Studios", "San Diego Zoo", "SeaWorld", "Six Flags Magic Mt");
attrGroupValue["Anaheim, CA"][1] = new Array("", "Berry", "Universal", "Zoo", "Sea World", "Six Flags");
attrGroup["Anaheim, CA"][2] = new Array("Multi-day Tours", "Grand Canyon", "Las Vegas Overnight", "San Diego Overnight");
attrGroupValue["Anaheim, CA"][2] = new Array("", "Grand Canyon", "Las Vegas", "San Diego");
attrGroup["Anaheim, CA"][3] = new Array("Food, Wine & Nightlife", "Medieval Times", "Los Angles by Night", "Pirate's Dinner");
attrGroupValue["Anaheim, CA"][3] = new Array("", "Medieval", "Night", "Dinner");
attrGroup["Anaheim, CA"][4] = new Array("Shopping & Fashion", "Beverly Hills", "Citadel Outlets");
attrGroupValue["Anaheim, CA"][4] = new Array("", "Beverly", "Citadel ");

tgroup["Athens, EU"][0] = new Option("No preference", "")

tgroup["Azores, EU"][0] = new Option("No preference", "")

tgroup["Baltimore, MD"][0] = new Option("No preference", "")

tgroup["Beijing, CN"][0] = new Option("No preference", "")

tgroup["Boston, MA"][0] = new Option("No preference", "")
tgroup["Boston, MA"][1] = new Option("City Passes", "card")
tgroup["Boston, MA"][2] = new Option("City Tours", "duration")
tgroup["Boston, MA"][3] = new Option("Chicago", "chicago")
tgroup["Boston, MA"][4] = new Option("Duck tours", "duck")
tgroup["Boston, MA"][5] = new Option("Helicopter Tours", "helicopter")
tgroup["Boston, MA"][6] = new Option("Trolley tours", "trolley")
tgroup["Boston, MA"][7] = new Option("1000 Islands", "1000")
tgroup["Boston, MA"][8] = new Option("Cape Cod", "cape cod")
tgroup["Boston, MA"][9] = new Option("Concord", "concord")
tgroup["Boston, MA"][10] = new Option("Canada", "canada")
tgroup["Boston, MA"][11] = new Option("Disney World", "disney")
tgroup["Boston, MA"][12] = new Option("Montreal", "montreal")
tgroup["Boston, MA"][13] = new Option("New York", "new york")
tgroup["Boston, MA"][14] = new Option("Newport", "newport")
tgroup["Boston, MA"][15] = new Option("Niagara Falls", "niagara")
tgroup["Boston, MA"][16] = new Option("Philadelphia", "Philadelphia")
tgroup["Boston, MA"][17] = new Option("Pilgrim's Path", "pilgrim")
tgroup["Boston, MA"][18] = new Option("Plimoth Plantation", "plimoth")
tgroup["Boston, MA"][19] = new Option("Salem", "salem")
tgroup["Boston, MA"][20] = new Option("Quebec City", "Quebec City")
tgroup["Boston, MA"][21] = new Option("Tennessee", "Tennessee")
tgroup["Boston, MA"][22] = new Option("Toronto", "Toronto")
tgroup["Boston, MA"][23] = new Option("Washington DC", "washington")
tgroup["Boston, MA"][24] = new Option("Wrentham Factory Outlets", "wrentham")

tgroup["Branson, MO"][0] = new Option("No preference", "")

tgroup["Brisbane, AU"][0] = new Option("No preference", "")

tgroup["Brussels, EU"][0] = new Option("No preference", "")

tgroup["Budapest, EU"][0] = new Option("No preference", "")

tgroup["Buenos Aires, ARGENTINA"][0] = new Option("No preference", "")

tgroup["Cabo San Lucas, MX"][0] = new Option("No preference", "")

tgroup["Calgary, AB"][0] = new Option("No preference", "")

tgroup["Cancun, MX"][0] = new Option("No preference", "")

tgroup["Charlton, MA"][0] = new Option("No preference", "")
tgroup["Charlton, MA"][1] = new Option("1000 Islands Region", "1000")
tgroup["Charlton, MA"][2] = new Option("Canada", "Canada")
tgroup["Charlton, MA"][3] = new Option("Corning Glass Center", "Corning")
tgroup["Charlton, MA"][4] = new Option("Niagara Falls", "Niagara")
tgroup["Charlton, MA"][5] = new Option("Toronto", "Toronto")

tgroup["Chengdu, CN"][0] = new Option("No preference", "")

tgroup["Chicago, IL"][0] = new Option("No preference", "")
tgroup["Chicago, IL"][1] = new Option("City Passes", "card")
tgroup["Chicago, IL"][2] = new Option("Trolley Tours", "trolley")
tgroup["Chicago, IL"][3] = new Option("City Tours", "duration")
tgroup["Chicago, IL"][4] = new Option("Wine Tours", "wine")

tgroup["Christchurch, NZD"][0] = new Option("No preference", "")

tgroup["Cologne, EU"][0] = new Option("No preference", "")

tgroup["Darwin, AU"][0] = new Option("No preference", "")

tgroup["Denver, CO"][0] = new Option("No preference", "")
tgroup["Denver, CO"][1] = new Option("Yellowstone", "Yellowstone")
tgroup["Denver, CO"][2] = new Option("Arch National Park", "arch")
tgroup["Denver, CO"][3] = new Option("Mt Rushmore", "Rushmore")

tgroup["Dublin, EU"][0] = new Option("No preference", "")

tgroup["Edinburgh, EU"][0] = new Option("No preference", "")
tgroup["Edinburgh, EU"][1] = new Option("View All", "duration")
tgroup["Edinburgh, EU"][2] = new Option("Edinburgh City Tour ", "Edinburgh")
tgroup["Edinburgh, EU"][3] = new Option("Highlands of Scotland", "Highlands")
tgroup["Edinburgh, EU"][4] = new Option("Loch Lomond", "Loch")
tgroup["Edinburgh, EU"][5] = new Option("Rosslyn Chapel ", "Rosslyn")
tgroup["Edinburgh, EU"][6] = new Option("Stirling Castle ", "Stirling")
tgroup["Edinburgh, EU"][7] = new Option("Trossachs", "Trossachs")

tgroup["Edison, NJ"][0] = new Option("No preference", "")
tgroup["Edison, NJ"][1] = new Option("Baltimore", "Baltimore")
tgroup["Edison, NJ"][2] = new Option("Boston", "boston")
tgroup["Edison, NJ"][3] = new Option("Busch Gardens", "Busch")
tgroup["Edison, NJ"][4] = new Option("Canada", "canada")
tgroup["Edison, NJ"][5] = new Option("Chesapeake Bay", "Chesapeake Bay")
tgroup["Edison, NJ"][6] = new Option("Corning Glass Museum", "corning")
tgroup["Edison, NJ"][7] = new Option("Hershey's Chocolate Factory", "Chocolate")
tgroup["Edison, NJ"][8] = new Option("Newport, RI", "Rhode Island")
tgroup["Edison, NJ"][9] = new Option("Niagara Falls", "niagara")
tgroup["Edison, NJ"][10] = new Option("Philadelphia", "Philadelphia")
tgroup["Edison, NJ"][11] = new Option("Shenandoah Caverns", "Shenandoah")
tgroup["Edison, NJ"][12] = new Option("Tennessee", "Tennessee")
tgroup["Edison, NJ"][13] = new Option("Toronto", "toronto")
tgroup["Edison, NJ"][14] = new Option("Washington DC", "washington")

tgroup["Florence, EU"][0] = new Option("No preference", "")

tgroup["Flushing, NY"][0] = new Option("No preference", "")

tgroup["Frankfurt, EU"][0] = new Option("No preference", "")

tgroup["Gold Coast, AU"][0] = new Option("No preference", "")

tgroup["Guayaquil, ECUADOR"][0] = new Option("No preference", "")

tgroup["Guilin, CN"][0] = new Option("No preference", "")

tgroup["Hawaii, HI"][0] = new Option("No preference", "")
tgroup["Hawaii, HI"][1] = new Option("City Tours", "duration")
tgroup["Hawaii, HI"][2] = new Option("Dinners show/cruise", "dinner")
tgroup["Hawaii, HI"][3] = new Option("Big Island Overnight", "big island")
tgroup["Hawaii, HI"][4] = new Option("Kualoa Ranch & Secret Island ", "kualoa")
tgroup["Hawaii, HI"][5] = new Option("Maui Overnight", "maui")
tgroup["Hawaii, HI"][6] = new Option("Pearl Harbor, City Tour", "pearl")
tgroup["Hawaii, HI"][7] = new Option("Polynesian shows", "polynesian")

tgroup["Herzliya, ISRAEL"][0] = new Option("No preference", "")

tgroup["Hobart, AU"][0] = new Option("No preference", "")

tgroup["Hong Kong, CN"][0] = new Option("No preference", "")

tgroup["Jerusalem, ISRAEL"][0] = new Option("No preference", "")

tgroup["Jiayuguan, CN"][0] = new Option("No preference", "")

tgroup["Key West, FL"][0] = new Option("No preference", "")
tgroup["Key West, FL"][1] = new Option("City Tours", "duration")
tgroup["Key West, FL"][2] = new Option("Trolley Tours", "trolley")
tgroup["Key West, FL"][3] = new Option("Conch Tour Train", "conch")
tgroup["Key West, FL"][4] = new Option("Aquarium", "aquarium")
tgroup["Key West, FL"][5] = new Option("Shipwreck Historeum", "shipwreck")
tgroup["Key West, FL"][6] = new Option("Yankee Freedom Dry Tortugas Ferry", "yankee")

tgroup["Kissimmee, FL"][0] = new Option("No preference", "")
tgroup["Kissimmee, FL"][1] = new Option("Show All", "duration")

tgroup["Kunming, CN"][0] = new Option("No preference", "")

tgroup["Lanzhou, CN"][0] = new Option("No preference", "")

tgroup["Las Vegas, NV"][0] = new Option("No preference", "")
tgroup["Las Vegas, NV"][1] = new Option("City Tours", "duration")
tgroup["Las Vegas, NV"][2] = new Option("Anaheim Overnight", "Anaheim")
tgroup["Las Vegas, NV"][3] = new Option("Bryce Canyon", "bryce")
tgroup["Las Vegas, NV"][4] = new Option("Death Valley", "death")
tgroup["Las Vegas, NV"][5] = new Option("California Disneyland", "Disneyland")
tgroup["Las Vegas, NV"][6] = new Option("Eldorado Canyon", "Eldorado Canyon")
tgroup["Las Vegas, NV"][7] = new Option("Hoover Dam", "dam")
tgroup["Las Vegas, NV"][8] = new Option("Grand Canyon S Rim", "south rim")
tgroup["Las Vegas, NV"][9] = new Option("Grand Canyon W Rim", "west rim")
tgroup["Las Vegas, NV"][10] = new Option("Grand Teton ", "teton")
tgroup["Las Vegas, NV"][11] = new Option("Haunted Tours ", "haunted")
tgroup["Las Vegas, NV"][12] = new Option("Lake Mead", "mead")
tgroup["Las Vegas, NV"][13] = new Option("Mt Charleston", "Charleston")
tgroup["Las Vegas, NV"][14] = new Option("Mt Rushmore", "rushmore")
tgroup["Las Vegas, NV"][15] = new Option("Mob Tours", "mob")
tgroup["Las Vegas, NV"][16] = new Option("Red Rock Mt", "red rock")
tgroup["Las Vegas, NV"][17] = new Option("Red Rock Canyon", "Red Rock Canyon")
tgroup["Las Vegas, NV"][18] = new Option("River Rafting", "river")
tgroup["Las Vegas, NV"][19] = new Option("Yellowstone", "yellowstone")
tgroup["Las Vegas, NV"][20] = new Option("Zion National Park", "zion")

tgroup["Lima, PERU"][0] = new Option("No preference", "")

tgroup["Lisbon, EU"][0] = new Option("No preference", "")

tgroup["London, EU"][0] = new Option("No preference", "")

tgroup["Los Angeles, CA"][0] = new Option("No preference", "")
tgroup["Los Angeles, CA"][1] = new Option("Fully Escorted", "fully")
tgroup["Los Angeles, CA"][2] = new Option("Arches Nt'l Park", "Arches")
tgroup["Los Angeles, CA"][3] = new Option("Bryce Canyon", "Bryce Canyon")
tgroup["Los Angeles, CA"][4] = new Option("Grand Canyon", "Grand Canyon")
tgroup["Los Angeles, CA"][5] = new Option("Las Vegas", "Las Vegas")
tgroup["Los Angeles, CA"][6] = new Option("Lake Tahoe", "Tahoe")
tgroup["Los Angeles, CA"][7] = new Option("Lake Powell", "Lake Powell")
tgroup["Los Angeles, CA"][8] = new Option("Monterey & Napa", "Monterey")
tgroup["Los Angeles, CA"][9] = new Option("San Francisco", "San Francisco")
tgroup["Los Angeles, CA"][10] = new Option("Sequoia Nt'l Park", "Sequoia")
tgroup["Los Angeles, CA"][11] = new Option("Theme Parks", "Disneyland")
tgroup["Los Angeles, CA"][12] = new Option("Yosemite Nt'l Park", "Yosemite")
tgroup["Los Angeles, CA"][13] = new Option("Zion Nt'l Park", "Zion")
tgroup["Los Angeles, CA"][14] = new Option("Disneyland", "Disneyland")
tgroup["Los Angeles, CA"][15] = new Option("Knott's Berry Farm", "Berry")
tgroup["Los Angeles, CA"][16] = new Option("Universal Studios", "Universal")
tgroup["Los Angeles, CA"][17] = new Option("SeaWorld", "World")
tgroup["Los Angeles, CA"][18] = new Option("Six Flags Magic Mt", "Six Flags")
tgroup["Los Angeles, CA"][19] = new Option("San Diego Zoo", "Zoo")
tgroup["Los Angeles, CA"][20] = new Option("All LA City Tours ", "Hollywood")
tgroup["Los Angeles, CA"][21] = new Option("Getty Museum", "Getty")
tgroup["Los Angeles, CA"][22] = new Option("LA Walking Tours", "Walking")
tgroup["Los Angeles, CA"][23] = new Option("Night Tours", "night")
tgroup["Los Angeles, CA"][24] = new Option("LA City Pass", "Card")
tgroup["Los Angeles, CA"][25] = new Option("Museums", "Museum")
tgroup["Los Angeles, CA"][26] = new Option("Outlet Malls", "Outlet")
tgroup["Los Angeles, CA"][27] = new Option("Theme Parks", "Shuttle")
tgroup["Los Angeles, CA"][28] = new Option("Palms Springs", "Palms Springs")
tgroup["Los Angeles, CA"][29] = new Option("Santa Barbara", "Santa Barbara")

attrGroup["Los Angeles, CA"] = new Array();
attrGroupValue["Los Angeles, CA"] = new Array();
attrGroup["Los Angeles, CA"][0] = new Array("Multi-day Tours", "Fully Escorted", "Arches Nt'l Park", "Bryce Canyon", "Grand Canyon", "Las Vegas", "Lake Tahoe", "Lake Powell", "Monterey & Napa", "San Francisco", "Sequoia Nt'l Park", "Theme Parks", "Yosemite Nt'l Park", "Zion Nt'l Park");
attrGroupValue["Los Angeles, CA"][0] = new Array("", "fully", "Arches", "Bryce Canyon", "Grand Canyon", "Las Vegas", "Tahoe", "Lake Powell", "Monterey", "San Francisco", "Sequoia", "Disneyland", "Yosemite", "Zion");
attrGroup["Los Angeles, CA"][1] = new Array("Theme Parks Trips", "Disneyland", "Knott's Berry Farm", "Universal Studios", "SeaWorld", "Six Flags Magic Mt", "San Diego Zoo");
attrGroupValue["Los Angeles, CA"][1] = new Array("", "Disneyland", "Berry", "Universal", "World", "Six Flags", "Zoo");
attrGroup["Los Angeles, CA"][2] = new Array("Tours & Sightseeing", "All LA City Tours ", "Getty Museum", "LA Walking Tours", "Night Tours");
attrGroupValue["Los Angeles, CA"][2] = new Array("", "Hollywood", "Getty", "Walking", "night");
attrGroup["Los Angeles, CA"][3] = new Array("Tickets & Passes", "LA City Pass");
attrGroupValue["Los Angeles, CA"][3] = new Array("", "Card");
attrGroup["Los Angeles, CA"][4] = new Array("Transfers", "Museums", "Outlet Malls", "Theme Parks", "Palms Springs", "Santa Barbara");
attrGroupValue["Los Angeles, CA"][4] = new Array("", "Museum", "Outlet", "Shuttle", "Palms Springs", "Santa Barbara");

tgroup["Luxembourg, EU"][0] = new Option("No preference", "")

tgroup["Lyon, EU"][0] = new Option("No preference", "")

tgroup["Madeira, EU"][0] = new Option("No preference", "")

tgroup["Madrid, EU"][0] = new Option("No preference", "")

tgroup["Marseille, EU"][0] = new Option("No preference", "")

tgroup["Melbourne, AU"][0] = new Option("No preference", "")

tgroup["Mexico City, MX"][0] = new Option("No preference", "")

tgroup["Miami, FL"][0] = new Option("No preference", "")
tgroup["Miami, FL"][1] = new Option("Cruise Tours", "cruise")
tgroup["Miami, FL"][2] = new Option("City Tours", "duration")
tgroup["Miami, FL"][3] = new Option("City Tours", "duration")
tgroup["Miami, FL"][4] = new Option("Airboat ride ", "airboat")
tgroup["Miami, FL"][5] = new Option("Blizzard Beach ", "Blizzard")
tgroup["Miami, FL"][6] = new Option("Busch Gardens", "Busch")
tgroup["Miami, FL"][7] = new Option("Disney World ", "Disney")
tgroup["Miami, FL"][8] = new Option("Everglade Park", "everglade")
tgroup["Miami, FL"][9] = new Option("Kennedy Space Center", "Kennedy")
tgroup["Miami, FL"][10] = new Option("Island Of Adventure", "Island")
tgroup["Miami, FL"][11] = new Option("Key West", "key west")
tgroup["Miami, FL"][12] = new Option("Orlando Overnight", "Orlando")
tgroup["Miami, FL"][13] = new Option("Parrot Jungle Island", "parrot")
tgroup["Miami, FL"][14] = new Option("Seaquarium", "Seaquarium")
tgroup["Miami, FL"][15] = new Option("Sea World", "Sea")
tgroup["Miami, FL"][16] = new Option("Snorkeling", "snorkeling")
tgroup["Miami, FL"][17] = new Option("Typhoon Lagoon", "Typhoon")
tgroup["Miami, FL"][18] = new Option("Universal Studios", "Universal")
tgroup["Miami, FL"][19] = new Option("Wet'N Wild", "Wild")

tgroup["Milan, EU"][0] = new Option("No preference", "")

tgroup["Milford, CT"][0] = new Option("No preference", "")
tgroup["Milford, CT"][1] = new Option("Baltimore", "Baltimore")
tgroup["Milford, CT"][2] = new Option("New York City", "New York")
tgroup["Milford, CT"][3] = new Option("Philadelphia", "Philadelphia")
tgroup["Milford, CT"][4] = new Option("Washington DC", "Washington")
tgroup["Milford, CT"][5] = new Option("Shenandoah Carven", "Shenandoah")
tgroup["Milford, CT"][6] = new Option("Tennessee", "Tennessee")

tgroup["Montreal, QC"][0] = new Option("No preference", "")
tgroup["Montreal, QC"][1] = new Option("City Tours", "duration")
tgroup["Montreal, QC"][2] = new Option("New York", "new york")
tgroup["Montreal, QC"][3] = new Option("1000 Islands", "island")
tgroup["Montreal, QC"][4] = new Option("Niagara Falls", "Niagara")
tgroup["Montreal, QC"][5] = new Option("Toronto", "Toronto")
tgroup["Montreal, QC"][6] = new Option("Rhode Island", "rhode")

tgroup["Munich, EU"][0] = new Option("No preference", "")

tgroup["Nanjing, CN"][0] = new Option("No preference", "")

tgroup["Netanya, ISRAEL"][0] = new Option("No preference", "")

tgroup["New Orleans, LA"][0] = new Option("No preference", "")
tgroup["New Orleans, LA"][1] = new Option("City Tours", "duration")

tgroup["New York, NY"][0] = new Option("No preference", "")
tgroup["New York, NY"][1] = new Option("Fully Escorted", "Fully")
tgroup["New York, NY"][2] = new Option("1000 Islands", "Islands")
tgroup["New York, NY"][3] = new Option("Acadia Nt'l Park", "Acadia")
tgroup["New York, NY"][4] = new Option("Atlantic City", "Atlantic")
tgroup["New York, NY"][5] = new Option("Busch Gardens", "Busch")
tgroup["New York, NY"][6] = new Option("Boston", "Boston")
tgroup["New York, NY"][7] = new Option("Chesapeake Bay", "Chesapeake")
tgroup["New York, NY"][8] = new Option("Lake Placid", "Lake")
tgroup["New York, NY"][9] = new Option("Lake George", "Lake")
tgroup["New York, NY"][10] = new Option("Long Island", "Long Island")
tgroup["New York, NY"][11] = new Option("Niagara Falls", "Niagara")
tgroup["New York, NY"][12] = new Option("Montreal, Canada", "Montreal")
tgroup["New York, NY"][13] = new Option("Orlando Florida", "Orlando")
tgroup["New York, NY"][14] = new Option("Philadelphia", "Philadelphia")
tgroup["New York, NY"][15] = new Option("Quebec City", "Quebec")
tgroup["New York, NY"][16] = new Option("Rhode Island", "Rhode")
tgroup["New York, NY"][17] = new Option("Tennessee", "Tennessee")
tgroup["New York, NY"][18] = new Option("Toronto, Canada", "Toronto")
tgroup["New York, NY"][19] = new Option("Upstate New York", "SHL")
tgroup["New York, NY"][20] = new Option("Washington DC", "Washington")
tgroup["New York, NY"][21] = new Option("All NYC Tours", "duration")
tgroup["New York, NY"][22] = new Option("Double Decker", "Loop")
tgroup["New York, NY"][23] = new Option("Harlem & Gospel", "Harlem")
tgroup["New York, NY"][24] = new Option("Helicopter Tours", "Helicopter")
tgroup["New York, NY"][25] = new Option("Movie Sites Tours", "Movie")
tgroup["New York, NY"][26] = new Option("Harbor Cruises ", "Cruise")
tgroup["New York, NY"][27] = new Option("NY Duck Tours", "Duck")
tgroup["New York, NY"][28] = new Option("NYC City Pass", "Pass")
tgroup["New York, NY"][29] = new Option("Hamptons", "Hamptons")
tgroup["New York, NY"][30] = new Option("Wineries", "Wineries")
tgroup["New York, NY"][31] = new Option("Woodbury Outlets", "Woodbury")

attrGroup["New York, NY"] = new Array();
attrGroupValue["New York, NY"] = new Array();
attrGroup["New York, NY"][0] = new Array("Multi-day Tours", "Fully Escorted", "1000 Islands", "Acadia Nt'l Park", "Atlantic City", "Busch Gardens", "Boston", "Chesapeake Bay", "Lake Placid", "Lake George", "Long Island", "Niagara Falls", "Montreal, Canada", "Orlando Florida", "Philadelphia", "Quebec City", "Rhode Island", "Tennessee", "Toronto, Canada", "Upstate New York", "Washington DC");
attrGroupValue["New York, NY"][0] = new Array("", "Fully", "Islands", "Acadia", "Atlantic", "Busch", "Boston", "Chesapeake", "Lake", "Lake", "Long Island", "Niagara", "Montreal", "Orlando", "Philadelphia", "Quebec", "Rhode", "Tennessee", "Toronto", "SHL", "Washington");
attrGroup["New York, NY"][1] = new Array("Tours & Sightseeing", "All NYC Tours", "Double Decker", "Harlem & Gospel", "Helicopter Tours", "Movie Sites Tours");
attrGroupValue["New York, NY"][1] = new Array("", "duration", "Loop", "Harlem", "Helicopter", "Movie");
attrGroup["New York, NY"][2] = new Array("Cruise Tours", "Harbor Cruises ", "NY Duck Tours");
attrGroupValue["New York, NY"][2] = new Array("", "Cruise", "Duck");
attrGroup["New York, NY"][3] = new Array("Tickets & Passes", "NYC City Pass");
attrGroupValue["New York, NY"][3] = new Array("", "Pass");
attrGroup["New York, NY"][4] = new Array("Shopping & Fashion", "Hamptons", "Wineries", "Woodbury Outlets");
attrGroupValue["New York, NY"][4] = new Array("", "Hamptons", "Wineries", "Woodbury");

tgroup["Newport, KY"][0] = new Option("No preference", "")

tgroup["Niagara Falls, NY"][0] = new Option("No preference", "")
tgroup["Niagara Falls, NY"][1] = new Option("City Tours", "duration")
tgroup["Niagara Falls, NY"][2] = new Option("Night Tours", "evening")
tgroup["Niagara Falls, NY"][3] = new Option("Tour to Canadian side", "canada")
tgroup["Niagara Falls, NY"][4] = new Option("Cave of the Winds ", "cave")
tgroup["Niagara Falls, NY"][5] = new Option("Maid of the Mist", "maid")
tgroup["Niagara Falls, NY"][6] = new Option("N.Y.S. Observation Tower ", "observation")
tgroup["Niagara Falls, NY"][7] = new Option("Skylon Tower (Canada) ", "skylon")

tgroup["Nice, EU"][0] = new Option("No preference", "")

tgroup["Orlando, FL"][0] = new Option("No preference", "")
tgroup["Orlando, FL"][1] = new Option("City Tours", "duration")
tgroup["Orlando, FL"][2] = new Option("Airboat Safari", "Airboat")
tgroup["Orlando, FL"][3] = new Option("Busch Gardens", "busch")
tgroup["Orlando, FL"][4] = new Option("Cypress Gardens", "cypress")
tgroup["Orlando, FL"][5] = new Option("Everglades & Naples", "everglades")
tgroup["Orlando, FL"][6] = new Option("Gatorland", "gatorland")
tgroup["Orlando, FL"][7] = new Option("Gospel Brunch", "Gospel Brunch")
tgroup["Orlando, FL"][8] = new Option("Miami", "Miami")
tgroup["Orlando, FL"][9] = new Option("Kennedy Space Center", "space")
tgroup["Orlando, FL"][10] = new Option("Silver Springs", "silver")

tgroup["Ottawa, ON"][0] = new Option("No preference", "")
tgroup["Ottawa, ON"][1] = new Option("All City Tours", "duration")
tgroup["Ottawa, ON"][2] = new Option("Comprehensive City Tour", "grand")
tgroup["Ottawa, ON"][3] = new Option("Hop On Hop Off", "hop")
tgroup["Ottawa, ON"][4] = new Option("Montreal", "Montreal")
tgroup["Ottawa, ON"][5] = new Option("Sightseeing Cruise", "cruise")

tgroup["Palm Springs, CA"][0] = new Option("No preference", "")
tgroup["Palm Springs, CA"][1] = new Option("All City Tours", "duration")
tgroup["Palm Springs, CA"][2] = new Option("San Andreas Fault", "San Andreas Fault")
tgroup["Palm Springs, CA"][3] = new Option("Joshua Trees ", "Joshua")
tgroup["Palm Springs, CA"][4] = new Option("Maggie Mine", "Maggie Mine")
tgroup["Palm Springs, CA"][5] = new Option("Ghost Town-Calico", "Calico")
tgroup["Palm Springs, CA"][6] = new Option("Odessa Train Ride", "Odessa")
tgroup["Palm Springs, CA"][7] = new Option("Mystery Shack", "Mystery Shack")
tgroup["Palm Springs, CA"][8] = new Option("Gold Panning", "Gold Panning")
tgroup["Palm Springs, CA"][9] = new Option("NASA complex", "NASA")
tgroup["Palm Springs, CA"][10] = new Option("Safari Trips", "Safari")
tgroup["Palm Springs, CA"][11] = new Option("Helicopter and Hummer", "Helicopter")
tgroup["Palm Springs, CA"][12] = new Option("Sonoran Desert", "Sonoran")
tgroup["Palm Springs, CA"][13] = new Option("Paleontogical Adventure ", "Paleontologist")

tgroup["Palm Springs, FL"][0] = new Option("No preference", "")
tgroup["Palm Springs, FL"][1] = new Option("City Tours", "duration")
tgroup["Palm Springs, FL"][2] = new Option("Celebrity Homes  ", "Celebrity")
tgroup["Palm Springs, FL"][3] = new Option("Grand Valley", "valley")

tgroup["Paris, EU"][0] = new Option("No preference", "")

tgroup["Parsippany, NJ"][0] = new Option("No preference", "")
tgroup["Parsippany, NJ"][1] = new Option("Boston", "boston")
tgroup["Parsippany, NJ"][2] = new Option("Canada", "canada")
tgroup["Parsippany, NJ"][3] = new Option("Corning Glass Museum", "corning")
tgroup["Parsippany, NJ"][4] = new Option("Niagara Falls", "niagara")
tgroup["Parsippany, NJ"][5] = new Option("Toronto", "toronto")

tgroup["Perth, AU"][0] = new Option("No preference", "")

tgroup["Philadelphia, PA"][0] = new Option("No preference", "")
tgroup["Philadelphia, PA"][1] = new Option("Double Decker Tour", "Decker")
tgroup["Philadelphia, PA"][2] = new Option("Amish Experience", "amish")
tgroup["Philadelphia, PA"][3] = new Option("Boston", "boston")
tgroup["Philadelphia, PA"][4] = new Option("Canada", "canada")
tgroup["Philadelphia, PA"][5] = new Option("Montreal", "montreal")
tgroup["Philadelphia, PA"][6] = new Option("New York City", "New York")
tgroup["Philadelphia, PA"][7] = new Option("Niagara Falls", "Niagara Falls")
tgroup["Philadelphia, PA"][8] = new Option("Toronto", "Toronto")
tgroup["Philadelphia, PA"][9] = new Option("Washington DC", "Washington")

tgroup["Pisa, EU"][0] = new Option("No preference", "")

tgroup["Porto Santo, EU"][0] = new Option("No preference", "")

tgroup["Porto, EU"][0] = new Option("No preference", "")

tgroup["Prague, EU"][0] = new Option("No preference", "")

tgroup["Puerto Vallarta, MX"][0] = new Option("No preference", "")

tgroup["Reykjavik, EU"][0] = new Option("No preference", "")
tgroup["Reykjavik, EU"][1] = new Option("City Tours", "duration")
tgroup["Reykjavik, EU"][2] = new Option("Jeep Tours", "jeep")
tgroup["Reykjavik, EU"][3] = new Option("Blue Lagoon", "Blue Lagoon")
tgroup["Reykjavik, EU"][4] = new Option("Diving Tours", "diving")

tgroup["Rio de Janeiro, BRAZIL"][0] = new Option("No preference", "")

tgroup["Rome, EU"][0] = new Option("No preference", "")

tgroup["Salt Lake City, UT"][0] = new Option("No preference", "")
tgroup["Salt Lake City, UT"][1] = new Option("Dinosaur Nat'l Monument", "Dinosaur")
tgroup["Salt Lake City, UT"][2] = new Option("Grand Teton", "teton")
tgroup["Salt Lake City, UT"][3] = new Option("Mt Rushmore", "rushmore")
tgroup["Salt Lake City, UT"][4] = new Option("Rocky Mountain", "rocky")
tgroup["Salt Lake City, UT"][5] = new Option("Yellowstone", "yellowstone")

tgroup["Salzburg, EU"][0] = new Option("No preference", "")

tgroup["San Diego, CA"][0] = new Option("No preference", "")
tgroup["San Diego, CA"][1] = new Option("City Tours", "duration")
tgroup["San Diego, CA"][2] = new Option("City Pass", "card")
tgroup["San Diego, CA"][3] = new Option("Double Decker Tours", "double decker")
tgroup["San Diego, CA"][4] = new Option("Trolley Tours", "trolley")
tgroup["San Diego, CA"][5] = new Option("Disneyland", "disneyland")
tgroup["San Diego, CA"][6] = new Option("Ensenada", "ensenada")
tgroup["San Diego, CA"][7] = new Option("Legoland", "legoland")
tgroup["San Diego, CA"][8] = new Option("Rosarito Beach", "rosarito")
tgroup["San Diego, CA"][9] = new Option("San Diego Zoo", "zoo")
tgroup["San Diego, CA"][10] = new Option("Sea World", "sea world")
tgroup["San Diego, CA"][11] = new Option("Seaport Village", "Seaport")
tgroup["San Diego, CA"][12] = new Option("Sycuan", "sycuan")
tgroup["San Diego, CA"][13] = new Option("Tijuana", "tijuana")
tgroup["San Diego, CA"][14] = new Option("Universal Studio", "universal")
tgroup["San Diego, CA"][15] = new Option("Viejas Casino", "viejas")
tgroup["San Diego, CA"][16] = new Option("Wild Animal Park", "animal")

tgroup["San Francisco, CA"][0] = new Option("No preference", "")
tgroup["San Francisco, CA"][1] = new Option("Fully Escorted", "fully")
tgroup["San Francisco, CA"][2] = new Option("Antelope Canyon", "Antelope")
tgroup["San Francisco, CA"][3] = new Option("Arches Nat'l Park", "Arches")
tgroup["San Francisco, CA"][4] = new Option("Bryce Canyon", "Bryce")
tgroup["San Francisco, CA"][5] = new Option("Death Valley", "Death Valley")
tgroup["San Francisco, CA"][6] = new Option("Grand Canyon", "Grand Canyon")
tgroup["San Francisco, CA"][7] = new Option("Hearst Castle", "Hearst Castle")
tgroup["San Francisco, CA"][8] = new Option("Lake Powell", "Lake Powell")
tgroup["San Francisco, CA"][9] = new Option("Las Vegas", "Las Vegas")
tgroup["San Francisco, CA"][10] = new Option("Monterey Bay", "Monterey Bay")
tgroup["San Francisco, CA"][11] = new Option("San Luis Obispo", "Obispo")
tgroup["San Francisco, CA"][12] = new Option("Theme Parks", "Disneyland")
tgroup["San Francisco, CA"][13] = new Option("Zion Nat'l Park", "Zion")
tgroup["San Francisco, CA"][14] = new Option("Yosemite Nt'l Park", "Yosemite")
tgroup["San Francisco, CA"][15] = new Option("Disneyland", "Disneyland")
tgroup["San Francisco, CA"][16] = new Option("Universal Studios", "Universal")
tgroup["San Francisco, CA"][17] = new Option("SeaWorld", "World")
tgroup["San Francisco, CA"][18] = new Option("All SF City Tours ", "San Francisco Duration")
tgroup["San Francisco, CA"][19] = new Option("Food Tours", "taste")
tgroup["San Francisco, CA"][20] = new Option("Monterey Bay", "Segway")
tgroup["San Francisco, CA"][21] = new Option("Sausalito", "Sausalito")
tgroup["San Francisco, CA"][22] = new Option("Segway Tours", "Segway")
tgroup["San Francisco, CA"][23] = new Option("Sequoia Nat'l Park", "Sequoia")
tgroup["San Francisco, CA"][24] = new Option("Wine Tasting", "Wine")
tgroup["San Francisco, CA"][25] = new Option("Yosemite Overnight", "Yosemite Overnight")
tgroup["San Francisco, CA"][26] = new Option("SF City Pass", "Card")

attrGroup["San Francisco, CA"] = new Array();
attrGroupValue["San Francisco, CA"] = new Array();
attrGroup["San Francisco, CA"][0] = new Array("Multi-day Tours", "Fully Escorted", "Antelope Canyon", "Arches Nat'l Park", "Bryce Canyon", "Death Valley", "Grand Canyon", "Hearst Castle", "Lake Powell", "Las Vegas", "Monterey Bay", "San Luis Obispo", "Theme Parks", "Zion Nat'l Park", "Yosemite Nt'l Park");
attrGroupValue["San Francisco, CA"][0] = new Array("", "fully", "Antelope", "Arches", "Bryce", "Death Valley", "Grand Canyon", "Hearst Castle", "Lake Powell", "Las Vegas", "Monterey Bay", "Obispo", "Disneyland", "Zion", "Yosemite");
attrGroup["San Francisco, CA"][1] = new Array("Theme Parks Trips", "Disneyland", "Universal Studios", "SeaWorld");
attrGroupValue["San Francisco, CA"][1] = new Array("", "Disneyland", "Universal", "World");
attrGroup["San Francisco, CA"][2] = new Array("Tours & Sightseeing", "All SF City Tours ", "Food Tours", "Monterey Bay", "Sausalito", "Segway Tours", "Sequoia Nat'l Park", "Wine Tasting", "Yosemite Overnight");
attrGroupValue["San Francisco, CA"][2] = new Array("", "San Francisco Duration", "taste", "Segway", "Sausalito", "Segway", "Sequoia", "Wine", "Yosemite Overnight");
attrGroup["San Francisco, CA"][3] = new Array("Tickets & Passes", "SF City Pass");
attrGroupValue["San Francisco, CA"][3] = new Array("", "Card");

tgroup["San Jose, CA"][0] = new Option("No preference", "")
tgroup["San Jose, CA"][1] = new Option("Bay Cruise", "cruise")
tgroup["San Jose, CA"][2] = new Option("Disneyland", "Disneyland")
tgroup["San Jose, CA"][3] = new Option("Bryce Canyon", "bryce")
tgroup["San Jose, CA"][4] = new Option("Carmel", "Carmel")
tgroup["San Jose, CA"][5] = new Option("Grand Canyon", "canyon")
tgroup["San Jose, CA"][6] = new Option("Grand Canyon Skywalk", "Skywalk")
tgroup["San Jose, CA"][7] = new Option("Los Angeles", "angeles")
tgroup["San Jose, CA"][8] = new Option("Las Vegas", "vegas")
tgroup["San Jose, CA"][9] = new Option("Lake Powell", "powell")
tgroup["San Jose, CA"][10] = new Option("Mexico Ensenada", "ensenada")
tgroup["San Jose, CA"][11] = new Option("Monterey Bay", "monterey")
tgroup["San Jose, CA"][12] = new Option("Muir Woods", "muir woods")
tgroup["San Jose, CA"][13] = new Option("Napa Valley", "Napa")
tgroup["San Jose, CA"][14] = new Option("Redwood Sequoias", "sequoias")
tgroup["San Jose, CA"][15] = new Option("San Diego", "san diego")
tgroup["San Jose, CA"][16] = new Option("Sausalito", "sausalito")
tgroup["San Jose, CA"][17] = new Option("Sea World", "Sea World")
tgroup["San Jose, CA"][18] = new Option("Sequoia", "sequoia")
tgroup["San Jose, CA"][19] = new Option("Southern California", "California")
tgroup["San Jose, CA"][20] = new Option("Universal Studios", "Universal")
tgroup["San Jose, CA"][21] = new Option("Yellowstone", "Yellowstone")
tgroup["San Jose, CA"][22] = new Option("Yosemite", "yosemite")

tgroup["San Jose, COSTARICA"][0] = new Option("No preference", "")

tgroup["Sao Paulo, BRAZIL"][0] = new Option("No preference", "")

tgroup["Savannah, GA"][0] = new Option("No preference", "")
tgroup["Savannah, GA"][1] = new Option("City Tours", "duration")
tgroup["Savannah, GA"][2] = new Option("Trolley Tours", "trolley")

tgroup["Seattle, WA"][0] = new Option("No preference", "")
tgroup["Seattle, WA"][1] = new Option("City Passes", "card")
tgroup["Seattle, WA"][2] = new Option("City Tours", "duration")
tgroup["Seattle, WA"][3] = new Option("Double Decker Bus", "decker")
tgroup["Seattle, WA"][4] = new Option("Boeing Factory ", "boeing")
tgroup["Seattle, WA"][5] = new Option("Rocky Mountain ", "rocky")
tgroup["Seattle, WA"][6] = new Option("Vancouver/Victoria", "vancouver")

tgroup["Shanghai, CN"][0] = new Option("No preference", "")

tgroup["Silver Springs, FL"][0] = new Option("No preference", "")

tgroup["St Augustine, FL"][0] = new Option("No preference", "")
tgroup["St Augustine, FL"][1] = new Option("City Tours", "duration")
tgroup["St Augustine, FL"][2] = new Option("Helicopter Tour", "miles")

tgroup["Sydney, AU"][0] = new Option("No preference", "")

tgroup["Tel-Aviv, ISRAEL"][0] = new Option("No preference", "")

tgroup["Tibet, CN"][0] = new Option("No preference", "")

tgroup["Toronto, ON"][0] = new Option("No preference", "")
tgroup["Toronto, ON"][1] = new Option("City Tours", "duration")
tgroup["Toronto, ON"][2] = new Option("Harbor Cruise", "cruise")
tgroup["Toronto, ON"][3] = new Option("Niagara Falls", "niagara")

attrGroup["Toronto, ON"] = new Array();
attrGroupValue["Toronto, ON"] = new Array();
attrGroup["Toronto, ON"][0] = new Array("City Tours", "City Tours");
attrGroupValue["Toronto, ON"][0] = new Array("", "duration");
attrGroup["Toronto, ON"][1] = new Array("Other Attractions", "Harbor Cruise", "Niagara Falls");
attrGroupValue["Toronto, ON"][1] = new Array("", "cruise", "niagara");

tgroup["Tuxtla Gutierrez, MX"][0] = new Option("No preference", "")

tgroup["Vancouver, BC"][0] = new Option("No preference", "")
tgroup["Vancouver, BC"][1] = new Option("City Tours", "duration")
tgroup["Vancouver, BC"][2] = new Option("Dinner Cruises", "cruise")
tgroup["Vancouver, BC"][3] = new Option("Double Decker ", "decker")
tgroup["Vancouver, BC"][4] = new Option("Floatplane", "floatplane")
tgroup["Vancouver, BC"][5] = new Option("Trolley Tours", "trolley")
tgroup["Vancouver, BC"][6] = new Option("Butchart Gardens", "butchart")
tgroup["Vancouver, BC"][7] = new Option("Capilano Salmon Hatchery", "salmon")
tgroup["Vancouver, BC"][8] = new Option("Rocky Mountain", "rocky")
tgroup["Vancouver, BC"][9] = new Option("Seattle Excursion", "seattle")
tgroup["Vancouver, BC"][10] = new Option("Sulohur Mountain", "sulohur")
tgroup["Vancouver, BC"][11] = new Option("Victoria Excursion", "victoria")
tgroup["Vancouver, BC"][12] = new Option("Whale Watching", "whale")
tgroup["Vancouver, BC"][13] = new Option("Whistler Excursion", "whistler")

tgroup["Venice, EU"][0] = new Option("No preference", "")

tgroup["Vienna, EU"][0] = new Option("No preference", "")

tgroup["Washington, DC"][0] = new Option("No preference", "")
tgroup["Washington, DC"][1] = new Option("City Tours", "duration")
tgroup["Washington, DC"][2] = new Option("Night Tours", "monuments")
tgroup["Washington, DC"][3] = new Option("Trolley Tours", "trolley")
tgroup["Washington, DC"][4] = new Option("Alexandria, VA", "Alexandria")
tgroup["Washington, DC"][5] = new Option("Boston", "boston")
tgroup["Washington, DC"][6] = new Option("Busch Gardens", "busch")
tgroup["Washington, DC"][7] = new Option("Canada", "Canada")
tgroup["Washington, DC"][8] = new Option("Gettysburg", "gettysburg")
tgroup["Washington, DC"][9] = new Option("Monticello", "monticello")
tgroup["Washington, DC"][10] = new Option("Montreal", "Montreal")
tgroup["Washington, DC"][11] = new Option("Mt. Vernon", "Vernon")
tgroup["Washington, DC"][12] = new Option("Niagara Falls", "Niagara Falls")
tgroup["Washington, DC"][13] = new Option("Ottawa", "Ottawa")
tgroup["Washington, DC"][14] = new Option("Philadelphia", "Philadelphia")
tgroup["Washington, DC"][15] = new Option("Thomas Jefferson Country", "Jefferson")
tgroup["Washington, DC"][16] = new Option("Quebec City", "Quebec City")
tgroup["Washington, DC"][17] = new Option("Williamsburg, VA ", "Williamsburg")

tgroup["Worcester, MA"][0] = new Option("No preference", "")
tgroup["Worcester, MA"][1] = new Option("1000 Islands Region", "1000")
tgroup["Worcester, MA"][2] = new Option("Canada", "Canada")
tgroup["Worcester, MA"][3] = new Option("Corning Glass Center", "Corning")
tgroup["Worcester, MA"][4] = new Option("Niagara Falls", "Niagara")
tgroup["Worcester, MA"][5] = new Option("Toronto", "Toronto")

tgroup["Xian, CN"][0] = new Option("No preference", "")

tgroup["Zurich, EU"][0] = new Option("No preference", "")




function update_tour_depart()
{
        var tf_obj = get_tour_depart_obj();

		if(listing_style == 'states'){

			listing_states(tf_obj);

		} else {

			listing_citys(tf_obj);
		}
}

function listing_citys(tf_obj)
{

        for (var i=tf_obj.options.length-1; i>0; i--)
        {
        tf_obj.options[i]=null;
        }
        for (var i=0; i<tcities.length; i++)
        {
                var j = i+1;
        tf_obj.options[j] = new Option(tcities[i], tcities[i]);
        }
}

function listing_citys_pe(tf_obj)
{
    for (var i=0; i<tour_length_pe; i++)
    {
    	var arr = tcities_pe[i].split(/,\s+/);
    	tf_obj.options[tf_obj.options.length] = new Option(arr[0],tcities_pe[i]);
    }
}



function listing_states(tf_obj)
{
	while(tf_obj.hasChildNodes && tf_obj.lastChild)
	{
		tf_obj.removeChild(tf_obj.lastChild);

	}

	var opg_arr = new Array();

	for (var opg in state )
	{
		opg_arr[opg] = document.createElement("optgroup");

		opg_arr[opg].label = state[opg];
	}

	for (var i=0; i<tcities.length; i++)
	{
		var j = i+1;

		var o = document.createElement("option");

		var arr = tcities[i].split(/,\s+/);

		o.value = tcities[i];

		o.innerHTML = arr[0];

		var short_state = arr[1];

		if(opg_arr[short_state])
			opg_arr[short_state].appendChild(o);

	}

	for(var opg in opg_arr) {

		opg_arr[opg].label = state[opg];

		if(opg_arr[opg].hasChildNodes)
			tf_obj.appendChild(opg_arr[opg]);

	}

	listing_citys_pe(tf_obj);
}


function get_tour_from_obj()
{
	return get_tour_depart_obj();
}

function get_tour_to_obj()
{
        return get_tour_attraction_obj();
}

function get_tour_depart_obj()
{
	return document.tour_search.depart;
}

function get_tour_attraction_obj()
{
	return document.tour_search.attraction;
}

function get_tour_days_obj()
{
        return document.tour_search.days;
}

function update_tour(depart, attr, keywords, days, jump)
{
	var depart_obj = get_tour_depart_obj();
	var index;
	if (depart)
	{
		index = set_selected(depart_obj, depart);
	}
	else
	{
		index = depart_obj.options.selectedIndex;
		if (index > 0)
        {
			depart = depart_obj.options[index].value;
		}
	}
	if (index >= 0)
	{
		if (tgroup[depart] instanceof Array && tgroup[depart].length > 1)
		{
			update_tour_to(depart, jump);
			if (attr)
			{
				var attr_obj = get_tour_attraction_obj();
				set_selected(attr_obj, attr);
			}
		}
	}
        if (days)
	{
		var days_obj = get_tour_days_obj();
		set_selected(days_obj, days);
	}
	if (keywords && document.tour_search.keywords)
	{
		document.tour_search.keywords.value = keywords;
	}
}

function update_tour_to(city, jump)
{
	if (city != '' && tgroup[city] instanceof Array)
	{
		var attr_obj = get_tour_attraction_obj();
		var opt_len = tgroup[city].length;
		if (opt_len == 1 && jump)
		{
			return ga("http://www.gotobus.com/cgi-bin/tour.cgi?depart=" + city);
		}
  		attr_obj.innerHTML="";
   		attr_obj.options[0] = new Option(tgroup[city][0].text, tgroup[city][0].value);
   		if (attrGroup[city] instanceof Array)
		{			
			var attr_group = attrGroup[city];
			var opg_arr = new Array();
			for (var len=0;len<attr_group.length;len++)
			{
				opg_arr[len] = document.createElement("optgroup");
				opg_arr[len].label = attr_group[len][0];
				var attractionValue = attrGroupValue[city];
				for (var attrlen=1;attrlen<attr_group[len].length;attrlen++)
				{
					var objOption=document.createElement("option");
					objOption.value = attractionValue[len][attrlen];
					objOption.innerHTML = attr_group[len][attrlen];
					opg_arr[len].appendChild(objOption);
				}
			}
			for(var opg in opg_arr)
			{
				attr_obj.appendChild(opg_arr[opg]);
			}
		}
		else
		{	  		
	   		for (var i=0; i<opt_len; i++)
			{
	       			attr_obj.options[i] = new Option(tgroup[city][i].text, tgroup[city][i].value);
			}
		}
	}
	tour_clear();
}

function set_tour_dates(obj, selected_date)
{
	var wdays= new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun");
	var d = new Date();
	var aDay=86400000;
	var selected = 0;
	for (var i=0; i<60; i++)
	{
		var m = d.getMonth() + 1;
		if (m < 10)
		{
			m = "0" + m;
		}
		var dt = d.getDate();
		if (dt < 10)
		{
			dt = "0" + dt;
		}
		var fdv = d.getFullYear() + "-" + m + "-" + dt + " " + wdays[d.getDay()];
		var fd = d.getFullYear() + "-" + m + "-" + dt;
		obj.options[i+1] = new Option(fdv, fd, true);
		d = new Date(d.valueOf() + aDay);
		if (selected_date == fd)
		{
			selected = i+1;
		}
	}
	obj.options.selectedIndex = selected;
}

function tour_clear()
{
	var t_obj = document.getElementById("itemList");
	if (t_obj)
	{
	    t_obj.innerHTML = "";
	}
}

function tour_conditional_regen()
{
	var t_obj = document.getElementById("itemList");
	if (t_obj && t_obj.innerHTML != "")
	{
		tour_regen();
	}
}

function tour_regen()
{
	var depart_obj = document.tour_search.depart;
	var depart = "";
	if (depart_obj && depart_obj.value)
	{
		depart = depart_obj.value;
	}
	else
	{
		tour_clear();
		return;
	}
	var attr = "";
	var promotion_type = "";
	var promotion_obj = document.tour_search.promotion_type;
	if (promotion_obj)
	{
		promotion_type = promotion_obj.value;
	}
	var attr_obj = document.tour_search.attraction;
	if (attr_obj && attr_obj.value)
	{
		attr = attr_obj.value;
	}
	var max_price = "";
	var max_price_obj = document.tour_search.max_price;
	if (max_price_obj && max_price_obj.value)
	{
		max_price = max_price_obj.value;
	}
	var lowest_price = "";
	var lowest_price_obj = document.tour_search.lowest_price;
	if (lowest_price_obj && lowest_price_obj.value)
	{
		lowest_price = lowest_price_obj.value;
	}
	var left_point = "";
	var left_point_obj = document.tour_search.left_point;
	if (left_point_obj && left_point_obj.value)
	{
		left_point = left_point_obj.value;
	}
	var right_point = "";
	var right_point_obj = document.tour_search.right_point;
	if (right_point_obj && right_point_obj.value)
	{
		right_point = right_point_obj.value;
	}
	var date_obj = document.tour_search.date;
	var d = "";
	if (date_obj && date_obj.value)
	{
		d = date_obj.value;
	}
	var ignore = "";
	var ignore_obj = document.tour_search.ignore;
	if (ignore_obj && ignore_obj.checked == true)
	{
		ignore = 1;
	}
	var days_obj = document.tour_search.days;
	var days = "";
	if (days_obj && days_obj.value)
	{
		days = days_obj.value;
	}
	var keywords = "";
	var keywords_obj = document.tour_search.keywords;
	if (keywords_obj && keywords_obj.value)
	{
		keywords = keywords_obj.value;
	}
        var order = "";
        var order_obj = document.tour_search.order;
        if (order_obj && order_obj.value)
        {
                order = order_obj.value;
        }
        ga("/cgi-bin/tour.cgi?depart=" + depart + "&attraction=" + attr + "&date=" + d + "&ignore=" + ignore + "&days=" + days + "&keywords=" + keywords + "&order=" + order + "&max_price=" + max_price + "&lowest_price=" + lowest_price + "&left_point=" + left_point + "&right_point=" + right_point + "&promotion_type=" + promotion_type);
}

function check_tour_input()
{
        var depart_obj = document.tour_search.depart;
        var depart = '';
        if (depart_obj && depart_obj.value)
        {
                depart = depart_obj.value;
        }
        if (depart == '')
        {
                alert("Please select a departure city!");
                depart_obj.focus();
                return false;
        }
        var date_obj = document.tour_search.date;
        var d = '';
        if (date_obj && date_obj.value)
        {
                d = date_obj.value;
        }
        if (d && !d.match(/\d\d\d\d-\d\d-\d\d/))
        {
                alert("Date (" + d + ") must be either empty or in the format: YYYY-MM-DD");
                date_obj.focus();
                return false;
        }
}

function tour_date_clicked(y,m,d)
{
	if (m < 10) m = '0' + m;
	if (d < 10) d = '0' + d;
	document.tour_search.date.value = y + '-' + m + '-' + d;
	if (document.tour_search.ignore.checked == false)
	{
		tour_conditional_regen();
	}
}

function empty_tour_date()
{
        document.tour_search.date.value = '';
        tour_conditional_regen();
}

function check_tour_ignore()
{
    if (document.tour_search.ignore.checked == false)
    {
        document.tour_search.date.disabled = false;

        if (document.tour_search.date.value == '')
        {
            var t_date = new Date(past_date.valueOf() + 3 * aDay);
            document.tour_search.date.value = formatDate(t_date, "yyyy-MM-dd");
			return;
        }
    }
    else
    {
        document.tour_search.date.value = "";
        document.tour_search.date.disabled = true;

    }
    tour_conditional_regen();
}

function sort_tours(order_by)
{
	var min_price_temp = 0;
	if (typeof(price) != 'undefined')
	{
		if (document.tour_search && document.tour_search.min_price)
		{
			min_price_temp = parseInt(document.tour_search.min_price.value);
		}
		if (document.tour_search && document.tour_search.left_point)
		{
			document.tour_search.left_point.value = price.getSldPoint();
		}
		if (document.tour_search && document.tour_search.right_point)
		{
			document.tour_search.right_point.value = price.getSldRightPoint();
		}
		if (document.tour_search && document.tour_search.max_price)
		{
			document.tour_search.max_price.value = price.getSldRightPoint() + min_price_temp;
		}
		if (document.tour_search && document.tour_search.lowest_price)
		{
			document.tour_search.lowest_price.value = price.getSldPoint() + min_price_temp;
		}
	}	
	if (document.tour_search && document.tour_search.order)
	{
		document.tour_search.order.value = order_by;
		tour_conditional_regen();
	}
	if (document.sight_search && document.sight_search.order)
	{
		document.sight_search.order.value = order_by;
		sight_conditional_regen();
	}
}

function get_dynamic_price(pid)
{
	document.getElementById("dynamic_price" + pid).innerHTML = "<font color='red'>Loading..</font>";
	if(window.XMLHttpRequest) {
		dynamic_xml = new XMLHttpRequest();
	} else {
		dynamic_xml = new ActiveXObject("MSXML2.XMLHTTP");
	}
	var url = 'ajax.cgi?type=dynamic_price&pid=' + pid;
	dynamic_xml.open("GET", url, true);
	dynamic_xml.onreadystatechange = response_dynamic_price;
	dynamic_xml.setRequestHeader("If-Modified-Since","0");
	dynamic_xml.send("");
}

function response_dynamic_price()
{
	if (dynamic_xml.readyState == 4)
	{
		var response = "<strong>Price:&nbsp;<span class='r11'>" + dynamic_xml.responseText + "</span></strong>";
		var pid = document.getElementById("pid_hidden").value;
		document.getElementById("dynamic_price" + pid).innerHTML = response;
	}
}


function dynamic_image(pid)
{
	var dynamic_image_html = document.getElementById("dynamic_price_hidden" + pid).innerHTML;
	document.getElementById("dynamic_price" + pid).innerHTML = dynamic_image_html;

}

function set_pid_value(pid)
{
	document.getElementById("pid_hidden").value = pid;
}
//-->
