$(window).load(function(){
	$("#activityToggle").toggle(
		function(){
			$(this).addClass("listingsShown");
			$("#activityListings").show();
		},
		function(){
			$(this).removeClass("listingsShown");
			$("#activityListings").hide();
		}
	);
	
	$("#propertyToggle").toggle(
		function(){
			$(this).addClass("listingsShown");
			$("#propertyListings").show();
		},
		function(){
			$(this).removeClass("listingsShown");
			$("#propertyListings").hide();
		}
	);

	var propertyIcon = {
		image: "http://maps.google.com/mapfiles/ms/micons/lodging.png",
		shadow: "http://maps.google.com/mapfiles/ms/micons/lodging.shadow.png",
		iconSize: {w: 32, h: 32},
		shadowSize: {w: 59, h: 32},
		iconAnchor: {x: 16, y: 32},
		infoWindowAnchor: {x: 16, y: 0},
		imageMap: null
	}
	
	var familyIcon = {
		image: "http://cms.vizergy.com/vsites/files/76/fam.png",
		shadow: "",
		iconSize: {w: 32, h: 32},
		shadowSize: {w: 0, h: 0},
		iconAnchor: {x: 16, y: 32},
		infoWindowAnchor: {x: 16, y: 0},
		imageMap: null
	}
	
	var couplesIcon = {
		image: "http://cms.vizergy.com/vsites/files/76/couple.png",
		shadow: "",
		iconSize: {w: 32, h: 32},
		shadowSize: {w: 0, h: 0},
		iconAnchor: {x: 16, y: 32},
		infoWindowAnchor: {x: 16, y: 0},
		imageMap: null
	}
	
	var shoppingIcon = {
		image: "http://maps.google.com/mapfiles/ms/micons/snack_bar.png",
		shadow: "http://maps.google.com/mapfiles/ms/micons/snack_bar.shadow.png",
		iconSize: {w: 32, h: 32},
		shadowSize: {w: 59, h: 32},
		iconAnchor: {x: 16, y: 32},
		infoWindowAnchor: {x: 16, y: 0},
		imageMap: null
	}
	
	var golfIcon = {
		image: "http://maps.google.com/mapfiles/ms/micons/golfer.png",
		shadow: "http://maps.google.com/mapfiles/ms/micons/golfer.shadow.png",
		iconSize: {w: 32, h: 32},
		shadowSize: {w: 59, h: 32},
		iconAnchor: {x: 16, y: 32},
		infoWindowAnchor: {x: 16, y: 0},
		imageMap: null
	}
	
	$("#activityMap").activityMap({
		devDomainFlag: "cms.vizergy.com",
		devAPIKey: "ABQIAAAAQP73c5W4GnYrvGwYdqS0GxSpjKsyUM3rLt0ftTVv-2buaC4soRSC_YSyFZPWJ3pjiiuXfaEM7_rbMg",
		//devAPIKey: "ABQIAAAA7ePV6VryBR9xsuVAtRZtWRSpjKsyUM3rLt0ftTVv-2buaC4soRQurroefz5f8qoJIJ7QWjQr3adr0g",
		//prodAPIKey: "ABQIAAAA7ePV6VryBR9xsuVAtRZtWRSpjKsyUM3rLt0ftTVv-2buaC4soRQurroefz5f8qoJIJ7QWjQr3adr0g",
		prodAPIKey: "ABQIAAAAQP73c5W4GnYrvGwYdqS0GxTZBgJ6YgZA48cNsIBMZsTZIM4TBRQAgUAfarValcC1nTBdMSYd9vDXcg",
		activityListingsId: "activityListings",
		propertyListingsId: "propertyListings",
		propertyIcon: propertyIcon,
		properties: [
			{
				name: "The Enclave Hotel & Suites",
				address: "6165 Carrier Drive, Orlando, FL 32819",
				phone: "(407) 351-1155",
				website: "http://www.enclavesuites.com",
				lng: -81.468113,
				lat: 28.457282,
				visible: true
			},
			{
				name: "Hawthorn Suites Universal",
				address: "7601 Canada Avenue, Orlando, FL 32819",
				phone: "(904) 123-4567",
				website: "http://www.hawthornsuitesuniversal.com",
				lng: -81.467839,
				lat: 28.452013,
				visible: true
			},
			{
				name: "Lake Buena Vista Resort Village & Spa",
				address: "8112 Poinciana Blvd., Orlando, FL 32821",
				phone: "(407) 597-0214",
				website: "http://www.lbvorlandoresort.com",
				lng: -81.487045,
				lat: 28.350991,
				visible: true
			},
			{
				name: "Coral Cay Resort",
				address: "2300 Caravelle Circle, Kissimmee, FL 34741",
				phone: "(321) 251-5982",
				website: "http://www.staycoralcay.com",
				lng: -81.462137,
				lat: 28.315893,
				visible: true
			},			
			{
				name: "Lake Eve Resort",
				address: "12388 International Drive, Orlando, FL 32819",
				phone: "(321) 251-7023",
				website: "http://www.lakeeveresort.com/cvb/",
				lng: -81.476318,
				lat: 28.389782,
				visible: true
			},
			{
				name: "Palisades Resort",
				address: "14200 Avalon Road, Orlando, FL 34787",
				phone: "(321) 250-3030 ",
				website: "http://www.palisadesresortorlando.com/",
				lng: -81.645535,
				lat: 28.35896,
				visible: true
			},
			/*{
				name: "Baymont Kissimmee",
				address: "4156 W Vine Street (Hwy 192), Kissimmee, FL 34741",
				phone: "(407) 994-1900",
				website: "http://www.baymontkissimmee.com/",
				lng: -81.491559,
				lat: 28.31809
			},*/
			{
				name: "Hawaiian Inn",
				address: "2301 South Atlantic Avenue, Daytona Beach Shores, FL 32118",
				phone: "(386) 255-5411",
				website: "http://www.hawaiianinn.com/",
				lng: -80.990654,
				lat: 29.19271,
				visible: true
			}
		],
		activityGroups: [
			{
				name: "Families",
				toggleClass: "familyToggle",
				icon: familyIcon,
				showOnload: false,
				activities: [
					{
						name: "Magic Kingdom",
						address: "3111 World Drive, Bay Lake, FL 32830",
						phone: "(407) 824-4321",
						website: "http://disneyworld.disney.go.com/parks/magic-kingdom/",
						lng: -81.57046,
						lat: 28.39211
					},
					{
						name: "Epcot",
						address: "1320 Avenue of the Stars, Bay Lake, FL 32830",
						phone: "(407) 824-4321",
						website: "http://disneyworld.disney.go.com/parks/epcot/",
						lng: -81.455745,
						lat: 28.458315
					},

					{
						name: "Disney's Animal Kingdom",
						address: "Bay Lake, FL 32830",
						phone: "(407) 824-4321",
						website: "http://disneyworld.disney.go.com/parks/animal-kingdom/",
						lng: -81.54705,
						lat: 28.37564
					},
					{
						name: "Universal Studios Florida",
						address: "6000 Universal Boulevard, Orlando, FL 32819",
						phone: "(407) 363-8000",
						website: "http://www.universalorlando.com/",
						lng: -81.484419,
						lat: 28.073436
					},
					{
						name: "Sea World",
						address: "7007 Seaworld Dr, Orlando, FL 32821",
						phone: "(407) 363-2200",
						website: "http://www.seaworld.com/orlando/",
						lng: -81.41416,
						lat: 28.482052
					},
					{
						name: "Aquatica",
						address: "5800 Water Play Way, Orlando, FL 32801",
						phone: "(800) 327-2420",
						website: "http://www.aquaticabyseaworld.com/",
						lng: -81.463881,
						lat: 28.41103
					},
					{
						name: "Wet 'n Wild",
						address: "6200 International Dr, Orlando, FL 32819",
						phone: "(407) 351-1800",
						website: "http://www.wetnwildorlando.com/",
						lng: -81.463975,
						lat: 28.461505
					},
					{
						name: "Fun Spot Action Park",
						address: "5551 Del Verde Way, Orlando, FL 32819",
						phone: "(407) 363-3867",
						website: "http://www.funspot.tutengraphics.com/",
						lng: -81.455394,
						lat: 28.464023
					},
					{
						name: "Holy Land Experience",
						address: "4655 Vineland Rd, Orlando, FL 32811",
						phone: "(407) 872-2272",
						website: "http://www.zionshope.org/index.aspx",
						lng: -81.444199,
						lat: 28.480066
					},
					{
						name: "Downtown Disney",
						address: "1486 East Buena Vista Drive, Lake Buena Vista, FL 32830",
						phone: "(407) 828-3800",
						website: "http://disneyworld.disney.go.com/",
						lng: -81.542305,
						lat: 28.37986
					},
					{
						name: "Amway Arena",
						address: "600 Amelia Street, Orlando, FL 32801",
						phone: "(407) 849-2558",
						website: "http://www.orlandovenues.net/",
						lng: -81.453182,
						lat: 28.459162
					},
					{
						name: "Espn Wide World of Sports",
						address: "700 S Victory Way, Lake Buena Vista, FL 32830",
						phone: "(407) 828-3267",
						website: "http://disneyworldsports.disney.go.com",
						lng: -81.46108,
						lat: 28.495709
					},
					{
						name: "Osceola Heritage Park",
						address: "1875 Silver Spur Lane Kissimmee, FL 34744",
						phone: "(321) 697-3333",
						website: "http://www.ohpark.com/",
						lng: -81.392292,
						lat: 28.30136
					}
        ]
			},
			{
				name: "Couples",
				toggleClass: "couplesToggle",
				icon: couplesIcon,
				showOnload: false,
				activities: [
					{
						name: "Charley's Steakhouse",
						address: "8255 International Dr, Orlando, FL 32819",
						phone: "(407) 363-0228",
						website: "http://talkofthetownrestaurants.com",
						lng: -81.469985,
						lat: 28.447313
					},
					{
						name: "Del Frisco's",
						address: "729 Lee Rd, Orlando, FL 32810",
						phone: "(407) 645-4443",
						website: "http://delfriscosorlando.com",
						lng: -81.390538,
						lat: 28.608873
					},
					{
						name: "Morton's the Steakhouse",
						address: "7600 Dr Phillips Blvd, Orlando, FL 32819",
						phone: "(407) 248-3485",
						website: "http://mortons.com",
						lng: -81.440309,
						lat: 28.530925
					},
					{
						name: "Ruth's Chris Steak House",
						address: "7501 W Sand Lake Rd, Orlando, FL 32819",
						phone: "(407) 226-3900",
						website: "http://ruthschris.com",
						lng: -81.487151,
						lat: 28.451779
					},
					{
						name: "Seasons 52",
						address: "7700 Sand Lake Rd, Orlando, FL 32819",
						phone: "(407) 354-5212",
						website: "http://seasons52.com",
						lng: -81.484222,
						lat: 28.450581
					},
					{
						name: "Roy's Restaurants",
						address: "7760 W Sand Lake Rd, Orlando, FL 32819",
						phone: "(407) 352-4844",
						website: "http://roysrestaurant.com",
						lng: -81.488492,
						lat: 28.449855
					},
					{
						name: "Bonefish Grill",
						address: "7830 W Sand Lake Rd, Orlando, FL 32819",
						phone: "(407) 355-7707",
						website: "http:/bonefishgrill.com",
						lng: -81.48875,
						lat: 28.449855
					},
					{
						name: "Christinis Restaurant",
						address: "7600 Dr Phillips Blvd, Orlando, FL 32819",
						phone: "(407) 345-8770",
						website: "http://christinis.com",
						lng: -81.489683,
						lat: 28.449855
					},
					{
						name: "Blue Water Balloons",
						address: "566 Buckminster Cir, Orlando, FL 32803",
						phone: "(407) 894-5040",
						website: "http://bluewaterballoons.com",
						lng: -81.588017,
						lat: 28.411345
					},
					{
						name: "Orlando Helicenter",
						address: "4623 West Irlo Bronson Memorial Highway, Kissimmee, FL 34746",
						phone: "(407) 396-6006",
						website: "http://orlandohelicenter.com",
						lng: -81.407768,
						lat: 28.423727
					}
				]
			},
			{
				name: "Shopping & Dining",
				toggleClass: "shoppingToggle",
				icon: shoppingIcon,
				showOnload: false,
				activities: [
					{
						name: "Florida Mall",
						address: "8001 S Orange Blossom Trl #420, Orlando, FL 32809",
						phone: "(407) 851-6255",
						website: "http://www.simon.com",
						lng: -81.396718,
						lat: 28.375741
					},
					{
						name: "Mall At Millenia",
						address: "4200 Conroy Rd, Orlando, FL 32839",
						phone: "(407) 363-3555",
						website: "http://www.mallatmillenia.com/",
						lng: -81.385689,
						lat: 28.546981
					},
					{
						name: "Prime Outlets Orlando",
						address: "4951 International Dr, Orlando, FL 32819",
						phone: "(407) 352-9611",
						website: "http://www.primeoutlets.com/",
						lng: -81.440664,
						lat: 28.479595
					},
					{
						name: "Orlando Premium Outlets",
						address: "8200 Vineland Ave, Orlando, FL 32821",
						phone: "(407) 238-7787",
						website: "http://www.efactoryoutlets.com/search2.aspx?state=27",
						lng: -81.428591,
						lat: 28.469428
					},
					{
						name: "Lake Buena Vista Factory Stores",
						address: "15591 State Rd 535, Orlando, FL 32821",
						phone: "(407) 238-9301",
						website: "http://www.lbvfs.com/",
						lng: -81.507245,
						lat: 28.3687
					},
					{
						name: "Pirates Dinner Adventure",
						address: "6400 Carrier Dr, Orlando, FL 32819",
						phone: "(407) 248-0590",
						website: "http://www.piratesdinneradventure.com/",
						lng: -81.479135,
						lat: 28.402507
					},
					{
						name: "Pointe Orlando",
						address: "9101 International Dr, Orlando, FL 32819",
						phone: "(407) 248-0664",
						website: "http://www.pointeorlando.com/",
						lng: -81.318153,
						lat: 28.533758
					},
					{
						name: "Caf&eacute; TuTu Tango",
						address: "8623 International Dr, Orlando, FL 32819",
						phone: "(407) 248-3091",
						website: "http://www.cafetututango.com/orlando/",
						lng: -81.470283,
						lat: 28.436422
					},
					{
						name: "BahamaBreeze",
						address: "8849 International Drive, Orlando, FL 32819",
						phone: "(407) 248-2499",
						website: "http://www.bahamabreeze.com/",
						lng: -81.470838,
						lat: 28.438715
					},
					{
						name: "Downtown Disney",
						address: "1486 East Buena Vista Drive, Lake Buena Vista, FL 32830",
						phone: "(407) 828-3800",
						website: "http://disneyworld.disney.go.com/",
						lng: -81.542305,
						lat: 28.37986
					},
					{
						name: "Universal CityWalk",
						address: "6000 Universal Blvd., Orlando, FL 32819",
						phone: "(407) 363-8000",
						website: "http://www.universalorlando.com/",
						lng: -100.593721,
						lat: 31.253507
					}
				]
			},
			{
				name: "Golf & Spa",
				toggleClass: "golfToggle",
				icon: golfIcon,
				showOnload: false,
				activities: [
					{
						name: "Falcon's Fire Golf Club",
						address: "3200 Seralago Blvd., Kissimmee, FL 34746",
						phone: "(407) 239-5445",
						website: "http://www.falconsfire.com/",
						lng: -81.482438,
						lat: 28.435343
					},
					{
						name: "Orange County National Golf",
						address: "16301 Phil Ritson Way, Winter gardens, FL 34787",
						phone: "(407) 656-2626",
						website: "http://www.ocngolf.com/",
						lng: -81.62516,
						lat: 28.441643
					},
					{
						name: "Stoneybrook West",
						address: "15501 Towne Commons Boulevard, Winter Garden, FL 34787",
						phone: "(407) 877-8533",
						website: "",
						lng: -81.61152,
						lat: 28.514905
					},
					{
						name: "Highlands Reserve Golf Club",
						address: "500 Highlands Reserve Boulevard, Davenport, FL 33897",
						phone: "(863) 420-1724",
						website: "http://www.highlandreserve-golf.com",
						lng: -81.674258,
						lat: 28.301672
					},
					{
						name: "Champions Gate Golf Club",
						address: "1400 Masters Boulevard, Davenport, Florida 33896",
						phone: "(407) 787-4653",
						website: "http://www.championsgategolf.com",
						lng: -81.648462,
						lat: 28.281371
					},
					{
						name: "Celebration Golf Club",
						address: "701 Golfpark Dr, Kissimmee, FL 34747",
						phone: "(407) 566-4653",
						website: "http://www.celebrationgolf.com",
						lng: -81.585706,
						lat: 28.295169
					},
					{
						name: "Orange Lake Country Club Resort",
						address: "8505 W Irlo Bronson Mem Hwy, Kissimmee, FL 34747",
						phone: "(407) 239-0000",
						website: "http://www.orangelake.com",
						lng: -81.580122,
						lat: 28.335024
					},
					{
						name: "Mystic Dunes Resort & Golf Club",
						address: "7900 Mystic Dunes Lane, Celebration, FL 34747",
						phone: "(407) 226-9501",
						website: "http://www.mystic-dunes-resort.com",
						lng: -81.604114,
						lat: 28.331606
					},
					{
						name: "Ginn Golf",
						address: "1180 Celebration Blvd, Kissimmee, FL 34747",
						phone: "(321) 939-0456",
						website: "",
						lng: -81.552251,
						lat: 28.321342
					},
					{
						name: "Reflections Spa & Salon",
						address: "8113 Resort Village Drive, Orlando, Florida 32821",
						phone: "(407) 597-1695",
						website: "http://www.reflectionsspaorlando.com/",
						lng: -81.482109,
						lat: 28.389503
					}
				]
			}
		]
	});
});
