/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Michael J. Damato | http://developing.damato.net/ */
var states = new Array();
var cities = new Array();

// US City lists
states['United States'] = new Array('State','Alabama','Arizona','Arkansas','California','Colorado','Delaware','Florida','Georgia','Hawaii','Idaho','Indiana','Iowa','Louisiana','Maryland','Massachusetts','Michigan','Minnesota','Montana','New Hampshire','New Jersey','North Carolina','Nevada','New York','Rhode Island','South Carolina','Tennessee','Texas','Utah','Washington','Wisconsin','Wyoming','Virginia');

cities['United States'] = new Array();
cities['United States']['Alabama'] = new Array('City','Gulf Coast');
cities['United States']['Arizona'] = new Array('City','Flagstaff','Scottsdale','Sedona','Tubac');
cities['United States']['Arkansas'] = new Array('City','Bella Vista','Fairfield Bay','Holiday Island','Horseshoe Bend','Hot Springs','Hot Springs Village');
cities['United States']['California'] = new Array('City','Lake Tahoe','Palm Springs','Rancho Mirage','Palm Desert','La Quinta','San Diego - Downtown','San Diego County - North Coastal');
cities['United States']['Colorado'] = new Array('City','Aspen','Breckenridge','Grand Elk','Grand Lake','Keystone','Snowmass','Steamboat','Telluride','Vail','Winter Park');
cities['United States']['Delaware'] = new Array('City','Bethany Beach');
cities['United States']['Florida'] = new Array('Florida Locations','Anna Maria','Beaches of South Walton','Bradenton','Captiva','Daytona','Destin','Ft Lauderdale','Ft Myers','Ft Walton Beach','Florida Keys','Key West','Lido Key','Longboat','Naples','Navarre Beach','Orlando','Panama City Beach','Perdido Key','Rosemary Beach','Sanibel','Sarasota','St George Island','Siesta Key','Venice');
cities['United States']['Georgia'] = new Array('City','St Simons Island');
cities['United States']['Hawaii'] = new Array('Hawaii Locations','Big Island','Honolulu','Kauai','Maui','Oahu');
cities['United States']['Idaho'] = new Array('City','Sun Valley','Island Park');
cities['United States']['Indiana'] = new Array('City','French Lick');
cities['United States']['Iowa'] = new Array('City','Panora','Spirit Lake');
cities['United States']['Louisiana'] = new Array('City','Carter Plantation');
cities['United States']['Maryland'] = new Array('City','Ocean City');
cities['United States']['Massachusetts'] = new Array('MA Locations','Brewster','Hyannis','Mashpee','Provincetown','Rockport','South Lee','South Yarmouth','West Yarmouth');
cities['United States']['Michigan'] = new Array('City','Boyne Falls');
cities['United States']['Minnesota'] = new Array('City','Alexandria','Breezy Point','Detroit Lakes','Nisswa');
cities['United States']['Montana'] = new Array('City','Big Sky','Red Lodge');
cities['United States']['New Hampshire'] = new Array('City','Ashland','Bartlett','North Conway');
cities['United States']['New Jersey'] = new Array('City','Atlantic City','Brigantine');
cities['United States']['North Carolina'] = new Array('Outer Banks');
cities['United States']['Nevada'] = new Array('City','Las Vegas','Lake Tahoe Area');
cities['United States']['New York'] = new Array('New York City');
cities['United States']['Rhode Island'] = new Array('City','Newport');
cities['United States']['South Carolina'] = new Array('SC Locations','Charleston','Georgetown','Hilton Head','Isle of Palms','Kiawah','Myrtle Beach','Seabrook','Sullivans Island','Wild Dunes');
cities['United States']['Tennessee'] = new Array('TN Locations','Crossville','Fairfield Glade','Gatlinburg','Nashville', 'Smoky Mountains');
cities['United States']['Texas'] = new Array('City','Austin','Brownsville','Conroe','Flint','Holly Lake Ranch','Montgomery','New Ulm','Sam Rayburn','Willis');
cities['United States']['Virginia'] = new Array('City','Mcgaheysville','Virginia Beach','Williamsburg');
cities['United States']['Utah'] = new Array('City','Park City');
cities['United States']['Washington'] = new Array('City','Seattle');
cities['United States']['Wisconsin'] = new Array('City','Lake Geneva','Mishicot');
cities['United States']['Wyoming'] = new Array('City','Jackson Hole','Wilson');

