function EncodeUri(n){return n!=""?encodeURI(n)+"/":""}$(function(){function r(n,t,i){var r=eviivo.utils.queryStringHelper.getAllKeys(n);return u(r,t,i),f(r,t,i),e(r,t,i),o(r,t,i),s(r,t,i),h(r,t,i),eviivo.utils.queryStringHelper.toString(r,!0)}function u(n,t,i){if(eviivo.utils.queryStringHelper.keyExists(n,"country")){var r=t.Countries[i];r&&eviivo.utils.queryStringHelper.updateKey(n,"country",r)}}function f(n,t,i){if(eviivo.utils.queryStringHelper.keyExists(n,"region")){var r=t.Regions[i];r&&eviivo.utils.queryStringHelper.updateKey(n,"region",r)}}function e(n,t,i){if(eviivo.utils.queryStringHelper.keyExists(n,"city")){var r=t.Cities[i];r&&eviivo.utils.queryStringHelper.updateKey(n,"city",r)}}function o(n,t,r){if(eviivo.utils.queryStringHelper.keyExists(n,"clustername")){var u=t.Clusters[r];u&&eviivo.utils.queryStringHelper.updateKey(n,"clustername",i(u))}}function s(n,t,r){var o,u,e,f,h;if(eviivo.utils.queryStringHelper.keyExists(n,"destination"))if(o=eviivo.utils.queryStringHelper.getWithRegex(n,"destinationtype"),o=="country")u=t.Countries[r],u&&eviivo.utils.queryStringHelper.updateKey(n,"destination",u);else if(o=="region")u=t.Countries[r],e=t.Regions[r],u&&e&&(f=e+"---"+u,eviivo.utils.queryStringHelper.updateKey(n,"destination",f));else if(o=="city"){var u=t.Countries[r],e=t.Regions[r],s=t.Cities[r];u&&e&&s?(f=s+"---"+e+"---"+u,eviivo.utils.queryStringHelper.updateKey(n,"destination",f)):u&&s&&(f=s+"---"+u,eviivo.utils.queryStringHelper.updateKey(n,"destination",f))}else if(o=="cluster")h=t.Clusters[r],h&&eviivo.utils.queryStringHelper.updateKey(n,"destination",i(h));else if(o=="postcode"){var u=t.Countries[r],e=t.Regions[r],f=eviivo.utils.queryStringHelper.getWithRegex(n,"destination"),l=c(f);u&&e?(f=l+"---"+e+"---"+u,eviivo.utils.queryStringHelper.updateKey(n,"destination",f)):u&&(f=l+"---"+u,eviivo.utils.queryStringHelper.updateKey(n,"destination",f))}}function h(n,t,i){var r,u;eviivo.utils.queryStringHelper.keyExists(n,"tag")&&(r=t.ListOfTags,r&&r.length>0&&(u=r.map(function(n){return n[i]}).join(","),eviivo.utils.queryStringHelper.updateKey(n,"tag",u)))}function i(n){var t=new RegExp("\\%20","g"),i=new RegExp("\\%2C","g"),r=new RegExp("\\%2F","g");return n=n.replace(i,"--"),n=n.replace(t,"-"),n.replace(r,"-")}function c(n){return n?n.split("---")[0]:null}var t={requestUrl:"/centralbelfastapartments/search/GetPropertyAvailability",searchCriteria:"#serializedSearchCriteria",contentPlaceHolder:"#quickViewPlaceHolder",bookButtonsSelector:"button.cp-button-book",readMore:"Read more",readLess:"Less info",loadingText:"Loading property information please wait.",seeRemaining:"See remaining",remainingImages:"images",isQuickBookEnabled:"True",viewDesc:"View Description",viewMap:"View Map"},n;eviivo.searchSystem.search.init({ajaxUrl:"/centralbelfastapartments/ajax/RetrieveProperties",browserBaseUrl:"/en-GB/centralbelfastapartments/s",pushRequestToHistory:!0,pageActionFormWrappers:["div.mod-filterOuter","div.mod-sort","#eviivo-partner-search-box","div.mod-viewToggle",".mod-paginate-outer"],contentPlaceHolder:"#results-holder",quickViewInitializerData:t,isTopRooms:!1,isCluster:$("#clustername").val()!="",ajaxLoaderResources:{loadingUpdateResults:"Updating your results",loadingSlowSystemWarning:"We&#39;re still finding you the best option... thanks for your patience",loadingRefreshingIssueWarning:"Hmmmm.... something is not right. Please try to",ajaxFailText:"Something is not right, please try to",refreshPageText:"refresh the page"},resources:{results:"properties in or near to",intext:"near",propertiesFound:"properties found"}});eviivo.searchSystem.views.init({submitHandler:eviivo.searchSystem.search.submitAction,userSettingsCookieName:"userSettings",viewTypeCookieField:"view_type"});eviivo.searchSystem.filters.init({mainContainer:".mod-filterOuter",submitHandler:eviivo.searchSystem.search.submitAction,userSettingsCookieName:"userSettings",radiusUnitCookieField:"radius_unit",defaultPriceMinValue:0,defaultPriceMaxValue:500});eviivo.searchSystem.sorting.init({submitHandler:eviivo.searchSystem.search.submitAction});eviivo.searchPlugin.autoComplete.init({mainContainer:"form#eviivo-partner-search-box",submitHandler:eviivo.searchSystem.search.submitAction,autoCompleteUrl:"//partners.eviivo.com/autocomplete",baseSearchUrl:"",pointOfSaleShortName:"centralbelfastapartments",clusterType:"cluster",tagType:"tag",geoNameType:"geoname",countryType:"country",regionType:"region",cityType:"city",separatorType:"separator",postCodeType:"postcode",propertyNameType:"propertyshortname",resources:{searchFormTagIntroText:"Locations or tags you search for will be appearing here…start searching!",searchFormTagText:"Location added: Keep searching to add more tags to your search"},culture:"en-GB",channelName:"myweb"});eviivo.searchPlugin.dateRangeInput.init({mainContainer:"form#eviivo-partner-search-box",submitHandler:eviivo.searchSystem.search.submitAction,cultureLanguageCode:"en-GB",selectedCultureLanguageCode:"en-GB",resources:{checkinDate:"Select check in date",checkoutDate:"Select check out date",selected:"Selected",nights:"Night(s)",close:"Close"}});eviivo.searchPlugin.occupancySelector.init({mainContainer:"form#eviivo-partner-search-box",submitHandler:eviivo.searchSystem.search.submitAction,roomsLimit:3,resources:{adults:"Adult(s)",children:"Child(ren)",rooms:"Apartments",room:"Apartment",roomAdded:"{0} Apartment added",roomsAdded:"{0} Apartments added"}});eviivo.searchSystem.paging.init({mainContainer:".mod-paginate-outer",submitHandler:eviivo.searchSystem.search.submitAction,userSettingsCookieName:"userSettings",pageSizeCookieField:"pagesize"});eviivo.tileGallery.init();eviivo.smoothScrolling.init();eviivo.quickView.init(t);eviivo.searchPlugin.tags.init();eviivo.searchSystem.largeMapView!=null&&eviivo.searchSystem.largeMapView!=undefined&&eviivo.searchSystem.largeMapView.init({disableAllPropertiesDisplay:!0,googleMapsApiUrl:"//maps.googleapis.com/maps/api/js?key=AIzaSyAVASBqUxKBlJef2AtAIjYiQxIezl_X3nM&amp;v=3&amp;callback=",pinSource:"//static.eviivo.media/ui/wl/4.256",ajaxBaseUrl:"/centralbelfastapartments/ajax/RetrieveAllPropertiesForMap",resources:{fullScreen:"Full screen",thirtyPercent:"Exit full screen",loadingText:"Updating your results",mapNoResultsText:"No results found, please refine your search using the search criteria or filters"},layers:2});n=eviivo.utils.queryStringHelper;typeof n=="undefined"&&console.log("eviivo.utils.queryStringHelper was not loaded therefore this page might not work properly");$(".language-inner a").on("click",function(n){var e,f,a;n.preventDefault();e=window.location.href.toLowerCase();f="";e.indexOf("?")>0&&(f="?"+e.substring(e.indexOf("?")+1));var t=eviivo.searchSystem.search.filterTranslations,u=$(this).attr("data-value"),s=t?t.UrlClusters[u]||$("#clustername").val():$("#clustername").val(),h=t?t.Countries[u]||$("#country").val():$("#country").val(),v=t?t.Regions[u]||$("#region").val():$("#region").val(),y=t?t.Cities[u]||$("#city").val():$("#city").val(),p=$("#destination").val(),w=$("#latitude").val(),b=$("#longitude").val(),o="",i="",c=eviivo.utils.queryStringHelper.isSearchMode(),k=p.length>0&&w.length>0&&b.length>0,l=!c&&!k&&h;s&&!c?(o="c",i=encodeURI(s)):l?(o="d",i=i+EncodeUri(h),i=i+EncodeUri(v),i=i+EncodeUri(y)):o="s";f=r(f,t,u);a="/|langPlaceholder|/centralbelfastapartments".replace("|langPlaceholder|",u)+"/"+o+"/"+(l?i:f);window.location.href=a});$(".currency-inner a").on("click",function(t){t.preventDefault();var r=$(this).attr("href"),u=r.split("?")[0],f=window.location.href.toLowerCase(),i=n.getAllKeys(f);n.updateKey(i,"currency",$(this).data("value"));window.location.href=u+n.toString(i,!0)});$(".cp-tip").tooltip({position:{my:"center bottom-15",at:"center top",using:function(n,t){$(this).css(n);$("<div>").addClass("arrow").addClass(t.vertical).addClass(t.horizontal).appendTo(this)}},content:function(){return $(this).prop("title")}});eviivo.popup.init();eviivo.bookingSystem.managePageLogin.init({popupHeaderTitle:"Manage a reservation",ajaxUrl:"/manage/RetrieveOrderCancellationPermissions",referrerShortName:"centralbelfastapartments",propertyShortName:"",requestVerificationToken:"ri9c5qfjYTr94rOXqcpaTKZE0EBfIpgJgFqp_3UT1lo6hkm5hVXITEd2oGjXspbuvbVSSIq3OpvG7NpRQfvB7wxZ_r81:4VxygUTZBmt0PJ-kVJ8FT00ISW8M-767cHc5AEWWGeEsJiosr_ELM6LxgGXsq4Sk0VrTsp1Za0mneHOH2HNRXMXSMXQ1",ajaxLoaderResources:{loadingUpdateResults:"Validating booking reference and email address...",loadingSlowSystemWarning:"We&#39;re still trying to cancel your booking... thanks for your patience",loadingRefreshingIssueWarning:"Hmmmm.... something is not right. Please try to",ajaxFailText:"Something is not right, please try to",refreshPageText:"refresh the page"}})})