!function(e){e.fn.hasScrollBar=function(){return!!this.get(0)&&this.get(0).scrollHeight>this.innerHeight()},e(".share-link").click((function(t){t.preventDefault(),e(this).hide(),e(".addthis_toolbox").show()}))}(jQuery);var is_two_column=$("div.container").hasClass("property-two-column");function showMoreReviews(){$(".quote li a").click((function(e){e.preventDefault(),$(this).parent().addClass("active");var t=$(this).parent().parent().find(".hidden_content");t.slideDown(150,(function(){t.css("display","inline").animate({opacity:1},150)}))}))}function leafletMap(e,t){var a,i=$("#map_lat"),r=$("#map_lon");if(!i||!r)return!1;var o=i.val(),n=r.val(),s=$(".property-layout"),l=s.find(".slider"),c=s.find("#"+e),p=s.find("#ip_map_size");c.height(.75*l.width()),$(window).resize((function(){c.height(.75*l.width())}));var d=7;if(is_two_column&&(d=8),o&&n){if(a=L.map(t,{attributionControl:!1}).setView([o,n],d),L.tileLayer("//maps.sykescottages.co.uk/tiles/{z}/{x}/{y}.png",{maxZoom:13,minZoom:5}).addTo(a),L.control.attribution({position:"bottomleft"}).addTo(a),"sykes"===brand)var u=L.icon({iconUrl:"/images/"+$("body").attr("data-map")+"/markers/map-pin.png",iconSize:[25,40],iconAnchor:[12,40],popupAnchor:[-1,-37]});else{var f=$("body").attr("data-map_pin_url"),v="";v=0==f.length?"/images/brands/"+brand+"/markers/map-pin.png":f,u=L.icon({iconUrl:v,iconAnchor:[12,40],popupAnchor:[-1,-37]})}L.marker([o,n],{icon:u}).addTo(a),a.dragging.disable(),a.doubleClickZoom.disable(),a.scrollWheelZoom.disable(),a.boxZoom.disable(),a.keyboard.disable(),a.tap&&a.tap.disable()}p.click((function(){c.toggleClass("active"),o&&n&&(p.hasClass("big")?(p.html("&#43;"),a.invalidateSize({animate:!1,pan:new L.LatLng(o,n)}),a.setView([o,n],7)):(p.html("&ndash;"),a.invalidateSize({animate:!1,pan:new L.LatLng(o,n)}),a.setView([o,n],8)),$(this).toggleClass("big"))})),$(".mobile_buttons").find(".show_map").click((function(e){e.preventDefault(),$(this).toggleClass("active"),c.toggleClass("mobile_active"),a.invalidateSize({animate:!1,pan:new L.LatLng(o,n)})}))}if($(document).ready((function(){var e="undefined"!=typeof removeAutoplay18383&&removeAutoplay18383?0:2e3,t=new Slider({slide:"li",autoplay:e});if("undefined"!=typeof animate_image_carousel&&animate_image_carousel){$("#property_top .next,#property_top .previous,#property_top .thumbnails > a").mouseup((function(){t.clearInterval()}))}if("undefined"!=typeof RecentViews2419&&RecentViews2419||"undefined"!=typeof remainingNights20825&&remainingNights20825){var a=$(".urgency_popup.positive-message").length,i=0;var r=setInterval((function(){$(".message_"+i)[0]?(!function(e){var t=$(".message_"+e),a=t.data("action");t.fadeIn(1e3).delay(4e3).fadeOut(1e3,0,(function(){$(this).css({display:"block",visibility:"hidden","margin-bottom":"-48px"}),eventTracker.fireEvent("Property Page",a,"Display",!0)})),$(".message_"+e+" a").click((function(e){e.preventDefault(),t.hide(),eventTracker.fireEvent("Property Page",a,"Close")}))}(i),++i>=a&&clearInterval(r)):i++}),5e3)}var o=$("#shortBreakNotice");if(o.length){var n=$("#shortBreakNotice a");o.delay(200).fadeIn(800),n.click((function(e){e.preventDefault(),eventTracker.fireEvent("KEP-10454","Closed","ShortBreaks"),o.hide(),$recentViews=$("#recentViews"),$recentViews.length&&$recentViews.is(":visible")&&$recentViews.css("margin-top","0")}))}function s(e){$("body").hasClass(".mobile-redesign")||($(e).find(" > ul > li:first-child").show(),this.shown=!1)}showleaflet&&leafletMap("map_wrp","ip_map"),"undefined"!=typeof pagemenu6199&&pagemenu6199&&leafletMap("map_wrp2","ip_map2"),showMoreReviews(),s(".ta_reviews"),s(".customer_reviews"),$(".ta_reviews > ul").hasScrollBar()&&$(".ta_reviews > ul").addClass("hasScrollBar"),$(".customer_reviews > ul").hasScrollBar()&&$(".customer_reviews > ul").addClass("hasScrollBar");var l=$("header[role=header]").outerHeight();$("[data-role=view-all-reviews]").click((function(e){e.preventDefault();var t=$(this);if(this.showMessage||(this.showMessage=t.html()),this.shown){var a=t.closest("section");a.find(" > ul > li").not(":first-child").hide(),this.shown=!1,t.html(this.showMessage),$("body").animate({scrollTop:a.offset().top-l},0)}else t.closest("section").find(" > ul > li").show(),this.shown=!0,t.html(t.data("hide-message"))})),$(".card").hasClass("prop-accordion3094")&&$(".prop-accordion3094 h2").click((function(e){eventTracker.fireEvent("PropertyPage","Accordion",$(this).html()),$(this).parent().hasClass("show")?$(this).parent().removeClass("show"):$(this).parent().addClass("show")}))})),$((function(){var e=null,t=null;function a(e){return new RegExp(/.+@.+\..+/i).test(e)}function i(e){e?$('label[for="email-address"]').removeClass("error"):$('label[for="email-address"]').addClass("error")}$("#send-quote-email").submit((function(r){r.preventDefault(),eventTracker.fireEvent("PropertyPage","Calendar","submit book on desktop form"),(t=a($("#email-address").val()))?($(".submit").toggle(),$(".success").toggle(),$(".success em").html(e)):(i(t),eventTracker.fireEvent("PropertyPage","Calendar","book on desktop invalid email"));$.ajax({url:$(this).attr("action"),type:"post",data:{email_address:$(this).find("#email-address").val(),property_id:property_id}})})),$("#email-address").blur((function(){$("#email-address").val()&&((t=a($("#email-address").val()))?(e=$("#email-address").val(),i(t)):(i(t),eventTracker.fireEvent("PropertyPage","Calendar","book on desktop invalid email")))})),$(".book-on-desktop").click((function(e){eventTracker.fireEvent("PropertyPage","book on desktop","open modal")})),$("#email-address").click((function(e){e.preventDefault(),eventTracker.fireEvent("PropertyPage","book on desktop","click email input")})),$(".book-on-desktop-modal .close").click((function(e){e.preventDefault(),$(".modal-background").hide(),eventTracker.fireEvent("PropertyPage","book on desktop","back button")}))})),0!=$("#sliderOverlay").length){function enlargedOpen(){$("#sliderOverlay").addClass("show"),$(".main-content").addClass("slider-content-static"),$("html, body").css("position","fixed"),$("#property_top").css("position","static"),$("#header").css("z-index","0"),window.navigator.standalone=!0}function enlargedClose(){$("#sliderOverlay").removeClass("show"),$(".main-content").removeClass("slider-content-static"),$("html, body").css("position","static"),$("#property_top").css("position","relative"),$("#header").css("z-index","10")}$("#enlarge_icon").click((function(){$("#sliderOverlay").hasClass("show")?enlargedClose():enlargedOpen()})),$(".slider-overlay .close-x").click((function(){enlargedClose()}))}function checkVisible(e,t){t=t||"visible";var a=$(window).height(),i=$(window).scrollTop(),r=$(e).offset().top,o=$(e).height();return"visible"===t?r<a+i&&r>i-o:"above"===t?r<i:void 0}"undefined"!=typeof initPropertyTabs&&$((function(){$("#property_tabs > li").click((function(){$("#property_tabs > li").removeClass("ui-state-active"),$(this).addClass("ui-state-active"),$(".property_tab_class").addClass("hiddenTab"),$(".property_tab_class").removeClass("shownTab"),$($(this).attr("clicklocation")).removeClass("hiddenTab"),$($(this).attr("clicklocation")).addClass("shownTab")}))})),$(".floor-plan").click((function(e){e.preventDefault();var t=$(".property-img-floor"),a=$(".property-floor-plan"),i=$(".floor-plan-chevron");t.is(":visible")?(t.hide(),a.css("height","100%"),i.css("transform","rotateX(10deg)")):(t.show(),a.css("height","49%"),i.css("transform","rotateX(180deg)"))})),$(".kep-3946-ga").click((function(){eventTracker.fireEvent("KEP-3946","Property Page Header","clicked")})),$(".kep-3947-ga").click((function(){eventTracker.fireEvent("KEP-3947","Property Page Header","clicked")})),$(document).ready((function(){$(".property-availabilty-4072 .close").click((function(){$(".property-availabilty-4072").hide()}))})),"undefined"!=typeof availabilty4072&&$((function(){eventTracker.fireEvent("PropertyPage","ShowUrgencyPercentage4072","view")})),"undefined"!=typeof storeTabHistory&&$(document).ready((function(e){window.history&&window.history.pushState&&(window.history.pushState("forward",null,"#forward"),e(window).on("popstate",(function(){if(!(document.URL.indexOf("#")>=0)){var t=e(".return-to-search").attr("href");document.location.href=t}})))})),$(".property .back-link").click((function(){eventTracker.fireEvent("PropertyPage","Return to Search","Click")})),$(".property .slider .previous").mouseup((function(){$("#property_top").addClass("user-clicked")})),$(".property .slider .next").mouseup((function(){$("#property_top").addClass("user-clicked")})),$(".property .top-rated-carousel-kep-6195 .next").mouseup((function(){eventTracker.fireEvent("PropertyPage","next","Nearby Properties")})),$(".property .top-rated-carousel-kep-6195 .prev").mouseup((function(){eventTracker.fireEvent("PropertyPage","previous","Nearby Properties")})),$(".property .thumbnails > a").click((function(){$("#property_top").addClass("user-clicked")})),$(".thumbnails img").click((function(){eventTracker.fireEvent("PropertyPage","Thumbnail","Click")})),$("a[href='/book-now-pay-later-terms.html']").click((function(){eventTracker.fireEvent("PropertyPage","Terms and conditions link","Click")})),$("a[href='/free-cancellation-terms-conditions.html']").click((function(){eventTracker.fireEvent("PropertyPage","Free Cancellation link","Click")})),$(".kep-3452-read-more-link").click((function(){eventTracker.fireEvent("PropertyPage","Show More Reviews link","Click")})),$(".kep-3453-back-to-top-bar").click((function(){eventTracker.fireEvent("PropertyPage","Back To Top button","Click")})),$(".kep-3494-get-deal").click((function(){eventTracker.fireEvent("PropertyPage","Get Deal","KEP-3494")})),$(".kep-3494-get-deal-deposit").click((function(){eventTracker.fireEvent("PropertyPage","Get Deal Deposit","KEP-3494")})),$(".kep-3616-button").click((function(){eventTracker.fireEvent("PropertyPage","BookingButton","KEP-3616")})),$(".kep-3616-message").click((function(){eventTracker.fireEvent("PropertyPage","SelectDatesMessage","KEP-3616")})),$(".property_location ul li a").click((function(){eventTracker.fireEvent("PropertyPage","RegionInformation",$(this).text())})),$("#property-tabs").tabs({load:function(e,t){}}).find(".ui-tabs-nav li").click((function(){eventTracker.fireEvent("PropertyPage",$(this).attr("aria-controls"),"KEP-3539")})),"undefined"!=typeof shortLeadsCalendarCER277&&shortLeadsCalendarCER277&&$("#arrival-input").on("click",()=>{const e=$(".calendar-input-group > span.easepick-wrapper").offset().top;$("html, body").animate({scrollTop:e+"px"},{duration:500})});