/* ? 2005 Yahoo! Inc. All rights reserved. */YAHOO.Travel.tmainDealsModMgr=function(numUsrs){this.newDestUrl='';this.newDestTextDomId='dealsModChgCityBox';this.newDestTextDomEl=null;this.newDestFormDomId='dealsModChgCityForm';this.newDestCbObj={success:this.newDestCbFn,failure:function(){},scope:this};this.newDestErrDomId='tmainDealChgDestErr';this.newDestErrDomEl=null;this.bodyDomId='tmainDealsBody';this.loadingDomId='dealsModLoadingCont';this.numUsrs=numUsrs;this.usrCommObjs=new Array();for(var i=0;i<this.numUsrs;i++){this.usrCommObjs.push(new YAHOO.Travel.tmainDealsModUsrComment(i,this));}this.nowShowingUsrComm=0;this.animDivIds=['dealsModTopGdeLink','dealsModDealsTitle','dealsModFlightDeal','dealsModHotelDeal','dealsModUsersSec'];new YAHOO.Travel.tmainMapSrchBar(this.newDestTextDomId,'Enter Destination');YAHOO.util.Event.addListener(this.newDestFormDomId,'submit',this.submitDestChange,this,true);};YAHOO.Travel.tmainDealsModMgr.prototype.submitDestChange=function(){if(!this.newDestErrDomEl){this.newDestErrDomEl=document.getElementById(this.newDestErrDomId);}this.newDestErrDomEl.style.display='none';if(!this.newDestTextDomEl){this.newDestTextDomEl=document.getElementById(this.newDestTextDomId);}var newDestVal=this.newDestTextDomEl.value;if(newDestVal==''||newDestVal=='Enter Destination'){return;}newDestVal=escape(newDestVal);var url=this.newDestUrl+'&dest='+newDestVal+'&rand='+Math.random();YAHOO.util.Connect.asyncRequest('GET',url,this.newDestCbObj);this.showLoading();};YAHOO.Travel.tmainDealsModMgr.prototype.newDestCbFn=function(o){this.hideLoading();var respObj=eval('('+o.responseText+')');if(respObj.failure){this.handleDestChgFailure(respObj.failure);return;}for(var i=0;i<this.usrCommObjs.length;i++){this.usrCommObjs[i].removeEvents();}this.usrCommObjs=new Array();document.getElementById(this.bodyDomId).innerHTML=respObj.success.newhtml;for(var i=0;i<this.numUsrs;i++){this.usrCommObjs.push(new YAHOO.Travel.tmainDealsModUsrComment(i,this));}this.nowShowingUsrComm=0;this.newDestAnims();};YAHOO.Travel.tmainDealsModMgr.prototype.handleDestChgFailure=function(msg){this.newDestErrDomEl.innerHTML=msg;this.newDestErrDomEl.style.display='block';var fadeAnim=new YAHOO.util.ColorAnim(this.newDestErrDomEl);fadeAnim.attributes.backgroundColor={from:'#ffffa7',to:'#71a4c1'};fadeAnim.method=YAHOO.util.Easing.easeIn;fadeAnim.animate();};YAHOO.Travel.tmainDealsModMgr.prototype.showLoading=function(){YAHOO.util.Dom.setStyle(this.bodyDomId,'opacity',.2);YAHOO.util.Dom.removeClass(this.loadingDomId,'loadingDormant');};YAHOO.Travel.tmainDealsModMgr.prototype.hideLoading=function(){YAHOO.util.Dom.setStyle(this.bodyDomId,'opacity',1);YAHOO.util.Dom.addClass(this.loadingDomId,'loadingDormant');};YAHOO.Travel.tmainDealsModMgr.prototype.newDestAnims=function(){for(var i=0;i<this.animDivIds.length;i++){var animEl=document.getElementById(this.animDivIds[i]);if(!animEl){continue;}var fadeInAnim=new YAHOO.util.Anim(animEl);YAHOO.util.Dom.setStyle(animEl,'opacity',0);fadeInAnim.attributes.opacity={to:0};fadeInAnim.duration=(i+1)*0.15;var fadeOutAnimFn=function(){var fadeOutAnim=new YAHOO.util.Anim(this.animEl);fadeOutAnim.attributes.opacity={to:1};fadeOutAnim.duration=(this.rank)*0.2;fadeOutAnim.method=YAHOO.util.Easing.easeOut;fadeOutAnim.animate();};var fadeOutAnimObj={animEl:animEl,rank:(this.animDivIds.length-i+1)};fadeInAnim.onComplete.subscribe(fadeOutAnimFn,fadeOutAnimObj,true);fadeInAnim.animate();}};YAHOO.Travel.tmainDealsModMgr.prototype.setNowShowing=function(num){this.nowShowingUsrComm=num;};YAHOO.Travel.tmainDealsModMgr.prototype.hideUsrComment=function(){this.usrCommObjs[this.nowShowingUsrComm].hideUsrComment();};YAHOO.Travel.tmainDealsModUsrComment=function(num,parent){this.num=num;this.parent=parent;this.usrImgDomId='dealsModUsrImg_'+num;this.usrImgDomEl=null;this.usrCommDomId='dealsModUsrComm_'+num;this.usrCommDomEl=null;this.usrPtrDomId='dealsModUsrPtr_'+num;this.usrPtrDomEl=null;YAHOO.util.Event.addListener(this.usrImgDomId,'mouseover',this.chgUsrComment,this,true);};YAHOO.Travel.tmainDealsModUsrComment.prototype.chgUsrComment=function(){this.parent.hideUsrComment();if(!this.usrImgDomEl){this.usrImgDomEl=document.getElementById(this.usrImgDomId);}this.usrImgDomEl.className='usrInfo usrInfoOver';if(!this.usrCommDomEl){this.usrCommDomEl=document.getElementById(this.usrCommDomId);}this.usrCommDomEl.className='commentary';if(!this.usrPtrDomEl){this.usrPtrDomEl=document.getElementById(this.usrPtrDomId);}this.usrPtrDomEl.className='ptr tmainGifImg';this.parent.setNowShowing(this.num);};YAHOO.Travel.tmainDealsModUsrComment.prototype.hideUsrComment=function(){if(!this.usrImgDomEl){this.usrImgDomEl=document.getElementById(this.usrImgDomId);}this.usrImgDomEl.className='usrInfo';if(!this.usrCommDomEl){this.usrCommDomEl=document.getElementById(this.usrCommDomId);}this.usrCommDomEl.className='commentary novis';if(!this.usrPtrDomEl){this.usrPtrDomEl=document.getElementById(this.usrPtrDomId);}this.usrPtrDomEl.className='ptr tmainGifImg nodisp';};YAHOO.Travel.tmainDealsModUsrComment.prototype.removeEvents=function(){YAHOO.util.Event.removeListener(this.usrImgDomId,'mouseover',this.chgUsrComment);};
/* ? 2005 Yahoo! Inc. All rights reserved. */YAHOO.Travel.tmainDestMgr=function(instance,defaultGroup){this.instance=instance;this.groups={};this.groups[defaultGroup]=this.getGroup(defaultGroup);this.defaultGroup=defaultGroup;this.currentGroup=this.groups[defaultGroup];this.currentGroup.haveHtml=true;this.scroller=new YAHOO.Travel.tmainDestScroll(this);this.recat=new YAHOO.Travel.tmainDestRecat(this);this.destsDomId='mainDestCont';this.destsDomEl=null;this.originHandler=new YAHOO.Travel.tmainDestOriginHandler();};YAHOO.Travel.tmainDestMgr.prototype.getGroup=function(name,url){return new YAHOO.Travel.tmainDestGroup(name,url);};YAHOO.Travel.tmainDestMgr.prototype.addDest=function(id,group){if(!group){group=this.defaultGroup;}if(!this.groups[group]){return;}this.groups[group].addDest(id);this.scroller.destCount++;};YAHOO.Travel.tmainDestMgr.prototype.addGroup=function(name,url){if(this.groups[name]){return;}this.groups[name]=this.getGroup(name,url);};YAHOO.Travel.tmainDestMgr.prototype.switchGroup=function(to,html){if(!this.groups[to]){return false;}if(!this.currentGroup.contDomEl){this.currentGroup.contDomEl=document.getElementById(this.currentGroup.contDomId);}this.currentGroup.contDomEl.style.display='none';this.currentGroup=this.groups[to];if(!this.currentGroup.contDomEl){this.currentGroup.contDomEl=document.getElementById(this.currentGroup.contDomId);}if(html){this.currentGroup.contDomEl.innerHTML=html;this.currentGroup.haveHtml=true;}this.currentGroup.contDomEl.style.display='block';};YAHOO.Travel.tmainDestGroup=function(name,url){this.name=name;this.url=url;this.dests={};this.destCount=0;this.contDomId=name+'_theme_cont';this.contDomEl=null;this.haveHtml=false;};YAHOO.Travel.tmainDestGroup.prototype.addDest=function(id){this.destCount++;var key='d-'+id;this.dests[key]=this.getDest(id,this);this.dests[key].initEvents();};YAHOO.Travel.tmainDestGroup.prototype.getDest=function(id,obj){return new YAHOO.Travel.tmainDest(id,obj);};YAHOO.Travel.tmainDest=function(id,parent){this.id=id;this.parent=parent;this.tabContEl=null;this.tabIds={'deals':'destDealsTab-'+this.parent.name+'-'+id,'trips':'destTripsTab-'+this.parent.name+'-'+id,'guides':'destGuidesTab-'+this.parent.name+'-'+id,'weather':'destWeatherTab-'+this.parent.name+'-'+id};this.detIds={'deals':'destDealsDet-'+this.parent.name+'-'+id,'trips':'destTripsDet-'+this.parent.name+'-'+id,'guides':'destGuidesDet-'+this.parent.name+'-'+id,'weather':'destWeatherDet-'+this.parent.name+'-'+id};this.highlightedTab=document.getElementById(this.tabIds['deals']);this.displayedDetails=document.getElementById(this.detIds['deals']);};YAHOO.Travel.tmainDest.prototype.initEvents=function(){YAHOO.util.Event.addListener('dest-'+this.parent.name+'-'+this.id,'mouseover',this.showTabs,this,true);YAHOO.util.Event.addListener('dest-'+this.parent.name+'-'+this.id,'mouseout',this.hideTabs,this,true);YAHOO.util.Event.addListener(this.tabIds['deals'],'mouseover',this.changeToDeals,this);YAHOO.util.Event.addListener(this.tabIds['trips'],'mouseover',this.changeToTrips,this);YAHOO.util.Event.addListener(this.tabIds['guides'],'mouseover',this.changeToGuides,this);YAHOO.util.Event.addListener(this.tabIds['weather'],'mouseover',this.changeToWeather,this);};YAHOO.Travel.tmainDest.prototype.showTabs=function(){if(!this.tabContEl){this.tabContEl=document.getElementById('destTabCont-'+this.parent.name+'-'+this.id);}this.tabContEl.style.display='block';};YAHOO.Travel.tmainDest.prototype.hideTabs=function(){if(!this.tabContEl){this.tabContEl=document.getElementById('destTabCont-'+this.parent.name+'-'+this.id);}this.tabContEl.style.display='none';};YAHOO.Travel.tmainDest.prototype.changeToDeals=function(e,thisObj){thisObj.changeTab('deals',this);};YAHOO.Travel.tmainDest.prototype.changeToTrips=function(e,thisObj){thisObj.changeTab('trips',this);};YAHOO.Travel.tmainDest.prototype.changeToGuides=function(e,thisObj){thisObj.changeTab('guides',this);};YAHOO.Travel.tmainDest.prototype.changeToWeather=function(e,thisObj){thisObj.changeTab('weather',this);};YAHOO.Travel.tmainDest.prototype.changeTab=function(type,tabEl){this.highlightedTab.className='tab tmainGifImg';tabEl.className='tab on tmainGifImg';this.highlightedTab=tabEl;var newEl=document.getElementById(this.detIds[type]);this.displayedDetails.style.display='none';newEl.style.display='block';this.displayedDetails=newEl;};YAHOO.Travel.tmainDestScroll=function(parent){this.parent=parent;this.destCount=0;this.contDomId='mainDestCont';this.rArrowDomId='destMagArrR';this.lArrowDomId='destMagArrL';this.rArrowEl=null;this.lArrowEl=null;this.scrollPosL=0;this.scrollPosR=2;this.destWidth=304;this.scrollAnim=new YAHOO.util.Scroll(this.contDomId);this.scrollAnim.duration=1.1;this.scrollAnim.onComplete.subscribe(this.enableArrows,this,true);this.curStartDomId='curDestStart';this.curEndDomId='curDestEnd';this.curTotDomId='curDestTotal';this.curStartEl=null;this.curEndEl=null;this.curTotEl=null;this.selectedBtn=null;this.selectedBtnIdx=null;this.btnCnt=0;this.scrollBtns=[new YAHOO.Travel.tmainDestScrollBtn(this,1,this.btnCnt++),new YAHOO.Travel.tmainDestScrollBtn(this,3,this.btnCnt++),new YAHOO.Travel.tmainDestScrollBtn(this,5,this.btnCnt++),new YAHOO.Travel.tmainDestScrollBtn(this,7,this.btnCnt++),new YAHOO.Travel.tmainDestScrollBtn(this,9,this.btnCnt++)];this.scrollBtns[0].setAsSelected();var resetAnim=new YAHOO.util.Scroll(this.contDomId);resetAnim.attributes.scroll={to:[0,0]};resetAnim.animate();};YAHOO.Travel.tmainDestScroll.prototype.scrollTo=function(pos){if(pos<0||pos>this.destCount){return;}this.disableArrows();this.scrollPosL=pos;this.scrollPosR=pos+2;this.setCounters();var scrollTo=this.scrollPosL*this.destWidth;this.scrollAnim.attributes.scroll={to:[scrollTo,0]};this.scrollAnim.animate();};YAHOO.Travel.tmainDestScroll.prototype.zero=function(){this.destCount=0;this.scrollPosL=0;this.scrollPosR=2;this.disableArrows();this.setCounters();document.getElementById(this.contDomId).scrollLeft=0;for(var i=0;i<this.scrollBtns.length;i++){this.scrollBtns[i].hide();}this.scrollBtns[this.selectedBtnIdx].btnOff();};YAHOO.Travel.tmainDestScroll.prototype.calibrate=function(){this.destCount=this.parent.currentGroup.destCount;if(this.destCount>2){this.enableRArrow();}if(!this.curTotEl){this.curTotEl=document.getElementById(this.curTotDomId);}this.curTotEl.innerHTML=this.destCount;var cnt=0;if(this.destCount>2){for(var i=1;i<=this.destCount;i+=2){this.scrollBtns[cnt].enable();this.scrollBtns[cnt++].show();}}this.scrollBtns[0].setAsSelected();};YAHOO.Travel.tmainDestScroll.prototype.scrollRight=function(){if(this.scrollPosR>=this.destCount){return;}var scrollNum=(this.destCount%2==1&&this.scrollPosR==this.destCount-1)?1:2;this.disableArrows();this.scrollPosR+=scrollNum;this.scrollPosL+=scrollNum;this.setCounters();var scrollTo=this.scrollPosL*this.destWidth;this.scrollAnim.attributes.scroll={to:[scrollTo,0]};this.scrollAnim.animate();this.scrollBtns[this.selectedBtnIdx].btnOff();this.scrollBtns[this.selectedBtnIdx+1].setAsSelected();};YAHOO.Travel.tmainDestScroll.prototype.scrollLeft=function(){if(this.scrollPosL<=0){return;}var scrollNum=(this.destCount%2==1&&this.scrollPosR==this.destCount)?1:2;this.disableArrows();this.scrollPosR-=scrollNum;this.scrollPosL-=scrollNum;this.setCounters();var scrollTo=this.scrollPosL*this.destWidth;this.scrollAnim.attributes.scroll={to:[scrollTo,0]};this.scrollAnim.animate();this.scrollBtns[this.selectedBtnIdx].btnOff();this.scrollBtns[this.selectedBtnIdx-1].setAsSelected();};YAHOO.Travel.tmainDestScroll.prototype.setCounters=function(){if(!this.curStartEl){this.curStartEl=document.getElementById(this.curStartDomId);}this.curStartEl.innerHTML=this.scrollPosL+1;if(!this.curEndEl){this.curEndEl=document.getElementById(this.curEndDomId);}this.curEndEl.innerHTML=this.scrollPosR;};YAHOO.Travel.tmainDestScroll.prototype.enableArrows=function(){this.enableRArrow();this.enableLArrow();for(var i=0;i<this.scrollBtns.length;i++){this.scrollBtns[i].enable();}};YAHOO.Travel.tmainDestScroll.prototype.enableRArrow=function(){if(this.scrollPosR>=this.destCount){return;}if(!this.rArrowEl){this.rArrowEl=document.getElementById(this.rArrowDomId);}YAHOO.util.Dom.removeClass(this.rArrowEl,'off');YAHOO.util.Event.addListener(this.rArrowEl,'click',this.scrollRight,this,true);};YAHOO.Travel.tmainDestScroll.prototype.enableLArrow=function(){if(this.scrollPosL<=0){return;}if(!this.lArrowEl){this.lArrowEl=document.getElementById(this.lArrowDomId);}YAHOO.util.Dom.removeClass(this.lArrowEl,'off');YAHOO.util.Event.addListener(this.lArrowEl,'click',this.scrollLeft,this,true);};YAHOO.Travel.tmainDestScroll.prototype.disableArrows=function(){if(!this.rArrowEl){this.rArrowEl=document.getElementById(this.rArrowDomId);}YAHOO.util.Dom.addClass(this.rArrowEl,'off');rar=YAHOO.util.Event.removeListener(this.rArrowEl,'click',this.scrollRight);if(!this.lArrowEl){this.lArrowEl=document.getElementById(this.lArrowDomId);}YAHOO.util.Dom.addClass(this.lArrowEl,'off');YAHOO.util.Event.removeListener(this.lArrowEl,'click',this.scrollLeft);for(var i=0;i<this.scrollBtns.length;i++){this.scrollBtns[i].disable();}};YAHOO.Travel.tmainDestScrollBtn=function(parent,num,idx){this.parent=parent;this.num=num;this.idx=idx;this.btnDomId='destMagBtn_'+num;YAHOO.util.Event.addListener(this.btnDomId,'click',this.btnClick,this,true);};YAHOO.Travel.tmainDestScrollBtn.prototype.btnClick=function(){if(this.idx==this.parent.selectedBtnIdx){return;}var scrollToIdx=(this.num==this.parent.destCount)?this.num-2:this.num-1;this.parent.scrollTo(scrollToIdx);this.parent.selectedBtn.btnOff();this.setAsSelected();};YAHOO.Travel.tmainDestScrollBtn.prototype.show=function(){YAHOO.util.Dom.removeClass(this.btnDomId,'nodisp');};YAHOO.Travel.tmainDestScrollBtn.prototype.hide=function(){YAHOO.util.Dom.addClass(this.btnDomId,'nodisp');};YAHOO.Travel.tmainDestScrollBtn.prototype.setAsSelected=function(){YAHOO.util.Dom.addClass(this.btnDomId,'selected');this.parent.selectedBtn=this;this.parent.selectedBtnIdx=this.idx;};YAHOO.Travel.tmainDestScrollBtn.prototype.btnOff=function(){YAHOO.util.Dom.removeClass(this.btnDomId,'selected');};YAHOO.Travel.tmainDestScrollBtn.prototype.enable=function(){YAHOO.util.Event.addListener(this.btnDomId,'click',this.btnClick,this,true);};YAHOO.Travel.tmainDestScrollBtn.prototype.disable=function(){YAHOO.util.Event.removeListener(this.btnDomId,'click',this.btnClick);};YAHOO.Travel.tmainDestRecat=function(parent){this.parent=parent;this.selectDomId='destsRecatSel';this.selectDomEl=null;this.loadingDomId='destLoadingCont';this.callbackObj={success:this.callbackFn,failure:function(){},scope:this};YAHOO.util.Event.addListener(this.selectDomId,'change',this.getNewCat,this,true);YAHOO.util.Event.addListener(window,'load',this.resetSelect,this,true);};YAHOO.Travel.tmainDestRecat.prototype.getNewCat=function(){this.parent.scroller.zero();var val=this.selectDomEl.value;var groupExists=this.parent.groups[val].haveHtml;if(!groupExists){var url=this.parent.groups[val].url+'&rand='+Math.random();YAHOO.util.Connect.asyncRequest('GET',url,this.callbackObj);}if(!this.loadingDomEl){this.loadingDomEl=document.getElementById(this.loadingDomId);}this.loadingDomEl.style.display='block';if(!this.parent.destsDomEl){this.parent.destsDomEl=document.getElementById(this.parent.destsDomId);}this.parent.destsDomEl.style.visibility='hidden';if(groupExists){this.parent.switchGroup(val);setTimeout(this.parent.instance+'.recat.hideLoading()',800);}};YAHOO.Travel.tmainDestRecat.prototype.callbackFn=function(o){var resp=o.responseText;eval(resp);this.hideLoading();};YAHOO.Travel.tmainDestRecat.prototype.hideLoading=function(){this.parent.scroller.calibrate();this.loadingDomEl.style.display='none';this.parent.destsDomEl.style.visibility='visible';};YAHOO.Travel.tmainDestRecat.prototype.resetSelect=function(){this.selectDomEl=document.getElementById(this.selectDomId);if(this.selectDomEl){this.selectDomEl.value=this.parent.defaultGroup;}};YAHOO.Travel.tmainDestOriginHandler=function(){this.promptDomId='tmdChangeOrigPrompt';this.formDomId='tmdChangeOrigForm';this.formInputDomId='tmdChangeOrigInput';this.cancelBtnDomId='tmdChangeOrigCncl';YAHOO.util.Event.addListener(this.promptDomId,'click',this.showForm,this);YAHOO.util.Event.addListener(this.cancelBtnDomId,'click',this.hideForm,this,true);};YAHOO.Travel.tmainDestOriginHandler.prototype.showForm=function(e,thisObj){YAHOO.util.Dom.addClass(this,'turned');YAHOO.util.Dom.removeClass(thisObj.formDomId,'nodisp');document.getElementById(thisObj.formInputDomId).focus();};YAHOO.Travel.tmainDestOriginHandler.prototype.hideForm=function(){YAHOO.util.Dom.addClass(this.formDomId,'nodisp');YAHOO.util.Dom.removeClass(this.promptDomId,'turned');};
/* ? 2005 Yahoo! Inc. All rights reserved. */YAHOO.Travel.tmainMap=function(){this.paneBgDomId='mapPaneBgSheet';this.paneBgDomEl=null;this.paneBgInAnim=new YAHOO.util.Anim(this.paneBgDomId);this.paneBgInAnim.attributes.opacity={from:0,to:.5};this.paneBgInAnim.duration=0.7;this.paneBgInAnim.method=YAHOO.util.Easing.easeIn;this.paneIsOpen=false;this.regions={'191500003':new YAHOO.Travel.tmainMapRegion('191500003',this),'191500004':new YAHOO.Travel.tmainMapRegion('191500004',this),'191500005':new YAHOO.Travel.tmainMapRegion('191500005',this),'191500006':new YAHOO.Travel.tmainMapRegion('191500006',this),'191500007':new YAHOO.Travel.tmainMapRegion('191500007',this),'191500008':new YAHOO.Travel.tmainMapRegion('191500008',this),'191500009':new YAHOO.Travel.tmainMapRegion('191500009',this),'191500010':new YAHOO.Travel.tmainMapRegion('191500010',this),'191500011':new YAHOO.Travel.tmainMapRegion('191500011',this),'191500012':new YAHOO.Travel.tmainMapRegion('191500012',this)};};YAHOO.Travel.tmainMapRegion=function(id,mapObj){this.parent=mapObj;this.bubbleDomId='mapBubble_'+id;this.bubbleDomEl=null;this.paneDomId='mapRegion_'+id;this.paneDomEl=null;this.paneCloseDomId='mapRegionClose_'+id;YAHOO.util.Event.addListener(this.bubbleDomId,'mouseover',this.bubbleHighlight);YAHOO.util.Event.addListener(this.bubbleDomId,'mouseout',this.bubbleUnhighlight,this);YAHOO.util.Event.addListener(this.bubbleDomId,'click',this.paneOpen,this,true);YAHOO.util.Event.addListener(this.paneCloseDomId,'click',this.paneClose,this,true);};YAHOO.Travel.tmainMapRegion.prototype.bubbleHighlight=function(){YAHOO.util.Dom.addClass(this,'mapBubbleInv');};YAHOO.Travel.tmainMapRegion.prototype.bubbleUnhighlight=function(e,thisObj){YAHOO.util.Dom.removeClass(this,'mapBubbleInv');};YAHOO.Travel.tmainMapRegion.prototype.paneOpen=function(){if(this.parent.paneIsOpen){return false;}this.parent.paneIsOpen=true;if(!this.parent.paneBgDomEl){this.parent.paneBgDomEl=document.getElementById(this.parent.paneBgDomId);}this.parent.paneBgDomEl.style.display='block';if(!this.paneDomEl){this.paneDomEl=document.getElementById(this.paneDomId);}this.paneDomEl.style.display='block';this.parent.paneBgInAnim.onComplete.subscribe(this.addBgClose,this,true);this.parent.paneBgInAnim.animate();};YAHOO.Travel.tmainMapRegion.prototype.paneClose=function(){if(!this.paneDomEl){this.paneDomEl=document.getElementById(this.paneDomId);}this.paneDomEl.style.display='none';if(!this.bubbleDomEl){this.bubbleDomEl=document.getElementById(this.bubbleDomId);}YAHOO.util.Dom.removeClass(this,'mapBubbleInv');if(!this.parent.paneBgDomEl){this.parent.paneBgDomEl=document.getElementById(this.parent.paneBgDomId);}YAHOO.util.Event.removeListener(this.parent.paneBgDomEl,'click',this.paneClose);if(this.parent.paneBgInAnim.isAnimated()){this.parent.paneBgInAnim.stop();}YAHOO.util.Dom.setStyle(this.parent.paneBgDomEl,'opacity',0);this.parent.paneBgDomEl.style.display='none';this.parent.paneIsOpen=false;};YAHOO.Travel.tmainMapRegion.prototype.addBgClose=function(){this.parent.paneBgInAnim.onComplete.unsubscribeAll();YAHOO.util.Event.addListener(this.parent.paneBgDomEl,'click',this.paneClose,this,true);};YAHOO.Travel.tmainMapListCol=function(domIdPref,num){this.numCities=num;this.showingFirstFive=true;this.oneFiveDomId=domIdPref+'_onefive';this.sixTenDomId=domIdPref+'_sixten';this.oneFiveDomEl=null;this.sixTenDomEl=null;this.sexTenBtnDomId=domIdPref+'_sixtenbtn';YAHOO.util.Event.addListener(this.sexTenBtnDomId,'click',this.sixTenBtnClick,this);this.cityDarkBgDomIds=[domIdPref+'_city_1',domIdPref+'_city_3',domIdPref+'_city_5',domIdPref+'_city_6',domIdPref+'_city_8',domIdPref+'_city_10'];this.cityLightBgDomIds=[domIdPref+'_city_2',domIdPref+'_city_4',domIdPref+'_city_7',domIdPref+'_city_9'];YAHOO.util.Event.addListener(this.cityDarkBgDomIds,'mouseover',this.cityHover);YAHOO.util.Event.addListener(this.cityDarkBgDomIds,'mouseout',this.cityMouseOut);YAHOO.util.Event.addListener(this.cityLightBgDomIds,'mouseover',this.cityHover);YAHOO.util.Event.addListener(this.cityLightBgDomIds,'mouseout',this.cityMouseOut);};YAHOO.Travel.tmainMapListCol.prototype.sixTenBtnClick=function(e,thisObj){if(thisObj.showingFirstFive){this.innerHTML="<span class='arw'>&laquo; </span><span class='nums'>1 - 5</span>";if(!this.oneFiveDomEl){this.oneFiveDomEl=document.getElementById(thisObj.oneFiveDomId);}this.oneFiveDomEl.style.display='none';if(!this.sixTenDomEl){this.sixTenDomEl=document.getElementById(thisObj.sixTenDomId);}this.sixTenDomEl.style.display='block';thisObj.showingFirstFive=false;}else{this.innerHTML="<span class='nums'>6 - "+thisObj.numCities+"</span><span class='arw'> &raquo;</span>";this.oneFiveDomEl.style.display='block';this.sixTenDomEl.style.display='none';thisObj.showingFirstFive=true;}};YAHOO.Travel.tmainMapListCol.prototype.cityHover=function(){YAHOO.util.Dom.addClass(this,'hover');};YAHOO.Travel.tmainMapListCol.prototype.cityMouseOut=function(){YAHOO.util.Dom.removeClass(this,'hover');};YAHOO.Travel.tmainMapSrchBar=function(domId,defText){this.domId=domId;this.defaultText=defText;YAHOO.util.Event.addListener(domId,'focus',this.clearSearchBox,this);};YAHOO.Travel.tmainMapSrchBar.prototype.clearSearchBox=function(e,thisObj){if(this.value==thisObj.defaultText){this.value='';}YAHOO.util.Event.removeListener(this,'focus',thisObj.clearSearchBox);this.className='textbox';};
/* ? 2005 Yahoo! Inc. All rights reserved. */YAHOO.Travel.tvlyFormMgr=function(){this.tabIds=['tvly_qs_ftab','tvly_qs_htab','tvly_qs_catab','tvly_qs_vtab','tvly_qs_crtab','tvly_qs_dtab'];this.tabIdKeys={'tvly_qs_ftab':'flights','tvly_qs_htab':'hotels','tvly_qs_catab':'cars','tvly_qs_vtab':'vacations','tvly_qs_crtab':'cruises','tvly_qs_dtab':'deals'};this.adDomId='rColMainAd';this.adDomEl=null;this.flightForm=new YAHOO.Travel.tvlyFlightForm('tvly_qs_ftab',this);this.nowShowing=this.flightForm;this.hotelForm=new YAHOO.Travel.tvlyHotelForm('tvly_qs_htab',this);new YAHOO.Travel.tvlyCarForm('tvly_qs_catab',this);new YAHOO.Travel.tvlyVacationForm('tvly_qs_vtab',this);new YAHOO.Travel.tvlyCruiseForm('tvly_qs_crtab',this);new YAHOO.Travel.tvlyDealsForm('tvly_qs_dtab',this);YAHOO.util.Event.addListener(this.tabIds,'mouseover',this.overTab);YAHOO.util.Event.addListener(this.tabIds,'mouseout',this.offTab);};YAHOO.Travel.tvlyFormMgr.prototype.overTab=function(){YAHOO.util.Dom.addClass(this,'hover');};YAHOO.Travel.tvlyFormMgr.prototype.offTab=function(){YAHOO.util.Dom.removeClass(this,'hover');};YAHOO.Travel.tvlyFormMgr.prototype.swapAd=function(tabId){var val=this.tabIdKeys[tabId];if(!val){return;}if(!this.adDomEl){this.adDomEl=document.getElementById(this.adDomId);if(!this.adDomEl){return;}}var adElHeight=this.adDomEl.offsetHeight+'px';this.adDomEl.style.height=adElHeight;this.adDomEl.innerHTML='';var iframe=document.createElement('IFRAME');var url='/common?action=tmainadswap&tab='+val+'&rand='+Math.random();iframe.setAttribute('frameBorder','0');iframe.setAttribute('id','mainAdIframe');iframe.setAttribute('class','mainAdIframe');iframe.setAttribute('src',url);iframe.setAttribute('height',adElHeight);this.adDomEl.appendChild(iframe);};YAHOO.Travel.tvlyForm=function(formTabId,manager){this.manager=manager;this.formTabId=formTabId;this.contDomId=null;this.formDomId=null;this.calendar=null;this.calId=null;this.startMonDomId=null;this.startDayDomId=null;this.startYrDomId=null;this.endMonDomId=null;this.endDayDomId=null;this.endYrDomId=null;};YAHOO.Travel.tvlyForm.prototype.createCal=function(){if(this.startDateDomId&&this.endDateDomId&&this.calId){this.calendar=new YAHOO.Travel.calMgr(this.startDateDomId,this.endDateDomId,this.calId,null,null,'middle');}};YAHOO.Travel.tvlyForm.prototype.adjustDates=function(){if(!this.adjustDatesPrereqs){return;}var mons=Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');var re=new RegExp(/(\d?\d)\/(\d?\d)\/(?:20)?(\d\d)/);var depDateVal=document.getElementById(this.startDateDomId).value;var matches=re.exec(depDateVal);if(!matches||matches.length<4)return;document.getElementById(this.startMonDomId).value=mons[parseInt(matches[1],10)-1];document.getElementById(this.startDayDomId).value=matches[2];document.getElementById(this.startYrDomId).value='20'+matches[3];var retDateVal=document.getElementById(this.endDateDomId).value;var matches=re.exec(retDateVal);if(!matches||matches.length<4)return;document.getElementById(this.endMonDomId).value=mons[parseInt(matches[1],10)-1];document.getElementById(this.endDayDomId).value=matches[2];document.getElementById(this.endYrDomId).value='20'+matches[3];this.addlAdjustDatesTasks(depDateVal,retDateVal);};YAHOO.Travel.tvlyForm.prototype.adjustDatesPrereqs=function(){return true;};YAHOO.Travel.tvlyForm.prototype.addlAdjustDatesTasks=function(depDate,retDate){return;};YAHOO.Travel.tvlyForm.prototype.showForm=function(){var nowShowing=this.manager.nowShowing;if(nowShowing.contDomId==this.contDomId){return;}nowShowing.hideForm();this.manager.flightForm.hideForm();this.manager.hotelForm.hideForm();YAHOO.util.Dom.removeClass(this.contDomId,'inactive');YAHOO.util.Dom.replaceClass(document.getElementById(this.formTabId).parentNode,'unsel','sel');YAHOO.util.Dom.removeClass('tvlyTabCont','zoomed');YAHOO.util.Dom.addClass('tvlyTabCont','zoomed');this.manager.nowShowing=this;this.manager.swapAd(this.formTabId);};YAHOO.Travel.tvlyForm.prototype.hideForm=function(){if(this.calendar){this.calendar.calendar.hide();}YAHOO.util.Dom.addClass(this.contDomId,'inactive');YAHOO.util.Dom.replaceClass(document.getElementById(this.formTabId).parentNode,'sel','unsel');};YAHOO.Travel.tvlyFlightForm=function(formTabId,mgr){YAHOO.Travel.tvlyFlightForm.superclass.constructor.call(this,formTabId,mgr);this.contDomId='tvly_fl_wid';this.formDomId='fl_reserve';this.formHiddenId='tvly_fl_hidden_form';this.origDomId='dep_arp_cd_1';this.destDomId='arr_arp_cd_1';this.startDateDomId='tvlyFlFrmDepDate';this.endDateDomId='tvlyFlFrmRetDate';this.fOnlyDomId='tvlyQsFlightOnly';this.fhDomId='tvlyQsFlightHotel';this.hotelFlightHotelDomId='tvlyQsHFHotelHotel';this.expTrigIds=[this.origDomId,this.destDomId,this.startDateDomId,this.endDateDomId,this.fOnlyDomId,this.fhDomId,this.hotelFlightHotelDomId];this.flexDateDomId='tvlyQsFlexDate';this.dateContDomId='tvly_qs_date_cont';this.startMonDomId='dep_dt_mn_1';this.startDayDomId='dep_dt_dy_1';this.startYrDomId='dep_dt_yr_1';this.endMonDomId='dep_dt_mn_2';this.endDayDomId='dep_dt_dy_2';this.endYrDomId='dep_dt_yr_2';this.calId='tvly_flight';this.flightFormHotelOnlyDomId='tvlyQsHotelFlight';this.hotelFormDomid='tvly_ho_wid';this.flightFormHotelStripe='tvlyFormTopFlightHotel';this.flightFormFlightStripe='tvlyFormTopFlight';this.hotelFormHotelOnlyDomId='tvlyQsHotelHotel';this.hotelFormHotelFlightDomId='tvlyQsHFHotelHotel';YAHOO.util.Event.addListener(this.expTrigIds,'focus',this.expandForm,this,true);YAHOO.util.Event.addListener(this.fOnlyDomId,'click',this.fType,this,true);YAHOO.util.Event.addListener([this.fhDomId,this.hotelFormHotelFlightDomId],'click',this.fhType,this,true);YAHOO.util.Event.addListener(this.flexDateDomId,'click',this.toggleFlexDates,this);YAHOO.util.Event.addListener(window,'load',this.checkType,this,true);YAHOO.util.Event.addListener(this.formDomId,'submit',this.adjustDates,this,true);YAHOO.util.Event.addListener(this.formTabId,'click',this.showForm,this,true);YAHOO.util.Event.addListener(this.formTabId,'click',this.expandForm,this,true);YAHOO.util.Event.addListener(window,'load',this.createCal,this,true);YAHOO.util.Event.addListener(this.flightFormHotelOnlyDomId,'click',this.showHotelForm,this,true);YAHOO.util.Event.addListener(this.formTabId,'click',this.overrideHotelStripe,this,true);};YAHOO.lang.extend(YAHOO.Travel.tvlyFlightForm,YAHOO.Travel.tvlyForm);YAHOO.Travel.tvlyFlightForm.prototype.showHotelForm=function(){YAHOO.util.Dom.addClass(this.contDomId,'inactive');YAHOO.util.Dom.removeClass(this.hotelFormDomid,'inactive');YAHOO.util.Dom.addClass(this.flightFormHotelStripe,'nodisp');YAHOO.util.Dom.removeClass(this.flightFormFlightStripe,'nodisp');document.getElementById(this.hotelFormHotelOnlyDomId).checked=true;};YAHOO.Travel.tvlyFlightForm.prototype.overrideHotelStripe=function(){YAHOO.util.Dom.addClass(this.flightFormHotelStripe,'nodisp');YAHOO.util.Dom.removeClass(this.flightFormFlightStripe,'nodisp');document.getElementById(this.fOnlyDomId).checked=true;this.fType();};YAHOO.Travel.tvlyFlightForm.prototype.adjustDatesPrereqs=function(){var flexEl=document.getElementById(this.flexDateDomId);if(flexEl.checked){return false;}return true;};YAHOO.Travel.tvlyFlightForm.prototype.expandForm=function(){var div=document.getElementById(this.formHiddenId);div.style.display='block';};YAHOO.Travel.tvlyFlightForm.prototype.fType=function(){document.getElementById('tvly_qs_pkgno').disabled=false;document.getElementById('tvly_qs_pkgyes').disabled=true;this.flexDatesOff();document.getElementById('tvlyQsFlexDateCont').style.display='block';document.getElementById('tvlyQsFlexDate').checked=false;};YAHOO.Travel.tvlyFlightForm.prototype.fhType=function(){document.getElementById('tvly_qs_pkgno').disabled=true;document.getElementById('tvly_qs_pkgyes').disabled=false;document.getElementById('tvlyQsFlexDateCont').style.display='none';this.flexDatesOff();document.getElementById('tvlyQsFlexDate').checked=false;};YAHOO.Travel.tvlyFlightForm.prototype.toggleFlexDates=function(e,thisObj){if(this.checked){thisObj.flexDatesOn();}else{thisObj.flexDatesOff();}};YAHOO.Travel.tvlyFlightForm.prototype.flexDatesOn=function(){YAHOO.util.Dom.addClass(this.dateContDomId,'grayed');document.getElementById(this.startDateDomId).disabled=true;document.getElementById(this.endDateDomId).disabled=true;document.getElementById('tvly_qs_module').value='calendar';};YAHOO.Travel.tvlyFlightForm.prototype.flexDatesOff=function(){YAHOO.util.Dom.removeClass(this.dateContDomId,'grayed');document.getElementById(this.startDateDomId).disabled=false;document.getElementById(this.endDateDomId).disabled=false;document.getElementById('tvly_qs_module').value='tripsearch';};YAHOO.Travel.tvlyHotelForm=function(formTabId,mgr){YAHOO.Travel.tvlyHotelForm.superclass.constructor.call(this,formTabId,mgr);this.contDomId='tvly_ho_wid';this.formDomId='ho_reserve';this.calId='tvly_hotel';this.startDateDomId='tvlyHoFrmDepDate';this.endDateDomId='tvlyHoFrmRetDate';this.startMonDomId='ckin_dt_mon';this.startDayDomId='ckin_dt_dy';this.startYrDomId='ckin_dt_yr';this.endMonDomId='ckout_dt_mon';this.endDayDomId='ckout_dt_dy';this.endYrDomId='ckout_dt_yr';this.countryDomId='tvlyHoCountry';this.stateDomId='tvlyHoStateCont';this.stateDomEl=null;this.stateInputDomId='tvlyHoState';this.stateInputDomEl=null;this.flightFormDomid='tvly_fl_wid';this.flightFormHotelStripe='tvlyFormTopFlightHotel';this.flightFormFlightStripe='tvlyFormTopFlight';this.flightHotelFlightDomId='tvlyQsHFHotelFlight';this.hotelFlightHotelDomId='tvlyQsHFHotelHotel';this.hotelFormHotelOnlyDomId='tvlyQsHotelHotel';this.canadaProvCodes={'AB':1,'BC':1,'MB':1,'NB':1,'NF':1,'NT':1,'NS':1,'ON':1,'PE':1,'QC':1,'SK':1,'YT':1};YAHOO.util.Event.addListener(this.formDomId,'submit',this.adjustDates,this,true);YAHOO.util.Event.addListener(this.formTabId,'click',this.showForm,this,true);YAHOO.util.Event.addListener(window,'load',this.createCal,this,true);YAHOO.util.Event.addListener(this.countryDomId,'change',this.checkCountry,this);YAHOO.util.Event.addListener(window,'load',this.checkCountry,this);YAHOO.util.Event.addListener(this.hotelFlightHotelDomId,'click',this.showFlightForm,this,true);YAHOO.util.Event.addListener(this.formTabId,'click',this.hOnly,this,true);YAHOO.util.Event.addListener(this.stateInputDomId,'change',this.stateChange,this);};YAHOO.lang.extend(YAHOO.Travel.tvlyHotelForm,YAHOO.Travel.tvlyForm);YAHOO.Travel.tvlyHotelForm.prototype.showFlightForm=function(){YAHOO.util.Dom.addClass(this.contDomId,'inactive');YAHOO.util.Dom.removeClass(this.flightFormDomid,'inactive');YAHOO.util.Dom.addClass(this.flightFormFlightStripe,'nodisp');YAHOO.util.Dom.removeClass(this.flightFormHotelStripe,'nodisp');document.getElementById(this.flightHotelFlightDomId).checked=true;};YAHOO.Travel.tvlyHotelForm.prototype.hOnly=function(){document.getElementById(this.hotelFormHotelOnlyDomId).checked=true;};YAHOO.Travel.tvlyHotelForm.prototype.stateChange=function(e,thisObj){var elTarget=YAHOO.util.Event.getTarget(e);if(thisObj.canadaProvCodes[elTarget.value]){document.getElementById(thisObj.countryDomId).value='ca';}else{document.getElementById(thisObj.countryDomId).value='us';}};YAHOO.Travel.tvlyCarForm=function(formTabId,mgr){YAHOO.Travel.tvlyCarForm.superclass.constructor.call(this,formTabId,mgr);this.contDomId='tvly_ca_wid';this.formDomId='ca_reserve';this.calId='tvly_car';this.startDateDomId='tvlyCaFrmDepDate';this.endDateDomId='tvlyCaFrmRetDate';this.startMonDomId='cr_pck_up_dt_mn';this.startDayDomId='cr_pck_up_dt_dy';this.startYrDomId='cr_pck_up_dt_yr';this.endMonDomId='cr_drp_off_dt_mn';this.endDayDomId='cr_drp_off_dt_dy';this.endYrDomId='cr_drp_off_dt_yr';YAHOO.util.Event.addListener(this.formDomId,'submit',this.adjustDates,this,true);YAHOO.util.Event.addListener(this.formTabId,'click',this.showForm,this,true);YAHOO.util.Event.addListener(window,'load',this.createCal,this,true);};YAHOO.lang.extend(YAHOO.Travel.tvlyCarForm,YAHOO.Travel.tvlyForm);YAHOO.Travel.tvlyVacationForm=function(formTabId,mgr){YAHOO.Travel.tvlyVacationForm.superclass.constructor.call(this,formTabId,mgr);this.contDomId='tvly_va_wid';this.formDomId='qs_main_vacations';this.calId='tvly_vacation';this.startDateDomId='tvlyVaFrmDepDate';this.endDateDomId='tvlyVaFrmRetDate';this.startMonDomId='ckin_dt_mon_va';this.startDayDomId='ckin_dt_dy_va';this.startYrDomId='ckin_dt_yr_va';this.endMonDomId='ckout_dt_mon_va';this.endDayDomId='ckout_dt_dy_va';this.endYrDomId='ckout_dt_yr_va';this.addlDepDateFields=['hotelFromDate_va','carFromDate_va','fromDate_va'];this.addlRetDateFields=['hotelToDate_va','carToDate_va','toDate_va'];this.minorsAgeContId='tvlyVaMinorAgeCont';this.minorsCntDomId='tvlyVaMinors';this.minorsAgeDomIds=['tvlyVaMinorAge1','tvlyVaMinorAge2','tvlyVaMinorAge3','tvlyVaMinorAge4'];this.carTimesDomId='tvlyVaTimes';this.carTimesDomEl=null;this.fromDomId='tvlyVaFromCont';this.fromDomEl=null;this.fromInputId='fromLocation';this.fromInputEl=null;this.hotelCarDomId='tvlyQsVaHC';this.nonHCTypeDomIds=['tvlyQsVaAHC','tvlyQsVaAH','tvlyQsVaAC'];YAHOO.util.Event.addListener(this.formDomId,'submit',this.adjustDates,this,true);YAHOO.util.Event.addListener(this.formDomId,'submit',this.checkMinorsAges,this);YAHOO.util.Event.addListener(this.formTabId,'click',this.showForm,this,true);YAHOO.util.Event.addListener(this.minorsCntDomId,'change',this.showMinorAgeBoxes,this);YAHOO.util.Event.addListener(window,'load',this.createCal,this,true);YAHOO.util.Event.addListener(this.hotelCarDomId,'click',this.showCarTimes,this,true);YAHOO.util.Event.addListener(this.nonHCTypeDomIds,'click',this.hideCarTimes,this,true);YAHOO.util.Event.addListener(window,'load',this.checkType,this,true);};YAHOO.lang.extend(YAHOO.Travel.tvlyVacationForm,YAHOO.Travel.tvlyForm);YAHOO.Travel.tvlyVacationForm.prototype.showMinorAgeBoxes=function(e,thisObj){var count=this.value;if(count>0){YAHOO.util.Dom.removeClass(thisObj.minorsAgeContId,'nodisp');}else{YAHOO.util.Dom.addClass(thisObj.minorsAgeContId,'nodisp');}for(var i=1;i<=thisObj.minorsAgeDomIds.length;i++){if(count>=i){YAHOO.util.Dom.removeClass(thisObj.minorsAgeDomIds[i-1],'nodisp');}else{YAHOO.util.Dom.addClass(thisObj.minorsAgeDomIds[i-1],'nodisp');}}};YAHOO.Travel.tvlyVacationForm.prototype.checkMinorsAges=function(e,thisObj){var count=document.getElementById(thisObj.minorsCntDomId).value;for(var i=1;i<=thisObj.minorsAgeDomIds.length;i++){if(count>=i){if(document.getElementById(thisObj.minorsAgeDomIds[i-1]).value=='-1'){alert('Please provide the ages of minors');if(e.preventDefault){e.preventDefault();}return false;}}else{document.getElementById(thisObj.minorsAgeDomIds[i-1]).value='-1';}}};YAHOO.Travel.tvlyVacationForm.prototype.addlAdjustDatesTasks=function(depDate,retDate){for(var i=0;i<this.addlDepDateFields.length;i++){document.getElementById(this.addlDepDateFields[i]).value=depDate;}for(var i=0;i<this.addlRetDateFields.length;i++){document.getElementById(this.addlRetDateFields[i]).value=retDate;}};YAHOO.Travel.tvlyVacationForm.prototype.showCarTimes=function(){if(!this.carTimesDomEl){this.carTimesDomEl=document.getElementById(this.carTimesDomId);}YAHOO.util.Dom.removeClass(this.carTimesDomEl,'nodisp');if(!this.fromDomEl){this.fromDomEl=document.getElementById(this.fromDomId);}YAHOO.util.Dom.addClass(this.fromDomEl,'grayed');if(!this.fromInputEl){this.fromInputEl=document.getElementById(this.fromInputId);}this.fromInputEl.disabled=true;};YAHOO.Travel.tvlyVacationForm.prototype.hideCarTimes=function(){if(!this.carTimesDomEl){this.carTimesDomEl=document.getElementById(this.carTimesDomId);}YAHOO.util.Dom.addClass(this.carTimesDomEl,'nodisp');if(!this.fromDomEl){this.fromDomEl=document.getElementById(this.fromDomId);}YAHOO.util.Dom.removeClass(this.fromDomEl,'grayed');if(!this.fromInputEl){this.fromInputEl=document.getElementById(this.fromInputId);}this.fromInputEl.disabled=false;};YAHOO.Travel.tvlyCruiseForm=function(formTabId,mgr){YAHOO.Travel.tvlyCruiseForm.superclass.constructor.call(this,formTabId,mgr);this.contDomId='tvly_cr_wid';this.formDomId='QuickCruiseSearch2';YAHOO.util.Event.addListener(this.formTabId,'click',this.showForm,this,true);};YAHOO.lang.extend(YAHOO.Travel.tvlyCruiseForm,YAHOO.Travel.tvlyForm);YAHOO.Travel.tvlyDealsForm=function(formTabId,mgr){YAHOO.Travel.tvlyDealsForm.superclass.constructor.call(this,formTabId,mgr);this.contDomId='tvly_de_wid';this.formDomId='smsr';YAHOO.util.Event.addListener(this.formTabId,'click',this.showForm,this,true);};YAHOO.lang.extend(YAHOO.Travel.tvlyDealsForm,YAHOO.Travel.tvlyForm);