
var calendarDefault='mm/dd/yyyy';var mapActivated=false;var phaseTwoOfSplash=false;function start_phase_timeout(searchId,timeUntilPhaseTwo){setTimeout("poll_for_splash_hotels("+searchId+")",timeUntilPhaseTwo*1000);}
var hotelPollInterval;var hotelCounterInterval;function poll_for_splash_hotels(searchId){hotelPollInterval=setInterval("fetch_live_rates("+searchId+");",4000);hotelCounterInterval=setInterval("increment_splash_hotel_count()",1000);}
var currHotelCount=0;var currHotelList;var currHotelListIterator=0;var currHotelListLength=0;var currHotelPollCount=1;function get_current_domain(){var http_string='http://';var https_string='https://';var http_part;if(location.href.substring(0,http_string.length)==http_string){http_part=http_string;}else if(location.href.substring(0,https_string.length)==https_string){http_part=https_string;}
var without_http=location.href.substring(http_part.length);var split_string=without_http.split('/');if(split_string[0].length){return http_part+split_string[0];}}
function fetch_live_rates(searchId){var numResultsOnly=1;if(currHotelListIterator==currHotelListLength){numResultsOnly=0;}
new Ajax.Request('search?fn=fetch_live_rates',{asynchronous:true,evalScripts:true,onSuccess:function(transport){var result=transport.responseText;if(numResultsOnly==1){if(result!='fail'){numResults=result;}else{numResults=null;}}else{if(result!='fail'){hotelJSON=eval(result);currHotelList=hotelJSON['hotels'];currHotelListIterator=0;currHotelListLength=0;for(var h in currHotelList){currHotelListLength++;}
numResults=hotelJSON['numResults'];}else{numResults=null;}}
if(numResults!=null){change_splash_hotel(numResults);}},postBody:'searchId='+searchId+'&numResultsOnly='+numResultsOnly
+'&requestid='+currHotelPollCount});currHotelPollCount++;}
function change_splash_hotel(numResults){hotelData=currHotelList[currHotelListIterator];currHotelListIterator++;if(phaseTwoOfSplash){$('foundbox_container').style.display='none';$('foundbox_hotel_container').style.display='none';}
$('curr_provider').src=hotelData['provider'];$('curr_photo').src=hotelData['photo'];$('curr_hotel_name').innerHTML=hotelData['name'];$('curr_stars').innerHTML=hotelData['stars'];if(!phaseTwoOfSplash){Effect.Fade('logo_box',{duration:.2});Effect.Appear('hotel_box',{duration:.2});phaseTwoOfSplash=true;clearInterval(logosInterval);}
currHotelCount=parseInt(numResults);$('foundbox_container').style.display='block';$('foundbox_hotel_container').style.display='block';}
function increment_splash_hotel_count(){displayedHotelCount=parseInt($('hotel_counter').innerHTML);if(currHotelCount>displayedHotelCount){diff=currHotelCount-displayedHotelCount;if(diff<5){step=1;}else if(diff<30){step=Math.round(Math.random()*9+1);}else{step=Math.round(((Math.random()*100)/2)+1);if(step>diff){step=diff;}}
$('hotel_counter').innerHTML=(displayedHotelCount+step);}}
var logosInterval;var globProvidersPerGroup;function animate_logos_starter(){logosInterval=setInterval('animate_logos('+globProvidersPerGroup+')',1500);}
function stop_logo_animation(){clearInterval(logosInterval);}
var currLogoIteration=0;var currLogoGroupIteration=0;var logosHaveMadeTurn=false;function animate_logos(providersPerGroup){if(currLogoIteration==providersPerGroup){currLogoIteration=0;currLogoGroupIteration=0;logosHaveMadeTurn=true;}
idToTransition=(currLogoGroupIteration*providersPerGroup)+currLogoIteration;if(currLogoIteration>0){new Effect.Fade('logo-'+(idToTransition-1));}else if(logosHaveMadeTurn){new Effect.Fade('logo-'+((currLogoGroupIteration*providersPerGroup)+providersPerGroup-1));}
new Effect.Appear('logo-'+idToTransition,{duration:0.2});currLogoGroupIteration++;if(currLogoGroupIteration==3){currLogoGroupIteration=0;currLogoIteration++;}}
function user_search_decision(decision){if(decision=='home'){document.location='/';}else{document.location=$('search_complete').value;}}
function conduct_new_search(){document.location="/";}
function validate_main_search(){return true;}
function select_suggested_location(locationId,locationName){$('destinationlocationid').value=locationId;$('destination').value=locationName;if(locationId>0){$('hotelname').disabled=false;$('hotelname').value='Enter your hotel here';}else{$('hotelname').value='Enter your destination above first';$('hotelname').disabled=true;}
$('hotelId').value='0';}
var checkForFailedSearch;function execute_main_search(searchId,hash,hotelId,datelessSearch,numProvidersPerLogoGroup,durationPhaseOne,sourceid){checkForFailedSearch=setTimeout("check_search_status('"+searchId+"', '"+sourceid+"', '"+hotelId+"');",45000);globProvidersPerGroup=numProvidersPerLogoGroup;animate_logos_starter();if(!hotelId&&!datelessSearch){start_phase_timeout(searchId,durationPhaseOne);}
new Ajax.Request('search?fn=execute_search',{asynchronous:true,evalScripts:true,onSuccess:function(transport){if(hotelId!=''){destination='/searchresults?sourceid='+sourceid+'&hotelid='+hotelId+'&sid='+searchId+'&hash='+hash;}else{clearInterval(hotelPollInterval);clearInterval(hotelCounterInterval);destination='/searchresults?sourceid='+sourceid+'&sid='+searchId+'&hash='+hash;}
document.location=destination;},postBody:'searchId='+searchId});}
var gpopId;function check_search_status(searchId,sourceid,hotelId){new Ajax.Request('search?fn=check_search_status',{asynchronous:true,onSuccess:function(transport){if(transport.responseText=='pass'){if(hotelId!=''){destination='/searchresults?sourceid='+sourceid+'&hotelid='+hotelId+'&sid='+searchId;}else{destination='/searchresults?sourceid='+sourceid+'&sid='+searchId;}
document.location=destination;}else if(transport.responseText=='fail'){document.location='index';}else{destination=transport.responseText;$('search_complete').value=destination;$('splash').style.display='none';$('failed_search').style.display='block';}},postBody:'searchId='+searchId});}
function checkavailpop(hotelid,reviewid,availtype,formap,curr){var localdomain=get_current_domain();new Ajax.Updater('reviewavapop'+reviewid,localdomain+'/checkavailpop-'+hotelid,{asynchronous:true,evalScripts:true,postBody:'reviewid='+reviewid+'&availtype='+availtype+'&formap='+formap+'&curr='+curr});}
function kickoff_avail_popup_search(popId){success=validate_dates('availpop'+popId+'checkin','availpop'+popId+'checkout',false);gpopId=popId;if(success){try{$("availpopcheckin").value=$('availpop'+popId+'checkin').value;$("availpopcheckout").value=$('availpop'+popId+'checkout').value;$('greyoutca'+popId).style.height=$('inneravailpop'+popId).offsetHeight+'px';}catch(e){}
new Effect.Appear('indicator171'+popId);new Effect.Appear('greyoutca'+popId,{duration:0.2,to:0.8});if(isexplodersix){hideselects(new Array('sortby'));}
var localdomain=get_current_domain();new Ajax.Request(localdomain+'/search',{asynchronous:true,evalScripts:true,onComplete:function(transport){if(transport.responseText=='fail'){new Effect.Appear('singlehotelfailure'+gpopId);setTimeout("new Effect.Fade('greyoutca'+gpopId);new Effect.Fade('singlehotelfailure'+gpopId);new Effect.Fade('indicator171'+gpopId);",2000);}else{hotelDetails=transport.responseText.split(',');hotelId=hotelDetails[0];searchId=hotelDetails[1];hash=hotelDetails[2];destination='/hotel-singlecheck';if(hotelDetails.length==4){destination=destination+'_sr';}
destination=destination+'-'+hotelId+'-'+searchId+'-'+hash;document.location=destination;}},postBody:Form.serialize('checkavailpop'+popId+'form')});}
if(isexplodersix){showselects();}}
function kickoff_room_rates_search(){success=validate_dates('ratecheckin','ratecheckout',false);if(success){$('quick_book').style.display='none';setTimeout("$('pleasewaitcontainerrate').style.display = 'block';",500);new Ajax.Request('search',{asynchronous:true,evalScripts:true,onComplete:function(transport){if(transport.responseText=='fail'){setTimeout("$('no-rates-message').style.display = 'block';",1500);setTimeout("display_room_rates_search_form();",3000);}else{get_room_listing(transport.responseText);}},postBody:Form.serialize('roomratesform')});}}
function toggle_edit_trip_details(type){toggle_element_display('trip-details-edit');toggle_element_display('trip-details-'+type);}
var priceFilterCallbacks={onSlide:function(values,slider){change_displayed_prices(Math.round(values[0]),Math.round(values[1]));},onChange:function(values,slider){change_displayed_prices(Math.round(values[0]),Math.round(values[1]));goToHResultOffset(0,$F('limitinput'));refineSearch();}};var starFilterCallbacks={onChange:function(values,slider){low=Math.round(values[0]);high=Math.round(values[1]);$('starrangelowval').value=low;$('starrangehighval').value=high;goToHResultOffset(0,$F('limitinput'));refineSearch();}};var globalMinPrice,globalMaxPrice
function initialize_price_filter(priceRange,sliderValues){globalMinPrice=priceRange.start;globalMaxPrice=priceRange.end;new Control.Slider(['price-handle-low','price-handle-high'],'price-filter-track',{range:$R(globalMinPrice,globalMaxPrice),sliderValue:sliderValues,spans:['price-filter-range'],restricted:true,restrictedBuffer:20,smartChange:true,onSlide:priceFilterCallbacks.onSlide,onChange:priceFilterCallbacks.onChange});}
function initialize_star_filter(sliderValues){new Control.Slider(['star-handle-low','star-handle-high'],'star-filter-track',{range:$R(0,5),values:[0,1,2,3,4,5],sliderValue:sliderValues,restricted:true,restrictedBuffer:1,smartChange:true,onChange:starFilterCallbacks.onChange});}
function change_displayed_prices(low,high){if(!isNaN(low)){$('pricerangelowval').value=low;$('pricerangehighval').value=high;$('mincurpx').innerHTML=low;if(low<=globalMinPrice&&low>1){$('mincurpxand').innerHTML=' and less';}else{$('mincurpxand').innerHTML='';}}
if(!isNaN(high)){$('maxcurpx').innerHTML=high;if(high>=globalMaxPrice){$('maxcurpxand').innerHTML=' and up';}else{$('maxcurpxand').innerHTML='';}}}
function refineSearch(){toggle_element_display('search_refresh_indicator');new Ajax.Updater('search-results','search_list?type=update_search_list',{asynchronous:true,postBody:Form.serialize('refinesearchform')+"&"+Form.serialize('map-form'),evalScripts:true,onComplete:function(transport)
{setTimeout("toggle_element_display('search_refresh_indicator')",1000);init_hotel_card_numbers();}});}
function toggle_link_partners(id){if($('linkPartnerLabel-'+id).style.display=='none'){$('linkPartnerLabel-'+id).style.display='block';$('linkPartner-'+id+'-1').style.display='block';try{$('linkPartner-'+id+'-2').style.display='block';}catch(e){}
$('linkPartnerClose-'+id).style.display='none';}else{$('linkPartnerLabel-'+id).style.display='none';$('linkPartner-'+id+'-1').style.display='none';try{$('linkPartner-'+id+'-2').style.display='none';}catch(e){}
$('linkPartnerClose-'+id).style.display='block';}}
function toggle_primary_rate_info_background(id,action){if(action=='over'){$('primaryRateBox-'+id).style.backgroundPosition='0px -60px';}else{$('primaryRateBox-'+id).style.backgroundPosition='0px -120px';}}
function updatehotelssidebar(offset,limit){$('offset').value=offset;$('limit').value=limit;new Ajax.Updater('details-hotel-list','gethotelsidebar',{asynchronous:true,evalScripts:true,postBody:'offset='+offset+'&limit='+limit+'&hotelid='+$F('hotelid')+'&sid='+$F('sid')+'&hash='+$F('hash')+'&loc='+$F('loc')+'&singlecheck='+$F('singlecheck')});}
function toggleHotelNameInSearch(action){if(action=='reset'){$('hotelNameField').value='';$('resetHotelName').style.display='none';$('hotelNameFieldEnabled').value=0;}
else if(action=='submit'&&$('resetHotelName').style.display=='none'){$('resetHotelName').style.display='block';$('hotelNameFieldEnabled').value=1;}
goToHResultOffset(0,$F('limitinput'));refineSearch();}
function goToHResultOffset(offset,limit){$('offsetinput').value=offset;$('limitinput').value=limit;}
function goToHResultOffsetTrig(offset,limit){goToHResultOffset(offset,limit);refineSearch();}
function search_results_paginate(offset,limit){goToHResultOffsetTrig(offset,limit);Effect.ScrollTo('main');}
function clear_search_filters(){new Ajax.Request('search_list?type=clear_search_filters',{asynchronous:true,evalScripts:true,onComplete:function(transport){document.location='/searchresults?sid='+$F('sid');},postBody:'&searchId='+$F('sid')});}
function redrawGuests(styleClass,style,clarifier){if(clarifier){guestSelectId='numguests'+'_'+clarifier;guestDivId='numguestsw'+'_'+clarifier;}else{guestSelectId='numguests';guestDivId='numguestsw';}
if(clarifier){roomSelectId='numrooms'+'_'+clarifier;}else{roomSelectId='numrooms';}
var currGuests=parseInt($F(guestSelectId));var numrooms=parseInt($F(roomSelectId));$(guestSelectId).length=0;var j=0;for(i=numrooms;i<=(numrooms*4);i++)
{$(guestSelectId).options[$(guestSelectId).length]=new Option(i);j++;}
if(currGuests>numrooms){if(currGuests>(numrooms*4)){if(!isopera)
$(guestSelectId).selectedIndex=((numrooms*4)-numrooms);}
else{if(!isopera)
$(guestSelectId).selectedIndex=(currGuests-numrooms);}}
else{if(!isopera)
$(guestSelectId).selectedIndex=0;}}
var currentCheckAvailId;function displayCheckAvail(hotelId,currency)
{if(currentCheckAvailId!=undefined)
{closeCheckAvail(currentCheckAvailId);}
checkavailpop(hotelId,hotelId,'searchresults','',currency);}
function closeCheckAvail(checkAvailId)
{if($(checkAvailId)!=undefined)
{new Effect.Fade(checkAvailId,{duration:.2});$(checkAvailId).childElements().each(function(element){$(element).remove();});currentCheckAvailId=undefined;}}
function get_room_listing(searchId,hotelId,provToFilter){if($('pleasewaitcontainerrate').style.display=='none'){$('pleasewaitcontainerrate').style.display='block';}
new Ajax.Request('search?fn=get_room_listing',{asynchronous:true,evalScripts:true,onComplete:function(transport){if(transport.responseText=='fail'){setTimeout("$('no-rates-message').style.display = 'block';",1500);setTimeout("display_room_rates_search_form();",3000);}else{new Ajax.Updater('roomListing','search?fn=display_room_listing',{asynchronous:true,evalScripts:true,postBody:'searchId='+searchId+'&hotelId='+hotelId+'&provToFilter='+provToFilter});setTimeout("$('pleasewaitcontainerrate').style.display = 'none';",500);if($F('exploderRatesTab')==1){$('ratenav').innerHTML='<a href="javascript:showNav2(\'rate\')">Room Rates</a>';$('exploderRatesTab').value=1;}}},postBody:'hotelId='+hotelId+'&searchId='+searchId})}
function display_room_rates_search_form(){Effect.Fade('pleasewaitcontainerrate');setTimeout("Effect.Fade('no-rates-message');",500);setTimeout("$('quick_book').style.display='block';",1500);}
var roomListJSON;function filter_room_rates(){var roomList=roomListJSON;var AAA,AARP,Corporate,Government,Military;if($F('AAA'))AAA=parseInt($F('AAA'));else AAA=0;if($F('AARP'))AARP=parseInt($F('AARP'));else AARP=0;if($F('Corporate'))Corporate=parseInt($F('Corporate'));else Corporate=0;if($F('Government'))Government=parseInt($F('Government'));else Government=0;if($F('Military'))Military=parseInt($F('Military'));else Military=0;var rateFilters=AAA+AARP+Corporate+Government+Military;var catLen=roomList.length;for(var cat in roomList){var roomsForCat=roomList[cat];var currToggle=parseInt($F(cat+'Toggle'));var totalCatRoomCounter=0;var catRoomCounter=0;for(var roomId in roomsForCat){if(!isNaN(roomId)){totalCatRoomCounter++;var roomInfo=roomsForCat[roomId];var roomProvider=roomInfo['provider'];var isAAA=false;var isAARP=false;var isCorporate=false;var isGovernment=false;var isMilitary=false;var isNormal=true;var roomTypeAndDescription=roomInfo['category']+" "+roomInfo['description'];roomTypeAndDescription=roomTypeAndDescription.toLowerCase().replace("/"," ");roomTypeAndDescription=roomTypeAndDescription.replace("("," ");roomTypeAndDescription=roomTypeAndDescription.replace(")"," ");if(roomTypeAndDescription.search(/\b(aaa)\b/)>=0)isAAA=true;if(roomTypeAndDescription.search(/\b(aarp|senior)\b/)>=0)isAARP=true;if(roomTypeAndDescription.search(/\b(corporate|business rate)\b/)>=0)isCorporate=true;if(roomTypeAndDescription.search(/\b(government|govnt|govt)\b/)>=0)isGovernment=true;if(roomTypeAndDescription.search(/\b(military)\b/)>=0)isMilitary=true;if(isAAA||isAARP||isCorporate||isGovernment||isMilitary){isNormal=false;}
if(isNormal||(AAA==1&&isAAA)||(AARP==1&&isAARP)||(Corporate==1&&isCorporate)||(Government&&isGovernment)||(Military&&isMilitary)){if(currToggle==1||catRoomCounter==0){if(catRoomCounter==0){if($('noresultsfound-'+cat).style.display!='none'){$('noresultsfound-'+cat).style.display='none';}}
try{if($('roomId-'+cat+'-'+roomId)){if(catRoomCounter==0){stickyAction='remove';}else{stickyAction='add';}
toggle_class_name('roomId-'+cat+'-'+roomId,'room-with-border',stickyAction);if($('roomId-'+cat+'-'+roomId).style.display=='none'){$('roomId-'+cat+'-'+roomId).style.display='block';}}}catch(e){}}else{try{if($('roomId-'+cat+'-'+roomId).style.display!='none'){$('roomId-'+cat+'-'+roomId).style.display='none';}}catch(e){}}
catRoomCounter++;}else{try{if($('roomId-'+cat+'-'+roomId).style.display!='none'){$('roomId-'+cat+'-'+roomId).style.display='none';}}catch(e){}}}}
if(catRoomCounter==0&&totalCatRoomCounter!=0){if($('noresultsfound-'+cat).style.display=='none'){$('noresultsfound-'+cat).style.display='block';}}}}
function toggle_room_type(cat){if(parseInt($(cat+'Toggle').value)==0){$(cat+'Toggle').value=1;$(cat+'-switch').innerHTML='Show only best rate -';}else{$(cat+'Toggle').value=0;$(cat+'-switch').innerHTML='See all rates for this room type +';}
filter_room_rates();}
function set_best_avail_rate(bestrate_price,bestrate_partner,bestrate_booking_url){if($('details-best-rate'))
{$('details-best-rate-price').innerHTML=bestrate_price;$('details-best-rate-partner').innerHTML='at '+bestrate_partner;$('details-best-rate-link').href=bestrate_booking_url;$('details-avg-best-rate').setStyle({display:'none'});$('details-enter-rates-below').setStyle({display:'none'});$('details-best-rate').setStyle({display:'block'});}}
function room_rates_new_date(){$('roomListing').innerHTML='';$('quick_book').setStyle({display:'block'});}
var redirectCountDownInterval;function start_redirect_countdown(link){redirectCountDownInterval=setInterval("redirect_countdown('"+link+"')",1000);}
function redirect_countdown(link){currTime=parseInt($('redirect_countdown').innerHTML)-1;$('redirect_countdown').innerHTML=currTime;if(currTime==0){clearInterval(redirectCountDownInterval);document.location=link;}}
function submit_backto_results()
{$('editsearchform').submit();}
function back_to_main_search_results(searchId,tab){new Ajax.Request('search?fn=apply_search_filters',{asynchronous:true,evalScripts:true,onComplete:function(transport){document.location='/searchresults?sid='+searchId;},postBody:'searchId='+searchId+'&currentListView='+tab});}
var currentHighlightedHotel;function change_highlighted_hotel(currentHotelId,action,defaultHotelId){if(action=='out'){if(currentHotelId!=defaultHotelId){$('hotel-mini-card-'+currentHotelId).style.backgroundColor='#FFFFFF';if($('hotel-mini-card-'+defaultHotelId)){$('hotel-mini-card-'+defaultHotelId).style.backgroundColor='#E6E6E6';}}
currentHighlightedHotel=defaultHotelId;}else if(action=='over'){if(currentHotelId!=defaultHotelId){if($('hotel-mini-card-'+defaultHotelId)){$('hotel-mini-card-'+defaultHotelId).style.backgroundColor='#FFFFFF';}}
$('hotel-mini-card-'+currentHotelId).style.backgroundColor='#E6E6E6';currentHighlightedHotel=currentHotelId;}}
function switch_favorites_tab(switchToTab){currentTab=$F('currentListView');if(currentTab==switchToTab){return;}
toggle_element_display('search-results');$('currentListView').value=switchToTab;$('search-results-nav-btm').className='nav-btm-'+switchToTab;toggle_class_name('tab-'+currentTab,'active');toggle_class_name('tab-'+switchToTab,'active');refresh_search_pane();toggle_element_display('search-results');}
var toolTipTimeout
function show_tooltip(type,hotelId){toolTipTimeout=setTimeout("display_tooltip('"+type+"', '"+hotelId+"');",350);}
function hide_tooltip(type,hotelId){clearTimeout(toolTipTimeout);if($('tooltip-'+type+'-'+hotelId).style.display=='block'){$('tooltip-'+type+'-'+hotelId).style.display='none';}}
function display_tooltip(type,hotelId){$('tooltip-'+type+'-'+hotelId).style.display='block';}
function manage_preferred_hotels(hotelId,action,disqualifiedHotel){new Ajax.Request('search_list?type=manage_search_hotel_favorites_list',{asynchronous:true,evalScripts:true,onComplete:function(transport){if(transport.responseText!='fail'){if(action!='remove_all_in_search'){change_preferred_hotel_border(hotelId);change_preferred_hotel_button(hotelId,action);if($F('currentListView')=='results'){if(action=='add'){$('preferred-tooltip-up-'+hotelId).style.display='none';$('preferred-tooltip-up-preferred-'+hotelId).style.display='block';}else{$('preferred-tooltip-up-preferred-'+hotelId).style.display='none';$('preferred-tooltip-up-'+hotelId).style.display='block';}}}
countHotelsActedOn=parseInt(transport.responseText);preferredCountDiv='search-results-preferred';currPreferredCount=parseInt($(preferredCountDiv).innerHTML);if(action=='add'){$(preferredCountDiv).innerHTML=currPreferredCount+countHotelsActedOn;refresh_search_pane();}else{if($F('currentListView')=='preferred'||disqualifiedHotel==1){if(action!='remove_all_in_search'){remove_hotel_card_from_list(hotelId);}
$(preferredCountDiv).innerHTML=currPreferredCount-countHotelsActedOn;setTimeout("refresh_search_pane();",2000);}else{$(preferredCountDiv).innerHTML=currPreferredCount-countHotelsActedOn;refresh_search_pane();;}}}},postBody:'searchid='+$F('sid')+'&hotelid='+
hotelId+'&action='+action+'&favoritetype=preferred'});}
function manage_removed_hotels(hotelId,action){if(action=='add'&&$('hotelCard-'+hotelId).className=='hotelCard up'){manage_preferred_hotels(hotelId,'remove',1);}
new Ajax.Request('search_list?type=manage_search_hotel_favorites_list',{asynchronous:true,evalScripts:true,onComplete:function(transport){if(transport.responseText!='fail'){if(action!='remove_all_in_search'){remove_hotel_card_from_list(hotelId);}
countHotelsActedOn=parseInt(transport.responseText);removedCountDiv='search-results-removed';currRemovedCount=parseInt($(removedCountDiv).innerHTML);if(action=='add'){$(removedCountDiv).innerHTML=currRemovedCount+countHotelsActedOn;}
if(action!='remove_all_in_search'){setTimeout("refresh_search_pane()",2000);}else{refresh_search_pane();}}},postBody:'searchid='+$F('sid')+'&hotelid='+
hotelId+'&action='+action+'&favoritetype=removed'});}
function remove_hotel_card_from_list(hotelId){messageToShowWrap=hotelId+'-x-msg-w';messageToShow=hotelId+'-x-msg';filterMessageWrap=hotelId+'-filter-msg-w';filterMessage=hotelId+'-filter-msg';contentArea='hotelCard-'+hotelId;if($(filterMessageWrap)){$(filterMessage).innerHTML=$(messageToShow).innerHTML;}else{new Effect.SlideDown(messageToShowWrap,{duration:.5,queue:{position:'front',scope:'hotelCard-'+hotelId}});}
new Effect.Fade(contentArea,{duration:3.0,queue:{position:'end',delay:2.0,scope:'hotelCard-'+hotelId}});}
function refresh_search_pane(){if(largeSRMap){largeSRMap.closeInfoWindow(null,'hotel');}
goToHResultOffset(0,$F('limitinput'));refineSearch();}
function change_preferred_hotel_border(hotelId){toggle_class_name('hotelCard-'+hotelId,'up');}
function change_preferred_hotel_button(hotelId,action){nextAction='remove';classToUse='up-preferred';if(action==nextAction){nextAction='add';classToUse='up';}
currentButton='up-'+hotelId;$(currentButton).className=classToUse;$(currentButton).href="javascript:manage_preferred_hotels('"+hotelId+"', '"+nextAction+"')";if($('thumbs-small-up-'+hotelId)){mapButton='up-small-'+hotelId;$(mapButton).className=classToUse;$(mapButton).href="javascript:manage_preferred_hotels('"+hotelId+"', '"+nextAction+"')";}}
function remove_all_favorites(type){new Effect.SlideDown('remove_all_confirm',{duration:.25});}
function cancel_remove_all_favorites(){new Effect.SlideUp('remove_all_confirm',{duration:.25});}
function more_booking_options(hID){Effect.SlideDown('more-booking-options-'+hID,{duration:0.3});$('more-booking-options-link-'+hID).hide();$('more-booking-options-link-disabled-'+hID).show();$('more-booking-options-heading-'+hID).className='more-booking-options-heading-disabled';}
function close_more_booking_options(hID){Effect.SlideUp('more-booking-options-'+hID,{duration:0.3});$('more-booking-options-link-disabled-'+hID).hide();$('more-booking-options-link-'+hID).show();$('more-booking-options-heading-'+hID).className='more-booking-options-heading';}
function provider_no_rates_tooltip_show(elID){$(elID).show();}
function provider_no_rates_tooltip_hide(elID){$(elID).hide();}