1function sparkFormsCallback(){bindAccordions()}function BindAccordions(){$(".accordion-content").length===0&&($(".accordion h2").each(function(){$(this).parent().hasClass("ci-document-center-header")?$(this).parent().nextUntil(".accordion .ci-document-center-header").wrapAll('<div class="accordion-content" />'):$(this).nextUntil(".accordion h2").wrapAll('<div class="accordion-content" />')}),$(".accordion h3").each(function(){$(this).parent().hasClass("accordion-content")||$(this).parent().hasClass("meeting-type")||$(this).parent().hasClass("meeting-description")||$(this).nextUntil(".accordion h3").wrapAll('<div class="accordion-content" />')}),$(".accordion").accordion({collapsible:!0,active:!1,autoheight:"true",heightStyle:"content",beforeActivate:function(n,t){var i,u,r;return t.newHeader[0]?(i=t.newHeader,u=i.next(".ui-accordion-content")):(i=t.oldHeader,u=i.next(".ui-accordion-content")),r=i.attr("aria-selected")=="true",i.toggleClass("ui-corner-all",r).toggleClass("accordion-header-active ui-state-active ui-corner-top",!r).attr("aria-selected",(!r).toString()),i.children(".ui-icon").toggleClass("ui-icon-triangle-1-e",r).toggleClass("ui-icon-triangle-1-s",!r),u.toggleClass("accordion-content-active",!r),r?(u.slideUp(),i.removeClass("ui-state-focus").blur()):u.slideDown(),!1}}))}function matchHeights(){$("#home-quicklinks .quicklink-nav li, #home-quicklinks .quicklink-nav--overflow li").matchHeight({byRow:!1});$("#home-eventsfeed .eventsfeed .event-card .event-card-body .event-card-date").matchHeight();$(window).width()>702&&$("#home-newsfeed .secondary-cards .secondary-news-item .details .title").matchHeight({byRow:!1});$(window).width()>702&&($(".cp-content .info-link").matchHeight({byRow:!0}),$(".cp-content .info-link h3").matchHeight({byRow:!0}))}function NewsFeedMH(){$(window).width()<=974&&$("#home-newsfeed .primary-card, #home-newsfeed .secondary-cards").css("min-height","")}function crossMatchFeedHeights(){var n=$("#news-events .feeds .feed"),u=$("#news-events .feeds"),e,t,i,f,r;n.find(".primary-item, .sub-items").css("height","");n.css("height","");u.css("min-height","");e=u.width();n.css({position:"absolute",visibility:"hidden",display:"block",width:e+"px",left:"0",top:"0"});t=0;n.find(".primary-item").each(function(){var n=$(this).outerHeight(!0);n>t&&(t=n)});i=0;n.find(".sub-items").each(function(){var n=$(this).outerHeight(!0);n>i&&(i=n)});f=Math.max(t,i);r=0;n.each(function(){var n=$(this).outerHeight(!0);n>r&&(r=n)});n.css({position:"",visibility:"",display:"",width:"",left:"",top:""});n.find(".primary-item").css("height",f);n.find(".sub-items").css("height",f);u.css("min-height",r)}function mobileCarousel(n){$(n).each(function(){var t=$(n);$(window).width()<974?(t.addClass("owl-carousel"),t.owlCarousel({autoplay:!1,loop:!0,lazyLoad:!1,autoplayTimeout:4e3,autoplayHoverPause:!0,dots:!0,video:!1,margin:14,nav:!1,responsiveRefreshRate:500,navText:["",""],responsive:{0:{items:1},580:{items:2}}})):(t.trigger("destroy.owl.carousel"),t.children("div.owl-controls").remove())})}function weatherwidgetwcag(n,t,i,r,u,f,e,o,s,h,c){n===""&&(n="#1f567c");t===""&&(t="rgba(255, 255, 255, 0.02)");i===""&&(i="#fff");r===""&&(r="#ffb4b4");u===""&&(u="#93bffe");f===""&&(f="#febc2f");e===""&&(e="#fff");o===""&&(o="#dfdede");s===""&&(s="#1f567c");h===""&&(h="#93bffe");c===""&&(c="#dfdede");$(document.body).hasClass("wcag-highcontrast")?$("#footer-weather .weatherwidget-io").attr({"data-basecolor":"#000","data-accent":"rgba(255, 255, 255, 0)","data-textcolor":"#fff","data-highcolor":"#fff","data-lowcolor":"#fff","data-suncolor":"#fff","data-mooncolor":"#fff","data-cloudcolor":"#fff","data-cloudfill":"#fff","data-raincolor":"#fff","data-snowcolor":"#fff"}):$("#footer-weather .weatherwidget-io").attr({"data-basecolor":n,"data-accent":t,"data-textcolor":i,"data-highcolor":r,"data-lowcolor":u,"data-suncolor":f,"data-mooncolor":e,"data-cloudcolor":o,"data-cloudfill":s,"data-raincolor":h,"data-snowcolor":c})}function BindMediaElements(){typeof $("#element").mediaelementplayer=="function"&&$("video, audio").mediaelementplayer({pluginPath:"https://cdnjs.com/libraries/mediaelement/",shimScriptAccess:"always",stretching:"responsive",features:["skipback","playpause","current","progress","duration","fullscreen","jumpforward","volume","googletagmanager"],jumpForwardInterval:15,jumpForwardText:"Jump forward %1 seconds",skipBackInterval:15,skipBackText:"Skip back %1 seconds"})}function BindLandingPageNav(){$(".landingpage-navigation").length&&($(".landingpage-navigation .landing-page-items .item a .image-wrapper").imagefill(),$(".landingpage-navigation").show())}function SylesForAdjustFont(){}function BindAlertsFeed(){var i,n,t;if($(".alertsfeed-list").length>0){if($(".alertsfeed-list").attr("data-dismissible")=="true"&&(i=Cookies.get(alertCookieId),i!==undefined&&$(".alertsfeed-list .alertfeed-item").each(function(){var n=$(this).attr("data-alertId");$.inArray(n,i.split(","))>-1&&$(this).remove()})),$(".alertsfeed-list .alertfeed-item").length===0){$("#alerts").hide();return}n=$(".alertsfeed-list");t=$(".alertsfeed-list .alertfeed-item").length>1?!0:!1;n.owlCarousel({autoplay:t,loop:t,lazyLoad:!1,autoplayTimeout:4e3,auto
1playHoverPause:!0,dots:!1,items:1,video:!1,nav:t,animateOut:"fadeOut",navText:["",""],onRefresh:function(){n.find("div.owl-item .alertfeed-item").height("")},onRefreshed:function(){n.find("div.owl-item .alertfeed-item").height(n.innerHeight())},onChanged:function(t){n.attr("data-currentIndex",t.item.index)}});$(".alertsfeed-list").attr("data-dismissible")=="true"&&AlertDismissClick();$(".alertsfeed-list").attr("data-cascadeinlinestyles")==="true"&&$(".alertsfeed-list .alertfeed-item").each(function(){$(this).attr("style")&&$(this).attr("style").indexOf("color")>=0&&applyInlineColorToChildren($(this),!0)})}}function AlertDismissClick(){$('.alertsfeed-list .alertfeed-item button[data-dismiss="alert"]').on("click",function(){var t=$(this).attr("data-alertId"),i=!1,n=Cookies.get(alertCookieId);n!==undefined&&n!==""?$.inArray(t,n.split(","))==-1&&(i=!0,n=n+","+t):(i=!0,n=t);i&&Cookies.set(alertCookieId,n,{path:"/",secure:document.location.protocol==="https:"});$(this).closest(".alertsfeed-list").trigger("destroy.owl.carousel");BindAlertsFeed();$(".alertsfeed-list .alertfeed-item").length===0&&$("#alerts").hide()})}function GenerateAnchorMenus(){$(".anchor-menu").length&&($(".anchor-menu").html(""),$(".anchor-menu").attr("id","anchor-menu"),$(".main-content").anchorific({navigation:".anchor-menu",headers:"h2",speed:200,anchorClass:"anchor",anchorText:"#",top:".top",spy:!0,position:"append"}),$(".nav-pills li").click(function(){$("li").each(function(){$(this).removeClass("active")});$(this).addClass("active")}),GenerateScrollUp(".cp-placeholder h2"))}function GenerateScrollUp(n){$(n).each(function(){if(!$(this).hasClass("ui-accordion-header")){var n="";n=$(this).text();n=n.replace("#","");$(this).html(n+" <a href='#anchor-menu' title='scroll to top' class='scrollTo-top'><span class='spak-icon fa fa-1 fa-arrow-circle-up'><\/span><span class='sr-only'>scroll to top<\/span>")}})}function BindDocumentCentreLoginSubmit(){$("table").each(function(){var n=$(this);n.find("caption").text().indexOf("Document Centre Login")>0&&n.find("input[type=password]").keydown(function(t){t.keyCode===13&&$(n).find("input[type=submit]").length>0&&(t.preventDefault(),$(n).find("input[type=submit]").click())})})}function FixFilename(n){return n.replace(/[\s&\/\\#,+()$~%.'":*?<>{}@!\^`=;]/g,"-")}function iframeFix(){$("iframe").prop("width");$("iframe").prop("height");$.browser.msie&&($("iframe").attr("frameBorder","0"),$("iframe").attr("scrolling","no"))}function IsMobileScreen(){return screen.width<768||$(window).width()<600?!0:!1}function BindCmsSlideshow(){$(".owl-carousel-CMS-settings").each(function(){var n=!1,t=8e3,i=!0,r=!1,u=!1;$(this).data("interval")&&(t=$(this).data("interval"));$(this).data("dots")==="True"&&(i=!0);$(this).data("showindicators")==="True"&&$(this).children().length>1&&(r=!0);$(this).data("video")==="True"&&(u=!0);$(this).children().length>1&&(n=!0);$(this).owlCarousel({autoplay:!0,items:1,loop:n,lazyLoad:!0,autoplayTimeout:t,autoplayHoverPause:!0,animateOut:"fadeOut",dots:i,video:u,nav:r,navText:["",""],onLoadedLazy:manageImageFill($(this))})})}function BindGallerySlideshow(){var n=$(".image-gallery-feed");n.owlCarousel({autoplay:!0,loop:!0,lazyLoad:!0,autoplayTimeout:4e3,autoplayHoverPause:!0,dots:!1,video:!1,nav:!0,responsiveRefreshRate:500,navText:["",""],onLoadedLazy:manageImageFill(n),responsive:{0:{items:1},550:{items:2},768:{items:3},1200:{items:4}}})}function BindMediaLibrariesSlideshow(){var n=$(".media-libraries-feed");n.owlCarousel({autoplay:!0,loop:!0,lazyLoad:!0,autoplayTimeout:4e3,autoplayHoverPause:!0,dots:!1,video:!1,nav:!0,responsiveRefreshRate:500,navText:["",""],onLoadedLazy:manageImageFill(n),responsive:{0:{items:1},550:{items:2},768:{items:3},1200:{items:4}}})}function manageImageFill(n){typeof $.fn.imagefill=="function"&&$(n).find("img").each(function(){$(this).on("load",function(){$(this).attr("src").startsWith("data:")?$(this).parent().imagefill():$(n).find('img[src="'+$(this).attr("src")+'"]').parent().imagefill()})})}function owlAutoHeightFix(n){$(window).resize(function(){$(n).find(".owl-height").css("height",$(n).find(".owl-item.active").height())})}function editorContentInserts(){$(".editor-insert.card-tall").length>0&&($(".editor-insert.card").matchHeight(),$(".editor-insert.card .text").matchHeight(),$(".image.run-imagefill").imagefill());$(".editor-insert.card-wide").length>0&&($(".editor-insert.card .match-me").matchHeight(),$(".image.run-imagefill").imagefill())}function FallbackSvg(){document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")||$('img[src*="svg"]').attr("src",function(){return $(this).attr("src").replace(".svg",".png")})}function BindIframeAutoHeight(n){function i(){$(t).removeAttr("height");$(t).attr("height",$(t).contents().height())}var t=n?n:"iframe.auto-height";$(t).on("load",function(){i();var n=$(window).width();$(window).resize(function(){n!==$(window).width()&&(i(),n=$(window).width(),delete n)})})}function loadSpinner(n){n=typeof n!="undefined"?n:$(".hidden-until-load");var t=$("<i>",{"class":"fa fa-spinner fa-spin load-spinner"});n.children().css("opacity","0");n.prepend(t);$(window).on("load",function(){t.remove();n.children().animate({opacity:1},1e3);n.removeClass("hidden-until-load")})}function loadBookEasyCart(n,t){typeof BE!="undefined"&&BE!==null&&BE.gadget.cart(".becart",{vcID:n,autoCollapse:!0,bookingURL:t})}function BindImageGalleryInsertedSlideshow(){var n=$(".ci-image-gallery");n.owlCarousel({autoplay:!0,loop:!0,lazyLoad:!1,autoplayTimeout:4e3,auto
1playHoverPause:!0,dots:!1,video:!1,nav:!0,responsiveRefreshRate:500,navText:["",""],responsive:{0:{items:1},768:{items:2},1200:{items:2},1800:{items:3}}})}function BindProfileSlideshow(){var n=$(".profile-manager-feed-wrapper .feed-carousel");n.owlCarousel({autoplay:!0,loop:!0,lazyLoad:!1,dots:!1,autoplayTimeout:8e3,autoplayHoverPause:!0,responsiveRefreshRate:500,autoplayHoverPause:!0,navText:["",""],responsive:{0:{items:1},768:{items:1},1200:{items:1},1800:{items:1}}});$(".feed-controls .next").click(function(){n.trigger("next.owl.carousel")});$(".feed-controls .prev").click(function(){n.trigger("prev.owl.carousel")})}function WebForm_OnSubmit(){var n,t,i;if(typeof ValidatorOnSubmit=="function"&&ValidatorOnSubmit()==!1){for(n in Page_Validators)try{if(!Page_Validators[n].isvalid){t=Page_Validators[n].controltovalidate!=undefined?$("#"+Page_Validators[n].controltovalidate):$("#"+Page_Validators[n].id);i=t.offset().top;$("html, body").animate({scrollTop:i-200},800);t.focus();return}}catch(r){}return!1}return!0}function applyInlineColorToChildren(n,t){var i=$(n),r;if(i.length!==0){var f="div, p, a, span, li, h1, h2, h3, h4, h5, h6",u=i.find(f);if(t){if(r=i.css("color"),!r)return;u.each(function(){var n=this.style.getPropertyPriority("color");n!=="important"&&$(this).css("color",r)})}else u.each(function(){var n=this.style.getPropertyPriority("color");n!=="important"&&$(this).css("color","")})}}function GenerateScrollUp(n){$(n).each(function(){if(!$(this).hasClass("ui-accordion-header")){var n="";n=$(this).text();n=n.replace("#","");$(this).html(n+" <a href='#anchor-menu' title='scroll to top' class='scrollTo-top'><span class='spak-icon fa fa-1 fa-arrow-circle-up'><\/span><span class='sr-only'>scroll to top<\/span>")}})}function updateSocialsArrows(n){n==="instagram-feed"?($(".socials-facebook-prev, .socials-facebook-next").hide(),$(".socials-instagram-prev, .socials-instagram-next").show()):($(".socials-instagram-prev, .socials-instagram-next").hide(),$(".socials-facebook-prev, .socials-facebook-next").show())}function BindFacebookSwiper(){if(typeof Swiper!="undefined"&&!facebookSwiper){var n=$("#wall > .post-wrap");n.length&&n.children(".fb-item").length!==0&&(n.wrap('<div class="swiper fb-swiper"><\/div>'),n.addClass("swiper-wrapper"),n.children(".fb-item").addClass("swiper-slide"),facebookSwiper=new Swiper("#wall .fb-swiper",{slidesPerView:2.2,spaceBetween:16,loop:!0,autoplay:{delay:5e3,disableOnInteraction:!1},navigation:{nextEl:".socials-facebook-next",prevEl:".socials-facebook-prev"},breakpoints:{0:{slidesPerView:2.2,spaceBetween:16},576:{slidesPerView:2,spaceBetween:20},768:{slidesPerView:3,spaceBetween:28},992:{slidesPerView:3,spaceBetween:28},1280:{slidesPerView:4,spaceBetween:28}}}))}}function BindInstagramSwiper(){if(typeof Swiper!="undefined"){var n=$("#instagram-feed #instafeed");n.length&&n.children().length!==0&&(n.wrap('<div class="swiper insta-swiper"><\/div>'),n.addClass("swiper-wrapper"),n.children().addClass("swiper-slide"),instagramSwiper=new Swiper("#instagram-feed .insta-swiper",{slidesPerView:2.2,spaceBetween:16,loop:!0,autoplay:{delay:5e3,disableOnInteraction:!1},navigation:{nextEl:".socials-instagram-next",prevEl:".socials-instagram-prev"},breakpoints:{0:{slidesPerView:2.2,spaceBetween:16},576:{slidesPerView:2,spaceBetween:20},768:{slidesPerView:3,spaceBetween:28},992:{slidesPerView:3,spaceBetween:28},1280:{slidesPerView:4,spaceBetween:28}}}))}}function BindHeroSlideshow(){typeof Swiper!="undefined"&&$(".swiper.hero-rotator").length>0&&$(".swiper.hero-rotator").each(function(){var n=$(this),t=new Swiper(".hero-rotator",{spaceBetween:30,effect:"fade",autoplay:!0,autoplaySpeed:8e3,speed:500,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{el:".swiper-pagination",clickable:!0}});n.data("video")==="True"&&n.find("video").each(function(){var n=this,t;n.muted=!0;n.loop=!0;t=n.play();t!==undefined&&t.catch(function(){$(n).one("canplay",function(){n.play().catch(function(){})})})})})}function BindEventsSwiper(){typeof Swiper!="undefined"&&$(".swiper.events-swiper").length>0&&$(".swiper.events-swiper").each(function(){var n=new Swiper(".events-swiper",{slidesPerView:"auto",spaceBetween:16,autoplay:{delay:8e3,disableOnInteraction:!1},autoplay:!0,autoplaySpeed:8e3,speed:500,navigation:{nextEl:".events-swiper-button-next",prevEl:".events-swiper-button-prev"},breakpoints:{0:{slidesPerView:1,slidesOffsetAfter:65},550:{slidesPerView:2},992:{slidesPerView:3},1280:{slidesPerView:4}}})})}function wcagFixes(){$("#nearme .nearme-inner .control .address-search span").removeAttr("unselectable");$(".k-list-container ul").removeAttr("unselectable");$(".k-list-container div").removeAttr("unselectable");$("ul.k-list-ul").removeAttr("unselectable");$("#nearme .nearme-inner .control .address-search span").removeAttr("title");$("#nearme .nearme-inner .control .address-search span").removeAttr("role");$("#nearme .nearme-inner .control .address-search input").removeAttr("role");$("iframe.goog-te-menu-frame").removeAttr("frameborder");$(".ui-widget-content.ui-autocomplete").removeAttr("unselectable");$(".ui-widget-content").removeAttr("unselectable");$(".k-icon").removeAttr("unselectable");$(".k-list-scroller").removeAttr("unselectable");$(".k-list").removeAttr("unselectable");$("link").removeAttr("charset");$("iframe").removeAttr("frameborder");$("iframe.skiptranslate").removeAttr("frameborder");$(".RadCaptcha").removeAttr("disabled");$(".RadCaptcha input").removeAttr("autocomplete");$(".k-input-inner").removeAttr("aria-expanded");$(".events-panel input").removeAttr("autocomplete");$("#weatherwidget-io-0").removeAttr("frameborder");$("#weatherwidget-io-0").removeAttr("scrolling");$(".weatherwidget-io-frame").removeAttr("scrolling");$("video.video-js").removeAttr("poster")}var alertCookieId,facebookSwiper,instagramSwiper,eventsSwiper;$(document).ready(function(){var n,t;if($(function(){$('[data-toggle="tooltip"]').tooltip()}),$(".listing-list.listing-categories").length){$(document).off("
1click",".listing-list.listing-categories .show-cats");$(".listing-list.listing-categories .show-cats").off("click");function n(n){var t=n.closest("div").find("> ul"),i=n.find("span");t.is(":visible")?(t.slideUp("fast"),i.text("Expand"),n.addClass("fa-plus-square").removeClass("fa-minus-square")):(t.slideDown("fast"),i.text("Hide"),n.addClass("fa-minus-square").removeClass("fa-plus-square"))}$(".listing-list.listing-categories li").on("click",function(t){if(!$(t.target).closest(".parent-link").length){var i=$(this).find("> div > .show-cats");i.length&&(t.preventDefault(),n(i))}})}BindLandingPageNav();BindCmsSlideshow();BindProfileSlideshow();BindGallerySlideshow();BindMediaLibrariesSlideshow();loadSpinner();GenerateAnchorMenus();BindDocumentCentreLoginSubmit();BindAccordions();matchHeights();editorContentInserts();BindAlertsFeed();NewsFeedMH();BindImageGalleryInsertedSlideshow();BindEventsSwiper();BindMediaElements();wcagFixes();IsMobileScreen()==!1&&$(".image-gallery-album a, .image-gallery a, .media-libraries a, .media-libraries-item a").imagefill();$("#nav-top").smartmenus({keepHighlighted:!0,keepInViewport:!1,subIndicators:!1,showTimeout:100});$("#nav-top-m").smartmenus({keepHighlighted:!0,keepInViewport:!1,subIndicators:!1,showTimeout:100});$(window).on("load",function(){$("#alert .alertsfeed-outer .alert-wrapper").matchHeight({byRow:!1})});$(window).resize(function(){matchHeights();BindAlertsFeed()});(new WOW).init();$(".ci-image-gallery").find("img").each(function(){$(this).parent().imagefill()});$(".image-gallery-insert a").imagefill();$(".classified-item-grid .classified-content").matchHeight();$(".wcag-text-increase, .wcag-text-decrease").click(function(){matchHeights()});$(".nav-area .nav-btn").on("click",function(){var i=$(this).data("tab"),u=$(this).closest("#home-socials").length>0,n,t;if($(this).closest(".nav-area").find(".nav-btn").removeClass("active"),$(this).closest("section, #home-socials, #home-newsfeed").find(".feed-area .feed").removeClass("active"),$(this).addClass("active"),$("#"+i).addClass("active"),u&&i==="instagram-feed"&&!instagramSwiper){var f=window.pageYOffset||document.documentElement.scrollTop,r=$("html"),e=r.css("overflow");r.css("overflow","hidden");BindInstagramSwiper();r.css("overflow",e);window.scrollTo(0,f)}u&&(n=$("#socials-follow-link"),t=$("#socials-follow-link-mobile"),i==="instagram-feed"?(n.attr("href",n.data("instagram-url")||"https://www.instagram.com/shireofmerredin/"),t.attr("href",t.data("instagram-url")||"https://www.instagram.com/shireofmerredin/"),instagramSwiper&&instagramSwiper.update()):(n.attr("href",n.data("facebook-url")||"https://www.facebook.com/ShireofMerredin/"),t.attr("href",t.data("facebook-url")||"https://www.facebook.com/ShireofMerredin/")),updateSocialsArrows(i))});$("#home-socials").length>0&&updateSocialsArrows("facebook-feed");n=$("#home-quicklinks li:gt(7)").detach();n.length>0?(t=$('<div class="quicklinks-overflow" style="display:none;"><ul class="quicklink-nav quicklink-nav--overflow"><\/ul><\/div>'),t.find("ul").append(n),$("#home-quicklinks .quicklink-nav").after(t)):$(".quick-links-btn").hide();$("#toggleQuickLinks").click(function(){let t=$(this).attr("data-state")==="collapsed";var n=$("#home-quicklinks .quicklinks-overflow");t?(n.slideDown(350),$(this).html('See fewer links <i class="fa-regular fa-angle-up">'),$(this).attr("data-state","expanded")):(n.slideUp(350),$(this).html('See more links <i class="fa-regular fa-angle-down">'),$(this).attr("data-state","collapsed"))})});alertCookieId="SparkCMS-AlertFeed";facebookSwiper=null;instagramSwiper=null;BindHeroSlideshow();eventsSwiper=null;BindEventsSwiper();$(window).on("resize",function(){BindEventsSwiper()});(function(){function n(){var n=document.querySelector('input[name="searchInputHeader"]');n&&(n.placeholder=window.innerWidth<768?"Search here...":"Search services, events, news...")}n();window.addEventListener("resize",n)})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.