window.tgs_log={};tgs_log.isFB=typeof console!='undefined'&&console!=null&&window.console&&window.console.firebug;tgs_log.isFBInfo=tgs_log.isFB&&document.location.href.indexOf('info=')!=-1;tgs_log.groups={};tgs_log.printGroupIsNeed=function(group){if(!tgs_log.groups[group]){tgs_log.groups[group]=true;console.group(group);}};tgs_log.endGroup=function(group){if(tgs_log.groups[group]){tgs_log.groups[group]=false;console.groupEnd();}};var sbBaseObj={};sbBaseObj.beget=function(o){var F=function(){};F.prototype=o;return new F();};Function.prototype.set_method=function(name,func){if(!this.prototype[name])
this.prototype[name]=func;return this;};Function.set_method('inherits',function(Parent){this.prototype=new Parent();return this;});Function.set_method('set_base',function(Parent){this.prototype=Parent;return this;});TGSregisterNameSpaces=function(ns,prototype){var nsParts=ns.split(".");var root=window;for(var i=0;i<nsParts.length;i++){if(typeof root[nsParts[i]]=="undefined"){if(prototype&&i==nsParts.length-1)
root[nsParts[i]]=sbBaseObj.beget(prototype);else
root[nsParts[i]]=new Object();}
root=root[nsParts[i]];}};TGSregisterNameSpaces("TGS.SearchBox.GlobalVars");TGS.SearchBox.GlobalVars={BaseScriptPath:"http://www.travelsearchbox.com:80//Handlers/GetSearchBoxJScript.ashx?ClientKey=3c08d080-ddbe-444d-b12e-84e16523ddbf&Mode=ActivitiesHomePage&ver=1.7.12039.0-43&ap=a&appPath=http://www.lastminutetravel.com:80/&&cwsn=LastMinuteTravel&cwsa=&cu=en-US&aid=0",ApplicationHandlersPath:"http://www.travelsearchbox.com:80//Handlers/",CssPath:"http://www.travelsearchbox.com:80//Handlers/GetSearchBoxCSS.ashx?ClientKey=3c08d080-ddbe-444d-b12e-84e16523ddbf&Mode=ActivitiesHomePage&ver=1.7.12039.0-43&ap=a&appPath=http://www.lastminutetravel.com:80/&&cwsn=LastMinuteTravel&cwsa=&cu=en-US&aid=0",ClientKey:"3c08d080-ddbe-444d-b12e-84e16523ddbf",Mode:"ActivitiesHomePage",ClientApplicationRoot:"http://www.lastminutetravel.com:80/",ClientActiveProducts:"a",Version:"1.7.12039.0-43",Today:"02/09/2010",ClientWebSiteName:"LastMinuteTravel",ClientWebSiteAlias:"",Culture:"en-US",ProductButtonsMode:"Radios",NumberOfActiveProducts:"1",IsRightToLeft:false,AffiliateID:"0",EnableClientLogging:true,Sign:"4642500881588511515",IsMainScriptLoaded:false}
if(tgs_log.isFBInfo){tgs_log.printGroupIsNeed('ScriptLoader.js');console.info('TGS.SearchBox.GlobalVars:');console.dir(TGS.SearchBox.GlobalVars);}
TGS.SearchBox.Load=function(searchBoxPlaceHolder,defaultValues,overrides,validationResult){if(TGS.SearchBox.GlobalVars.IsMainScriptLoaded===true){TGS.SearchBox.BaseScript.GetSearchBox(searchBoxPlaceHolder,defaultValues,overrides,validationResult);}else{TGS.SearchBox.LoadWrapper=function(){TGS.SearchBox.BaseScript.GetSearchBox(searchBoxPlaceHolder,defaultValues,overrides,validationResult);}}}
try{var headID=document.getElementsByTagName("head")[0];if(TGS.SearchBox.GlobalVars.BaseScriptPath.indexOf("BaseScriptPath")==-1){var newScript=document.createElement('script');headID.appendChild(newScript);newScript.type='text/javascript';newScript.src=TGS.SearchBox.GlobalVars.BaseScriptPath;}
if(TGS.SearchBox.GlobalVars.CssPath.indexOf("CssPath")==-1){var newCss=document.createElement('link');headID.appendChild(newCss);newCss.type='text/css';newCss.href=TGS.SearchBox.GlobalVars.CssPath;newCss.rel="stylesheet";}}catch(e){if(tgs_log.isFB){tgs_log.printGroupIsNeed('ScriptLoader.js');console.error('Adding scripts and css to header fails, error:');console.dir(e);tgs_log.endGroup('ScriptLoader.js');}
throw e;}
if(tgs_log.isFB)tgs_log.endGroup('ScriptLoader.js');