cities['United States']['State'] = new Array('US City');

// Canada City lists
states['Canada'] = new Array('Choose Location','Alberta','British Columbia','Manitoba','Ontario','Quebec');
cities['Canada'] = new Array();
cities['Canada']['Alberta'] = new Array('City','Canmore','Kananaskis');
cities['Canada']['British Columbia'] = new Array('City','Whistler','Vancouver','Panorama');
cities['Canada']['Manitoba'] = new Array('City','Onanole');
cities['Canada']['Ontario'] = new Array('City','Brechin','Collingwood');
cities['Canada']['Quebec'] = new Array('City','Beaupre','Mont-tremblant');

// Central America City lists
states['Central America'] = new Array('Costa Rica');
cities['Central America'] = new Array();
cities['Central America']['Costa Rica'] = new Array('Costa Rica');

// Asian City lists
states['Asia'] = new Array('United Arab Emirates');
cities['Asia'] = new Array();
cities['Asia']['United Arab Emirates'] = new Array('Dubai');

// African City lists
states['Africa'] = new Array('South Africa');
cities['Africa'] = new Array();
cities['Africa']['South Africa'] = new Array('South Africa');


//Mexico City lists
states['Mexico'] = new Array('Acapulco','Guadalajara','Los Cabos','Mazatlan','Puerto Penasco','Riviera Maya','San Jose Del Cabo');
cities['Mexico'] = new Array();
cities['Mexico']['Los Cabos'] = new Array('Los Cabos');
cities['Mexico']['Puerto Penasco'] = new Array('Puerto Penasco');
cities['Mexico']['Guadalajara'] = new Array('Guadalajara');
cities['Mexico']['Acapulco'] = new Array('Acapulco');
cities['Mexico']['Mazatlan'] = new Array('Mazatlan');
cities['Mexico']['Riviera Maya'] = new Array('Riviera Maya');
cities['Mexico']['San Jose Del Cabo'] = new Array('San Jose Del Cabo');

//Caribbean City lists
states['Caribbean'] = new Array('Caribbean');
cities['Caribbean'] = new Array();
cities['Caribbean']['Caribbean'] = new Array('Caribbean');

//Europe
states['Europe'] = new Array('Country','Andorra','Austria','Belgium','Croatia','Czech Republic','Denmark','France','Germany','Greece','Hungary','Ireland','Italy','Luxembourg','Malta','Netherlands','Poland','Portugal','Slovakia','Spain','Switzerland','Turkey','United Kingdom');
cities['Europe'] = new Array();
cities['Europe']['Andorra'] = new Array('Andorra');
cities['Europe']['Austria'] = new Array('Austria');
cities['Europe']['Belgium'] = new Array('Belgium');
cities['Europe']['Croatia'] = new Array('Croatia');
cities['Europe']['Czech Republic'] = new Array('Czech Republic');
cities['Europe']['Denmark'] = new Array('Denmark');
cities['Europe']['France'] = new Array('France');
cities['Europe']['Germany'] = new Array('Germany');
cities['Europe']['Greece'] = new Array('Greece');
cities['Europe']['Hungary'] = new Array('Hungary');
cities['Europe']['Ireland'] = new Array('Ireland');
cities['Europe']['Italy'] = new Array('Italy');
cities['Europe']['Luxembourg'] = new Array('Luxembourg');
cities['Europe']['Malta'] = new Array('Malta');
cities['Europe']['Netherlands'] = new Array('Netherlands');
cities['Europe']['Poland'] = new Array('Poland');
cities['Europe']['Portugal'] = new Array('Portugal');
cities['Europe']['Slovakia'] = new Array('Slovakia');
cities['Europe']['Spain'] = new Array('Spain');
cities['Europe']['Switzerland'] = new Array('Switzerland');
cities['Europe']['Turkey'] = new Array('Turkey');
cities['Europe']['United Kingdom'] = new Array('United Kingdom');
cities['Europe']['Country'] = new Array('Country','Andorra','Austria','Belgium','Croatia','Czech Republic','Denmark','France','Germany','Greece','Hungary','Ireland','Italy','Luxembourg','Malta','Netherlands','Poland','Portugal','Slovakia','Spain','Switzerland','Turkey','United Kingdom');

