function displayWelcomeAd()
{
	var welcomeCookieStr;
	if(welcomeCookie != "undefined")
	{

		if ((document.cookie.indexOf(welcomeCookie)==-1) && (this.location.search.indexOf("cmpid=")==-1) &&
		(this.location.search.indexOf("partner=yahoo")==-1) &&	(this.location.search.indexOf("partner=msn")==-1) &&
		(this.location.search.indexOf("partner=aol")==-1) && (this.location.search.indexOf("nowelcome")==-1))
		{
			var tomorrow = new Date();
			var nowPlus =  tomorrow.getTime() + (24*60*60*1000);
			tomorrow.setTime(nowPlus);

			//***** Use this line for PRODUCTION *****
			welcomeCookieStr = welcomeCookie +'__welcome; expires=' + tomorrow.toGMTString()+'; path=/; domain=.forbestraveler.com;';

			//***** Use this line for DEVELOPMENT *****
			//welcomeCookieStr = welcomeCookie +'__welcome; expires=' + tomorrow.toGMTString()+'; path=/;';

			document.cookie=welcomeCookieStr;

			if (document.cookie.indexOf(welcomeCookie) != -1)
			{
				//***** Use this block for PRODUCTION *****
				document.cookie="toURL"+ "=" +escape(document.URL)+";path=/; domain=.forbestraveler.com; expires="+tomorrow.toGMTString();
				this.location='http://www.forbestraveler.com/ftdc';

				//***** Use this line for DEVELOPMENT *****
				//document.cookie='toURL=' +escape(document.URL)+'; path=/; expires='+tomorrow.toGMTString();
				//this.location='http://localhost:8080/ftdc';


			}
		}
	}
}
displayWelcomeAd();