// Default lists
states['Region'] = new Array('State/Country');
cities['Region'] = new Array();
cities['Region']['State/Country'] = new Array('City');

function setStates() {
  cntrySel = document.getElementById('country');
  stateList = states[cntrySel.value];
  changeSelect('state', stateList, stateList);
  setCities();
}


function setCities() {
  cntrySel = document.getElementById('country');
  stateSel = document.getElementById('state');
  cityList = cities[cntrySel.value][stateSel.value];
  changeSelect('city', cityList, cityList);
}

function changeSelect(fieldID, newOptions, newValues) {
  selectField = document.getElementById(fieldID);
  selectField.options.length = 0;
  for (i=0; i<newOptions.length; i++) {
    selectField.options[selectField.length] = new Option(newOptions[i], newValues[i]);
  }
}

function getURL()   {
   var w = document.myform.loclist.selectedIndex;
   var url_add = document.myform.loclist.options[w].value;
   // window.location.href = url_add;
   goURL(url_add);   
   }

function goURL(loc) {
//Colorado
	if (loc == 'Aspen')					{newurl= "http://ad.doubleclick.net/clk;214188764;36068783;v";}	
	else if (loc == 'Breckenridge')		{newurl= "http://ad.doubleclick.net/clk;214188713;36067100;x";}	
	else if (loc == 'Grand Elk')		{newurl= "http://ad.doubleclick.net/clk;212573210;33907727;a";}
	else if (loc == 'Grand Lake')		{newurl= "http://ad.doubleclick.net/clk;212573210;33907727;a";}	
	else if (loc == 'Keystone')			{newurl= "http://ad.doubleclick.net/clk;214188774;36067088;t";}
	else if (loc == 'Snowmass')			{newurl= "http://ad.doubleclick.net/clk;214188762;36067043;h";}	
	else if (loc == 'Steamboat')		{newurl= "http://ad.doubleclick.net/clk;214188709;36066879;y";}
	else if (loc == 'Telluride')		{newurl= "http://ad.doubleclick.net/clk;214188757;36066988;c";}	
	else if (loc == 'Vail')				{newurl= "http://ad.doubleclick.net/clk;219325835;42531715;f";}		
	else if (loc == 'Winter Park')		{newurl= "http://ad.doubleclick.net/clk;212573210;33907727;a";}
//Other West Coast
	else if (loc == 'Park City')		{newurl= "http://ad.doubleclick.net/clk;214144866;36067083;i";}
	else if (loc == 'Sun Valley')		{newurl= "http://ad.doubleclick.net/clk;214188761;36066974;s";}	
	else if (loc == 'Las Vegas')		{newurl= "http://ad.doubleclick.net/clk;212573198;33907886;v";}	
	else if (loc == 'Lake Tahoe Area')	{newurl= "http://ad.doubleclick.net/clk;212573333;33907558;i";}	
	
//California
	else if (loc == 'Lake Tahoe')		{newurl= "http://ad.doubleclick.net/clk;212573356;33908013;a";}
	else if (loc == 'Palm Springs')		{newurl= "http://ad.doubleclick.net/clk;212573402;33907496;g";}	
	else if (loc == 'Rancho Mirage')	{newurl= "http://ad.doubleclick.net/clk;212573402;33907496;g";}	
	
	else if (loc == 'Palm Desert')		{newurl= "http://ad.doubleclick.net/clk;212573402;33907496;g";}	
	else if (loc == 'La Quinta')		{newurl= "http://ad.doubleclick.net/clk;212573402;33907496;g";}	
	
	else if (loc == 'San Diego County - North Coastal')		{newurl= "http://ad.doubleclick.net/clk;222528050;46247328;b";}		
	
		
	

	
	
//Hawaii	
	else if (loc == 'Big Island')		{newurl= "http://ad.doubleclick.net/clk;212883915;34265909;q";}	
	else if (loc == 'Honolulu')		{newurl= "http://ad.doubleclick.net/clk;212573224;33907983;j";}
	else if (loc == 'Kauai')			{newurl= "http://ad.doubleclick.net/clk;212573305;33908036;z";}	
	else if (loc == 'Maui')				{newurl= "http://ad.doubleclick.net/clk;212573344;33907635;g";}
	else if (loc == 'Oahu')				{newurl= "http://ad.doubleclick.net/clk;212573224;33907983;j";}	
	
//South Carolina
	else if (loc == 'Charleston')		{newurl= "http://ad.doubleclick.net/clk;207845489;28916107;u?http://www.resortquestcharleston.com?cid=RQRD00000028";}	
	else if (loc == 'Hilton Head')		{newurl= "http://ad.doubleclick.net/clk;214188758;36066907;u";}
	else if (loc == 'Isle of Palms')	{newurl= "http://ad.doubleclick.net/clk;214188775;36067062;m";}	
	else if (loc == 'Kiawah')			{newurl= "http://ad.doubleclick.net/clk;214188727;36067010;c";}
	else if (loc == 'Myrtle Beach')		{newurl= "http://ad.doubleclick.net/clk;214188736;36067073;l";}	
	else if (loc == 'Seabrook')			{newurl= "http://ad.doubleclick.net/clk;214188773;36066959;y";}
	else if (loc == 'Sullivans Island')	{newurl= "http://ad.doubleclick.net/clk;214188775;36067062;m";}	
	else if (loc == 'Wild Dunes')		{newurl= "http://ad.doubleclick.net/clk;214188775;36067062;m";}		
	else if (loc == 'Georgetown')		{newurl= "http://ad.doubleclick.net/clk;215388253;37529522;l";}	
	
//North Carolina
	
	else if (loc == 'Outer Banks')		{newurl= "http://ad.doubleclick.net/clk;214188779;36067121;m";}
	
//Other East Coast
	else if (loc == 'Bethany Beach')	{newurl= "http://ad.doubleclick.net/clk;214188714;36067040;b";}
	else if (loc == 'Ocean City')		{newurl= "http://ad.doubleclick.net/clk;206545155;28916107;g?http://www.resortquestdelaware.com/ocean-city-vacation-rentals.htm?cid=RQRD00000028";}
	else if (loc == 'St Simons Island')	{newurl= "http://ad.doubleclick.net/clk;212573316;33907829;k";}
	else if (loc == 'Carter Plantation'){newurl= "http://ad.doubleclick.net/clk;212573226;33907807;g";}
//NW Florida
	else if (loc == 'Gulf Coast')		{newurl= "http://ad.doubleclick.net/clk;214188717;36066976;v";	}
	else if (loc == 'Beaches of South Walton'){newurl= "http://ad.doubleclick.net/clk;214188781;36067046;l";}	
	else if (loc == 'Destin')			{newurl= "http://ad.doubleclick.net/clk;214188777;36066874;y";}	
	else if (loc == 'Ft Walton Beach')	{newurl= "http://ad.doubleclick.net/clk;214188759;36067124;n";}	
	else if (loc == 'Navarre Beach')	{newurl= "http://ad.doubleclick.net/clk;214188770;36066996;w";}
	else if (loc == 'Panama City Beach'){newurl= "http://ad.doubleclick.net/clk;214189890;36066936;u";}	
	else if (loc == 'Perdido Key')		{newurl= "http://ad.doubleclick.net/clk;214188776;36066861;t";}

	else if (loc == 'St George Island')	{newurl= "http://ad.doubleclick.net/clk;212573462;33907486;l";}
	else if (loc == 'Rosemary Beach')	{newurl= "http://ad.doubleclick.net/clk;222977081;46723755;q";}
//SW Florida
	else if (loc == 'Anna Maria')		{newurl= "http://ad.doubleclick.net/clk;214188744;36067002;c";}	
	else if (loc == 'Bradenton')		{newurl= "http://ad.doubleclick.net/clk;214188754;36066919;t";}	
	else if (loc == 'Captiva')			{newurl= "http://ad.doubleclick.net/clk;214188749;36066894;z";}	
	else if (loc == 'Ft Myers')			{newurl= "http://ad.doubleclick.net/clk;214188753;36066938;t";}
	else if (loc == 'Lido Key')			{newurl= "http://ad.doubleclick.net/clk;214188767;36066949;a";}	
	else if (loc == 'Longboat')			{newurl= "http://ad.doubleclick.net/clk;214188716;36066943;o";}
	else if (loc == 'Naples')			{newurl= "http://ad.doubleclick.net/clk;214188746;36067110;e";}	
	else if (loc == 'Sanibel')			{newurl= "http://ad.doubleclick.net/clk;214188707;36066883;r";}	
	else if (loc == 'Sarasota')			{newurl= "http://ad.doubleclick.net/clk;214188755;36067092;n";}	
	else if (loc == 'Siesta Key')		{newurl= "http://ad.doubleclick.net/clk;214188721;36067118;f";}
	else if (loc == 'Venice')			{newurl= "http://ad.doubleclick.net/clk;214188711;36066922;g";}	
	
//Other Florida Locations
	else if (loc == 'Orlando')			{newurl= "http://ad.doubleclick.net/clk;212573213;33908008;w";}	
	else if (loc == 'Florida Keys')		{newurl= "http://ad.doubleclick.net/clk;212573412;33907975;j";}		
	else if (loc == 'Key West')			{newurl= "http://ad.doubleclick.net/clk;212573412;33907975;j";}			

// Tennessee	
	else if (loc == 'Smoky Mountains')	{newurl= "http://ad.doubleclick.net/clk;215388250;37529283;m";}		

// Texas	
	else if (loc == 'Austin')			{newurl= "http://ad.doubleclick.net/clk;212573306;33907763;g";}	
// Washington	
	else if (loc == 'Seattle')			{newurl= "http://ad.doubleclick.net/clk;212573941;33907664;l";}	

//Mexico
	else if (loc == 'Puerto Penasco')	{newurl= "http://ad.doubleclick.net/clk;212573323;33907666;h";}
	else if (loc == 'Los Cabos')		{newurl= "http://ad.doubleclick.net/clk;212573281;33907501;y";}
	
//Caribbean
	else if (loc == 'Caribbean')		{newurl= "http://www.resortquest.com/vacation-rentals/caribbean/index.htm";}

//Europe
	else if (loc == 'Andorra')			{newurl= "http://www.resortquest.com/vacation-rentals/europe/andorra-vacation-rentals.htm";}
	else if (loc == 'Austria')			{newurl= "http://www.resortquest.com/vacation-rentals/europe/austria-vacation-rentals.htm";}
	else if (loc == 'Croatia')			{newurl= "http://ad.doubleclick.net/clk;212573304;33907675;g";}
	else if (loc == 'Belgium')			{newurl= "http://ad.doubleclick.net/clk;212573216;33907710;y";}
	else if (loc == 'Czech Republic')	{newurl= "http://ad.doubleclick.net/clk;212573458;33907624;k";}
	else if (loc == 'Denmark')			{newurl= "http://ad.doubleclick.net/clk;212573378;33907738;r";}
	else if (loc == 'France')			{newurl= "http://ad.doubleclick.net/clk;212573285;33907525;i";}
	else if (loc == 'Germany')			{newurl= "http://ad.doubleclick.net/clk;212573343;33907730;b";}
	else if (loc == 'Greece')			{newurl= "http://ad.doubleclick.net/clk;212573451;33907638;i";}
	else if (loc == 'Hungary')			{newurl= "http://ad.doubleclick.net/clk;212573331;33907832;b";}
	else if (loc == 'Ireland')			{newurl= "http://ad.doubleclick.net/clk;212573295;33907493;n";}
	else if (loc == 'Italy')			{newurl= "http://ad.doubleclick.net/clk;212573339;33907614;h";}
	else if (loc == 'Luxembourg')		{newurl= "http://www.resortquest.com/vacation-rentals/europe/luxembourg-vacation-rentals.htm";}
	else if (loc == 'Malta')			{newurl= "http://www.resortquest.com/vacation-rentals/europe/malta-vacation-rentals.htm";}
	else if (loc == 'Netherlands')		{newurl= "http://ad.doubleclick.net/clk;212573398;33907665;s";}
	else if (loc == 'Poland')			{newurl= "http://ad.doubleclick.net/clk;212573365;33907715;i";}
	else if (loc == 'Portugal')			{newurl= "http://ad.doubleclick.net/clk;212573301;33907536;z";}
	else if (loc == 'Slovakia')			{newurl= "http://ad.doubleclick.net/clk;212573171;33907920;b";}
	else if (loc == 'Spain')			{newurl= "http://ad.doubleclick.net/clk;212573307;33907873;j";}
	else if (loc == 'Switzerland')		{newurl= "http://ad.doubleclick.net/clk;212573376;33907534;j";}
	else if (loc == 'Turkey')			{newurl= "http://ad.doubleclick.net/clk;212573205;33907916;e";}
	else if (loc == 'United Kingdom')	{newurl= "http://ad.doubleclick.net/clk;212573416;33907682;i";}
//Canada
	else if (loc == 'Whistler')			{newurl= "http://ad.doubleclick.net/clk;212573355;33907518;i";}
	else if (loc == 'Vancouver')		{newurl= "http://ad.doubleclick.net/clk;212573413;33907511;w";}	
	
//Central America
	else if (loc == 'Costa Rica')		{newurl= "http://ad.doubleclick.net/clk;212573380;33907972;k";}	

//Asia
	else if (loc == 'Dubai')		{newurl="http://www.resortquest.com/vacation-rentals/europe/united-arab-emirates-vacation-rentals.htm";}	

//Asia
	else if (loc == 'South Africa')		{newurl="http://www.resortquest.com/vacation-rentals/europe/south-africa-vacation-rentals.htm";}	


//RCI
	//Arizona
	else if (loc == 'Flagstaff')		{newurl= "http://ad.doubleclick.net/clk;212573255;33912323;x";}
	else if (loc == 'Scottsdale')		{newurl= "http://ad.doubleclick.net/clk;212573370;33912348;c";}
	else if (loc == 'Sedona')			{newurl= "http://ad.doubleclick.net/clk;212573349;33912351;c";}
	else if (loc == 'Tubac')			{newurl= "http://ad.doubleclick.net/clk;212573246;33912344;a";}
	//Arkansas
	else if (loc == 'Bella Vista')		{newurl= "http://ad.doubleclick.net/clk;212573374;33912366;g";}
	else if (loc == 'Fairfield Bay')	{newurl= "http://ad.doubleclick.net/clk;212573178;33912336;f";}
	else if (loc == 'Holiday Island')	{newurl= "http://ad.doubleclick.net/clk;212573317;33912332;w";}
	else if (loc == 'Horseshoe Bend')	{newurl= "http://ad.doubleclick.net/clk;212573346;33912363;c";}
	else if (loc == 'Hot Springs')		{newurl= "http://ad.doubleclick.net/clk;212573419;33912342;a";}
	else if (loc == 'Hot Springs Village'){newurl= "http://ad.doubleclick.net/clk;212573353;33912354;a";}	
	//California
	else if (loc == 'San Diego - Downtown')		{newurl= "http://ad.doubleclick.net/clk;212573315;33912347;a";}	
	//Florida
	else if (loc == 'Daytona')			{newurl= "http://ad.doubleclick.net/clk;212573354;33907688;p";}
	else if (loc == 'Ft Lauderdale')	{newurl= "http://ad.doubleclick.net/clk;212573418;33907566;l";}
	//Great Lakes	//Michigan
	else if (loc == 'Boyne Falls')		{newurl= "http://ad.doubleclick.net/clk;212573218;33912326;z";}
	//Great Lakes	//Indiana
	else if (loc == 'French Lick')		{newurl= "http://ad.doubleclick.net/clk;212573377;33912370;e";}
	//Great Lakes	//Wisconsin
	else if (loc == 'Lake Geneva')		{newurl= "http://ad.doubleclick.net/clk;212573176;33912350;z";}
	else if (loc == 'Mishicot')			{newurl= "http://ad.doubleclick.net/clk;212573401;33912355;v";}
	//Great Lakes	//Iowa
	else if (loc == 'Panora')			{newurl= "http://ad.doubleclick.net/clk;212573258;33912338;g";}
	else if (loc == 'Spirit Lake')		{newurl= "http://ad.doubleclick.net/clk;212573183;33912329;d";}	
	//Minnesota	
	else if (loc == 'Alexandria')		{newurl= "http://ad.doubleclick.net/clk;212573435;33912349;f";}
	else if (loc == 'Breezy Point')		{newurl= "http://ad.doubleclick.net/clk;212573319;33912324;z";}
	else if (loc == 'Detroit Lakes')	{newurl= "http://ad.doubleclick.net/clk;212573461;33912352;y";}
	else if (loc == 'Nisswa')			{newurl= "http://ad.doubleclick.net/clk;212573229;33912343;a";}
	//New Hampshire
	else if (loc == 'Ashland')			{newurl= "http://ad.doubleclick.net/clk;212573409;33912359;h";}
	else if (loc == 'Bartlett')			{newurl= "http://ad.doubleclick.net/clk;212573265;33912358;g";}
	else if (loc == 'North Conway')		{newurl= "http://ad.doubleclick.net/clk;212573283;33912339;f";}
	//New Jersey
	else if (loc == 'Atlantic City')	{newurl= "http://ad.doubleclick.net/clk;212573406;33912341;v";}
	else if (loc == 'Brigantine')		{newurl= "http://ad.doubleclick.net/clk;212573175;33912337;d";}
	//New York
	else if (loc == 'New York City')	{newurl= "http://ad.doubleclick.net/clk;212573298;33907532;k";}
	//New England 	//Massachusetts
	else if (loc == 'Brewster')			{newurl= "http://ad.doubleclick.net/clk;212573303;33912364;w";}
	else if (loc == 'Hyannis')			{newurl= "http://ad.doubleclick.net/clk;212573309;33912360;y";}
	else if (loc == 'Mashpee')			{newurl= "http://ad.doubleclick.net/clk;212573271;33912361;x";}
	else if (loc == 'Provincetown')		{newurl= "http://ad.doubleclick.net/clk;212573302;33912365;w";}
	else if (loc == 'Rockport')			{newurl= "http://ad.doubleclick.net/clk;212573375;33912328;f";}
	else if (loc == 'South Lee')		{newurl= "http://ad.doubleclick.net/clk;212573207;33912368;d";}
	else if (loc == 'South Yarmouth')	{newurl= "http://ad.doubleclick.net/clk;212573405;33912356;a";}
	else if (loc == 'West Yarmouth')	{newurl= "http://ad.doubleclick.net/clk;212573293;33912369;j";}
	//New England 	//Rhode Island	
	else if (loc == 'Newport')			{newurl= "http://ad.doubleclick.net/clk;212573287;33912331;b";}	
	//Tennessee
	else if (loc == 'Crossville')		{newurl= "http://ad.doubleclick.net/clk;212573381;33907598;p";}
	else if (loc == 'Fairfield Glade')	{newurl= "http://ad.doubleclick.net/clk;212573320;33907980;d";}
	else if (loc == 'Gatlinburg')		{newurl= "http://ad.doubleclick.net/clk;212573345;33907767;n";}
	else if (loc == 'Nashville')		{newurl= "http://ad.doubleclick.net/clk;212573396;33907576;r";}	
	//Texas
	else if (loc == 'Brownsville')		{newurl= "http://ad.doubleclick.net/clk;212573222;33907837;f";}
	else if (loc == 'Conroe')			{newurl= "http://ad.doubleclick.net/clk;212573312;33907723;z";}
	else if (loc == 'Flint')			{newurl= "http://ad.doubleclick.net/clk;212573397;33907981;s"}
	else if (loc == 'Holly Lake Ranch')	{newurl= "http://ad.doubleclick.net/clk;212573352;33907796;n";}
	else if (loc == 'Montgomery')		{newurl= "http://ad.doubleclick.net/clk;212573391;33907871;k";}
	else if (loc == 'New Ulm')			{newurl= "http://ad.doubleclick.net/clk;212573452;33907469;l";}
	else if (loc == 'Sam Rayburn')		{newurl= "http://ad.doubleclick.net/clk;212573314;33907901;z";}
	else if (loc == 'Willis')			{newurl= "http://ad.doubleclick.net/clk;212573284;33907752;j";}	
	//Yellowstone	//Montana
	else if (loc == 'Big Sky')			{newurl= "http://ad.doubleclick.net/clk;212573383;33908032;b";}
	else if (loc == 'Red Lodge')		{newurl= "http://ad.doubleclick.net/clk;212573366;33973510;f";}
	//Yellowstone	//Idaho
	else if (loc == 'Island Park')		{newurl= "http://ad.doubleclick.net/clk;212573337;33907959;r";}
	//Yellowstone	//Wyoming
	else if (loc == 'Jackson Hole')		{newurl= "http://ad.doubleclick.net/clk;212573227;33973874;o";}
	else if (loc == 'Wilson')			{newurl= "http://ad.doubleclick.net/clk;212573286;33907862;n";}
	//Virginia
	else if (loc == 'Mcgaheysville')	{newurl= "http://ad.doubleclick.net/clk;212573290;33907783;k";}
	else if (loc == 'Virginia Beach')	{newurl= "http://ad.doubleclick.net/clk;212573234;33907882;i";}
	else if (loc == 'Williamsburg')		{newurl= "http://ad.doubleclick.net/clk;212573189;33908005;f3";}	
	//Canada	//Quebec
	else if (loc == 'Beaupre')			{newurl= "http://ad.doubleclick.net/clk;212573440;33907507;b";}
	else if (loc == 'Mont-tremblant')	{newurl= "http://ad.doubleclick.net/clk;212573410;33907841;z";}
	//Canada	//Ontario
	else if (loc == 'Brechin')			{newurl= "http://ad.doubleclick.net/clk;212573454;33907649;n";}
	else if (loc == 'Collingwood')		{newurl= "http://ad.doubleclick.net/clk;212573450;33907547;g";}
	//Canada	//Alberta
	else if (loc == 'Canmore')			{newurl= "http://ad.doubleclick.net/clk;212573204;33907506;y";}
	else if (loc == 'Kananaskis')		{newurl= "http://ad.doubleclick.net/clk;212573262;33907866;l";}
	//Canada	//Manitoba
	else if (loc == 'Onanole')			{newurl= "http://ad.doubleclick.net/clk;212573240;33907827;e";}
	//Canada	//British Columbia
	else if (loc == 'Panorama')			{newurl= "http://ad.doubleclick.net/clk;212573443;33907522;b";}	
	//Mexico	
	else if (loc == 'Acapulco')			{newurl= "http://ad.doubleclick.net/clk;212573256;33907668;o";}
	else if (loc == 'Guadalajara')		{newurl= "http://ad.doubleclick.net/clk;212573274;33908029;g";}
	else if (loc == 'Mazatlan')			{newurl= "http://ad.doubleclick.net/clk;212573279;33907616;m";}
	else if (loc == 'Riviera Maya')		{newurl= "http://ad.doubleclick.net/clk;212573394;33908018;h";}
	else if (loc == 'San Jose Del Cabo'){newurl= "http://ad.doubleclick.net/clk;212573386;33907755;p";}	
//END RCI


//ELSE
	else	{newurl = "http://www.resortquest.com";}

//Check for empty selection
	if (newurl == 'http://www.resortquest.com')	{		
		s.tl(this,'e',loc);		}	
	else	{
		s.tl(this,'e',newurl);
		window.open(newurl);	}
}

// Multiple onload function created by: Simon Willison
// http://simonwillison.net/2004/May/26/addLoadEvent/
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}
// Expandable menu - not related to this country select script
oldTextAry = new Array();
function toggleMe(a,fieldObj, newTexStr){
  var e=document.getElementById(a);
  if(!e)return true;

  if(e.style.display=="none"){
    e.style.display="block"
  } else {
    e.style.display="none"
  }
  if (newTexStr == fieldObj.innerHTML) {
	fieldObj.innerHTML = oldTextAry[fieldObj.id];
  } else {
	oldTextAry[fieldObj.id] = fieldObj.innerHTML;
	fieldObj.innerHTML = newTexStr;
  }
  return true;
}
