PageSourceSearch

https://www.visitbath.co.uk/JsHandlerMin/webteamsharedjs/slick.min…/javascript/wcag_v63924382382.js

js visitbath.co.uk collected 2026-10-02 03:00:01 UTC 250,979 bytes, 51 lines download raw bytes

vendor: 8,083 bytes, line 1
1!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(t).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):!0===o?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),!1===s.options.vertical?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===s.options.vertical?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};!1===e.options.fade?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(!1===i.options.infinite&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1==0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,t,o=this;if(!0===o.options.dots){for(o.$slider.addClass("slick-dotted"),t=i("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.o
vendor: 3,442 bytes, line 1
1ptions.rows>1){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(!1===r.originalSettings.mobileFirst?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||!1===l||r.$slider.trigger("breakpoint",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is("a")&&e.preventDefault(),l.is("li")||(l=l.closest("li")),n=r.slideCount%r.options.slidesToScroll!=0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,t);break;case"next":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case"index":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(i){var e,t;if(e=this.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var o in e){if(i<e[o]){i=t;break}t=e[o]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.
1slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>1&&((i=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){!1===this.shouldClick&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){i(this).attr("style",i(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;!1===t.cssTransitions?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;!1===e.cssTransitions?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=o.is(":focus"),e.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(!0===i.options.infinite)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(!0===i.options.centerMode)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!=0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,!0===n.options.variableWidth&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===n.options.centerMode&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){return this.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(!1===e.options.infinite?i=e.slideCount:(t=-1*e.options.slidesToScroll,o=-1*e.options.slidesToScroll,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o=this;return t=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(s,n){if(n.offsetLeft-t+i(n).outerWidth()/2>-1*o.swipeLeft)return e=n,!1}),Math.abs(i(e).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){this.changeSlide({data:{message:"index",index:
1parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){var s=o.indexOf(t);i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),-1!==s&&i(this).attr({"aria-describedby":"slick-slide-control"+e.instanceUid+s})}),e.$dots.attr("role","tablist").find("li").each(function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.$slides.eq(s).attr("tabindex",0);e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),!0===i.options.accessibility&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&i("li",e.$dots).on("mouseenter.slick",i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"}
1,e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===i.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){i("img[data-lazy]",e).each(function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),s=i(this).attr("data-sizes")||n.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0}
vendor: 5,619 bytes, line 1
1,100,function(){o&&(e.attr("srcset",o),s&&e.attr("sizes",s)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),n.$slider.trigger("lazyLoaded",[n,e,t])})},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,e,t])},r.src=t})}var t,o,s,n=this;if(!0===n.options.centerMode?!0===n.options.infinite?s=(o=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(o=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),s=n.options.slidesToShow/2+1+2+n.currentSlide):(o=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,s=Math.ceil(o+n.options.slidesToShow),!0===n.options.fade&&(o>0&&o--,s<=n.slideCount&&s++)),t=n.$slider.find(".slick-slide").slice(o,s),"anticipated"===n.options.lazyLoad)for(var r=o-1,l=s,d=n.$slider.find(".slick-slide"),a=0;a<n.options.slidesToScroll;a++)r<0&&(r=n.slideCount-1),t=(t=t.add(d.eq(r))).add(d.eq(l)),r--,l++;e(t),n.slideCount<=n.options.slidesToShow?e(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?e(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&e(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&(t.initADA(),t.options.focusOnChange&&i(t.$slides.get(t.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===l.options.adaptiveHeight&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||"window";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;if(i="boolean"==typeof i?!0===(e=i)?0:o.slideCount-1:!0===e?--i:i,o.slideCount<1||i<0||i>o.slideCount-1)return!1;o.unload(),!0===t?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},e.prototype.setCSS=function(i){var e,t,o=this,s={};
1!0===o.options.rtl&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,!1===o.transformsEnabled?o.$slideTrack.css(s):(s={},!1===o.cssTransitions?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;!1===i.options.vertical?!0===i.options.centerMode&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),!0===i.options.centerMode&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),!1===i.options.vertical&&!1===i.options.variableWidth?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):!0===i.options.variableWidth?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();!1===i.options.variableWidth&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,!0===t.options.rtl?i(s).css({position:"relative",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}
1):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,function(i,e){r.options[i]=e});else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),!1===i.options.fade?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=!0===i.options.vertical?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===i.options.useCSS&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&!1!==i.animType&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&!1!==i.animType},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),!0===n.options.centerMode){var r=n.options.slidesToShow%2==0?1:0;e=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=!0===n.options.infinite?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));s||(s=0),t.slideCount<=t.options.slidesToShow?t.slideHandler(s,!1,!0):t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===i))if(!1===e&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(i<0||i>a.getDotCount()*a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else if(!1===a.options.infinite&&!0===a.options.centerMode&&(i<0||i>a.slideCount-a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else{if(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+
1o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=(l=a.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade)return!0!==t?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight();!0!==t?a.animateSlide(d,function(){a.postSlide(s)}):a.postSlide(s)}},e.prototype.startLoad=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),(o=Math.round(180*t/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0?!1===s.options.rtl?"left":"right":o<=360&&o>=315?!1===s.options.rtl?"left":"right":o>=135&&o<=225?!1===s.options.rtl?"right":"left":!0===s.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==i.type.indexOf("mouse")))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(!0===l.options.verticalSwiping&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(!1===l.options.rtl?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),!0===l.options.verticalSwiping&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,!1===l.options.infinite&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),!1===l.options.vertical?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,!0===l.options.verticalSwiping&&(l.swipeLeft=e+o*s),!0!==l.options.fade&&!1!==l.options.touchMove&&(!0===l.animating?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,t.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
1,e.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i=this;Math.floor(i.options.slidesToShow/2),!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&!i.options.infinite&&(i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-i.options.slidesToShow&&!1===i.options.centerMode?(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-1&&!0===i.options.centerMode&&(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||void 0===s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),void 0!==t)return t;return o}});
2(function(){var $404MessageSearchResultsContainer=$(".messageFor404SearchResults");if($404MessageSearchResultsContainer.length===0){return;}var $siteSearchForm=$(".ctl_SiteSearchForm form");if($siteSearchForm.length===0){return;}var arrUrlSegments=top.location.href.split('/');var strLastUrlSegment=arrUrlSegments[arrUrlSegments.length-1];if(!strLastUrlSegment){return;}var arrWords=strLastUrlSegment.split('-');var strLastWord=arrWords[arrWords.length-1];if((arrWords.length<2)||!/^p\d+$/.test(strLastWord)){return;}arrWords.splice(arrWords.length-1,1);$.get($siteSearchForm[0].action+'?search='+encodeURIComponent(arrWords.join(' ')),function(data){var $html=$(data);var $searchResults=$html.find('.ctl_SiteSearchResults');var $resultsTables=$searchResults.find('table.sitesearchresults');if(($searchResults.length===0)||($resultsTables.length===0)){return;}$('body').addClass("is404PageThatPerformedSearchFor");$404MessageSearchResultsContainer.append($searchResults);$searchResults.find('td.seemore a').each(function(){currentSeeMoreLink=$(this).attr('href');$(this).attr("href",$siteSearchForm[0].action+currentSeeMoreLink);});});}());
3(function($){$.fn.isOnScreenWeb=function(intOptionalPreviewDistanceInPixels){if(!this.is(":visible")){return false;}var win=$(window);var viewport={top:win.scrollTop(),left:win.scrollLeft()};viewport.right=viewport.left+win.width();viewport.bottom=viewport.top+win.height();var bounds=this.offset();bounds.right=bounds.left+this[0].offsetWidth;bounds.bottom=bounds.top+this[0].offsetHeight;if(intOptionalPreviewDistanceInPixels){intOptionalPreviewDistanceInPixels=parseInt(intOptionalPreviewDistanceInPixels,10);if(!isNaN(intOptionalPreviewDistanceInPixels)){bounds.top-=intOptionalPreviewDistanceInPixels;bounds.left-=intOptionalPreviewDistanceInPixels;bounds.bottom+=intOptionalPreviewDistanceInPixels;bounds.right+=intOptionalPreviewDistanceInPixels;}}return((viewport.right>=bounds.left)&&(viewport.left<=bounds.right)&&(viewport.bottom>=bounds.top)&&(viewport.top<=bounds.bottom));};})(jQuery);
4NewMind.registerNameSpace("NewMind.Site").BreakPoints=(function(){function getForClassName(strClassName){var strSharedClassName="breakpointCanary";var $ele=$("."+strSharedClassName+"."+strClassName);if($ele.length>0){return $ele;}$ele=$("<div class=\""+strSharedClassName+" "+strClassName+"\" />");$("body").append($ele);return $ele;}return{IsNarrowMobileOnly:function(){return getForClassName("IsNarrowMobileOnly").is(":visible");},IsMobileOnly:function(){return getForClassName("IsMobileOnly").is(":visible");},IsTabletPortraitOnly:function(){return getForClassName("IsTabletPortraitOnly").is(":visible");},IsSmallTabletLandscapeOnly:function(){return getForClassName("IsTabletLandscapeOnly").is(":visible");},IsBigTabletLandscapeOnly:function(){return getForClassName("IsBigTabletLandscapeOnly").is(":visible");},IsSuperDesktopOnly:function(){return getForClassName("IsSuperDesktopOnly").is(":visible");}};}());
5$(document).ready(function(){if($("div.fullWidthSite").length){$("div.navigationMain ul li ul.sub").each(function(){$(this).find('div.menurow').wrapAll('<div class="InnerNavigation">');});}});
6NewMind.registerNameSpace("NewMind.Site");(function(){function SlickEnabledScroll(target){var slideToShowDefault,slideToShowDefault1450;if($('body.whatsOn').length>0){slideToShowDefault='3';slideToShowDefault1450='3';}else if($('div.fullWidthSite').length>0){slideToShowDefault='4';slideToShowDefault1450='4';}else{slideToShowDefault='3';slideToShowDefault1450='3';}var slickSettings={infinite:true,speed:300,slidesToShow:slideToShowDefault,slidesToScroll:1,appendArrows:$(target).find('span.slickArrows'),prevArrow:'<div class="slickArrow slickArrowPrev" aria-label="Previous"></div>',nextArrow:'<div class="slickArrow slickArrowNext" aria-label="Next"></div>',responsive:[{breakpoint:1450,settings:{slidesToShow:slideToShowDefault1450,slidesToScroll:1}},{breakpoint:994,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:780,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]};if($('body.whatsOn').length>0){if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()){slickSettings.appendArrows=$(target).find('span.slickArrows');}else{slickSettings.appendArrows=$(target).find('div.GroupWrapper');}}$(target).find('div.GroupWrapper div.HighlightGroup div.ItemWrapper').slick(slickSettings);$(target).find("div.slickArrowPrev").keypress(function(event){if(event.keyCode==13){$(this).trigger("click");}});$(target).find("div.slickArrowNext").keypress(function(event){if(event.keyCode==13){$(this).trigger("click");}});}SlickEnabledScroll('div.slickEnabled1');SlickEnabledScroll('div.slickEnabled2');SlickEnabledScroll('div.slickEnabled3');$("div.slickArrow").attr("tabindex","0");})();$(document).ready(function(){$("body").addClass("JS");if("ontouchstart" in document.documentElement){$('body').addClass('touchScreen');}else{$('body').addClass('non-touch');}$(".itineraryIdeas tr").each(function(i){$(this).find("img").insertBefore($(this).find("h3"));});$('.ChannelSiteDropdown span').toggle(function(){$(".NavChannelSitesDropdown").slideDown('fast');}
6,function(){$(".NavChannelSitesDropdown").slideUp('fast');});$('.SignUpSiteDropdown span').toggle(function(){$(".SignUpSitesDropdown").slideDown('fast');},function(){$(".SignUpSitesDropdown").slideUp('fast');});$(".consumerLogin .disclaimer ul.options li").eq(1).hide();$(".consumerLogin .disclaimer ul.options li").eq(2).hide();$(".consumerLogin .disclaimer ul.options li").eq(3).hide();$('.megamenu ul li.toplevel:last-child').addClass("toplevelLast");if($('.fourthLevelNav ul.flatlist').length==0){$('.fourthLevelNav').hide();}$("div.navigationMain ul li ul div.menurow > li").each(function(i){if($(this).find('ul.sub2').length==0)$(this).find('a.navTitle').css("background","none");});$('.navigationExplore .exploreRow div.exploreCell:last-child').addClass('last');$('.navigationExplore .exploreRow div.exploreCell:nth-child(2)').addClass('middle');$('.navigationExplore div.exploreRow:last-child').addClass('last');$('div.navigationExplore div.exploreNav div.exploreRow div.exploreCell ul.sub li:last-child').addClass('exploreLastChild');$('.navigationFooter ul li:last-child a').css('border','none');$('.navigationFooter ul li:first-child a').css('padding-left','0');$('div.ctl_BlogPostListControl div.blogpostlist article.blogpost:last-child').css("border-bottom","none").css("margin-bottom","0").css("margin-bottom","0");$("div.blogTitle div.blogWrapper").insertBefore('div.BlogPostListHome div.blogpostlist article.blogpost:first-child');if($('.stage3 #rightCol .recentlyViewed ol.recentlyViewed li').length==0){$('.stage3 #rightCol .recentlyViewed').addClass("hideTitle");}$(".bannerAdColumn").children().each(function(i){$(this).addClass("item"+(i+1));});$(".consumerLogin form.consumerLogin").each(function(i){$(this).addClass("item"+(i+1));});$(".bookingStages img").each(function(i){$(this).addClass("item"+(i+1));});$("div.productListHome ol.productListHome").children().each(function(i){$(this).addClass("item"+(i+1));});$(".flex-direction-nav").children().each(function(i){$(this).addClass("item"+(i+1));});NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $(".banners a.BannerAdLoadingPlaceHolder").length==0;},MaxNumberOfAttempts:200,Success:function(){$(".banners a").each(function(i){$(this).wrapAll('<li>').parent().addClass("item"+(i+1));});}});NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $(".bannerAdColumn a.BannerAdLoadingPlaceHolder").length==0;},MaxNumberOfAttempts:200,Success:function(){$(".bannerAdColumn a").each(function(i){$(this).wrapAll('<li>').parent().addClass("item"+(i+1));});}});
6$('a#mapShowHideLink').prepend('<span class="toggle"></span>');if($('body').hasClass('touchScreen')){$('.content p').css("line-height","27px");}$('div.bookingCheckout div.disclaimer ul.options li:nth-child(5) input').attr('checked',false);$('div.bookingCheckout div.disclaimer ul.options li:nth-child(2) input').attr('checked',false).parent().hide();$('div.bookingCheckout div.disclaimer ul.options li:nth-child(3) input').attr('checked',false).parent().hide();$('div.bookingCheckout div.disclaimer ul.options li:nth-child(4) input').attr('checked',false).parent().hide();$('div.consumerLogin div.disclaimer ul.options li input').attr('checked',true);$('div.consumerLogin div.disclaimer ul.options li:nth-child(5) input').attr('checked',false);$('.navigationUtility ul li a').attr('target','_blank');$('.featuredPagesSocial ul li a').attr('target','_blank');$('div.refineBy form#refinesearch fieldset.refineprice div.labelContainer label:nth-child(1)').hide();$('body').addClass('clearfix');$('div.bookingAvailSearchCollapse').prepend('<span class="toggle"></span>');$('div.searchAgain form.refineBySearchForm').children().wrapAll("<div class='searchAgainInner' />");function dropDown(element){$element=$(element);if($element.hasClass('active')){$element.slideUp();$element.removeClass('active');}else{$element.slideDown();$element.addClass('active');}}function resetDropDown(element){$element=$(element);if($element.hasClass('active')){$element.slideUp('slow');$element.removeClass('active');}}$('div.searchAgain form.refineBySearchForm').hide();$("div.searchAgain .accommodationSearchImg span.ir").attr("tabindex","0");$('div.searchAgain .accommodationSearchImg span.ir').keypress(function(event){if(event.keyCode==13){$(this).trigger("click");}});$('div.searchAgain .accommodationSearchImg span.ir').click(function(){resetDropDown('div.refineBy form#refinesearch');dropDown('div.searchAgain form.refineBySearchForm');});function GoogleMapMobileTabs(){$('div.interactiveMaps .MapWrapper > div').each(function(i){$(this).addClass("item"+i);i++;$(this).prepend('<ul></ul>');});var $TabList=$('div.interactiveMaps .Tabs ol li');$TabList.each(function(i){$(this).clone().appendTo('div.interactiveMaps .MapWrapper > div.item'+i+' ul');i++;});var $mobileTabList=$('div.interactiveMaps .MapWrapper > div > ul > li');$mobileTabList.click(function(event){$(this).find('a').removeAttr('href');event.preventDefault();$mobileTabList.removeClass('selected');$(this).addClass('selected');var firstClass=($(this).attr('class').split(' ')[0]);$('div.interactiveMaps .Tabs ol li.'+firstClass+' a').click();});}NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $("div.StandaloneGoogleMap div.Tabs ol li").length>0;},MaxNumberOfAttempts:200,Success:function(){GoogleMapMobileTabs();}});(function(){var $mediaControl=$("div.mediaHeaderFull");function mediaGalleryWrapping(){if($mediaControl.length>0){var $galItems=$mediaControl.find("div.galItem");var $galControls=$mediaControl.find("ul.galControls");if($galItems.length<1)return;if($galItems.length>1)$($mediaControl).addClass("mediaHeaderFullIcons");NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $("div.mediaHeaderFull div.content").length>0;},MaxNumberOfAttempts:200,Success:function(){$($galControls).insertAfter("div.mediaHeaderFull div.content");var $galItem=$($galControls).wrapAll("<div class='galControlsWrapper' />");}});$galItems.each(function(){var $item=$(this);var $details=$item.find("h3, p");$details.wrapAll("<div class='mediaNoteInner' />");});}}mediaGalleryWrapping();})();if($('div.mediaHeaderFull').length>0){$('div#navigationOutsideWrapper').addClass('hideBorder');}$("div.youtubePlaylist .ytPlaylistWrapper .ytPlaylist ol.ytPlaylist li.video").click(function(){$("html, body").animate({scrollTop:$("div.youtubePlaylist").offset().top-40},"slow");});function mergeFacilitiesToOneFieldset(){var $target=$('div.productSearchWrapperFacility fieldset');if($target.length>1){var newFacility="<fieldset class='oneFacilityGroup'><ul class='facility'></ul></fieldset>";
6$('div.productSearchWrapperFacility span.fieldwide').append(newFacility);$target.each(function(){$(this).find('li').appendTo('fieldset.oneFacilityGroup > ul');$(this).remove();});}}NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $("div.productSearchWrapperFacility fieldset").length>0;},MaxNumberOfAttempts:200,Success:function(){mergeFacilitiesToOneFieldset();}});if($('div.specialOfferDetail.specialOfferDetailLow ol.offersList li.ll1'||'div.specialOfferDetail.specialOfferDetailLow ol.offersList li.ll2').length>0){$('div.specialOfferDetailLow h2.offerSectionTitle').show();}if($('body').hasClass('homeOrderChange')){$('div.wrapperFullWidthFeaturedItems').insertBefore("div.searchWrapperTabsPro");$('div.wrapperFullWidthFeaturedItems div.featuredItems h2.ControlTitle').hide();$('div.wrapperFullWidthMedia').insertAfter("div.searchWrapperPro");}if($('div.featuredItemsTitle').length>0){$('div.featuredItems h2.ControlTitle').css("display","none");}if($('div.wrapperFullWidthMedia div.wrapper>ol>li').length===0){if($('div.mediaHeaderFull div.galItem').length===0){if($('div.featuredItemsScroll div.wrapper>ol>li').length===0){$('div#headerWrapper').addClass('ForceColor');}}}function FeaturedItemsLearnMore(target){$(target).find('div.wrapper ol li').each(function(){if($(this).hasClass('NoLink')){}else{var link=$(this).find('div.title a').attr('href');$(this).find('div.description').append('<a>Learn more</a>');$(this).find('div.description a').attr("href",link);}});}FeaturedItemsLearnMore('div.featuredItemsPanoramic');FeaturedItemsLearnMore('div.featuredItemsBlog');FeaturedItemsLearnMore('div.featuredItemsPortrait');FeaturedItemsLearnMore('div.featuredItemsThreeQuarters');if($('div.wrapperFullWidthDMSBannerOne div.fullWidthInnerWrapper div.bannerad').length==0){$('div.wrapperFullWidthDMSBannerOne').hide();}if($('div.wrapperFullWidthDMSBannerTwo div.fullWidthInnerWrapper div.bannerad').length==0){$('div.wrapperFullWidthDMSBannerTwo').hide();}$(window).scroll(function(){var scroll=$(window).scrollTop();if(scroll>=120){$("div.hamburgerMenu").addClass("headerFixed");$("body").addClass("headerFixed");}else{$("div.hamburgerMenu").addClass("headerFixed");$("body").removeClass("headerFixed");}});if($('body').hasClass('home')){}else{$('div.featuredItems div.wrapper ol li.BlogEntryBlock div.item-content div.published').html('Blog');}$(document).keydown(function(event){if(event.altKey&&event.which===52){if($('body').hasClass('mainMenuActive')){$('div.closeButtonWrapper').trigger('click');e.preventDefault();}else{$('div.hamburgerIcon').trigger('click');event.preventDefault();}}});$(document).keydown(function(event){if(event.altKey&&event.which===49){$('div#headerWrapper div#header div.mediaLogo ul li.mediaLogoSite a img').trigger('click');event.preventDefault();}});function dropDown(element){$element=$(element);if($element.hasClass('active')){$element.slideUp();$element.removeClass('active');}else{$element.slideDown();$element.addClass('active');}}function resetDropDown(element){$element=$(element);if($element.hasClass('active')){$element.slideUp('slow');$element.removeClass('active');}}if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()){if($('body').hasClass('ProductSearchSwitcher')){$('div#filterAnchor form#refinesearch').hide();$("div#filterAnchor h2.ir").attr("tabindex","0");$('div#filterAnchor h2.ir').keypress(function(event){if(event.keyCode==13){$(this).trigger("click");}});$('div#filterAnchor h2.ir').click(function(){resetDropDown('div#again form.refineBySearchForm');dropDown('div#filterAnchor form#refinesearch');});}else{$('.refineBy form#refinesearch').hide();$(".refineBy h2.ir").attr("tabindex","0");$('.refineBy h2.ir').keypress(function(event){if(event.keyCode==13){$(this).trigger("click");}});$('.refineBy h2.ir').click(function(){resetDropDown('div#filterAnchor form.refineBySearchForm');dropDown('.refineBy form#refinesearch');});}}(function(){function sideSearch(){if($('body').hasClass('stage3')||$('body').hasClass('blogRead')||$('body').hasClass('stage1')||$('body').hasClass('ProductSearchSwitcher.stage2')||$('body').hasClass('ProductSearchSwitcher.stage3')){}else{$('div.sideSearch').click(function(){$(this).toggleClass('searchOpen');$('div#productSearchOverlay, div#header, body').addClass('productSearchOverlayOpen');});var editorialOffset=$('div.pageTitle').offset().top;$('div.sideSearch').css('top',editorialOffset);$(window).scroll(function(){var scroll=$(window).scrollTop();var editorialOffset=$('div.pageTitle').offset().top;$('div.sideSearch').css('top',editorialOffset);if(scroll>=editorialOffset-170){$('div.sideSearch').removeClass('static');$('div.sideSearch').addClass('fixed');}else{$('div.sideSearch').removeClass('fixed');$('div.sideSearch').addClass('static');}});}}sideSearch();})();$("div.BlogPostList div.blogpostlist article.blogpost").each(function(){var blogLink=$(this).find('.blogpostheader a').attr('href');$(this).find('img').wrap('<div class="link"><a href="'+blogLink+'"></a></div>');});if(!$('.crowdriffWidget').length){$('.instaTitle').hide();}(function(){function generateSpecialOfferLink(){$("div.productList div.ProductListMain ol.productList>li").each(function(){if($(this).find('div.offers').length>0){var productDetailOfferLink=$(this).find('.ProductName a').attr('href');var offerTarget=$(this).find('div.centerBlock div.offers');$('<p class="offerLink"><a href="'+productDetailOfferLink+'#offers"> Special Offer </a></p>').insertAfter(offerTarget);}var keyFacilities=$(this).find('div.keyFacilities');$(this).find('div.facilityWrapper').append(keyFacilities);});if(window.location.href.indexOf("#offers")>-1){$('html, body').animate({scrollTop:$("div.productDetailOffers").offset().top-250},2000);}}$(document).ready(generateSpecialOfferLink);if(NewMind.ETWP.ProductList){NewMind.ETWP.ProductList.listLoaded.subscribe(generateSpecialOfferLink);if($('div.refineBy').length){NewMind.ETWP.RefineSearchSummary.refinementStart.subscribe(generateSpecialOfferLink);NewMind.ETWP.RefineSearchSummary.refinementCompleteCallBack.subscribe(generateSpecialOfferLink);NewMind.ETWP.RefineSearchSummary.refinementAddedCallBack.subscribe(generateSpecialOfferLink);NewMind.ETWP.RefineSearchSummary.refinementRemovedCallBack.subscribe(generateSpecialOfferLink);NewMind.ETWP.RefineSearchSummary.productDataLoadedCallBack.subscribe(generateSpecialOfferLink);}};})();if($('div.EventSubmissionForm').length>0){$('div.statementofconfirmation').appendTo('fieldset.ImageUploads');}});
7(function(){$(".productDetailFacilities").each(function(i){var facilityGroup=$(this).find('.facilities ul');
7if($(this).hasClass('productDetailFacilitiesBeyonk')){}else{facilityGroup.prev('h3').andSelf().wrapAll('<div class="facilityGroup"/>');}});$(".productDetailFacilities .facilities .facilityGroup").each(function(i){$(this).addClass("item"+(i+1));});$(".productDetailFacilities .facilities .facilityGroup").wrapAll("<div class='facilityGroupWrapperOutside'></div>");var $pArr=$('.productDetailFacilities .facilities .facilityGroup');var pArrLen=$pArr.length;for(var i=0;i<pArrLen;i+=3){$pArr.filter(':eq('+i+'),:eq('+(i+1)+'),:eq('+(i+2)+')').wrapAll('<div class="facilityGroupWrapper" />');};if($('div.productDetailFacilities div.facilities h2').length==0){$('div.productDetailFacilities span.closeFacilties').hide();}$('div.productDetailFacilities div.facilities h2').click(function(){$(this).toggleClass('prodDetailDropdownOpen');$('div.productDetailFacilities div.facilities div.facilityGroupWrapperOutside').slideToggle();});$('div.productDetailFacilities span.closeFacilties').click(function(){$('div.productDetailFacilities div.facilities h2').toggleClass('prodDetailDropdownOpen');$('div.productDetailFacilities div.facilities div.facilityGroupWrapperOutside').slideToggle();$(this).children('p').html()=="Hide Facilities"?$(this).children('p').html('Show Facilities'):$(this).children('p').html('Hide Facilities');});$('div.rightCol div.productDetailMap').find('p.locationMapLink a').prop('onclick',null);function mapDirectionsProductDetail(){$('div.rightCol div.productDetailMap').find('p.locationMapLink a').click(function(){$('html, body').animate({scrollTop:$("div.whatsNearbyOuterWrapper").offset().top-250},2000);setTimeout(function(){$('div.whatsNearbyOuterWrapper div.whatsNearbywrapper div.productDetailMap p.locationMapLink a').trigger('click');},2000);});}mapDirectionsProductDetail();(function(){function stickyContact(){if($('body').hasClass('stage3')){if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()||NewMind.Site.BreakPoints.IsTabletPortraitOnly()){}else{$(window).scroll(function(){var scroll=$(window).scrollTop();var stickyOffset=$('div.productDetailHeaderRight').offset().top;var leftOffset=$('div.productDetailHeaderRight').offset().left;var width=$('div.productDetailHeaderRight').width();var instagramWidgetOffset=$('div.InstagramSnapwidget').offset().top;if((scroll>=stickyOffset-100)&&(scroll<=instagramWidgetOffset-300)){$('div.productDetailHeaderRight').addClass('fixed');$('div.productDetailHeaderRight').removeClass('initial');$('div.productDetailHeaderRight').css('left',leftOffset);$('div.productDetailHeaderRight').css('width',width);}else{$('div.productDetailHeaderRight').removeClass('fixed');$('div.productDetailHeaderRight').addClass('initial');}});}}}stickyContact();$(window).resize(stickyContact);})();if($('body').hasClass('ttd')||$('body').hasClass('whatsOn')){$('div.productDetailHeader').find('div.priceFrom').prepend("<span class='guidePrice'>Guide price</span>");}$('div.productDetailHeader').find('p.bookonline a img').attr("src","/images/booking/booknow.png");if($('div.productDetailHeaderRight').hasClass('fixed')||$('div.productDetailHeaderRight div.bookOnline p.bookonline').length==0){$('div.productDetailHeaderRight div.website').css('padding-top','0');}if($('div.productDetailHeaderRight div.email').length==0||$('div.productDetailHeaderRight div.telephone').length==0){$('div.productDetailHeaderRight div.website').css('border-bottom','1px solid #0c5f55');}if($('div.productDetailHeaderRight div.website').length==0&&$('div.productDetailHeaderRight div.email').length==0){$('div.productDetailHeaderRight div.telephone').css('border-top','1px solid #0c5f55');}$(".productDetail").each(function(i){if($(this).children().length==0)$(this).addClass("empty");});$(".productDetail .PublicTransportWrapper").each(function(i){if($(this).children().length==0)$(this).parent().addClass("empty");});var mapTitle=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customText.js.mapTitle","Map");if($('div.productDetailMap .PublicTransportWrapper .roaddirections'||'div.productDetailMap .PublicTransportWrapper .publicdirections').length==0){$('body.en-gb div.productDetailMap h2').html(mapTitle);}if($('.whatsNearby').length===0){$('.whatsNearbyOuterWrapper').hide();}if($('.socialMediaWidgetFacebook .socialmediaitem').length==0){$('.FacebookWidgetDetail').hide();}$('div.bookingAvailabilityCalendar div#calendarControl fieldset#AvCalControl form#calendarForm div.form div.row span.field input#availcalsubmit').click(function(){setTimeout(function(){$("body.ProductTypeACCO").addClass('availabilityCalendarUsed');},4000);});function moveGradingItems(){$("div.productDetailAwardsGradings div.gradings ul li").wrapInner("<div class='gradingText'></div>");$("div.productDetailAwardsGradings div.gradings").each(function(i){$(this).find('ul.grading li').each(function(i){var obtainText=$(this).find('.gradingText').text();obtainText=obtainText.replace(/\s/g,'').replace(/&/g,"and");;$(this).addClass('class'+obtainText+'');});$(this).find('img').each(function(i){var obtainTitleText=$(this).attr('title');$(this).removeClass('gradingLogoImg');obtainTitleText=obtainTitleText.replace(/\s/g,'').replace(/&/g,"and");;$(this).addClass('class'+obtainTitleText+'');});});$("div.productDetailAwardsGradings div.gradings img").each(function(i){var eachItemsClass=$(this).attr('class');$(this).appendTo($('ul.grading li.'+eachItemsClass+''));});}moveGradingItems();if($('.productDetail div').children().length==0){$('.productDetail').addClass("hide");}$("div.productDetailRelEvents").each(function(i){$(this).find('div.relatedEvents').children().not(':first-child').wrapAll('<div class="relatedProductsWra
7pper" />');});$("div.productDetailRelProd").each(function(i){$(this).find('div.relatedProducts').children().not(':first-child').wrapAll('<div class="relatedProductsWrapper" />');});if($('.productDetail div.TADetail').length==0){$('.productDetail h2.tripAdvisorTitle').addClass("hide");}function stripParenthesis(node){if(node.length){node.contents().each(function(index,child){if(child.nodeType===3){child.nodeValue=child.nodeValue.replace(/\(|\)/g,'');}else{stripParenthesis($(child));}});}}stripParenthesis($('div.productDetailOpening div.openingTimes table.dates > thead > tr > th > span.date'));if($('body').hasClass('ProductSearchSwitcher stage3')){NewMind.ETWP.ProductDetails.SetupTelephonePopup=function(){$(".ctl_ProductDetail .telephone .TBShowButton").live("click",function(e){e.preventDefault();var $telephoneNumber=$(this).parent().children(".telephonenumber");$telephoneNumber.show();});$(".ctl_ProductDetail .telephone a.TBCloseButton").live("click",function(e){e.preventDefault();$(this).parent().hide();});};NewMind.ETWP.ProductDetails.SetupTelephonePopup();if($('div.telephone').length>0){var text=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customtext.js.viewPhoneNumber","View Phone Number");$('div.telephone a.TBShowButton').html(text);}}function generateGoogleMapLink(){if($("body").hasClass("stage3.ProductSearchSwitcher")){if((typeof(NewMind)!=="undefined")&&NewMind.Vars&&NewMind.Vars.Page&&NewMind.Vars.Page.ProductKey&&NewMind.ETWP&&NewMind.ETWP.ProductDetails&&NewMind.ETWP.ProductDetails.Location&&NewMind.mapping&&NewMind.ETWP.ProductDetails.Location[NewMind.Vars.Page.ProductKey]){var objLocation=NewMind.ETWP.ProductDetails.Location[NewMind.Vars.Page.ProductKey];$("p.googleMapLink a").attr("href","http://maps.apple.com/?q="+objLocation.Latitude+","+objLocation.Longitude);}}}generateGoogleMapLink();$("div.whatsNearby>form >div.row span label").attr("tabindex","0");$('div.whatsNearby>form >div.row').keypress(function(event){if(event.keyCode==13){$(this).trigger("click");}});$("div.productDetailMap p.locationMapLink a").attr("tabindex","0");$('div.productDetailMap p.locationMapLink a').keypress(function(event){if(event.keyCode==13){$(this).trigger("click");}});if($('div.ctl_Content.productDetailTXGB').length){function txgbTicketApiHasContent(){return $('.TAPIWidget__Results > div').length>0;}function removeEmptyProductDetailTXGB(){$('div.ctl_Content.productDetailTXGB').each(function(){this.outerHTML='';});}var productRemoteID=(typeof NewMind!=='undefined'&&NewMind.Vars&&NewMind.Vars.Page&&NewMind.Vars.Page.ProductRemoteID)||'';if(!productRemoteID){removeEmptyProductDetailTXGB();}else{if(window.ticketapiconfig){var txgbOriginalOnInvalidProduct=window.ticketapiconfig.onInvalidProduct;window.ticketapiconfig.onInvalidProduct=function(){if(typeof txgbOriginalOnInvalidProduct==='function' ){txgbOriginalOnInvalidProduct();return;}removeEmptyProductDetailTXGB();};var txgbOriginalOnHandledPollingError=window.ticketapiconfig.onHandledPollingError;window.ticketapiconfig.onHandledPollingError=function(){if(typeof txgbOriginalOnHandledPollingError==='function' ){txgbOriginalOnHandledPollingError();return;}removeEmptyProductDetailTXGB();};}var txgbTicketApiScript=document.querySelector('script[src*="productdisplaywidget.js"]');if(txgbTicketApiScript){txgbTicketApiScript.addEventListener('error',function(){removeEmptyProductDetailTXGB();});window.setTimeout(function(){if(!$('div.ctl_Content.productDetailTXGB').length||txgbTicketApiHasContent()){return;}var resourceEntries=performance.getEntriesByName(txgbTicketApiScript.src);if(resourceEntries.length&&resourceEntries[0].transferSize===0&&resourceEntries[0].decodedBodySize===0){removeEmptyProductDetailTXGB();}},100);}NewMind.ETWP.PersistentAttempt({Condition:function(){return txgbTicketApiHasContent();},MaxNumberOfAttempts:50,Success:function(){$('div.productDetailHeaderRight').each(function(){var imgSrc=NewMind.ETWP.GetResource("NewMind.env.lang.resources.widgetTXGB.imgSrc","/images/booking/booknow.png");var altText=NewMind.ETWP.GetResource("NewMind.env.lang.resources.widgetTXGB.altText","Book Tickets Button");$(this).find('p.bookonline').hide();$(this).prepend('<div class="node nodeTXGB"><div class="ticketAnchor" title="Book Tickets"><img src="'+imgSrc+'" alt="'+altText+'" /></div></div>');});function animateUser(){$('html, body').animate({scrollTop:$("div.ctl_Content.productDetailTXGB").offset().top-200},1000);}$('div.ticketAnchor').click(function(){animateUser();});function moveButton(){var bookButton=$('div.nodeTXGB');
7if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()||NewMind.Site.BreakPoints.IsTabletPortraitOnly()){$(bookButton).insertAfter('div.productDetailHeader div.TopWrapper div.TopWrapperBottom');}else{$(bookButton).prependTo('div.productDetailHeaderRight ');}}var cachedWidthSpaceFix=$(window).width();$(window).resize(function(){var newWidthSpaceFix=$(window).width();if(newWidthSpaceFix!==cachedWidthSpaceFix){cachedWidthSpaceFix=newWidthSpaceFix;moveButton();}});},Failure:function(){removeEmptyProductDetailTXGB();}});}}function bookingUnitSelectionIsEmpty(){var $unitSelection=$('div.bookingUnitSelection');if(!$unitSelection.length){return false;}return $unitSelection.children().length===0;}function hasExternalBookOnlineLink(){return $('div.productDetailHeader div.productDetailHeaderRight div.node.bookOnline.showBooking a[rel="external"]').length>0;}function hideInternalBookOnlineOnly(){$('div.productDetailHeader div.productDetailHeaderRight div.node.bookOnline.showBooking').each(function(){if($(this).find('a[rel="external"]').length===0){$(this).hide();}});}function removeUnavailableAccommodationBooking(){$('div.bookingAvailabilityCalendar').each(function(){this.outerHTML='';});$('span.bookNowAnchor').remove();if(!hasExternalBookOnlineLink()){hideInternalBookOnlineOnly();}}if(bookingUnitSelectionIsEmpty()){removeUnavailableAccommodationBooking();}if($('div.bookingAvailabilityCalendar > form').length==0&&!hasExternalBookOnlineLink()){hideInternalBookOnlineOnly();}if(!$('div.bookingAvailabilityCalendar > form').length==0){$('div.productDetailHeader div.topWrapperDetails div.node.bookOnline').prependTo('div.productDetailHeader div.productDetailHeaderRight');$('div.productDetailHeader div.productDetailHeaderRight div.node.bookOnline').addClass('showBooking');}else if($('div.productDetailHeader div.bookOnline a[rel="external"]').length>0){var externalLinkCheck=$('div.productDetailHeader div.bookOnline a[rel="external"]');if($(externalLinkCheck).length>0){$('div.productDetailHeader div.bookOnline').addClass('externalBooking');}}function bookAccommodationButtonProductDetail(){$('div.productDetailHeader div.productDetailHeaderRight div.node.bookOnline.showBooking').click(function(e){e.preventDefault();$('html, body').animate({scrollTop:$("div.bookingAvailabilityCalendar").offset().top-250},2000);});}bookAccommodationButtonProductDetail();function bookNowButtonProductDetail(){$('div.productDetailHeader div.productDetailHeaderCenter div.minPrice form input.bookBestStay').click(function(e){e.preventDefault();$('html, body').animate({scrollTop:$("div.bookingAvailabilityCalendar").offset().top-250},2000);});}bookNowButtonProductDetail();})();(function(){var altTextClass="altTextChanged";var titleTextClass="titleTextClass";$(document).ready(function(){NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $("div.productDetailImage div.imgWrapper div.image > img.mainimage").length>0;},MaxNumberOfAttempts:1000,Success:function(){$('div.productDetailImage div.imgWrapper div.image > img').each(function(){var productName=$('div.productDetailHeaderLeft>h1').text();var $img=$(this);if(!$img.hasClass(altTextClass)){var $altTextToCheck=productName;var newTextToUse='An image of ';var altText=$img.attr('alt');if(altText==$altTextToCheck){$img.attr('alt',newTextToUse+productName);}}if(!$img.hasClass(titleTextClass)){var $titleTextToCheck=productName;var newTextToUseTitle='An image of ';var titleText=$img.attr('title');if(titleText==$titleTextToCheck){$img.attr('title',newTextToUseTitle+productName);}}});}});NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $("div.productDetailImage div.swipeGalleryInner div.imageWrapper img").length>0;},MaxNumberOfAttempts:1000,Success:function(){$('div.productDetailImage img').each(function(){var productName=$('div.productDetailHeaderLeft>h1').text();var $img=$(this);if(!$img.hasClass(altTextClass)){var $altTextToCheck='Product Image';var newTextToUse='An image of ';var altText=$img.attr('alt');if(altText==$altTextToCheck){$img.attr('alt',newTextToUse+productName);}}if(!$img.hasClass(titleTextClass)){var $titleTextToCheck='Product Image';var newTextToUseTitle='An image of ';var titleText=$img.attr('title');if(titleText==$titleTextToCheck){$img.attr('title',newTextToUseTitle+productName);}}});$('div.productDetailImage div#productExtraImages>ul>li').each(function(){var productName=$('div.productDetailHeaderLeft >h1').text();var additionalImagesItem=$(this).find('a');
7if(!additionalImagesItem.hasClass(titleTextClass)){var $titleTextToCheck='Product Image';var newTextToUseTitle='An image of ';var titleText=additionalImagesItem.attr('title');if(titleText==$titleTextToCheck){additionalImagesItem.attr('title',newTextToUseTitle+productName);}}});}});});})();NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $("div.productDetailBeyonk").length>0;},MaxNumberOfAttempts:200,Success:function(){$("body").addClass('beyonkProduct beyonkProductActivity');if($('div.beyonkCompanyWidget').length==0){$("div.productDetailRelProd div.relatedProducts > h2").text('Provider');$("div.productDetailRelProd ").addClass('relatedProvider');$("div.productDetailRelProd  div.relatedProducts p.relatedproductitem").each(function(){$(this).find('a:not(.relatedProductThumb),span.description').wrapAll('<div class="relatedContent">');var itemLink=$(this).find('a.relatedProductThumb').attr('href');var item=$(this);$("<span class='readMore'><a href=' "+itemLink+" +' title='Read More'>Read More</a></span>").appendTo(item);});$("div.productDetailRelProd ").insertAfter('div.productDetailDescription');if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()||NewMind.Site.BreakPoints.IsTabletPortraitOnly()){var offsetValueWidget='400';}else{var offsetValueWidget='200';}$('div.bookNowBeyonkWrapper div.bookNowBeyonk').on('click',function(){$('html, body').animate({scrollTop:$("div.productDetailBeyonk").offset().top-offsetValueWidget},1000);});if(document.location.href.indexOf('bookNowWidget')>-1){NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $("div.widgetWrapper div.productDetailBeyonk").length>0;},MaxNumberOfAttempts:200,Success:function(){if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()||NewMind.Site.BreakPoints.IsTabletPortraitOnly()){var offsetValue='200';}else{var offsetValue='200';}$(window).load(function(){$('html, body').animate({scrollTop:$("div.productDetailBeyonk").offset().top-offsetValue},1000);});}});}}}});NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $("div.beyonkCompanyWidget").length>0;},MaxNumberOfAttempts:200,Success:function(){$("body").addClass('beyonkCompanyProduct');$("div.productDetailRelProd ").insertAfter('div.productDetailDescription');$("div.productDetailRelProd  div.relatedProducts p.relatedproductitem").each(function(){var itemLink=$(this).find('a.relatedProductThumb').attr('href');var item=$(this);$("<span class='readMore'><a href=' "+itemLink+" +' title='Read More'>Read More</a></span>").appendTo(item);});var productTitle=$("div.productDetailHeaderLeft h1").text();$("div.productDetailRelProd   div.relatedProducts>h2").text('Book Now with '+productTitle);if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()||NewMind.Site.BreakPoints.IsTabletPortraitOnly()){var offsetValueWidget='400';}else{var offsetValueWidget='200';}$('div.bookNowBeyonkWrapper div.bookNowBeyonk').on('click',function(){$('html, body').animate({scrollTop:$("div.productDetailRelProd   div.relatedProducts").offset().top-offsetValueWidget},1000);});if(document.location.href.indexOf('bookNowWidget')>-1){NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $("div.beyonkCompanyWidget").length>0;},MaxNumberOfAttempts:200,Success:function(){if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()||NewMind.Site.BreakPoints.IsTabletPortraitOnly()){var offsetValue='400';}else{var offsetValue='200';}$(window).load(function(){$('html, body').animate({scrollTop:$("div.productDetailRelProd   div.relatedProducts").offset().top-offsetValue},1000);});}});}}});function changeBeyonkDurationValueToHoursAndDays(){$("div.hasfacilityDuration .facilityNotes").each(function(){var targetItem=$(this);var daysText=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customText.js.days","days");var hoursText=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customText.js.hours","hours");var mins=$(targetItem).text();var hours=(mins/60);var fract=hours-Math.floor(mins/60);console.log(hours);if(hours>24){var changeToDays=hours/'24';var showDays=(changeToDays.toFixed(1)+' days');console.log(showDays);$(targetItem).text(showDays);}else{var showHours=(hours.toFixed(1)+' hours');console.log(showHours);$(targetItem).text(showHours);}});}changeBeyonkDurationValueToHoursAndDays();$('div.productSearchTtdHorBeyonk div.refine-facilitygroup span.field input').prop("checked",true);$('div.productSearchMobileBeyonk div.refine-facilitygroup span.field input').prop("checked",true);$('div.productSearchMobileBeyonk div.refine-facilitygroup').hide();
8(function($){$.expander={version:'1.4.5',defaults:{slicePoint:100,preserveWords:true,widow:4,expandText:NewMind.ETWP.GetResource("NewMind.env.lang.resources.expander.readmore","Read More"),expandPrefix:'&hellip; ',expandAfterSummary:false,summaryClass:'summary',detailClass:'details',moreClass:'read-more',lessClass:'read-less',collapseTimer:0,expandEffect:'slideDown',expandSpeed:250,collapseEffect:'slide
8Up',collapseSpeed:200,userCollapse:true,userCollapseText:NewMind.ETWP.GetResource("NewMind.env.lang.resources.expander.readless","Read Less"),userCollapsePrefix:' ',onSlice:null,beforeExpand:null,afterExpand:null,onCollapse:null,afterCollapse:null}};$.fn.expander=function(options){var meth='init';if(typeof options=='string'){meth=options;options={};}var opts=$.extend({},$.expander.defaults,options),rSelfClose=/^<(?:area|br|col|embed|hr|img|input|link|meta|param).*>$/i,rAmpWordEnd=opts.wordEnd||/(&(?:[^;]+;)?|[a-zA-Z\u00C0-\u0100]+)$/,rOpenCloseTag=/<\/?(\w+)[^>]*>/g,rOpenTag=/<(\w+)[^>]*>/g,rCloseTag=/<\/(\w+)>/g,rLastCloseTag=/(<\/[^>]+>)\s*$/,rTagPlus=/^(<[^>]+>)+.?/,delayedCollapse;var methods={init:function(){this.each(function(){var i,l,tmp,newChar,summTagless,summOpens,summCloses,lastCloseTag,detailText,detailTagless,html,expand,$thisDetails,$readMore,openTagsForDetails=[],closeTagsForsummaryText=[],defined={},thisEl=this,$this=$(this),$summEl=$([]),o=$.extend({},opts,$this.data('expander')||$.meta&&$this.data()||{}),hasDetails=!!$this.find('.'+o.detailClass).length,hasBlocks=!!$this.find('*').filter(function(){var display=$(this).css('display');return(/^block|table|list/).test(display);}).length,el=hasBlocks?'div':'span',detailSelector=el+'.'+o.detailClass,moreClass=o.moreClass+'',lessClass=o.lessClass+'',expandSpeed=o.expandSpeed||0,allHtml=$.trim($this.html()),allText=$.trim($this.text()),summaryText=allHtml.slice(0,o.slicePoint);o.moreSelector='span.'+moreClass.split(' ').join('.');o.lessSelector='span.'+lessClass.split(' ').join('.');if($.data(this,'expanderInit')){return;}$.data(this,'expanderInit',true);$.data(this,'expander',o);$.each(['onSlice','beforeExpand','afterExpand','onCollapse','afterCollapse'],function(index,val){defined[val]=$.isFunction(o[val]);});summaryText=backup(summaryText);summTagless=summaryText.replace(rOpenCloseTag,'').length;while(summTagless<o.slicePoint){newChar=allHtml.charAt(summaryText.length);if(newChar=='<'){newChar=allHtml.slice(summaryText.length).match(rTagPlus)[0];}summaryText+=newChar;summTagless++;}summaryText=backup(summaryText,o.preserveWords);summOpens=summaryText.match(rOpenTag)||[];summCloses=summaryText.match(rCloseTag)||[];tmp=[];$.each(summOpens,function(index,val){if(!rSelfClose.test(val)){tmp.push(val);}});summOpens=tmp;l=summCloses.length;for(i=0;i<l;i++){summCloses[i]=summCloses[i].replace(rCloseTag,'$1');}$.each(summOpens,function(index,val){var thisTagName=val.replace(rOpenTag,'$1');var closePosition=$.inArray(thisTagName,summCloses);if(closePosition===-1){openTagsForDetails.push(val);closeTagsForsummaryText.push('</'+thisTagName+'>');}else{summCloses.splice(closePosition,1);}});closeTagsForsummaryText.reverse();if(!hasDetails){detailText=allHtml.slice(summaryText.length);detailTagless=$.trim(detailText.replace(rOpenCloseTag,''));if(detailTagless===''||detailTagless.split(/\s+/).length<o.widow){return;}lastCloseTag=closeTagsForsummaryText.pop()||'';summaryText+=closeTagsForsummaryText.join('');detailText=openTagsForDetails.join('')+detailText;}else{detailText=$this.find(detailSelector).remove().html();summaryText=$this.html();allHtml=summaryText+detailText;lastCloseTag='';}o.moreLabel=$this.find(o.moreSelector).length?'':buildMoreLabel(o);if(hasBlocks){detailText=allHtml;}summaryText+=lastCloseTag;o.summary=summaryText;o.details=detailText;o.lastCloseTag=lastCloseTag;if(defined.onSlice){tmp=o.onSlice.call(thisEl,o);o=tmp&&tmp.details?tmp:o;}html=buildHTML(o,hasBlocks);$this.html(html);$thisDetails=$this.find(detailSelector);$readMore=$this.find(o.moreSelector);if(o.collapseEffect==='slideUp'&&o.expandEffect!=='slideDown'||$this.is(':hidden')){$thisDetails.css({display:'none'});}else{$thisDetails[o.collapseEffect](0);}$summEl=$this.find('div.'+o.summaryClass);expand=function(event){event.preventDefault();$readMore.hide();$summEl.hide();if(defined.beforeExpand){o.beforeExpand.call(thisEl);}$thisDetails.stop(false,true)[o.expandEffect](expandSpeed,function(){$thisDetails.css({zoom:''});
8if(defined.afterExpand){o.afterExpand.call(thisEl);}delayCollapse(o,$thisDetails,thisEl);});};$readMore.find('a').unbind('click.expander').bind('click.expander',expand);if(o.userCollapse&&!$this.find(o.lessSelector).length){$this.find(detailSelector).append('<span class="'+o.lessClass+'">'+o.userCollapsePrefix+'<a href="#">'+o.userCollapseText+'</a></span>');}$this.find(o.lessSelector+' a').unbind('click.expander').bind('click.expander',function(event){event.preventDefault();clearTimeout(delayedCollapse);var $detailsCollapsed=$(this).closest(detailSelector);reCollapse(o,$detailsCollapsed);if(defined.onCollapse){o.onCollapse.call(thisEl,true);}});});},destroy:function(){this.each(function(){var o,details,$this=$(this);if(!$this.data('expanderInit')){return;}o=$.extend({},$this.data('expander')||{},opts),details=$this.find('.'+o.detailClass).contents();$this.removeData('expanderInit');$this.removeData('expander');$this.find(o.moreSelector).remove();$this.find('.'+o.summaryClass).remove();$this.find('.'+o.detailClass).after(details).remove();$this.find(o.lessSelector).remove();});}};if(methods[meth]){methods[meth].call(this);}function buildHTML(o,blocks){var el='span',summary=o.summary;if(blocks){el='div';if(rLastCloseTag.test(summary)&&!o.expandAfterSummary){summary=summary.replace(rLastCloseTag,o.moreLabel+'$1');}else{summary+=o.moreLabel;}summary='<div class="'+o.summaryClass+'">'+summary+'</div>';}else{summary+=o.moreLabel;}return [summary,'<',el+' class="'+o.detailClass+'"','>',o.details,'</'+el+'>'].join('');}function buildMoreLabel(o){var ret='<span class="dots">...</span><span class="'+o.moreClass+'">';ret+='<a href="#">'+o.expandText+'</a></span>';return ret;}function backup(txt,preserveWords){if(txt.lastIndexOf('<')>txt.lastIndexOf('>')){txt=txt.slice(0,txt.lastIndexOf('<'));}if(preserveWords){txt=txt.replace(rAmpWordEnd,'');}return $.trim(txt);}function reCollapse(o,el){el.stop(true,true)[o.collapseEffect](o.collapseSpeed,function(){var prevMore=el.prev('span.'+o.moreClass).show();if(!prevMore.length){el.parent().children('div.'+o.summaryClass).show().find('span.'+o.moreClass).show();}if(o.afterCollapse){o.afterCollapse.call(el);}});}function delayCollapse(option,$collapseEl,thisEl){if(option.collapseTimer){delayedCollapse=setTimeout(function(){reCollapse(option,$collapseEl);if($.isFunction(option.onCollapse)){option.onCollapse.call(thisEl,false);}},option.collapseTimer);}}return this;};$.fn.expander.defaults=$.expander.defaults;})(jQuery);
9$(document).ready(function(){function enableContentExpander($content,intContentLength){var strHiddenClass="expandableContentHidden";var strShownClass="expandableContentShown";$content.each(function(){var $this=$(this);function GetDetails(){return $this.children("div.details");}function GetSummary(){return $this.children("div.summary");}$this.expander({expandEffect:'slideDown',collapseEffect:'slideUp',slicePoint:intContentLength,afterCollapse:function(){GetDetails().removeClass(strShownClass).addClass(strHiddenClass).css("display","");GetSummary().removeClass(strHiddenClass).addClass(strShownClass);},beforeExpand:function(){GetDetails().removeClass(strHiddenClass).addClass(strShownClass).css("display","");GetSummary().removeClass(strShownClass).addClass(strHiddenClass);}});GetSummary().addClass(strShownClass);GetDetails().addClass(strHiddenClass).css("display","");});}enableContentExpander($(".expandable"),800);enableContentExpander($(".productDetailDescription .description"),800);if($('body').hasClass('restaurants')){if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()||NewMind.Site.BreakPoints.IsTabletPortraitOnly()){enableContentExpander($("div.productListStandaloneWrapper div.fullWidthInnerWrapper div.leftCol div.refineBy form div.pnRefine"),398);}}});
10$(function(){var strHiddenClass="navigationMainResponsiveHidden";var strShowClass="navigationMainResponsiveShown";var $dropDownMenuButton=$(".dropdownmenu");var $nav=$(".navigationMainResponsive");$dropDownMenuButton.toggle(function(){$nav.hide().removeClass(strHiddenClass).addClass(strShowClass).slideDown("fast");$("#header .languageSelector").toggleClass("lanDownArrow","0");},function(){$nav.slideUp("fast",function(){$(this).addClass(strHiddenClass).show();});});$dropDownMenuButton.click(function(){$dropDownMenuButton.toggleClass("dropdownmenuOpen");});});
11function triggerPageResize(){window.dispatchEvent(new Event('resize'));}window.addEventListener("orientationchange",function(){setTimeout(triggerPageResize,1000);});$(function(){function fullScreenNavigation(){var navigation=$('div.navigationFullScreen');var navigationFirstList=$('div.navigationFullScreen ul.list');var navigationListItems=$('div.navigationFullScreen li').has('ul');var activeSubMenuOption,activeSubMenuChildren,subMenuOpenOption,inactiveSubMenuOption;function activateOnKey($el){$el.on('keydown',function(e){var key=e.key||e.keyCode;if(key==='Enter'||key===' '||key===13||key===32){e.preventDefault();$(this).trigger('click');}});}function syncMenuExpanded(isOpen){$('div.hamburgerIcon').attr('aria-expanded',isOpen?'true':'false');$('div.closeButtonWrapper').attr('aria-expanded',isOpen?'true':'false');}var $hamburger=$('div.hamburgerIcon');var $closeMenu=$('div.closeButtonWrapper');$hamburger.attr({role:'button',tabindex:'0','aria-label':'Open main menu','aria-expanded':'false'});$closeMenu.attr({role:'button',tabindex:'0','aria-label':'Close main menu','aria-expanded':'false'});activateOnKey($hamburger);activateOnKey($closeMenu);$hamburger.click(function(){$('div#navigationOutsideWrapper').addClass('mainMenuActive');$('body').addClass('mainMenuActive');$('div.navigationFullScreenWrapper').addClass('mainMenuActive');syncMenuExpanded(true);});$closeMenu.click(function(){$('div#navigationOutsideWrapper').removeClass('mainMenuActive');$('body').removeClass('mainMenuActive');$('div.navigationFullScreenWrapper').removeClass('mainMenuActive');$('div.itineraryBasket').removeClass('itineraryOpened');syncMenuExpanded(false);});$('div.mediaLogoSmall').prependTo('div.navigationFullScreen');$('div.dontMissFullWidthNav').appendTo('div.navigationFullScreen');$('div.socialMediaFullWidthNav').appendTo('div.dontMissFullWidthNav');$('div.planYourTripIconsWhite').appendTo('div.navigationFullScreen');$(navigationFirstList).each(function(){$(this).wrapInner('<div class="scroll"></div>');});$(navigationListItems).each(function(i){if($(this).find('> ul').length){$(this).addClass('subMenuPresent').prepend('<span class="subMenuOpen"></Span>');subMenuOpenOption=$(this).find('.subMenuOpen');var navLinkText=$.trim($(this).find('> a').first().text())||'submenu';subMenuOpenOption.attr({role:'button',tabindex:'0','aria-label':'Open '+navLinkText+' submenu','aria-expanded':'false'});activateOnKey(subMenuOpenOption);$(this).find('> ul').wrapInner('<div class="scroll"></div>')}subMenuOpenOption.on('click',function(e){activeSubMenuOption=$(e.target).parent('li');activeSubMenuChildren=activeSubMenuOption.find('> ul > div.scroll > li');inactiveSubMenuOption=activeSubMenuOption.siblings();activeSubMenuOption.removeClass('inactive').toggleClass('subMenuActive');inactiveSubMenuOption.addClass('inactive').removeClass('subMenuActive');inactiveSubMenuOption.find('li').removeClass('animate');var isExpanded=activeSubMenuOption.hasClass('subMenuActive');$(e.target).attr('aria-expanded',isExpanded?'true':'false');inactiveSubMenuOption.find('> .subMenuOpen').attr('aria-expanded','false');$(function(){(function animation(i){activeSubMenuChildren.eq(i).addClass('animate');setTimeout(function(){animation((i+1)%activeSubMenuChildren.length);},50);}(0));});if($(activeSubMenuOption).closest('ul.list').length){activeSubMenuOption.find('> ul > div.scroll li').removeClass('subMenuActive inactive animate');}});});var subMenuOpenOptionDefault=$(navigation).find('> ul.list > div.scroll > li.selected');var defaultSelectClick=$(subMenuOpenOptionDefault).find('> span.subMenuOpen');var subMenuOpenOptionDefaultAnimate2ndLevel=$(subMenuOpenOptionDefault).find('ul.sub1 > div.scroll > li');var defaultSelectClickSecondLevel=$(subMenuOpenOptionDefault).find('ul.sub1 > div.scroll > li.selected');var defaultSelectClickSecondLevelClick=$(defaultSelectClickSecondLevel).find('> span.subMenuOpen');$(defaultSelectClick).trigger("click");$(defaultSelectClickSecondLevelClick).trigger("click");$(subMenuOpenOptionDefaultAnimate2ndLevel).addClass('animate');}fullScreenNavigation();});
12(function(){$('div.itineraryBasket h2#ir_itinerary_yourplanner').remove();var $basket=$(".itineraryBasket");var $basketLinks=$basket.find('p.link');var $link=$("<a class=\"hbtn\" />");var $added=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customText.js.added","Added...");var $itineraryLink=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customText.js.itineraryLink","/planning-your-trip/tour
12-suggestions/itineraries");$link.attr("href",$itineraryLink);var $header=$basket.find("h2");$link.insertBefore($header);$link.append($header);var $ItineraryToggle=$("div.ItineraryToggleButton");var $ItineraryClose=$("div.closeButtonWrapperItinerary");$("div.ItineraryToggleButton").attr('tabindex','0');$($ItineraryToggle).keypress(function(event){if(event.keyCode==13){$(this).trigger("click");}});$basket.wrapInner('<div class="innerBasket">');$ItineraryClose.appendTo($basket);$ItineraryToggle.click(function(e){$basket.toggleClass('itineraryOpened');$('body').toggleClass('PageLockItinerary ItineraryBasketEnabled');$basketLinks.toggleClass('itineraryOpenedLinks');$ItineraryToggle.toggleClass('openItineraryActive');if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()){return;}if($basket.find(".ItineraryTbl").length>0){$basket.find(".EmptyMsg").addClass("hide");$('.itineraryBasket table.ItineraryTbl th').replaceWith('<th>'+$added+'</th>');}if($basket.find(".ItineraryTbl").length===0){$basket.find(".EmptyMsg").removeClass("hide");}e.preventDefault();});$ItineraryClose.click(function(e){$basket.toggleClass('itineraryOpened');$('body').toggleClass('PageLock ItineraryBasketEnabled');$basketLinks.toggleClass('itineraryOpenedLinks');$ItineraryToggle.toggleClass('openItineraryActive');});function DisableToggleIfRequired(){if($('div.IsMobileOnly, div.IsNarrowMobileOnly, div.IsTabletPortraitOnly').is(':hidden')){GetToggleElements().slideUp(1);}}function GetToggleElements(){return $("#header .itineraryBasket .ItineraryTbl").add($("#header div.itineraryBasket form")).add($("#header .itineraryBasket .EmptyMsg")).add($("#header .itineraryBasket p.link"));}function moveItineraryItems(){$('.ctl_ItineraryDetail .ItnryPrint').insertAfter($('.ctl_ItineraryDetail div#itinProductList'));$('.ctl_ItineraryDetail .ItnryEmail').insertAfter($('.ctl_ItineraryDetail div#itinProductList'));$('.ctl_ItineraryDetail .ItnryNotes').insertAfter($('.ctl_ItineraryDetail div#itinProductList'));$('.ctl_ItineraryDetail .ItnryName').insertAfter($('.ctl_ItineraryDetail div#itinProductList'));$('.ctl_ItineraryDetail').find('div.ItnryPrint, div.ItnryEmail, div.ItnryNotes, div.ItnryName').wrapAll('<div class="itineraryButtons">');}moveItineraryItems();$("div.itineraryBasket table.ItineraryTbl>tbody>tr>td.delete a").live("click",function(){var $basket=$(".itineraryBasket");setTimeout(function(){if($basket.find(".ItineraryTbl > tbody").length===0){$basket.find(".EmptyMsg").addClass("showEmptyAgain");}},500);});function itineraryClickName(){$("div.ctl_ItineraryDetail div.ItnryName > div:first-of-type").live("click",function(){$(this).find('a').trigger("click");});}function itineraryClickNotes(){$("div.ctl_ItineraryDetail div.ItnryNotes > div:first-of-type").live("click",function(){$(this).find('a').trigger("click");});}function itineraryClickEmail(){$("div.ctl_ItineraryDetail div.ItnryEmail > div:first-of-type").live("click",function(){$(this).find('a').trigger("click");});}function itineraryClickPrint(){$("div.ctl_ItineraryDetail div.ItnryPrint > div:first-of-type").live("click",function(){$(this).find('a').trigger("click");});}itineraryClickName();itineraryClickNotes();itineraryClickEmail();itineraryClickPrint();})();$(document).ready(function(){(function(){UpdateItineraryCount();$(document).ready(function(){UpdateItineraryCount();if(NewMind&&NewMind.ajax&&NewMind.ajax.itinUpdated){NewMind.ajax.itinUpdated.subscribe(UpdateItineraryCount,this,true);}});function UpdateItineraryCount(){var $basket=$("div.ctl_ItineraryBasket");var $target=$("div.ItineraryToggleButton");if($basket.length===0){return;}var $title=$target.find("span.ItineraryToggle");var $count=$title.find("span.Count");if($count.length===0){$title.append("<span class=\"Count\"></span>");$title.append("<span class=\"DropArrow\"></span>");$count=$title.find("span.Count");}var numberOfItems=$basket.find("table.ItineraryTbl td.item").length;if(numberOfItems===0){$count.addClass("NoItems");$basket.removeClass("itineraryActive");}else{$count.removeClass("NoItems");}$count.html(numberOfItems);}})();});
13(function(){NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return($("div.productDetailTwitter div.twtr-pub").length>0);},MaxNumberOfAttempts:100,Success:function(){$("div.productDetailTwitter").removeClass("hide");}});})();
14(function(){function summaryHeaderWrapper(){$('div.productList p.results, div.productList .ProdListReorder').wrapAll('<div class="SummaryHeader">');var zaText=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customText.js.zaText","Z-A");$('div.ProdListReorder a.alpha.desc span').text(zaText);$("div.searchSummary div.pnSummary ul.searchSummary li span.value div.pnAvSrchSummary ul.availdetails li:contains('Check-in')").addClass("checkIn");$("div.searchSummary div.pnSummary ul.searchSummary li span.value div.pnAvSrchSummary ul.availdetails li:contains('Check-out')").addClass("checkOut");}function hideSummaryTitle(){if($("div.searchSummary div.pnSummary").children().length>0){$("body.stage2 div.pageTitle").hide();};}function moveSearchSummary(){if($("div.searchSummary").length>0){$(this).insertAfter('div.listMapLinkContainer');};}function additionalRefineByMarkup(){$('div.refineBy form#refinesearch f
14ieldset.refinementset div.labelContainer label.title span.addItem').click(function(){$(this).parent().addClass("selected");});$('div.refineBy form#refinesearch fieldset.refinementset div.labelContainer label.title span.removeItem').click(function(){$(this).parent().removeClass("selected");});}function facilityIcons(){$("div.productList div.ProductListMain ol.productList>li div.keyFacilities").each(function(){var thisItem=$(this);var obtainTarget=$(this).find('> ul:first-of-type');if(thisItem.is(".keyFacilitiesDogs")){obtainTarget.append("<li class='image'><img alt='Dog-Friendly' title='Dog-Friendly' src='/images/Icons/facilities/icon_facilities_petswelcome.png' /></li>");}if(thisItem.is(".keyFacilitiesPool")){obtainTarget.append("<li class='image'><img alt='Swimming Pool' title='Swimming Pool' src='/images/Icons/facilities/icon_facilities_swimmingppol.png' /></li>");}if(thisItem.is(".keyFacilitiesAccessibility")){obtainTarget.append("<li class='image'><img alt='Accessible' title='Accessible ' src='/images/Icons/facilities/icon_facilities_disabilityaccessibility.png' /></li>");}if(thisItem.is(".keyFacilitiesCarCharging")){obtainTarget.append("<li class='image'><img alt='Electric Car Charging Point' title='Electric Car Charging Point' src='/images/Icons/facilities/icon_facilities_carcharging.png' /></li>");}if(thisItem.is(".keyFacilitiesFamily")){obtainTarget.append("<li class='image'><img alt='Family-Friendly' title='Family-Friendly' src='/images/Icons/facilities/icon_facilities_childrenwelcome.png' /></li>");}if(thisItem.is(".keyFacilitiesSpa")){obtainTarget.append("<li class='image'><img alt='Spa' title='Spa' src='/images/Icons/facilities/icon_facilities_spa.png' /></li>");}if(thisItem.is(".keyFacilitiesParking")){obtainTarget.append("<li class='image'><img alt='Parking' title='Parking' src='/images/Icons/facilities/icon_facilities_parking.png' /></li>");}});$("div.productList div.ProductListMain ol.productList>li").each(function(){var thisItem=$(this);var obtainTarget=$(this).find('div.roomsum');var obtainTargetValue=$(obtainTarget).find('p');if($(obtainTargetValue).is(':empty')){obtainTarget.hide();}});}$(document).ready(summaryHeaderWrapper);$(document).ready(additionalRefineByMarkup);$(document).ready(facilityIcons);if(NewMind.ETWP.ProductList){NewMind.ETWP.ProductList.listLoaded.subscribe(summaryHeaderWrapper);NewMind.ETWP.ProductList.listLoaded.subscribe(additionalRefineByMarkup);NewMind.ETWP.ProductList.listLoaded.subscribe(facilityIcons);if($('div.refineBy').length){NewMind.ETWP.RefineSearchSummary.refinementStart.subscribe(summaryHeaderWrapper);NewMind.ETWP.RefineSearchSummary.refinementStart.subscribe(additionalRefineByMarkup);NewMind.ETWP.RefineSearchSummary.refinementStart.subscribe(facilityIcons);NewMind.ETWP.RefineSearchSummary.refinementCompleteCallBack.subscribe(summaryHeaderWrapper);NewMind.ETWP.RefineSearchSummary.refinementCompleteCallBack.subscribe(additionalRefineByMarkup);NewMind.ETWP.RefineSearchSummary.refinementCompleteCallBack.subscribe(facilityIcons);NewMind.ETWP.RefineSearchSummary.refinementAddedCallBack.subscribe(summaryHeaderWrapper);NewMind.ETWP.RefineSearchSummary.refinementAddedCallBack.subscribe(additionalRefineByMarkup);NewMind.ETWP.RefineSearchSummary.refinementAddedCallBack.subscribe(facilityIcons);NewMind.ETWP.RefineSearchSummary.refinementRemovedCallBack.subscribe(summaryHeaderWrapper);NewMind.ETWP.RefineSearchSummary.refinementRemovedCallBack.subscribe(additionalRefineByMarkup);NewMind.ETWP.RefineSearchSummary.refinementRemovedCallBack.subscribe(facilityIcons);NewMind.ETWP.RefineSearchSummary.productDataLoadedCallBack.subscribe(summaryHeaderWrapper);NewMind.ETWP.RefineSearchSummary.productDataLoadedCallBack.subscribe(additionalRefineByMarkup);NewMind.ETWP.RefineSearchSummary.productDataLoadedCallBack.subscribe(facilityIcons);}};})();
15$(document).ready(function(){function facebookWidth(){if(typeof(FB)!=="undefined"){FB.XFBML.parse();}}var delay=(function(){var timer=0;return function(callback,ms){clearTimeout(timer);timer=setTimeout(callback,ms);};})();var cachedWidthSpaceFix=$(window).width();$(window).resize(function(){var newWidthSpaceFix=$(window).width();if(newWidthSpaceFix!==cachedWidthSpaceFix){cachedWidthSpaceFix=newWidthSpaceFix;delay(function(){facebookWidth();},500);}});});if(typeof jQuery!='undefined'){var jqueryVersion=jQuery.fn.jquery;if(jqueryVersion!=='1.4'){function generateGoogleMapLinkOverride(){if($("body").hasClass("stage3")&&$("body").hasClass("ProductSearchSwitcher")){if((typeof(NewMind)!=="undefined")&&NewMind.Vars&&NewMind.Vars.Page&&NewMind.Vars.Page.ProductKey&&NewMind.ETWP&&NewMind.ETWP.ProductDetails&&NewMind.ETWP.ProductDetails.Location&&NewMind.mapping&&NewMind.ETWP.ProductDetails.Location[NewMind.Vars.Page.ProductKey]){var objLocation=NewMind.ETWP.ProductDetails.Location[NewMind.Vars.Page.ProductKey];
15$("p.googleMapLink a").attr("href","http://maps.apple.com/?q="+objLocation.Latitude+","+objLocation.Longitude);}}}if($("p.googleMapLink a").length>0){if($('p.googleMapLink a').attr("href")=="/"){generateGoogleMapLinkOverride();}}}}
16function featuredPagesHeight(){var featPageHeight=$('.FeatPagesBackground .gallery .galItem div').height();$('.FeatPagesBackground').css("height",featPageHeight);}function featuredPages(){$('#background-wrapper .FeatPagesBackground .gallery .galItem div').each(function(){if($(this).is(':visible')){$("#background-wrapper .FeatPagesBackground .gallery .galItem p.image a").removeAttr("href");}});}$('#background-wrapper').click(function(){featuredPages();window.setTimeout(featuredPages,500);});window.clearInterval(featuredPages);(function(){NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return($(".FeatPagesBackground ul.galTBnav").length>0);},MaxNumberOfAttempts:100,Success:function(){$('.FeatPagesBackground ul.galNPnav').appendTo('.FeatPagesBackground ul.galTBnav');}});})();window.matchMedia=window.matchMedia||function(e,t){"use strict";var n,r=e.documentElement,i=r.firstElementChild||r.firstChild,s=e.createElement("body"),o=e.createElement("div");o.id="mq-test-1";o.style.cssText="position:absolute;top:-100em";s.style.background="none";s.appendChild(o);return function(e){o.innerHTML='­<style media="'+e+'"> #mq-test-1 { width: 42px; }</style>';r.insertBefore(s,i);n=o.offsetWidth===42;r.removeChild(s);return{matches:n,media:e}}}(document);if(NewMind.ETWP.FeaturedGallery){$("div.FeatPagesBackground").each(function(){var intControlKey=NewMind.ETWP.GetControlKey(this);if(intControlKey){if(matchMedia("(max-width: 1450px)").matches){NewMind.ETWP.FeaturedGallery.OverrideGalleryImageResizerAction(intControlKey,"Background_Overlay980","SearchThumb");}}});}window.matchMedia=window.matchMedia||function(e,t){"use strict";var n,r=e.documentElement,i=r.firstElementChild||r.firstChild,s=e.createElement("body"),o=e.createElement("div");o.id="mq-test-1";o.style.cssText="position:absolute;top:-100em";s.style.background="none";s.appendChild(o);return function(e){o.innerHTML='­<style media="'+e+'"> #mq-test-1 { width: 42px; }</style>';r.insertBefore(s,i);n=o.offsetWidth===42;r.removeChild(s);return{matches:n,media:e}}}(document);if(NewMind.ETWP.FeaturedGallery){$("div.featuredPagesWhatsOn").each(function(){var intControlKey=NewMind.ETWP.GetControlKey(this);if(intControlKey){if(matchMedia("(max-width: 1450px)").matches){NewMind.ETWP.FeaturedGallery.OverrideGalleryImageResizerAction(intControlKey,"WhatsOnFP980","SearchThumb");}}});}(function(){$("div.featuredPagesStatic ul.featured li").each(function(i){$(this).addClass("item"+(i+1));});})();
17(function($){$.jCarouselLite={version:'1.8.8',curr:0};$.fn.jCarouselLite=function(options){var o=$.extend(true,{},$.fn.jCarouselLite.defaults,options),ceil=Math.ceil,mabs=Math.abs;this.each(function(){var beforeCirc,afterCirc,pageNav,pageNavCount,resize,prepResize,touchEvents,$btnsGo,isTouch='ontouchend' in document,styles={div:{},ul:{},li:{}},firstCss=true,running=false,animCss=o.vertical?'top':'left',aniProps={},sizeProp=o.vertical?'height':'width',outerMethod=o.vertical?'outerHeight':'outerWidth',self=this,div=$(this),ul=div.find('ul').eq(0),tLi=ul.children('li'),tl=tLi.length,visibleNum=o.visible,visibleCeil=ceil(visibleNum),visibleFloor=Math.floor(visibleNum),start=Math.min(o.start,tl-1),direction=1,activeBtnOffset=0,activeBtnTypes={},startTouch={},endTouch={},axisPrimary=o.vertical?'y':'x',axisSecondary=o.vertical?'x':'y';var init=o.init.call(this,o,tLi);if(init===false){return;}div.data('dirjc',direction);div.data(animCss+'jc',div.css(animCss));if(o.circular){beforeCirc=tLi.slice(tl-visibleCeil).clone(true).each(fixIds);afterCirc=tLi.slice(0,visibleCeil).clone(true).each(fixIds);ul.prepend(beforeCirc).append(afterCirc);start+=visibleCeil;activeBtnOffset=visibleCeil;}if(o.btnGo&&o.btnGo.length){if($.isArray(o.btnGo)&&typeof o.btnGo[0]==='string'){$btnsGo=$(o.btnGo.join());}else{$btnsGo=$(o.btnGo);}$btnsGo.each(function(i){$(this).bind('click.jc',function(event){event.preventDefault();return go(o.circular?visibleNum+i:i);});});activeBtnTypes.go=1;}var setActiveBtn=function(i,types){i=ceil(i);var activeBtnIndex=(i-activeBtnOffset)%tl,visEnd=activeBtnIndex+visibleFloor;if(types.go){$btnsGo.removeClass(o.activeClass).removeClass(o.visibleClass);$btnsGo.eq(activeBtnIndex).addClass(o.activeClass);$btnsGo.slice(activeBtnIndex,activeBtnIndex+visibleFloor).addClass(o.visibleClass);if(visEnd>$btnsGo.length){$btnsGo.slice(0,visEnd-$btnsGo.length).addClass(o.visibleClass);}}if(types.pager){pageNav.removeClass(o.activeClass);pageNav.eq(ceil(activeBtnIndex/visibleNum)).addClass(o.activeClass);}return activeBtnIndex;};var li=ul.children('li'),itemLength=li.length,curr=start;
17$.jCarouselLite.curr=curr;var getDimensions=function(reset){var liSize,ulSize,divSize;if(reset){styles.div[sizeProp]='';styles.li={width:'',height:''};return styles;}liSize=li[outerMethod](true);ulSize=liSize*itemLength;divSize=liSize*visibleNum;styles.div[sizeProp]=divSize+'px';styles.ul[sizeProp]=ulSize+'px';styles.ul[animCss]=-(curr*liSize)+'px';styles.li={width:li.width(),height:li.height()};styles.liSize=liSize;return styles;};var setDimensions=function(reset){var css,tmpDivSize;var prelimCss={div:{visibility:'visible',position:'relative',zIndex:2,left:'0'},ul:{margin:'0',padding:'0',position:'relative',listStyleType:'none',zIndex:1},li:{overflow:o.vertical?'hidden':'visible','float':o.vertical?'none':'left'}};if(reset){css=getDimensions(true);div.css(css.div);ul.css(css.ul);li.css(css.li);}css=getDimensions();if(o.autoCSS&&firstCss){$.extend(true,css,prelimCss);firstCss=false;}if(o.autoWidth){tmpDivSize=parseInt(div.css(sizeProp),10);styles.liSize=tmpDivSize/o.visible;css.li[sizeProp]=styles.liSize-(li[outerMethod](true)-parseInt(li.css(sizeProp),10));css.ul[sizeProp]=(styles.liSize*itemLength)+'px';css.ul[animCss]=-(curr*styles.liSize)+'px';css.div[sizeProp]=tmpDivSize;}if(o.autoCSS){li.css(css.li);ul.css(css.ul);div.css(css.div);}};setDimensions();var advanceCounter=0,autoStop=iterations(tl,o),autoScrollBy=typeof o.auto==='number'?o.auto:o.scroll;var advancer=function(){self.setAutoAdvance=setTimeout(function(){if(!autoStop||autoStop>advanceCounter){direction=div.data('dirjc');go(curr+(direction*autoScrollBy),{auto:true});advanceCounter++;advancer();}},o.timeout);};$.each(['btnPrev','btnNext'],function(index,btn){if(o[btn]){o['$'+btn]=$.isFunction(o[btn])?o[btn].call(div[0]):$(o[btn]);o['$'+btn].bind('click.jc',function(event){event.preventDefault();var step=index===0?curr-o.scroll:curr+o.scroll;if(o.directional){div.data('dirjc',(index?1:-1));}return go(step);});}});if(!o.circular){if(o.btnPrev&&start===0){o.$btnPrev.addClass(o.btnDisabledClass);}if(o.btnNext&&start+visibleFloor>=itemLength){o.$btnNext.addClass(o.btnDisabledClass);}}if(o.autoPager){pageNavCount=ceil(tl/visibleNum);pageNav=[];for(var i=0;i<pageNavCount;i++){pageNav.push('<li><a href="#">'+(i+1)+'</a></li>');}if(pageNav.length>1){pageNav=$('<ul>'+pageNav.join('')+'</ul>').appendTo(o.autoPager).find('li');pageNav.find('a').each(function(i){$(this).bind('click.jc',function(event){event.preventDefault();var slide=i*visibleNum;if(o.circular){slide+=visibleNum;}return go(slide);});});activeBtnTypes.pager=1;}}setActiveBtn(start,activeBtnTypes);if(o.mouseWheel&&div.mousewheel){div.bind('mousewheel.jc',function(e,d){return d>0?go(curr-o.scroll):go(curr+o.scroll);});}if(o.pause&&o.auto&&!isTouch){div.bind('mouseenter.jc',function(){div.trigger('pauseCarousel.jc');}).bind('mouseleave.jc',function(){div.trigger('resumeCarousel.jc');});}if(o.auto){advancer();}function vis(){return li.slice(curr).slice(0,visibleCeil);}$.jCarouselLite.vis=vis;function go(to,settings){if(running){return false;}settings=settings||{};var prev=curr,direction=to>curr,speed=settings.speed||o.speed,offset=settings.offset||0;if(o.beforeStart){o.beforeStart.call(div,vis(),direction);}li.removeClass(o.activeClass);if(o.circular){if(to>curr&&to>itemLength-visibleCeil){curr=curr%tl;to=curr+(settings.auto?autoScrollBy:o.scroll);ul.css(animCss,(-curr*styles.liSize)-offset);}else if(to<curr&&to<0){curr+=tl;to+=tl;ul.css(animCss,(-curr*styles.liSize)-offset);}curr=to+(to%1);}else{if(to<0){to=0;}else if(to>itemLength-visibleFloor){to=itemLength-visibleFloor;}curr=to;if(curr===0&&o.first){o.first.call(this,vis(),direction);}if(curr===itemLength-visibleFloor&&o.last){o.last.call(this,vis(),direction);}if(o.btnPrev){o.$btnPrev.toggleClass(o.btnDisabledClass,curr===0);}if(o.btnNext){o.$btnNext.toggleClass(o.btnDisabledClass,curr===itemLength-visibleFloor);}}setActiveBtn(curr,activeBtnTypes);$.jCarouselLite.curr=curr;if(prev===curr&&!settings.force){if(o.afterEnd){o.afterEnd.call(div,vis(),direction);}return curr;}running=true;aniProps[animCss]=-(curr*styles.liSize);ul.animate(aniProps,speed,o.easing,function(){if(o.afterEnd){o.after
17End.call(div,vis(),direction);}running=false;});li.eq(curr).addClass(o.activeClass);return curr;}div.bind('go.jc',function(e,to,settings){if(typeof to==='undefined'){to='+=1';}var todir=typeof to==='string'&&/(\+=|-=)(\d+)/.exec(to);if(todir){to=todir[1]==='-='?curr-todir[2]*1:curr+todir[2]*1;}else{to+=start;}go(to,settings);}).bind('startCarousel.jc',function(event){clearTimeout(self.setAutoAdvance);self.setAutoAdvance=undefined;div.trigger('go','+='+o.scroll);advancer();div.removeData('pausedjc').removeData('stoppedjc');}).bind('resumeCarousel.jc',function(event,forceRun){if(self.setAutoAdvance){return;}clearTimeout(self.setAutoAdvance);self.setAutoAdvance=undefined;var stopped=div.data('stoppedjc');if(forceRun||!stopped){advancer();div.removeData('pausedjc');if(stopped){div.removeData('stoppedjc');}}}).bind('pauseCarousel.jc',function(event){clearTimeout(self.setAutoAdvance);self.setAutoAdvance=undefined;div.data('pausedjc',true);}).bind('stopCarousel.jc',function(event){clearTimeout(self.setAutoAdvance);self.setAutoAdvance=undefined;div.data('stoppedjc',true);}).bind('refreshCarousel.jc',function(event){setDimensions(o.autoCSS);}).bind('endCarousel.jc',function(){if(self.setAutoAdvance){clearTimeout(self.setAutoAdvance);self.setAutoAdvance=undefined;}if(o.btnPrev){o.$btnPrev.addClass(o.btnDisabledClass).unbind('.jc');}if(o.btnNext){o.$btnNext.addClass(o.btnDisabledClass).unbind('.jc');}if(o.btnGo){$.each(o.btnGo,function(i,val){$(val).unbind('.jc');});}if(o.circular){li.slice(0,visibleCeil).remove();li.slice(-visibleCeil).remove();}$.each([animCss+'jc','pausedjc','stoppedjc','dirjc'],function(i,d){div.removeData(d);});div.unbind('.jc');});touchEvents={touchstart:function(event){endTouch.x=0;endTouch.y=0;startTouch.x=event.targetTouches[0].pageX;startTouch.y=event.targetTouches[0].pageY;startTouch[animCss]=parseFloat(ul.css(animCss));startTouch.time=+new Date();},touchmove:function(event){var tlength=event.targetTouches.length;if(tlength===1){endTouch.x=event.targetTouches[0].pageX;endTouch.y=event.targetTouches[0].pageY;aniProps[animCss]=startTouch[animCss]+(endTouch[axisPrimary]-startTouch[axisPrimary]);ul.css(aniProps);if(o.preventTouchWindowScroll){event.preventDefault();}}else{endTouch.x=startTouch.x;endTouch.y=startTouch.y;}},touchend:function(event){if(!endTouch.x){return;}var pxDelta=startTouch[axisPrimary]-endTouch[axisPrimary],pxAbsDelta=mabs(pxDelta),primaryAxisGood=pxAbsDelta>o.swipeThresholds[axisPrimary],secondaryAxisGood=mabs(startTouch[axisSecondary]-endTouch[axisSecondary])<o.swipeThresholds[axisSecondary],timeDelta=+new Date()-startTouch.time,quickSwipe=timeDelta<o.swipeThresholds.time,operator=pxDelta>0?'+=':'-=',to=operator+o.scroll,swipeInfo={force:true};if(quickSwipe&&primaryAxisGood&&secondaryAxisGood){swipeInfo.speed=o.speed/2;}else if((!quickSwipe&&pxAbsDelta<styles.liSize/2)||!primaryAxisGood||(quickSwipe&&!secondaryAxisGood)){to='+=0';}else if(!quickSwipe&&pxAbsDelta>styles.liSize/2){to=Math.round(pxAbsDelta/styles.liSize);to=operator+(to>o.visible?o.visible:to);swipeInfo.offset=pxDelta;}div.trigger('go.jc',[to,swipeInfo]);endTouch={};},handle:function(event){event=event.originalEvent;touchEvents[event.type](event);}};if(isTouch&&o.swipe){div.bind('touchstart.jc touchmove.jc touchend.jc',touchEvents.handle);}if(o.responsive){prepResize=o.autoCSS;$(window).bind('resize',function(event){if(prepResize){ul.width(ul.width()*2);prepResize=false;}clearTimeout(resize);resize=setTimeout(function(){div.trigger('refreshCarousel.jc');prepResize=o.autoCSS;},100);});}});return this;};$.fn.jCarouselLite.defaults={btnPrev:null,btnNext:null,btnGo:null,autoPager:null,btnDisabledClass:'disabled',activeClass:'active',visibleClass:'vis',mouseWheel:false,speed:200,easing:null,timeout:4000,auto:false,directional:false,autoStop:false,pause:true,vertical:false,circular:true,visible:3,start:0,scroll:1,autoCSS:true,responsive:false,autoWidth:false,swipe:true,swipeThresholds:{x:80,y:40,time:150},preventTouchWindowScroll:false,init:function(){},first:null,last:null,beforeStart:null,afterEnd:null};function iterations(itemLength,options){return options.autoStop&&(options.circular?options.autoStop:Math.min(itemLength,options.autoStop));}
17function fixIds(i){if(this.id){this.id+=i;}}})(jQuery);
18(function($){$.jCarouselLiteFeaturedItems={version:'1.8.8',curr:0};$.fn.jCarouselLiteFeaturedItems=function(options){var o=$.extend(true,{},$.fn.jCarouselLiteFeaturedItems.defaults,options),ceil=Math.ceil,mabs=Math.abs;this.each(function(){var beforeCirc,afterCirc,pageNav,pageNavCount,resize,prepResize,touchEvents,$btnsGo,isTouch='ontouchend' in document,styles={div:{},ul:{},li:{}},firstCss=true,running=false,animCss=o.vertical?'top':'left',aniProps={},sizeProp=o.vertical?'height':'width',outerMethod=o.vertical?'outerHeight':'outerWidth',self=this,div=$(this),ul=div.find('ol').eq(0),tLi=ul.children('li'),tl=tLi.length,visibleNum=o.visible,visibleCeil=ceil(visibleNum),visibleFloor=Math.floor(visibleNum),start=Math.min(o.start,tl-1),direction=1,activeBtnOffset=0,activeBtnTypes={},startTouch={},endTouch={},axisPrimary=o.vertical?'y':'x',axisSecondary=o.vertical?'x':'y';var init=o.init.call(this,o,tLi);if(init===false){return;}div.data('dirjc',direction);div.data(animCss+'jc',div.css(animCss));if(o.circular){beforeCirc=tLi.slice(tl-visibleCeil).clone(true).each(fixIds);afterCirc=tLi.slice(0,visibleCeil).clone(true).each(fixIds);ul.prepend(beforeCirc).append(afterCirc);start+=visibleCeil;activeBtnOffset=visibleCeil;}if(o.btnGo&&o.btnGo.length){if($.isArray(o.btnGo)&&typeof o.btnGo[0]==='string'){$btnsGo=$(o.btnGo.join());}else{$btnsGo=$(o.btnGo);}$btnsGo.each(function(i){$(this).bind('click.jc',function(event){event.preventDefault();return go(o.circular?visibleNum+i:i);});});activeBtnTypes.go=1;}var setActiveBtn=function(i,types){i=ceil(i);var activeBtnIndex=(i-activeBtnOffset)%tl,visEnd=activeBtnIndex+visibleFloor;if(types.go){$btnsGo.removeClass(o.activeClass).removeClass(o.visibleClass);$btnsGo.eq(activeBtnIndex).addClass(o.activeClass);$btnsGo.slice(activeBtnIndex,activeBtnIndex+visibleFloor).addClass(o.visibleClass);if(visEnd>$btnsGo.length){$btnsGo.slice(0,visEnd-$btnsGo.length).addClass(o.visibleClass);}}if(types.pager){pageNav.removeClass(o.activeClass);pageNav.eq(ceil(activeBtnIndex/visibleNum)).addClass(o.activeClass);}return activeBtnIndex;};var li=ul.children('li'),itemLength=li.length,curr=start;$.jCarouselLiteFeaturedItems.curr=curr;var getDimensions=function(reset){var liSize,ulSize,divSize;if(reset){styles.div[sizeProp]='';styles.li={width:'',height:''};return styles;}liSize=li[outerMethod](true);ulSize=liSize*itemLength;divSize=liSize*visibleNum;styles.div[sizeProp]=divSize+'px';styles.ul[sizeProp]=ulSize+'px';styles.ul[animCss]=-(curr*liSize)+'px';styles.li={width:li.width(),height:li.height()};styles.liSize=liSize;return styles;};var setDimensions=function(reset){var css,tmpDivSize;var prelimCss={div:{visibility:'visible',position:'relative',zIndex:2,left:'0'},ul:{margin:'0',padding:'0',position:'relative',listStyleType:'none',zIndex:1},li:{overflow:o.vertical?'hidden':'visible','float':o.vertical?'none':'left'}};if(reset){css=getDimensions(true);div.css(css.div);ul.css(css.ul);li.css(css.li);}css=getDimensions();if(o.autoCSS&&firstCss){$.extend(true,css,prelimCss);firstCss=false;}if(o.autoWidth){tmpDivSize=parseInt(div.css(sizeProp),10);styles.liSize=tmpDivSize/o.visible;css.li[sizeProp]=styles.liSize-(li[outerMethod](true)-parseInt(li.css(sizeProp),10));css.ul[sizeProp]=(styles.liSize*itemLength)+'px';css.ul[animCss]=-(curr*styles.liSize)+'px';css.div[sizeProp]=tmpDivSize;}if(o.autoCSS){li.css(css.li);ul.css(css.ul);div.css(css.div);}};setDimensions();var advanceCounter=0,autoStop=iterations(tl,o),autoScrollBy=typeof o.auto==='number'?o.auto:o.scroll;var advancer=function(){self.setAutoAdvance=setTimeout(function(){if(!autoStop||autoStop>advanceCounter){direction=div.data('dirjc');go(curr+(direction*autoScrollBy),{auto:true});advanceCounter++;advancer();}},o.timeout);};$.each(['btnPrev','btnNext'],function(index,btn){if(o[btn]){o['$'+btn]=$.isFunction(o[btn])?o[btn].call(div[0]):$(o[btn]);o['$'+btn].bind('click.jc',function(event){event.preventDefault();var step=index===0?curr-o.scroll:curr+o.scroll;if(o.directional){div.data('dirjc',(index?1:-1));}return go(step);});}});if(!o.circular){if(o.btnPrev&&start===0){o.$btnPrev.addClass(o.bt
18nDisabledClass);}if(o.btnNext&&start+visibleFloor>=itemLength){o.$btnNext.addClass(o.btnDisabledClass);}}if(o.autoPager){pageNavCount=ceil(tl/visibleNum);pageNav=[];for(var i=0;i<pageNavCount;i++){pageNav.push('<li><a href="#">'+(i+1)+'</a></li>');}if(pageNav.length>1){pageNav=$('<ul>'+pageNav.join('')+'</ul>').appendTo(o.autoPager).find('li');pageNav.find('a').each(function(i){$(this).bind('click.jc',function(event){event.preventDefault();var slide=i*visibleNum;if(o.circular){slide+=visibleNum;}return go(slide);});});activeBtnTypes.pager=1;}}setActiveBtn(start,activeBtnTypes);if(o.mouseWheel&&div.mousewheel){div.bind('mousewheel.jc',function(e,d){return d>0?go(curr-o.scroll):go(curr+o.scroll);});}if(o.pause&&o.auto&&!isTouch){div.bind('mouseenter.jc',function(){div.trigger('pauseCarousel.jc');}).bind('mouseleave.jc',function(){div.trigger('resumeCarousel.jc');});}if(o.auto){advancer();}function vis(){return li.slice(curr).slice(0,visibleCeil);}$.jCarouselLiteFeaturedItems.vis=vis;function go(to,settings){if(running){return false;}settings=settings||{};var prev=curr,direction=to>curr,speed=settings.speed||o.speed,offset=settings.offset||0;if(o.beforeStart){o.beforeStart.call(div,vis(),direction);}li.removeClass(o.activeClass);if(o.circular){if(to>curr&&to>itemLength-visibleCeil){curr=curr%tl;to=curr+(settings.auto?autoScrollBy:o.scroll);ul.css(animCss,(-curr*styles.liSize)-offset);}else if(to<curr&&to<0){curr+=tl;to+=tl;ul.css(animCss,(-curr*styles.liSize)-offset);}curr=to+(to%1);}else{if(to<0){to=0;}else if(to>itemLength-visibleFloor){to=itemLength-visibleFloor;}curr=to;if(curr===0&&o.first){o.first.call(this,vis(),direction);}if(curr===itemLength-visibleFloor&&o.last){o.last.call(this,vis(),direction);}if(o.btnPrev){o.$btnPrev.toggleClass(o.btnDisabledClass,curr===0);}if(o.btnNext){o.$btnNext.toggleClass(o.btnDisabledClass,curr===itemLength-visibleFloor);}}setActiveBtn(curr,activeBtnTypes);$.jCarouselLiteFeaturedItems.curr=curr;if(prev===curr&&!settings.force){if(o.afterEnd){o.afterEnd.call(div,vis(),direction);}return curr;}running=true;aniProps[animCss]=-(curr*styles.liSize);ul.animate(aniProps,speed,o.easing,function(){if(o.afterEnd){o.afterEnd.call(div,vis(),direction);}running=false;});li.eq(curr).addClass(o.activeClass);return curr;}div.bind('go.jc',function(e,to,settings){if(typeof to==='undefined'){to='+=1';}var todir=typeof to==='string'&&/(\+=|-=)(\d+)/.exec(to);if(todir){to=todir[1]==='-='?curr-todir[2]*1:curr+todir[2]*1;}else{to+=start;}go(to,settings);}).bind('startCarousel.jc',function(event){clearTimeout(self.setAutoAdvance);self.setAutoAdvance=undefined;div.trigger('go','+='+o.scroll);advancer();div.removeData('pausedjc').removeData('stoppedjc');}).bind('resumeCarousel.jc',function(event,forceRun){if(self.setAutoAdvance){return;}clearTimeout(self.setAutoAdvance);self.setAutoAdvance=undefined;var stopped=div.data('stoppedjc');if(forceRun||!stopped){advancer();div.removeData('pausedjc');if(stopped){div.removeData('stoppedjc');}}}).bind('pauseCarousel.jc',function(event){clearTimeout(self.setAutoAdvance);self.setAutoAdvance=undefined;div.data('pausedjc',true);}).bind('stopCarousel.jc',function(event){clearTimeout(self.setAutoAdvance);self.setAutoAdvance=undefined;div.data('stoppedjc',true);}).bind('refreshCarousel.jc',function(event){setDimensions(o.autoCSS);}).bind('endCarousel.jc',function(){if(self.setAutoAdvance){clearTimeout(self.setAutoAdvance);self.setAutoAdvance=undefined;}if(o.btnPrev){o.$btnPrev.addClass(o.btnDisabledClass).unbind('.jc');}if(o.btnNext){o.$btnNext.addClass(o.btnDisabledClass).unbind('.jc');}if(o.btnGo){$.each(o.btnGo,function(i,val){$(val).unbind('.jc');});}if(o.circular){li.slice(0,visibleCeil).remove();li.slice(-visibleCeil).remove();}$.each([animCss+'jc','pausedjc','stoppedjc','dirjc'],function(i,d){div.removeData(d);});div.unbind('.jc');});touchEvents={touchstart:function(event){endTouch.x=0;endTouch.y=0;startTouch.x=event.targetTouches[0].pageX;startTouch.y=event.targetTouches[0].pageY;startTouch[animCss]=parseFloat(ul.css(animCss));startTouch.time=+new Date();},touchmove:function(event){var tlength=event.targetTouches.length;if(tlength===1){endTouch.x=event.targetTouches[0].pageX;endTouch.y=event.targetTouches[0].pageY;aniProps[animCss]=startTouch[animCss]+(endTouch[axisPrimary]-startTouch[axisPrimary]);ul.css(aniProps);if(o.preventTouchWindowScroll){event.preventDefault();}}else{endTouch.x=startTouch.x;endTouch.y=startTouch.y;}},touchend:function(event){if(!endTouch.x){return;}var pxDelta=startTouch[axisPrimary]-endTouch[axisPrimary],pxAbsDelta=mabs(pxDelta),primaryAxisGood=pxAbsDelta>o.swipeThresholds[axisPrimary],secondaryAxisGood=mabs(startTouch[axisSecondary]-endTouch[axisSecondary])<o.swipeThresholds[axisSecondary],timeDelta=+new Date()-startTouch.time,quickSwipe=timeDelta<o.swipeThresholds.time,operator=pxDelta>0?'+=':'-=',to=operator+o.scroll,swipeInfo={force:true};
18if(quickSwipe&&primaryAxisGood&&secondaryAxisGood){swipeInfo.speed=o.speed/2;}else if((!quickSwipe&&pxAbsDelta<styles.liSize/2)||!primaryAxisGood||(quickSwipe&&!secondaryAxisGood)){to='+=0';}else if(!quickSwipe&&pxAbsDelta>styles.liSize/2){to=Math.round(pxAbsDelta/styles.liSize);to=operator+(to>o.visible?o.visible:to);swipeInfo.offset=pxDelta;}div.trigger('go.jc',[to,swipeInfo]);endTouch={};},handle:function(event){event=event.originalEvent;touchEvents[event.type](event);}};if(isTouch&&o.swipe){div.bind('touchstart.jc touchmove.jc touchend.jc',touchEvents.handle);}if(o.responsive){prepResize=o.autoCSS;$(window).bind('resize',function(event){if(prepResize){ul.width(ul.width()*2);prepResize=false;}clearTimeout(resize);resize=setTimeout(function(){div.trigger('refreshCarousel.jc');prepResize=o.autoCSS;},100);});}});return this;};$.fn.jCarouselLiteFeaturedItems.defaults={btnPrev:null,btnNext:null,btnGo:null,autoPager:null,btnDisabledClass:'disabled',activeClass:'active',visibleClass:'vis',mouseWheel:false,speed:200,easing:null,timeout:4000,auto:false,directional:false,autoStop:false,pause:true,vertical:false,circular:true,visible:3,start:0,scroll:1,autoCSS:true,responsive:false,autoWidth:false,swipe:true,swipeThresholds:{x:80,y:40,time:150},preventTouchWindowScroll:false,init:function(){},first:null,last:null,beforeStart:null,afterEnd:null};function iterations(itemLength,options){return options.autoStop&&(options.circular?options.autoStop:Math.min(itemLength,options.autoStop));}function fixIds(i){if(this.id){this.id+=i;}}})(jQuery);
19(function(){$("select.openingMinutes, select.closingMinutes").each(function(){var arrIndicesToRemove=[];$(this).children("option").each(function(i){if(this.value&&($(this).css("display")==="none")){arrIndicesToRemove.push(i);}});for(var intIndex=arrIndicesToRemove.length-1;intIndex>=0;intIndex--){this.remove(arrIndicesToRemove[intIndex]);}});})();(function(){if($('div.form.EventSubmissionForm form.form div.form div.row.productOpenings div.help').length>0){$('div.form.EventSubmissionForm form.form div.form div.row.productOpenings div.help').insertBefore('div.form.EventSubmissionForm form.form div.form div.row.productOpenings h3.label');}})();
20NewMind.registerNameSpace("NewMind.Site");NewMind.Site.FeaturedThisMonth=function(){var $primaryListItems=$('.featuresThisMonth .Highlight');$($primaryListItems).each(function(i){$(this).children().wrapAll('<li>').parent().addClass("item"+(i+1));});var $primaryListItems=$('.featuresThisMonth .Highlight li');var controlTitle=$('.featuresThisMonth h2.ControlTitle');$('.featuresThisMonth').prepend('<div class="featureslistprimarywrapper"></div>');var $featuresListPrimary=$('<ul class="featuresListPrimary"></ul>');$primaryListItems.each(function(){$(this).appendTo($featuresListPrimary);});$('.featureslistprimarywrapper').append($featuresListPrimary);$(controlTitle).insertBefore('.featuresThisMonth .featureslistprimarywrapper');$('<div class="prev"><img src="/images/arrows/arrow_left_block.png" alt="Prev" title="More Special features" /></div>').appendTo('.featuresThisMonth');$('<div class="next"><img src="/images/arrows/arrow_right_block.png" alt="Next" title="More Special features" /></div>').appendTo('.featuresThisMonth');if(navigator.appVersion.indexOf("MSIE 7.")!==-1){$(".featuresThisMonth").jCarouselLite({auto:true,timeout:15000,circular:true,autoWidth:false,responsive:false,visible:3,speed:800,pause:true,btnPrev:".featuresThisMonth .prev",btnNext:".featuresThisMonth .next"});}else if(navigator.appVersion.indexOf("MSIE 8.")!==-1){$(".featuresThisMonth").jCarouselLite({auto:true,timeout:15000,circular:true,autoWidth:false,responsive:false,visible:3,speed:800,pause:true,btnPrev:".featuresThisMonth .prev",btnNext:".featuresThisMonth .next"});}else{$(".featuresThisMonth").jCarouselLite({auto:true,timeout:15000,circular:true,autoWidth:true,responsive:true,visible:3,speed:800,pause:true,btnPrev:".featuresThisMonth .prev",btnNext:".featuresThisMonth .next"});}};NewMind.Site.FeaturedThisMonth();
21(function(){NewMind.registerNameSpace("NewMind.Site").StylesUpdated=function(){var arrUrls=[];$("head style").each(function(){var reRefreshCSSUpdatedStyleSheetMatches=this.innerHTML.match(/\/styles\/(style|style2).*?_v999[0-9]+.cssx/g);if(reRefreshCSSUpdatedStyleSheetMatches){for(var i=0;i<reRefreshCSSUpdatedStyleSheetMatches.length;i++){arrUrls.push(reRefreshCSSUpdatedStyleSheetMatches[i]);}}
21});if(arrUrls.length===0){arrUrls.push("/styles/style.css");arrUrls.push("/styles/style2.css");}var arrErrorMessages=[];var intSuccessCount=0;for(var i=0;i<arrUrls.length;i++){$.get(arrUrls[i],function(data,status){data=$.trim(""+data);if((data.length>0)&&(data.length<1000)){arrErrorMessages.push(data);}else{intSuccessCount++;}if((arrErrorMessages.length+intSuccessCount)===arrUrls.length){displayErrorMessages(arrErrorMessages.join("<br/><br/>"));}});}function displayErrorMessages(strErrorMessages){var strId="LESSWarning";var objEleOut=document.getElementById(strId);if(!strErrorMessages){if(objEleOut){objEleOut.remove();}return;}if(!objEleOut){objEleOut=document.createElement("div");objEleOut.style.position="absolute";objEleOut.style.zIndex="50000";objEleOut.style.top=0;objEleOut.style.right=0;objEleOut.style.width="30%";objEleOut.style.fontFamily="'Segoe UI', Verdana";if(jQuery.support.opacity){objEleOut.style.backgroundColor="rgba(0, 0, 255, 0.5)";}else{objEleOut.style.background="transparent";objEleOut.style.filter="progid:DXImageTransform.Microsoft.gradient(startColorstr=#7f0000ff,endColorstr=#7f0000ff)";}objEleOut.style.color="white";objEleOut.style.padding="8px 16px";objEleOut.style.fontSize="16px";objEleOut.id=strId;var objCont=document.body;if(objCont.childNodes.length===0){objCont.appendChild(objEleOut);}else{objCont.insertBefore(objEleOut,objCont.childNodes[0]);}}objEleOut.innerHTML=strErrorMessages}};if(NewMind&&NewMind.env&&NewMind.env.platform&&NewMind.env.platform.traceIsEnabled){NewMind.Site.StylesUpdated();}})();
22(function(){$('.productSearchMobile form.refineBySearchForm').hide();$('.productSearchMobile .accommodationSearchImg span.ir').click(function(){if($(this).is(':visible')&&!$('form.searchform').is(':animated')){if($(this).hasClass('showHide')){$(this).removeClass('showHide');$(this).parent().next().slideUp("slow");$(this).closest(".productSearchMobile").removeClass('showSearch');}else{$('.productSearchMobile span.ir').removeClass('showHide');$(".productSearchMobile").removeClass('showSearch');$(this).addClass('showHide');$('.productSearchMobile form.searchform').slideUp();$(this).parent().next().slideDown("slow");$(this).closest(".productSearchMobile").addClass('showSearch');}}return false;});})();
23(function(){if($('body').is(".openSearchAcco, .openSearchTTD, .openSearchFood, .openSearchEvents, .openSearchShop")){$("div.customSearchTabs").each(function(i){if($('body').is(".openSearchAcco")){$('div.productSearchAccoHor').addClass("open").slideDown();$("div.cftSearchTabs li.acco div").addClass("open");}else if($('body').is(".openSearchTTD")){$('div.productSearchTtdHor').addClass("open").slideDown();$("div.cftSearchTabs li.ttd div").addClass("open");}else if($('body').is(".openSearchFood")){$('div.productSearchCateHor').addClass("open").slideDown();$("div.cftSearchTabs li.food div").addClass("open");}else if($('body').is(".openSearchEvents")){$('div.productSearchEvenHor').addClass("open").slideDown();$("div.cftSearchTabs li.event div").addClass("open");}else if($('body').is(".openSearchShop")){$('div.productSearchShopHor').addClass("open").slideDown();$("div.cftSearchTabs li.shop div").addClass("open");}});}else{$("div.customSearchTabs").each(function(i){if($(this).is("#openSearch")){$(this).addClass("open").slideDown();if($(this).hasClass('productSearchTtdHor')){$("div.cftSearchTabs li.ttd div").addClass("open");}else if($(this).hasClass('productSearchEvenHor')){$("div.cftSearchTabs li.event div").addClass("open");}else if($(this).hasClass('productSearchCateHor')){$("div.cftSearchTabs li.food div").addClass("open");}else if($(this).hasClass('productSearchShopHor')){$("div.cftSearchTabs li.shop div").addClass("open");}else if($(this).hasClass('productSearchShopHorStand')){$("div.cftSearchTabs li.shop div").addClass("open");}else if($(this).hasClass('productSearchConfHor')){$("div.cftSearchTabs li.conf div").addClass("open");}else if($(this).hasClass('productSearchBusHor')){$("div.cftSearchTabs li.bus div").addClass("open");}else if($(this).hasClass('productSearchTourHor')){$("div.cftSearchTabs li.serv div").addClass("open");}else if($(this).hasClass('productSearchTownHor')){$("div.cftSearchTabs li.town div").addClass("open");}else if($(this).hasClass('productSearchTranHor')){$("div.cftSearchTabs li.trans div").addClass("open");}else if($(this).hasClass('productSearchRoutesHor')){$("div.cftSearchTabs li.routes div").addClass("open");}else{$("div.cftSearchTabs li.acco div").addClass("open");}}});}$('div.cftSearchTabs li div').keypress(function(event){if(event.keyCode==13){$(this).trigger("click");}});$('div.productSearchOverlayClose').click(function(){var searchWord=$('div.searchButtonHeader > span');$('div.searchButtonHeader').toggleClass('searchOpen');$('div#productSearchOverlay, div#header, body').toggleClass('productSearchOverlayOpen');$('div.sideSearch').toggleClass('searchOpen');});$('div.cftSearchTabs li div').click(function(e){if($(this).hasClass('open')){return;}else{if($('div.cftSearchTabs li div').hasClass('open')){$('div.cftSearchTabs li div').removeClass('open');}$(this).addClass('open');}var $SelectedSearch=$(this).parent('li').attr('class');if($SelectedSearch=='acco'){var search=$('div.productSearchAccoHor');e.preventDefault();}else if($SelectedSearch=='event'){var search=$('div.productSearchEvenHor');e.preventDefault();}else if($SelectedSearch=='ttd'){var search=$('div.productSearchTtdHor');e.preventDefault();}else if($SelectedSearch=='shop'){var search=$('div.productSearchShopHor');e.preventDefault();}else if($SelectedSearch=='food'){var search=$('div.productSearchCateHor');e.preventDefault();}SearchToggle(search);});function SearchToggle(search){if(search.hasClass('open')){search.removeClass('open').slide
23Up();}else{if($('div.customSearchTabs').hasClass('open')){$('div.customSearchTabs').removeClass('open').hide();}search.addClass('open').show();}}function mobileDropdown(){var searchTitle=$('div.productSearchHorizontalFlex div.accommodationSearchImg span');$('div.productSearchHorizontalFlex').attr('id','');searchTitle.click(function(){var searchControl=$(this).closest('div.customSearchTabs');var searchControlInactive=searchControl.siblings();if($(searchControl).is('#openSearch')){searchControlInactive.attr('id','');searchControl.attr('id','');}else{searchControlInactive.attr('id','');searchControl.attr('id','openSearch');$('html, body').animate({scrollTop:$("#openSearch").offset().top-125},1000);}});}mobileDropdown();if($('body').is(".ProductSearchSwitcher.stage2")){$('div.productSearchHorizontalFlex').addClass("searchAgain");}if($('body').hasClass('openSearchEvents')||$('body').hasClass('whatsOn')){$('div.productSearchHorizontalFlex.productSearchEvenHor').addClass('open');$('div.productSearchHorizontalFlex.productSearchEvenHor').attr('id','openSearch');}if($('body').hasClass('openSearchAcco')||$('body').hasClass('accommodation')){$('div.productSearchHorizontalFlex.productSearchAccoHor').addClass('open');$('div.productSearchHorizontalFlex.productSearchAccoHor').attr('id','openSearch');}if($('body').hasClass('openSearcTTD')||$('body').hasClass('ttd')){$('div.productSearchHorizontalFlex.productSearchTtdHor').addClass('open');$('div.productSearchHorizontalFlex.productSearchTtdHor').attr('id','openSearch');}if($('body').hasClass('openSearchFood')||$('body').hasClass('eating')){$('div.productSearchHorizontalFlex.productSearchCateHor').addClass('open');$('div.productSearchHorizontalFlex.productSearchCateHor').attr('id','openSearch');}if($('body').hasClass('openSearchShop')||$('body').hasClass('shop')){$('div.productSearchHorizontalFlex.productSearchShopHor').addClass('open');$('div.productSearchHorizontalFlex.productSearchShopHor').attr('id','openSearch');}})();
24function addClickListnerToAutoLanguageSelector(){$('#SkipContent .autoLanguageSelector ul li').not(".current").insertAfter('#SkipContent .autoLanguageSelector ul li.current');$("#SkipContent .autoLanguageSelector .current").click(function(){if($('#SkipContent .autoLanguageSelector ul li').not(".current").is(':visible')){$('#SkipContent .autoLanguageSelector ul li').not(".current").hide();}else{$('#SkipContent .autoLanguageSelector ul li').not(".current").show();}return false;});}$(document).ready(function(){addClickListnerToAutoLanguageSelector();});
25(function(){NewMind.registerNameSpace("NewMind.Site");(function(){function openCloseAvailability(){$(".sys_control.ctl_ProductSearch.productSearchAccoHor").each(function(){var $hiddenInput=$(this).find("div.row.refine-availability input[type=hidden][name=refine-availability]");if($hiddenInput.length===0){return;}var $checkboxLabel=$("<label />");$checkboxLabel.append($checkbox);var $checkbox=$("<input type=checkbox />");$checkbox.attr("name",$hiddenInput.attr("name"));$checkbox.attr("checked",false);$checkboxLabel.append($checkbox);var $checkboxLabelText=$("<span />");$checkboxLabelText.html(NewMind.ETWP.GetResource("NewMind.env.lang.resources.search.availability.label","Check Availability"));$checkboxLabel.append($checkboxLabelText);var $checkboxWrapper=$("<div class=\"availabilityToggle\" />");$checkboxWrapper.append($checkboxLabel);$hiddenInput.replaceWith($checkboxWrapper);var $availabilityElements=$checkboxWrapper.parent().children().not($checkboxWrapper);if($("body").is('.accommodation.ProductSearchSwitcher.stage2')){if(document.location.href.indexOf('avail=on')>-1){$checkbox.prop("checked",true);$availabilityElements.show().addClass('showElements');}else if(!document.location.href.indexOf('avail=on')>-1){$checkbox.prop("checked",false);$availabilityElements.hide().removeClass('showElements');}}$checkbox.click(function(){$availabilityElements.toggleClass('showElements');});});}function openCloseAvailabilityMobile(){$(".sys_control.ctl_ProductSearch.productSearchMobileAcco").each(function(){var $hiddenInput=$(this).find("div.row.refine-availability input[type=hidden][name=refine-availability]");if($hiddenInput.length===0){return;}var $checkboxLabel=$("<label />");$checkboxLabel.append($checkbox);var $checkbox=$("<input type=checkbox />");$checkbox.attr("name",$hiddenInput.attr("name"));$checkboxLabel.append($checkbox);var $checkboxLabelText=$("<span />");
25$checkboxLabelText.html(NewMind.ETWP.GetResource("NewMind.env.lang.resources.search.availability.label","Check Availability"));$checkboxLabel.append($checkboxLabelText);var $checkboxWrapper=$("<div class=\"availabilityToggle\" />");$checkboxWrapper.append($checkboxLabel);$hiddenInput.replaceWith($checkboxWrapper);var $availabilityElements=$checkboxWrapper.parent().children().not($checkboxWrapper);$checkbox.click(function(){$availabilityElements.toggleClass('showElements');});});}function addClassIfFuzzyOptionPresent(){$(".sys_control.ctl_ProductSearch.productSearchAccoHor").each(function(){var fuzzyOption=$(this).find("select.fuzzy");if(fuzzyOption.length>0){$(this).addClass('fuzzyPresent');}});}function availabilityActive(){if($('div.productList').find('li.Available').length){var availCheckbox=$('div.availabilityToggle label input:checkbox');if($(availCheckbox).is(':checked')){}else{$(availCheckbox).prop('checked',true);}}}function availabilityLists(){if($('div.productList').find('li.Available').length){setTimeout(function(){$('li.showListLink').click();},110);}}$(document).ready(openCloseAvailability);$(document).ready(openCloseAvailabilityMobile);$(document).ready(addClassIfFuzzyOptionPresent);$(document).ready(availabilityActive);$(document).ready(availabilityLists);if(NewMind.ETWP.MultiSearchSwitcher){NewMind.ETWP.MultiSearchSwitcher.CallBackEvent.subscribe(openCloseAvailability);NewMind.ETWP.MultiSearchSwitcher.CallBackEvent.subscribe(openCloseAvailabilityMobile);};$("div.productSearchAccoHor form#refineBySearchForm dl.refineByDefList dt.refine-grading, div.productSearchAccoHor form#refineBySearchForm dl.refineByDefList dd.refine-grading").wrapAll("<div class='productSearchWrapper productSearchWrapperGrading'></div>");$("div.productSearchAccoHor form#refineBySearchForm dl.refineByDefList dt.facility , div.productSearchAccoHor form#refineBySearchForm dl.refineByDefList dd.refine-facility-nocollapse ").wrapAll("<div class='productSearchWrapper productSearchWrapperFacility'></div>");})();})();
26(function(){function moveFooterItems(){var googleTranslate=$('div.googleTranslate');var socialMediaIcons=$('div.socialMediaIcons');var tripAdvisor=$('div.TripAdvisorFooterLogo');if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()){$(googleTranslate).prependTo('div.wrapperFooterOne div.innerWrapper');$(socialMediaIcons).insertAfter('div.googleTranslate');$(tripAdvisor).prependTo('div.wrapperFooterTwo div.innerWrapper');}else{$(socialMediaIcons).insertAfter('div.navigationFooter');$(googleTranslate).insertAfter('div.socialMediaIcons');$(tripAdvisor).insertAfter('div.googleTranslate');}}function productDetailContactDetails(){var contactDetailsControl=$('div.productDetailTop');if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()||NewMind.Site.BreakPoints.IsTabletPortraitOnly()){$(contactDetailsControl).prependTo('body.ProductSearchSwitcher.stage3 div.fullWidthSite div.wrapperFullWidth div.mainCol');}else{$(contactDetailsControl).prependTo('body.ProductSearchSwitcher.stage3 div.fullWidthSite div.wrapperFullWidth div.rightCol');}}function moveSearchAgain(){var searchAgain=$('div.searchAgain');if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()||NewMind.Site.BreakPoints.IsTabletPortraitOnly()){$(searchAgain).insertAfter('div.productList');}else{$(searchAgain).insertBefore('div.productList');}}var cachedWidthSpaceFix=$(window).width();productDetailContactDetails();moveFooterItems();$(window).resize(function(){var newWidthSpaceFix=$(window).width();if(newWidthSpaceFix!==cachedWidthSpaceFix){cachedWidthSpaceFix=newWidthSpaceFix;moveFooterItems();productDetailContactDetails();}});})();
27(function(){if($('div.siteSearch > form div.form').length===0){$('div.siteSearch > form').children().wrapAll('<div class="form"><div class="row"></div></div>');$('div.siteSearch > form div.form div.row label').wrapAll('<span class="label">');$("div.siteSearch > form div.form div.row input[type='search']").wrapAll('<span class="field defaultText">');$("div.siteSearch > form div.form div.row input[type='image']").wrapAll('<span class="submit">');}$('div.siteSearchOverlayClose').appendTo('div.siteSearch form.SearchSite div.form');$("div.siteSearch > form div.form div.row input[type='search']").attr('autocomplete','off');function siteSearch(){$('div.siteSearchIcon, div.siteSearchOverlayClose').click(function(){$("div.siteSearch").toggleClass('siteSearchOpen');$("div#siteSearchOverlay").toggleClass('siteSearchOverlayOpen');$('body').toggleClass('noscroll');$('body').toggleClass('siteSearchOpen');});$('div.siteSearchIcon').click(function(){$("div.siteSearch form.SearchSite div.form div.row span.field input").focus();});}siteSearch();})();
28(function(){$('.productDetailVideos .VIDEO-YOUTUBE ul.video li iframe').attr('height','100%').attr('width','95%');function mobileVideoHeight(){if(NewMind.Site.BreakPoints.IsSuperDesktopOnly()){$('.productDetailVideos .VIDEO-YOUTUBE ul.video li iframe').css("height","436px");}else if(NewMind.Site.BreakPoints.IsBigTabletLandscapeOnly()||NewMind.Site.BreakPoints.IsSmallTabletLandscapeOnly()||NewMind.Site.BreakPoints.IsTabletPortraitOnly()){$('.productDetailVideos .VIDEO-YOUTUBE ul.video li iframe').css("height","350px");}else if(NewMind.Site.BreakPoints.IsMobileOnly()){$('.productDetailVideos .VIDEO-YOUTUBE ul.video li iframe').css("height","200px");}else if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()){$('.productDetailVideos .VIDEO-YOUTUBE ul.video li iframe').css("height","150px");}}mobileVideoHeight();$(window).resize(mobileVideoHeight);})();
29(function(){$(function(){var chooseMonths=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customText.js.chooseMonths","Choose Month");var viewAllEevents=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customText.js.viewAllEevents","View All Events");var hideMonths=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customText.js.hideMonths","Hide Months");var viewAllEeventsLink=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customText.js.viewAllEventsLink","/whats-on/searchresults?sr=1&amp;rd=on&amp;anydate=yes");$('div.whatsOnMonthly').prepend('<div class="whatsOnMonthlyShowMonths"><span class="ShowMonths">'+chooseMonths+'</span></div>');$('div.whatsOnMonthly div.GroupLinks ul').append('<li class="viewAll">'+viewAllEevents+'</li>');$('li.viewAll').click(function(){window.location=viewAllEeventsLink;});var strHiddenClassCal="whatsOnMonthlyResponsiveHidden";var $dropDownCalendarButton=$("div.whatsOnMonthly div.whatsOnMonthlyShowMonths span.ShowMonths");var $groupLinks=$(".whatsOnMonthly div.GroupLinks");$groupLinks.addClass(strHiddenClassCal);$dropDownCalendarButton.toggle(function(){$groupLinks.removeClass('monthChosen');$groupLinks.hide().removeClass(strHiddenClassCal).slideDown("fast");$dropDownCalendarButton.addClass('monthsOpen').html(hideMonths);},function(){$groupLinks.slideUp("fast",function(){$(this).addClass(strHiddenClassCal).show();});$dropDownCalendarButton.removeClass('monthsOpen').html(chooseMonths);});});})();(function(){$(function(){var chooseMonths=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customText.js.chooseMonths","Choose Month");var viewAllEevents=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customText.js.viewAllEevents","View All Events");var hideMonths=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customText.js.hideMonths","Hide Months");var viewAllEeventsLink=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customText.js.viewAllEventsLink","/whats-on/searchresults?sr=1&amp;rd=on&amp;anydate=yes");$('div.whatsOnMonthlyTP').prepend('<div class="whatsOnMonthlyShowMonths"><span class="ShowMonths">'+chooseMonths+'</span></div>');$('div.whatsOnMonthlyTP div.GroupLinks ul').append('<li class="viewAll">'+viewAllEevents+'</li>');$('li.viewAll').click(function(){window.location=viewAllEeventsLink;});var strHiddenClassCal="whatsOnMonthlyResponsiveHidden";var $dropDownCalendarButton=$("div.whatsOnMonthlyTP div.whatsOnMonthlyShowMonths span.ShowMonths");var $groupLinks=$(".whatsOnMonthlyTP div.GroupLinks");$groupLinks.addClass(strHiddenClassCal);$dropDownCalendarButton.toggle(function(){$groupLinks.removeClass('monthChosen');$groupLinks.hide().removeClass(strHiddenClassCal).slideDown("fast");$dropDownCalendarButton.addClass('monthsOpen').html(hideMonths);},function(){$groupLinks.slideUp("fast",function(){$(this).addClass(strHiddenClassCal).show();});$dropDownCalendarButton.removeClass('monthsOpen').html(chooseMonths);});});})();
30(function(){$('<div class="prev"><img src="/images/arrows/arrow_left_block.png" alt="Prev" title="More" /></div>').appendTo('.featuredPagesScrollDesktop');$('<div class="next"><img src="/images/arrows/arrow_right_block.png" alt="Next" title="More" /></div>').appendTo('.featuredPagesScrollDesktop');if(navigator.appVersion.indexOf("MSIE 7.")!==-1){$(".featuredPagesScrollDesktop").jCarouselLite({auto:true,timeout:15000,circular:true,autoWidth:false,responsive:true,visible:4,speed:800,pause:true,scroll:4,btnPrev:".featuredPagesScrollDesktop .prev",btnNext:".featuredPagesScrollDesktop .next",afterEnd:function(){if(NewMind.ETWP&&NewMind.ETWP.LazyLoadImages){NewMind.ETWP.LazyLoadImages.RegisterLazyLoadTrigger();}}});}else if(navigator.appVersion.indexOf("MSIE 8.")!==-1){$(".featuredPagesScrollDesktop").jCarouselLite({auto:true,timeout:15000,circular:true,autoWidth:false,responsive:true,visible:4,speed:800,scroll:4,pause:true,btnPrev:".featuredPagesScrollDesktop .prev",btnNext:".featuredPagesScrollDesktop .next",afterEnd:function(){if(NewMind.ETWP&&NewMind.ETWP.LazyLoadImages){NewMind.ETWP.LazyLoadImages.RegisterLazyLoadTrigger();}}});}else{$(".featuredPagesScrollDesktop").jCarouselLite({auto:true,timeout:15000,circular:true,autoWidth:true,responsive:true,visible:4,speed:800,pause:true,scroll:4,btnPrev:".featuredPagesScrollDesktop .prev",btnNext:".featuredPagesScrollDesktop .next",afterEnd:function(){if(NewMind.ETWP&&NewMind.ETWP.LazyLoadImages){NewMind.ETWP.LazyLoadImages.RegisterLazyLoadTrigger();}}});}})();
31(function(){NewMind.registerNameSpace("NewMind.Site");(function(){function multiSearchClass(){$('.productSearch, #again').removeClass('openMulti');$(".productSearch div.prodMltSrch, #again div.prodMltSrch").each(function(i){if($(this).hasClass('open')){$(this).parent().addClass('openMulti');}});}$(document).ready(multiSearchClass);if(NewMind.ETWP.MultiSearchSwitcher){NewMind.ETWP.MultiSearchSwitcher.CallBackEvent.subscribe(multiSearchClass);};})();})();
32$(document).ready(function(){$('.dontMissNavAcco').appendTo('.navigationMain ul li.accommodation ul.sub1');$('.dontMissNavExplore').appendTo('.navigationMain ul li.explore ul.sub1');$('.dontMissNavEat').appendTo('.navigationMain ul li.eating ul.sub1');$('.dontMissNavEvent').appendTo('.navigationMain ul li.whatsOn ul.sub1');$('.dontMissNavTTD').appendTo('.navigationMain ul li.ttd ul.sub1');$('.dontMissNavIdeas').appendTo('.navigationMain ul li.ideas ul.sub1');$('.dontMissNavTowns').appendTo('.navigationMain ul li.towns ul.sub1');$('.dontMissNavVisitInfo').appendTo('.navigationMain ul li.visitorInfo ul.sub1');
32if(NewMind.ETWP.LazyLoadImages){var imgFP=$('.navigationMain .dontMissNav ul li a img');NewMind.ETWP.LazyLoadImages.LoadSpecificLazyImages(imgFP);};$("div.dontMissNav").each(function(i){$(this).find('ul li:last-child').each(function(i){$(this).addClass("lastItem");});});});
33(function(){function setTextAndVideoContentHeight(){$("div.featuredItems div.wrapper>ol li.TextContentBlock, div.featuredItems div.wrapper>ol li.YouTubeVideoBlock, div.featuredItems div.wrapper>ol li.VimeoVideoBlock, div.featuredItems div.wrapper>ol li.MostRecentTweetBlock").each(function(i){var newHeight=null;if($(this).is(".size1x1")){var imageResizerWidth=427;var imageResizerHeight=286;}else if($(this).is(".size1x2")){var imageResizerWidth=559;var imageResizerHeight=667;}else if($(this).is(".size2x2")){var imageResizerWidth=1135;var imageResizerHeight=682;}else if($(this).is(".size3x2")){var imageResizerWidth=870;var imageResizerHeight=582;}var obtainControlSpace=$(this).find('div.item-content').innerWidth();console.log(obtainControlSpace);var setHeightAndWidthCalculation=(imageResizerHeight/imageResizerWidth);var newHeight=setHeightAndWidthCalculation*obtainControlSpace;var heightRemoveDecimal=newHeight.toPrecision(1);$(this).css("height",newHeight);$(this).find('iframe').css("min-height",newHeight);$(this).find('div.video').css("height",newHeight-'50px');console.log(heightRemoveDecimal);});}if($("div.featuredItems div.wrapper > ol > li.loading").length>0){NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $("div.featuredItems div.wrapper > ol > li.loading").length===0;},MaxNumberOfAttempts:2000,Success:function(){setTextAndVideoContentHeight();}});}else{setTextAndVideoContentHeight();}var cachedWidthSpaceFix=$(window).width();$(window).resize(function(){var newWidthSpaceFix=$(window).width();if(newWidthSpaceFix!==cachedWidthSpaceFix){cachedWidthSpaceFix=newWidthSpaceFix;setTextAndVideoContentHeight();}});})();
34(function(){$("div.featuredItems div.wrapper>ol>li div.item-content").each(function(){$(this).find('div.title, div.description, ol.openings').wrapAll('<div class="featuredItemsInnerContent">');});function WrapFeaturedItems(){$("div.featuredItems div.wrapper > ol li.AlignLeftWrapTwo").each(function(i){$(this).nextAll().slice(0,2).wrapAll('<li class="featuredItemsInnerWrapper featuredItemsInnerWrapperNext"></li>');});$("div.featuredItems div.wrapper > ol li.AlignLeftWrapThree").each(function(i){$(this).nextAll().slice(0,3).wrapAll('<li class="featuredItemsInnerWrapper featuredItemsInnerWrapperThree featuredItemsInnerWrapperNext"></li>');});$("div.featuredItems div.wrapper > ol li.AlignLeftWrapFour").each(function(i){$(this).nextAll().slice(0,4).wrapAll('<li class="featuredItemsInnerWrapper featuredItemsInnerWrapperFour featuredItemsInnerWrapperNext"></li>');});$("div.featuredItems div.wrapper > ol li.AlignRightWrapTwo").each(function(i){$(this).prevAll().slice(0,2).wrapAll('<li class="featuredItemsInnerWrapper featuredItemsInnerWrapperPrev"></li>');});$("div.featuredItems div.wrapper > ol li.AlignRightWrapThree").each(function(i){$(this).prevAll().slice(0,3).wrapAll('<li class="featuredItemsInnerWrapper featuredItemsInnerWrapperThree featuredItemsInnerWrapperPrev"></li>');});$("div.featuredItems div.wrapper > ol li.AlignRightWrapFour").each(function(i){$(this).prevAll().slice(0,4).wrapAll('<li class="featuredItemsInnerWrapper featuredItemsInnerWrapperFour featuredItemsInnerWrapperPrev"></li>');});}function WrapFeaturedItems2019(){$("div.featuredItems div.wrapper > ol li.AlignLeftWrapTwo").each(function(i){$(this).nextAll().slice(0,2).wrapAll('<li class="featuredItemsInnerWrapper featuredItemsInnerWrapperTwo featuredItemsInnerWrapperNext"><ol></ol></li>');});$("div.featuredItems div.wrapper > ol li.AlignLeftWrapThree").each(function(i){$(this).nextAll().slice(0,3).wrapAll('<li class="featuredItemsInnerWrapper featuredItemsInnerWrapperThree featuredItemsInnerWrapperNext"><ol></ol></li>');});$("div.featuredItems div.wrapper > ol li.AlignLeftWrapFour").each(function(i){$(this).nextAll().slice(0,4).wrapAll('<li class="featuredItemsInnerWrapper featuredItemsInnerWrapperFour featuredItemsInnerWrapperNext"><ol></ol></li>');});$("div.featuredItems div.wrapper > ol li.AlignLeftWrapSix").each(function(i){$(this).nextAll().slice(0,6).wrapAll('<li class="featuredItemsInnerWrapper featuredItemsInnerWrapperSix featuredItemsInnerWrapperNext"><ol></ol></li>');});$("div.featuredItems div.wrapper > ol li.AlignRightWrapTwo").each(function(i){$(this).prevAll().slice(0,2).wrapAll('<li class="featuredItemsInnerWrapper featuredItemsInnerWrapperTwo featuredItemsInnerWrapperPrev"><ol></ol></li>');});$("div.featuredItems div.wrapper > ol li.AlignRightWrapThree").each(function(i){$(this).prevAll().slice(0,3).wrapAll('<li class="featuredItemsInnerWrapper featuredItemsInnerWrapperThree featuredItemsInnerWrapperPrev"><ol></ol></li>');});$("div.featuredItems div.wrapper > ol li.AlignRightWrapFour").each(function(i){$(this).prevAll().slice(0,4).wrapAll('<li class="featuredItemsInnerWrapper featuredItemsInnerWrapperFour featuredItemsInnerWrapperPrev"><ol></ol></li>');});$("div.featuredItems div.wrapper > ol li.AlignRightWrapSix").each(function(i){$(this).prevAll().slice(0,6).wrapAll('<li class="featuredItemsInnerWrapper featuredItemsInnerWrapperSix featuredItemsInnerWrapperPrev"><ol></ol></li>');});}function WrapFeaturedItems2019New(){$("div.featuredItems div.wrapper > ol li.StartRow").each(function(i){if($(this).hasClass('LastRow')){var getNumber=$(this).nextUntil("li:last").length;console.log(getNumber);}});}if($("div.featuredItems div.wrapper > ol > li.loading").length>0){NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $("div.featuredItems div.wrapper > ol > li.loading").length===0;},MaxNumberOfAttempts:2000,Success:function(){WrapFeaturedItems2019();}});}else{WrapFeaturedItems2019();}})();
35(function(){function HoverOnFeaturedItems(){var $control=$('div.featuredItems');var $item=$control.find('li.Hover');$item.each(function(index){var itemHeight=$(this).find('img').innerHeight();var $featuredItemHover=$(this).find('div.featuredItemsInnerContent');var $title=$(this).find('div.title');
35var titleHeight=$title.innerHeight();var $description=$(this).find('div.description');var descriptionHeight=$description.innerHeight();var contentHeight=(itemHeight-(titleHeight+descriptionHeight))*0.5;var bottomValue=itemHeight*-1+titleHeight;var styles={height:itemHeight,bottom:bottomValue};$featuredItemHover.css(styles);$(this).hover(function(){$featuredItemHover.addClass('hover').css('bottom',0);},function(){$featuredItemHover.removeClass('hover').css('bottom',bottomValue);$title.css('top','0px');});});}if($("div.featuredItems div.wrapper > ol li.loading").length>0){NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $("div.featuredItems div.wrapper > ol li.loading").length===0;},MaxNumberOfAttempts:2000,Success:function(){HoverOnFeaturedItems();}});}else{HoverOnFeaturedItems();}var cachedWidthSpaceFix=$(window).width();$(window).resize(function(){var newWidthSpaceFix=$(window).width();if(newWidthSpaceFix!==cachedWidthSpaceFix){cachedWidthSpaceFix=newWidthSpaceFix;HoverOnFeaturedItems();}});(function(){if(NewMind.ETWP.LazyLoadImages){NewMind.ETWP.LazyLoadImages.AddPreLoadCallback(resizeImage);}function resizeImage(){if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()){NewMind.ETWP.LazyLoadImagesExtensions.RewriteImageResizerAction('FeaturedItems2x1','FeaturedItems1x1');}}$('div.featuredItems').each(function(index){$(this).addClass('featuredItems'+index);});function FeaturedItemsShowMore(target){$(target).each(function(){var showMore=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customText.js.showMore","Show More");var showLess=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customText.js.showLess","Show Less");$(target).find("div.wrapper > ol").children(':lt(3)').addClass('showItemAlways');if($(target).find("div.wrapper > ol").children().length>3){$(target).find('div.wrapper > ol').append('<div class="showMore">'+showMore+'</div>');$(target).find('div.showMore').toggle(function(){$(target).find("div.wrapper > ol").children().addClass('showItem');$(target).find("div.wrapper > ol div.showMore").text(showLess).addClass('showLess');var imgFIMobileImages=$(target).find('div.wrapper>ol > li.showItem img');NewMind.ETWP.LazyLoadImages.LoadSpecificLazyImages(imgFIMobileImages);},function(){$(target).find("div.wrapper > ol").children().removeClass('showItem');$(target).find("div.wrapper > ol div.showMore").text(showMore).removeClass('showLess');$('html, body').animate({scrollTop:$(target).offset().top},1000);});}});}if($("div.featuredItems div.wrapper > ol > li.loading").length>0){NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $("div.featuredItems div.wrapper > ol > li.YouTubeVideoBlock.NoImage.NoLink").length>0;},MaxNumberOfAttempts:2000,Success:function(){FeaturedItemsShowMore('div.featuredItems0');FeaturedItemsShowMore('div.featuredItems1');FeaturedItemsShowMore('div.featuredItems2');FeaturedItemsShowMore('div.featuredItems3');FeaturedItemsShowMore('div.featuredItems4');FeaturedItemsShowMore('div.featuredItems5');FeaturedItemsShowMore('div.featuredItems6');}});}else{FeaturedItemsShowMore('div.featuredItems0');FeaturedItemsShowMore('div.featuredItems1');FeaturedItemsShowMore('div.featuredItems2');FeaturedItemsShowMore('div.featuredItems3');FeaturedItemsShowMore('div.featuredItems4');FeaturedItemsShowMore('div.featuredItems5');FeaturedItemsShowMore('div.featuredItems6');}})();})();
36if($('div.featuredItemsGallery').length>0){NewMind.registerNameSpace("NewMind.Site");function FeaturedItemsGalleryWrapping(target){function contentWrapping(){$(target).find("div.wrapper>ol>li div.item-content").each(function(){$(this).find('div.title, div.description, ol.openings').wrapAll('<div class="featuredItemsInnerContent">');$(this).find('div.featuredItemsInnerContent').wrapAll('<div class="featuredItemsContent">');var $MediaNoteInner=$(this).find("div.featuredItemsInnerContent");var $itemlink=$(this).find("a").attr('href');if($(this).find("a").length>0){$MediaNoteInner.append('<div class="MoreLink"><a href="'+$itemlink+'">Find Out More</a></div>');}});}if($(target).find('div.wrapper>ol li').length>1){contentWrapping();}else{contentWrapping();}function FeaturedItemsCopyright(){var $control=$('div.featuredItemsGallery');var $item=$control.find('div.wrapper>ol li');$item.each(function(){var imagecredits=$(this).find('img').attr('data-copyright');
36if(imagecredits!=null){var $mediaNote=$(this).find('div.featuredItemsInnerContent');$(this).find($mediaNote).append('<p class="copyright">&copy; '+imagecredits+'</p>');}});}FeaturedItemsCopyright();}(function(){FeaturedItemsGalleryWrapping('div.featItemJSGallery1');})();function FeaturedItemsGallery(target){var resizeFromTop='FeaturedItemsGallery20193x2';var resizeFromBottom='FeaturedItems4x3';var resizeTo='FeaturedItemsGallery20191x1';function resizeImage(){if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()){NewMind.ETWP.LazyLoadImagesExtensions.RewriteImageResizerAction(resizeFromTop,resizeTo);NewMind.ETWP.LazyLoadImagesExtensions.RewriteImageResizerAction();}}function moveVideoOrNot(){if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()){$videoContainer=$('div.MobileVideoButton');$obtainVideo=$(target).find('div.wrapper>ol li.VimeoVideo').first();$($obtainVideo).appendTo($videoContainer);$obtainNewVideo=$('div.MobileVideoButton li.VimeoVideo');$obtainNewVideoAttr=$('div.MobileVideoButton li.VimeoVideo video');$videoOpenLink=$('div.MobileVideoButton .videoPlayButton');setTimeout(function(){$($obtainNewVideo).each(function(){if(!$(this).hasClass("customButtonsAdded")){$($videoContainer).css("display","block");videoControls=$('<div class="videoControls"></div>');$videoUnmute=$('<div class="videoControl videoUnmute"></div>');$videoMute=$('<div class="videoControl videoMute soundOptionHide"></div>');$videoPause=$('<div class="videoControl videoPause"></div>');$videoPlay=$('<div class="videoControl videoPlay soundOptionHide"></div>');videoControls.append($videoUnmute,$videoMute,$videoPause,$videoPlay);$(this).append(videoControls);var obtainIframe=$(this).find('video');var obtainVideoMute=$(this).find('div.videoMute');var obtainVideoUnMute=$(this).find('div.videoUnmute');var obtainVideoPause=$(this).find('div.videoPause');var obtainVideoPlay=$(this).find('div.videoPlay');$(obtainVideoMute).click(function(){$(obtainIframe).prop('muted',true);$(this).addClass('soundOptionHide');$(obtainVideoUnMute).removeClass('soundOptionHide');});$(obtainVideoUnMute).click(function(){$(obtainIframe).prop('muted',false);$(this).addClass('soundOptionHide');$(obtainVideoMute).removeClass('soundOptionHide');});$(obtainVideoPause).click(function(){$(obtainIframe).get(0).pause();$(this).addClass('soundOptionHide');$(obtainVideoPlay).removeClass('soundOptionHide');});$(obtainVideoPlay).click(function(){$(obtainIframe).get(0).play();$(this).addClass('soundOptionHide');$(obtainVideoPause).removeClass('soundOptionHide');});$(this).addClass('customButtonsAdded');}});},1000);$($videoOpenLink).toggle(function(){$($obtainNewVideo).slideDown('fast');$($obtainNewVideoAttr).get(0).play();$(this).addClass("close");},function(){$($obtainNewVideo).slideUp('fast');$($obtainNewVideoAttr).get(0).pause();$(this).removeClass("close");});}}moveVideoOrNot();function nameVideoControl($el,label){$el.attr({role:'button',tabindex:'0','aria-label':label});$el.on('keydown',function(e){var key=e.key||e.keyCode;if(key==='Enter'||key===' '||key===13||key===32){e.preventDefault();$(this).trigger('click');}});}function videoCustomControlsYouTubeVimeoEmbed(){setTimeout(function(){$(target).find("div.wrapper>ol li.YouTubeVideoBlock, div.wrapper>ol li.VimeoVideoBlock").each(function(){videoControls=$('<div class="videoControls"></div>');$videoUnmute=$('<div class="videoControl videoUnmute"></div>');$videoMute=$('<div class="videoControl videoMute soundOptionHide"></div>');$videoPause=$('<div class="videoControl videoPause"></div>');$videoPlay=$('<div class="videoControl videoPlay soundOptionHide"></div>');nameVideoControl($videoUnmute,'Unmute video');nameVideoControl($videoMute,'Mute video');nameVideoControl($videoPause,'Pause video');nameVideoControl($videoPlay,'Play video');videoControls.append($videoUnmute,$videoMute,$videoPause,$videoPlay);$(this).append(videoControls);var obtainIframe=$(this).find('iframe');var obtainVideoMute=$(this).find('div.videoMute');var obtainVideoUnMute=$(this).find('div.videoUnmute');var obtainVideoPause=$(this).find('div.videoPause');var obtainVideoPlay=$(this).find('div.videoPlay');$(obtainVideoMute).click(function(){$(obtainIframe)[0].contentWindow.postMessage('{"event":"command","func":"mute","args":""}','*');$(obtainIframe)[0].contentWindow.postMessage('{"method":"setVolume","value":"0"}','*');$(this).addClass('soundOptionHide');$(obtainVideoUnMute).removeClass('soundOptionHide');});$(obtainVideoUnMute).click(function(){$(obtainIframe)[0].contentWindow.postMessage('{"event":"command","func":"unMute","args":""}','*');$(obtainIframe)[0].contentWindow.postMessage('{"method":"setVolume","value":"1"}','*');$(this).addClass('soundOptionHide');$(obtainVideoMute).removeClass('soundOptionHide');});$(obtainVideoPause).click(function(){$(obtainIframe)[0].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}','*');$(obtainIframe)[0].contentWindow.postMessage('{"method":"pause","value":""}','*');$(this).addClass('soundOptionHide');$(obtainVideoPlay).removeClass('soundOptionHide');});$(obtainVideoPlay).click(function(){$(obtainIframe)[0].contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}','*');$(obtainIframe)[0].contentWindow.postMessage('{"method":"play","value":""}','*');$(this).addClass('soundOptionHide');$(obtainVideoPause).removeClass('soundOptionHide');});});},1000);}function videoCustomControls(){setTimeout(function(){$(target).find("div.wrapper>ol li.VimeoVideo").each(function(){videoControls=$('<div class="videoControls"></div>');$videoUnmute=$('<div class="videoControl videoUnmute"></div>');$videoMute=$('<div class="videoControl videoMute soundOptionHide"></div>');$videoPause=$('<div class="videoControl videoPause"></div>');
36$videoPlay=$('<div class="videoControl videoPlay soundOptionHide"></div>');nameVideoControl($videoUnmute,'Unmute video');nameVideoControl($videoMute,'Mute video');nameVideoControl($videoPause,'Pause video');nameVideoControl($videoPlay,'Play video');videoControls.append($videoUnmute,$videoMute,$videoPause,$videoPlay);$(this).append(videoControls);var obtainIframe=$(this).find('video');var obtainVideoMute=$(this).find('div.videoMute');var obtainVideoUnMute=$(this).find('div.videoUnmute');var obtainVideoPause=$(this).find('div.videoPause');var obtainVideoPlay=$(this).find('div.videoPlay');$(obtainVideoMute).click(function(){$(obtainIframe).prop('muted',true);$(this).addClass('soundOptionHide');$(obtainVideoUnMute).removeClass('soundOptionHide');});$(obtainVideoUnMute).click(function(){$(obtainIframe).prop('muted',false);$(this).addClass('soundOptionHide');$(obtainVideoMute).removeClass('soundOptionHide');});$(obtainVideoPause).click(function(){$(obtainIframe).get(0).pause();$(this).addClass('soundOptionHide');$(obtainVideoPlay).removeClass('soundOptionHide');});$(obtainVideoPlay).click(function(){$(obtainIframe).get(0).play();$(this).addClass('soundOptionHide');$(obtainVideoPause).removeClass('soundOptionHide');});});},1000);}function scrollFunctionality(){$carouselControls=$('<div class="CarouselControls"></div>');$controlLeft=$('<div class="CarouselLeft"></div>');$controlRight=$('<div class="CarouselRight"></div>');$carouselControls.append($controlLeft,$controlRight);$featuredItemsControl=$(target);$featuredItemsControl.append($carouselControls);$featuredItemsControl=$(target);$featuredItemsControl.append($carouselControls);$($featuredItemsControl).jCarouselLiteFeaturedItems({timeout:15000,circular:true,autoWidth:true,responsive:true,visible:1,scroll:1,speed:1000,pause:true,swipe:false,btnPrev:$controlLeft,btnNext:$controlRight,beforeStart:function(){$(target).find(".video iframe").each(function(){$(this)[0].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}','*');$(this)[0].contentWindow.postMessage('{"method":"pause","value":""}','*');});$(".VimeoVideo video").each(function(){$(this).get(0).pause();});if($(target).hasClass('featuredItemsGalleryFadeTitle')){$(target).find("div.wrapper>ol > li div.item-content div.featuredItemsInnerContent").removeClass('showItemContent');}var imgFIScroll=$(target).find('div.wrapper>ol > li img');NewMind.ETWP.LazyLoadImages.LoadSpecificLazyImages(imgFIScroll);},afterEnd:function(){$(target).find("li.active .video iframe").each(function(){$(this)[0].contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}','*');$(this)[0].contentWindow.postMessage('{"method":"play","value":""}','*');});$(target).find(".VimeoVideo.active video").each(function(){$(this).get(0).play();});if($(target).hasClass('featuredItemsGalleryFadeTitle')){$(target).find("div.wrapper>ol > li div.item-content div.featuredItemsInnerContent").addClass('showItemContent');}}});$($featuredItemsControl).find('div.wrapper>ol li').each(function(i){$(this).addClass("item"+(i+1));});$($featuredItemsControl).find('div.wrapper>ol li.item2').addClass('active');videoCustomControlsYouTubeVimeoEmbed();videoCustomControls();
36$($featuredItemsControl).addClass('controlLoaded');$('div.wrapperFullWidthMedia').addClass('controlLoaded');if($(target).hasClass('featuredItemsGalleryPreview')){$('div.wrapperFullWidthMedia').addClass('background-wrapper-overflow');}if($(target).hasClass('featuredItemsGalleryFadeTitle')){$(target).find("div.wrapper> ol > li div.item-content div.featuredItemsInnerContent").addClass('showItemContent');}setTimeout(function(){var customSiteVideoEnhancements=$(target).find("div.wrapper> ol > li.YouTubeVideoBlock .video iframe").attr('src');var obtainVideoID=$(target).find("div.wrapper> ol > li.YouTubeVideoBlock .video iframe").attr('data-youtube-video-id');$(target).find('div.wrapper>ol li.YouTubeVideoBlock .video iframe').attr("src",customSiteVideoEnhancements+'&showinfo=0&controls=0&loop=1&modestbranding=1&playlist='+obtainVideoID);var obtainMuteVideoURL=$(target).find('div.wrapper>ol li.YouTubeVideoBlock.mute .video iframe').attr('src');$(target).find('div.wrapper>ol li.YouTubeVideoBlock.mute .video iframe').attr("src",obtainMuteVideoURL+'&mute=1');var obtainFirstVideoURLAutoPlay=$(target).find('div.wrapper>ol li.cell0.YouTubeVideoBlock.autoplay .video iframe').attr('src');$(target).find('div.wrapper>ol li.cell0.YouTubeVideoBlock.autoplay .video iframe').attr("src",obtainFirstVideoURLAutoPlay+'&autoplay=1');var obtainMuteVideoURLVimeo=$(target).find('div.wrapper>ol li.VimeoVideoBlock.mute .video iframe').attr('src');$(target).find('div.wrapper>ol li.VimeoVideoBlock.mute .video iframe').attr("src",obtainMuteVideoURLVimeo+'?muted=1');var obtainFirstVideoURLAutoPlayVimeo=$(target).find('div.wrapper>ol li.cell0.VimeoVideoBlock.autoplay .video iframe').attr('src');$(target).find('div.wrapper>ol li.cell0.VimeoVideoBlock.autoplay .video iframe').attr("src",obtainFirstVideoURLAutoPlayVimeo+'&autoplay=1&loop=1');},1000);}if($(target).find('div.wrapper>ol > li').length>1){scrollFunctionality();var imgFIScrollFirstImage=$(target).find('div.wrapper>ol > li.active img');NewMind.ETWP.LazyLoadImages.LoadSpecificLazyImages(imgFIScrollFirstImage);}else{$(target).addClass('featuredItemsGallerySingleItem');
36$(target).addClass('controlLoaded');if($(target).hasClass('featuredItemsGalleryFadeTitle')){$(target).find("div.wrapper>ol > li div.item-content div.featuredItemsInnerContent").removeClass('showItemContent');}videoCustomControlsYouTubeVimeoEmbed();videoCustomControls();var imgFI=$(target).find('div.wrapper>ol > li img');NewMind.ETWP.LazyLoadImages.LoadSpecificLazyImages(imgFI);}}function transparentPanelsAppend(){if($('div.featItemJSGallery').hasClass('featuredItemsGalleryPreview')){$('<div class="left"></div>').prependTo('div.wrapperFullWidthMedia div.fullWidthInnerWrapper');$('<div class="right"></div>').appendTo('div.wrapperFullWidthMedia div.fullWidthInnerWrapper');}var windowWidth=$(window).width();var headerWidth=$('div#header').width();var wrapperWidth=windowWidth-headerWidth;var wrapperWidth=wrapperWidth/2;$('div.wrapperFullWidthMedia div.fullWidthInnerWrapper div.left').width(wrapperWidth);$('div.wrapperFullWidthMedia div.fullWidthInnerWrapper div.right').width(wrapperWidth);};function controlHeightForLoading(){var newHeight=null;var imageResizerHeight,imageResizerWidth;imageResizerHeight=1080;imageResizerWidth=1920;var obtainViewportSpace=$('div.wrapperFullWidthMedia').width();var setHeightAndWidthCalculation=(imageResizerHeight/imageResizerWidth);var newHeight=setHeightAndWidthCalculation*obtainViewportSpace;$("div.featItemJSGallery").each(function(){$(this).css('height',newHeight);$(this).find('ol > li').css('height',newHeight);$(this).find('div.CarouselControls').css('height',newHeight);});}function checkVideoIsPaused(){var isVideoActiveSlide=$('div.featuredItemsGallery div.wrapper>ol li.VimeoVideo');if($(isVideoActiveSlide).hasClass('active')){var nowObtainVideo=$('div.featuredItemsGallery div.wrapper>ol li.VimeoVideo.active').find('video');var nowObtainVideoNotActive=$('div.featuredItemsGallery div.wrapper>ol li.VimeoVideo').not('.active').find('video');var videoElement=nowObtainVideo.get(0);var videoElementNotActive=nowObtainVideoNotActive.get(0);videoElementNotActive.pause();$(videoElementNotActive).prop('muted',true);}}(function(){FeaturedItemsGallery('div.featItemJSGallery1');controlHeightForLoading();checkVideoIsPaused();transparentPanelsAppend();})();function FullWidthcontrolHeightForLoading(){var newHeight=null;var imageResizerHeight,imageResizerWidth;if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()){}else{}imageResizerHeight=1080;imageResizerWidth=1920;var obtainViewportSpace=$('div.wrapperFullWidthMedia').width();var setHeightAndWidthCalculation=(imageResizerHeight/imageResizerWidth);var newHeight=setHeightAndWidthCalculation*obtainViewportSpace;$("div.FullWidthfeatItemJSGallery").each(function(){$(this).css('height',newHeight);$(this).find('ol > li').css('height',newHeight);});}(function(){function setIframeContentHeightVideo(){var newHeight=null;var imageResizerHeight=1080;var imageResizerWidth=1920;var obtainViewportSpace=$('div.wrapperFullWidthMedia').width();var setHeightAndWidthCalculation=(imageResizerHeight/imageResizerWidth);var newHeight=setHeightAndWidthCalculation*obtainViewportSpace;$("div.featItemJSGallery").each(function(){$(this).find("div.wrapper>ol li.YouTubeVideoBlock, div.wrapper>ol li.VimeoVideoBlock, div.wrapper>ol li.VimeoVideo").each(function(){$(this).find('div.video').css("height",newHeight);$(this).find('iframe').css("height",newHeight);$(this).find('div.vimeoVideoWrapper').css("height",newHeight);$(this).find('div.item-content').css("height",newHeight);});});}function transparentPanels(){var windowWidth=$(window).width();var headerWidth=$('div#header').width();var wrapperWidth=windowWidth-headerWidth;var wrapperWidth=wrapperWidth/2;$('div.wrapperFullWidthMedia div.fullWidthInnerWrapper div.left').width(wrapperWidth);$('div.wrapperFullWidthMedia div.fullWidthInnerWrapper div.right').width(wrapperWidth);};if($("div.featItemJSGallery div.wrapper > ol > li.loading").length>0){NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $("div.featItemJSGallery div.wrapper > ol li.loading").length===0;},MaxNumberOfAttempts:2000,Success:function(){setIframeContentHeightVideo();}});}else{setIframeContentHeightVideo();}var cachedWidthSpaceFix=$(window).width();$(window).resize(function(){var newWidthSpaceFix=$(window).width();if(newWidthSpaceFix!==cachedWidthSpaceFix){cachedWidthSpaceFix=newWidthSpaceFix;setIframeContentHeightVideo();setTimeout(transparentPanels,2000);controlHeightForLoading();}});})();(function(){function FullWidthsetIframeContentHeightVideo(){var newHeight=null;var imageResizerHeight=1080;var imageResizerWidth=1920;var obtainViewportSpace=$('div.FeaturedItemsFullWidth').width();var setHeightAndWidthCalculation=(imageResizerHeight/imageResizerWidth);var newHeight=setHeightAndWidthCalculation*obtainViewportSpace;$("div.FullWidthfeatItemJSGallery").each(function(){$(this).find("div.wrapper>ol li.YouTubeVideoBlock, div.wrapper>ol li.VimeoVideoBlock, div.wrapper>ol li.VimeoVideo").each(function(){$(this).find('div.video').css("height",newHeight);$(this).find('iframe').css("height",newHeight);$(this).find('div.vimeoVideoWrapper').css("height",newHeight);$(this).find('div.item-content').css("height",newHeight);});});}if($("div.FullWidthfeatItemJSGallery div.wrapper > ol > li.loading").length>0){NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $("div.FullWidthfeatItemJSGallery div.wrapper > ol li.loading").length===0;},MaxNumberOfAttempts:2000,Success:function(){FullWidthsetIframeContentHeightVideo();}});}else{$(window).load(FullWidthsetIframeContentHeightVideo);}var cachedWidthSpaceFix=$(window).width();$(window).resize(function(){var newWidthSpaceFix=$(window).width();if(newWidthSpaceFix!==cachedWidthSpaceFix){cachedWidthSpaceFix=newWidthSpaceFix;FullWidthsetIframeContentHeightVideo();}});})();
36(function(){function ImageAmountCheck(){if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()){setTimeout(function(){if($("div.featItemJSGallery1 div.wrapper ol li").length===0){$("div#headerWrapper").removeClass("transition");}},2000);}}ImageAmountCheck();})();}
37if(/iemobile|Windows Phone/i.test(navigator.userAgent)){$("div.ShowHideLinks a.ViewPrices").click(function(){NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $(".UnitSelData form.FrmUnitOptions").length>0;},MaxNumberOfAttempts:200,Success:function(){$('form.FrmUnitOptions').removeAttr('target');}});});NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $("form.FrmUnitOptions").length>0;},MaxNumberOfAttempts:200,Success:function(){$('form.FrmUnitOptions').removeAttr('target');}});}
38$(function(){(function(){NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return($(".goog-te-combo").length>0);},MaxNumberOfAttempts:100,Success:function(){$('div.languageSelector').each(function(){$(this).click(function(){$('html,body').animate({scrollTop:$('#google_translate_element').offset().top-450},'slow',function(){$('div.googleTranslate').addClass('highlighted');setTimeout(function(){$('div.googleTranslate').removeClass('highlighted');},3000);});});});}});})();});
39(function(){if(window.location.href.indexOf("#removeRefine")>-1){$("body").addClass("mapRemoveRefine");}NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $("div.automatedMapWidget div.mapView.googleView div#mapFilters > fieldset > fieldset").length>1;},MaxNumberOfAttempts:200,Success:function(){$("div.mapFilterIconText").toggle(function(){$('div.mapFilterIconText').addClass('refineIconOpen');$('div.MapFilterIconSet').addClass('MapFilterIconSetOpen');$('div.automatedMapWidget div.mapView.googleView').addClass('refineOpen');},function(){$('div.mapFilterIconText').removeClass('refineIconOpen');$('div.MapFilterIconSet').removeClass('MapFilterIconSetOpen');$('div.automatedMapWidget div.mapView.googleView').removeClass('refineOpen');});}});function mapPopUpChanges(){$('.automatedMapWidget .InfoBoxContent').each(function(){$(this).find('h2.ProductName a').attr('target','_blank');$(function(){if($(".automatedMapWidget .InfoBoxContent .address br").length>0){$('.automatedMapWidget .InfoBoxContent .address br:last-child').addClass('last');$('.automatedMapWidget .InfoBoxContent .address br.last').replaceWith('&nbsp;');$('.automatedMapWidget .InfoBoxContent .address br').replaceWith('</span>,&nbsp;<span>');}}());});}function hideMapImages(){if($('body.mapShow div.automatedMapWidget div.InfoBoxContent div.YOUTUBE').length>0){$('div.automatedMapWidget div.ProductListImageGallery').addClass('ProductListImageGalleryHide');}}if(NewMind.mapping&&NewMind.mapping.SetCustomMarkerAlignment){NewMind.mapping.SetCustomMarkerAlignment({width:25,height:33});NewMind.mapping.infoBubbleDisplayed.subscribe(mapPopUpChanges);NewMind.mapping.infoBubbleDisplayed.subscribe(hideMapImages);}$(function(){var mapUrl=window.location.href;var closePopup=$('div.mapEmbedTabs div.tabNavigation li.closePopup');$('div.mapEmbedShare, div.mapEmbedEmbed').appendTo('div.ctl_Content.mapEmbedTabs div.productTabs div.tabContainer ');var embedOverlay=$('div#embedOverlay');var embedTabs=$('div.mapEmbedTabs');var embedMapSmall=$('div.mapEmbedTabs div.mapOptions div.mapSmall');var embedMapMedium=$('div.mapEmbedTabs div.mapOptions div.mapMedium');var embedMapLarge=$('div.mapEmbedTabs div.mapOptions div.mapLarge');var embedMapCustom=$('div.mapEmbedTabs div.mapOptions div.customSize');var embedMapDefaultText=$('div.mapEmbedTabs div.mapOptions div.mapDefault');var embedGenerateButton=$('div.mapEmbedTabs div.generate');var embedWidgetInputEmbedIframe=$('div.mapEmbedTabs div.mapEmbedEmbed div.mapEmbedContent input#embedWidget');var embedWidgetInputShareIframe=$('div.mapEmbedTabs div.mapEmbedShare div.mapShareContent input#shareWidget');var embedWidgetCustomSize=$('div.mapEmbedTabs div.customEmbedDimensions');var embedOpenShareOption=$('div.openShare');var embedChooseOptions=$('div.mapEmbedTabs div.mapOptionsChoose');var embedCustomDimensionsOpen='customEmbedDimensionsOpen';var mapEmbedOpen='mapEmbedOpen';var embedOverlayOpen='embedOverlayOpen';$('div.mapEmbedTabs div.tabNavigation>ul>li').click(function(e){$(this).addClass('selected').siblings().removeClass('selected');if($('li.tab_ShareMap').hasClass('selected')){$('div.mapEmbedTabs div.productTabs div.tabContainer div.mapEmbedEmbed').removeClass(mapEmbedOpen);$('div.mapEmbedTabs div.productTabs div.tabContainer div.mapEmbedShare').addClass(mapEmbedOpen);}if($('li.tab_EmbedMap').hasClass('selected')){$('div.mapEmbedTabs div.productTabs div.tabContainer div.mapEmbedShare').removeClass(mapEmbedOpen);$('div.mapEmbedTabs div.productTabs div.tabContainer div.mapEmbedEmbed').addClass(mapEmbedOpen);}});var iframeSmallValue='<iframe src="'+mapUrl+'" width="400" height="300" frameborder="0" style="border:0" allowfullscreen></iframe>';var iframeMediumValue='<iframe src="'+mapUrl+'" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>';var iframeLargeValue='<iframe src="'+mapUrl+'" width="800" height="600" frameborder="0" style="border:0" allowfullscreen></iframe>';var refineByCheckboxOption=$('div.mapEmbedTabs div.productTabs div.tabContainer div.mapEmbed div.mapContainer div.refineByOption input');var iframeSmallValueRemoveRefine='<iframe src="'+mapUrl+'#removeRefine" width="400" height="300" frameborder="0" style="border:0" allowfullscreen></iframe>';var iframeMediumValueRemoveRefine='<iframe src="'+mapUrl+'#removeRefine" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>';var iframeLargeValueRemoveRefine='<iframe src="'+mapUrl+'#removeRefine" width="800" height="600" frameborder="0" style="border:0" allowfullscreen></iframe>';var embedTabItem=$('div.mapEmbedTabs div.tabNavigation > ul > li');function mapWidgetActiveInput(){$(embedWidgetInputEmbedIframe).addClass('inputActive');setTimeout(function(){$(embedWidgetInputEmbedIframe).removeClass('inputActive');},1000);}function selectInputText(){$("div.mapEmbedTabs div.mapEmbedShare div.mapShareContent input").select();$("div.mapEmbedTabs div.mapEmbedEmbed div.mapEmbedContent input").select();}$(embedTabItem).click(function(){selectInputText();});$(embedOverlay).click(function(){$(embedTabs).removeClass(mapEmbedOpen);$(embedOverlay).removeClass(embedOverlayOpen);});
39$(closePopup).click(function(){$(embedTabs).removeClass(mapEmbedOpen);$(embedOverlay).removeClass(embedOverlayOpen);});$(embedMapSmall).click(function(){mapUrl=window.location.href;var itemText=$(this).html();if($(refineByCheckboxOption).is(':checked')){$(embedWidgetInputEmbedIframe).val('<iframe src="'+mapUrl+'" width="400" height="300" frameborder="0" style="border:0" allowfullscreen></iframe>');}else{$(embedWidgetInputEmbedIframe).val('<iframe src="'+mapUrl+'#removeRefine" width="400" height="300" frameborder="0" style="border:0" allowfullscreen></iframe>');}$(embedMapDefaultText).html(itemText);$(embedWidgetCustomSize).removeClass(embedCustomDimensionsOpen);mapWidgetActiveInput();selectInputText();});$(embedMapMedium).click(function(){mapUrl=window.location.href;var itemText=$(this).html();if($(refineByCheckboxOption).is(':checked')){$(embedWidgetInputEmbedIframe).val('<iframe src="'+mapUrl+'" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>');}else{$(embedWidgetInputEmbedIframe).val('<iframe src="'+mapUrl+'#removeRefine" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>');}$(embedMapDefaultText).html(itemText);$(embedWidgetCustomSize).removeClass(embedCustomDimensionsOpen);mapWidgetActiveInput();selectInputText();});$(embedMapLarge).click(function(){mapUrl=window.location.href;var itemText=$(this).html();if($(refineByCheckboxOption).is(':checked')){$(embedWidgetInputEmbedIframe).val('<iframe src="'+mapUrl+'" width="800" height="600" frameborder="0" style="border:0" allowfullscreen></iframe>');}else{$(embedWidgetInputEmbedIframe).val('<iframe src="'+mapUrl+'#removeRefine" width="800" height="600" frameborder="0" style="border:0" allowfullscreen></iframe>');}$(embedMapDefaultText).html(itemText);$(embedWidgetCustomSize).removeClass(embedCustomDimensionsOpen);mapWidgetActiveInput();selectInputText();});$(embedGenerateButton).click(function(){var mapUrl=window.location.href;var iframeCustomWidth=$("div.mapEmbedTabs div.productTabs div.tabContainer div.mapContainer div.mapEmbedOption input.custom-width").val();var iframeCustomHeight=$("div.mapEmbedTabs div.productTabs div.tabContainer div.mapContainer div.mapEmbedOption input.custom-height").val();if($(refineByCheckboxOption).is(':checked')){$(embedWidgetInputEmbedIframe).val('<iframe src="'+mapUrl+'" width="'+iframeCustomWidth+'" height="'+iframeCustomHeight+'" frameborder="0" style="border:0" allowfullscreen></iframe>');}else{$(embedWidgetInputEmbedIframe).val('<iframe src="'+mapUrl+'#removeRefine" width="'+iframeCustomWidth+'" height="'+iframeCustomHeight+'" frameborder="0" style="border:0" allowfullscreen></iframe>');}mapWidgetActiveInput();selectInputText();});$(embedMapDefaultText).click(function(event){event.stopPropagation();$(embedChooseOptions).toggle();});$(document).click(function(){$(embedChooseOptions).hide();});$(embedMapCustom).click(function(event){var itemText=$(this).html();$(embedWidgetCustomSize).addClass(embedCustomDimensionsOpen);$(embedMapDefaultText).html(itemText);});function generateURLS(){if($(embedMapDefaultText).text()==embedMapCustom.html()){var iframeCustomWidth=$("div.mapEmbedTabs div.productTabs div.tabContainer div.mapContainer div.mapEmbedOption input.custom-width").val();var iframeCustomHeight=$("div.mapEmbedTabs div.productTabs div.tabContainer div.mapContainer div.mapEmbedOption input.custom-height").val();if($(refineByCheckboxOption).is(':checked')){$(embedWidgetInputEmbedIframe).val('<iframe src="'+mapUrl+'" width="'+iframeCustomWidth+'" height="'+iframeCustomHeight+'" frameborder="0" style="border:0" allowfullscreen></iframe>');}else{$(embedWidgetInputEmbedIframe).val('<iframe src="'+mapUrl+'#removeRefine" width="'+iframeCustomWidth+'" height="'+iframeCustomHeight+'" frameborder="0" style="border:0" allowfullscreen></iframe>');}}else if($(embedMapDefaultText).text()==embedMapSmall.html()){$(embedWidgetInputEmbedIframe).val('<iframe src="'+mapUrl+'" width="400" height="300" frameborder="0" style="border:0" allowfullscreen></iframe>');}else if($(embedMapDefaultText).text()==embedMapMedium.html()){$(embedWidgetInputEmbedIframe).val('<iframe src="'+mapUrl+'" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>');}else if($(embedMapDefaultText).text()==embedMapLarge.html()){$(embedWidgetInputEmbedIframe).val('<iframe src="'+mapUrl+'" width="800" height="600" frameborder="0" style="border:0" allowfullscreen></iframe>');}selectInputText();}function generateURLS_NoRefine(){if($(embedMapDefaultText).text()==embedMapCustom.html()){var iframeCustomWidth=$("div.mapEmbedTabs div.productTabs div.tabContainer div.mapContainer div.mapEmbedOption input.custom-width").val();var iframeCustomHeight=$("div.mapEmbedTabs div.productTabs div.tabContainer div.mapContainer div.mapEmbedOption input.custom-height").val();if($(refineByCheckboxOption).is(':checked')){$(embedWidgetInputEmbedIframe).val('<iframe src="'+mapUrl+'" width="'+iframeCustomWidth+'" height="'+iframeCustomHeight+'" frameborder="0" style="border:0" allowfullscreen></iframe>');}else{$(embedWidgetInputEmbedIframe).val('<iframe src="'+mapUrl+'#removeRefine" width="'+iframeCustomWidth+'" height="'+iframeCustomHeight+'" frameborder="0" style="border:0" allowfullscreen></iframe>');}}else if($(embedMapDefaultText).text()==embedMapSmall.html()){$(embedWidgetInputEmbedIframe).val('<iframe src="'+mapUrl+'#removeRefine" width="400" height="300" frameborder="0" style="border:0" allowfullscreen></iframe>');}else if($(embedMapDefaultText).text()==embedMapMedium.html()){$(embedWidgetInputEmbedIframe).val('<iframe src="'+mapUrl+'#removeRefine" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>');}else if($(embedMapDefaultText).text()==embedMapLarge.html()){$(embedWidgetInputEmbedIframe).val('<iframe src="'+mapUrl+'#removeRefine" width="800" height="600" frameborder="0" style="border:0" allowfullscreen></iframe>');}selectInputText();}function shareEmbedDefaults(){$(refineByCheckboxOption).attr('checked',true);mapUrl=window.location.href;$(embedTabs).addClass(mapEmbedOpen);$(embedOverlay).addClass(embedOverlayOpen);$(embedWidgetInputShareIframe).val(mapUrl);generateURLS();}$(refineByCheckboxOption).change(function(){if(this.checked){generateURLS();}else{generateURLS_NoRefine();}});$(embedOpenShareOption).click(function(){shareEmbedDefaults();});$(embedWidgetInputShareIframe).click(function(){$(this).select();});$(embedWidgetInputEmbedIframe).click(function(){$(this).select();});});})();
40NewMind.registerNameSpace("NewMind.Site");$(function(){function generateGridView(){var gridView=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customText.js.gridView","Grid View");if($('div.wtsEnableGridView').hasClass('defaultGridView')){$('div.listMapLinkContainer ul.listMapLinks li.showListLink').removeClass('showList');$('div.listMapLinkContainer ul.listMapLinks').append('<li class="showBlockLink showBlock"><span>'+gridView+'</span></li>');}else{$('div.listMapLinkContainer ul.listMapLinks').append('<li class="showBlockLink"><span>'+gridView+'</span></li>');}if($('div.wtsEnableGridView').hasClass('showGridTabFirst')){$('div.listMapLinkContainer ul.listMapLinks li.showBlockLink').insertBefore('div.listMapLinkContainer ul.listMapLinks li.showListLink');}if($('div.listMapLinkContainer ul.listMapLinks li.showBlock').hasClass('showBlockLink')){$('body').addClass('showGrid');}if($('body').hasClass('showGrid')){$('div.listMapLinkContainer ul.listMapLinks li.showListLink').removeClass('showList');$('div.listMapLinkContainer ul.listMapLinks li.showBlockLink').addClass('showBlock');$('body').addClass('showListBlock');}$('div.listMapLinkContainer ul.listMapLinks li').click(function(){if($(this).hasClass('showBlockLink')){if($(this).hasClass('showBlock')){return;}else{$(this).addClass('showBlock');}}else{$('div.listMapLinkContainer ul.listMapLinks li.showBlockLink').removeClass('showBlock');$('body').removeClass('showListBlock');NewMind.ETWP.LazyLoadImages.RegisterLazyLoadTrigger();}});$('.showBlockLink').click(function(e){e.preventDefault();$('.showListLink').removeClass('showList');$('.showMapLink').removeClass('showMap');$('body').removeClass('mapShow');$('body').addClass('showListBlock');$("div.dynMapContainer").hide();$("div#mapProductList").hide();$("div.productList div.ProductListMain").show();$('div.ctl_SearchRefineSummary').show();});}if($('div.ctl_ProductList').hasClass('wtsEnableGridView')){NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $("div.listMapLinkContainer ul.listMapLinks").length>0;},MaxNumberOfAttempts:200,Success:function(){generateGridView();}});}});
41NewMind.registerNameSpace("NewMind.Site");NewMind.Site.InitGeoLocation=function(){var $prodSearchesWithPolyAndLocation=$(".ctl_ProductSearch").filter(function(){return($(this).find("select[name=\"src_polygon\"]").length>0&&$(this).find("input[name=\"src_location\"]").length>0);});$prodSearchesWithPolyAndLocation.each(function(){var $myLocationText=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customText.js.myLocation","My Location");var $prodSearch=$(this);var $polygonDropDown=$prodSearch.find("select[name=\"src_polygon\"]");var $allOption=$polygonDropDown.find("option:first");$allOption.after("<option class='geo' value=\""+$allOption.val()+"\">"+$myLocationText+"</option>");var str=',';NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $("div.ctl_ProductSearch form#refineBySearchForm span.locSel input.ac_
41input").length>0;},MaxNumberOfAttempts:1000,Success:function(){var inputElement=$("div.ctl_ProductSearch form#refineBySearchForm span.locSel input.ac_input");var inputValue=$('div.ctl_ProductSearch form#refineBySearchForm span.locSel input.ac_input').val();if($(inputElement).val().indexOf(",")>-1){$($polygonDropDown).find('option.geo').attr('selected','selected');$prodSearch.find("dt.location .label, .refine-location .label, .refine-location .field, .refine-location-nocollapse .field").hide();$prodSearch.find(".postcodeProximity").show();$prodSearch.find("div.row.refine-location").addClass('showLocation');}else{return;}}});$polygonDropDown.change(function(){if($(this).find("option:selected").text()===$myLocationText){NewMind.ETWP.LocationSelector.PopulateLocationTextBoxWithGeoLocation(NewMind.ETWP.GetControlKey($prodSearch));$prodSearch.find("dt.location .label, .refine-location .label, .refine-location .field, .refine-location-nocollapse .field").hide();$prodSearch.find("div.row.refine-location").addClass('showLocation');}else{$prodSearch.find("input[name=\"src_location\"]").val("");$prodSearch.find(".postcodeProximity").hide();$prodSearch.find("div.row.refine-location").removeClass('showLocation');}});});};$(document).ready(function(){NewMind.Site.InitGeoLocation();if(NewMind.ETWP.MultiSearchSwitcher){NewMind.ETWP.MultiSearchSwitcher.CallBackEvent.subscribe(NewMind.Site.InitGeoLocation);}});
42NewMind.registerNameSpace("NewMind.StandaloneProductMapDisplay").StartUp=(function(){"use strict";function createMap(objData){objData=objData||{};if(!objData.TabLinksContainer){throw new Error("objData.TabLinksContainer is not optional and must be provided");}if(!objData.MapDataEntries){throw new Error("objData.MapDataEntries is not optional and must be provided");}if(!objData.MapDataEntries.length){throw new Error("objData.MapDataEntries is not optional and must not be specified as an empty array");}var arrMapContainersAsJQueryReferences=[];for(var i=0;i<objData.MapDataEntries.length;i++){if(!objData.MapDataEntries[i]){throw new Error("All objData.MapDataEntries entries must have data");}if(!objData.MapDataEntries[i].Name){throw new Error("All objData.MapDataEntries entries must have Name values");}if(!objData.MapDataEntries[i].Url){throw new Error("All objData.MapDataEntries entries must have Url values");}if(!objData.MapDataEntries[i].MapContainer){throw new Error("All objData.MapDataEntries entries must have MapContainer values");}var $mapContainer=$(objData.MapDataEntries[i].MapContainer);if($mapContainer.length===0){throw new Error("All objData.MapDataEntries entries must have MapContainer values that point to existing elements");}arrMapContainersAsJQueryReferences.push($mapContainer);if(!objData.MapDataEntries[i].ProductLinksContainer){throw new Error("All objData.MapDataEntries entries must have ProductLinksContainer values");}if($(objData.MapDataEntries[i].ProductLinksContainer).length===0){throw new Error("All objData.MapDataEntries entries must have ProductLinksContainer values that point to existing elements");}}if(!objData.Language){throw new Error("objData.Language is not optional and must be provided");}var initialiseMapWithAllConfigurationValues=function(){initialise($(objData.TabLinksContainer),objData.MapDataEntries,objData.Language,objData.OptionalStartPosition,objData.OptionalIconDetails,objData.OptionalIconDetailGenerator,objData.OptionalProviderSettings);};if(objData.OptionalDisableLazyLoading===true){initialiseMapWithAllConfigurationValues();return;}var bIsInitialised=false;function initialiseIfInViewAndNotAlreadyInitialised(){if(!bIsInitialised){var bVisibleMapFound=false;for(var i=0;i<arrMapContainersAsJQueryReferences.length;i++){if(isOnScreen(arrMapContainersAsJQueryReferences[i])){bVisibleMapFound=true;break;}}if(bVisibleMapFound){initialiseMapWithAllConfigurationValues();bIsInitialised=true;}}}$(initialiseIfInViewAndNotAlreadyInitialised);var debouncedInitialiseIfInViewAndNotAlreadyInitialised=debounce(initialiseIfInViewAndNotAlreadyInitialised,100);$(window).resize(debouncedInitialiseIfInViewAndNotAlreadyInitialised).scroll(debouncedInitialiseIfInViewAndNotAlreadyInitialised);}function initialise($tabLinksContainer,arrMapDataEntries,strLanguage,objOptionalStartPosition,objOptionalIconDetail
42s,fncOptionalIconDetailGenerator,objOptionalProviderSettings){var arrMapWrappers=getMapWrappers(arrMapDataEntries,strLanguage,objOptionalStartPosition,objOptionalIconDetails,fncOptionalIconDetailGenerator,objOptionalProviderSettings);var strTabLinkSelectedClass="selected";var strMapHiddenClass="hidden";var $allMapContainers=$([]);var $allProductLinksContainers=$([]);var $list=$("<ol/>");for(var i=0;i<arrMapDataEntries.length;i++){var $link=$("<a href=\"#\" />");$link.html(arrMapDataEntries[i].Name);var $listItem=$("<li />");$listItem.addClass("i"+i);if((i%2)===0){$listItem.addClass("odd");}$listItem.append($link);$list.append($listItem);var $mapContainer=$(arrMapDataEntries[i].MapContainer);$allMapContainers=$allMapContainers.add($mapContainer);var $productLinksContainer=$(arrMapDataEntries[i].ProductLinksContainer);$allProductLinksContainers=$allProductLinksContainers.add($productLinksContainer);(function(objMapWrapper,$mapContainer,$productLinksContainer){$link.click(function(e){$allMapContainers.add($allProductLinksContainers).addClass(strMapHiddenClass);$mapContainer.add($productLinksContainer).removeClass(strMapHiddenClass);$list.children("li").removeClass(strTabLinkSelectedClass);$(this).closest("li").addClass(strTabLinkSelectedClass);objMapWrapper.Initialise();e.preventDefault();});}(arrMapWrappers[i],$mapContainer,$productLinksContainer));}$tabLinksContainer.append($list);$list.find("> li:first > a").click();}function getMapWrappers(arrMapDataEntries,strLanguage,objOptionalStartPosition,objOptionalMarkerIconDetails,fncOptionalIconDetailGenerator,objOptionalProviderSettings){var arrMapWrappers=[];for(var i=0;i<arrMapDataEntries.length;i++){var objMapDataEntry=arrMapDataEntries[i];if(!objMapDataEntry.Url){throw new Error("At least one of the Map data entries does not specify a Url");}if(!arrMapDataEntries[i].MapContainer){throw new Error("At least one of the Map data entries does not specify a MapContainer");}var $mapContainer=$(arrMapDataEntries[i].MapContainer);if($mapContainer.length===0){throw new Error("At least one of the Map data entries does not specify a valid MapContainer");}if(!arrMapDataEntries[i].ProductLinksContainer){throw new Error("At least one of the Map data entries does not specify a ProductLinksContainer");}var $productLinksContainer=$(arrMapDataEntries[i].ProductLinksContainer);if($productLinksContainer.length===0){throw new Error("At least one of the Map data entries does not specify a valid ProductLinksContainer");}arrMapWrappers.push(getMapWrapper(objMapDataEntry.Url,$mapContainer,$productLinksContainer));}return arrMapWrappers;function getMapWrapper(strUrl,$mapContainer,$productLinksContainer){var bInitialised=false;return{Initialise:function(){if(bInitialised){return;}NewMind.StandaloneProductMapDisplay.Core.Initialise({ProductListPartialRenderUrl:strUrl,Language:strLanguage,MapContainer:$mapContainer,OptionalStartPosition:objOptionalStartPosition,OptionalIconDetails:objOptionalMarkerIconDetails,OptionalIconDetailGenerator:fncOptionalIconDetailGenerator,OptionalProductListContainer:$productLinksContainer,OptionalProviderSettings:objOptionalProviderSettings});bInitialised=true;}};}}function debounce(fncAction,intThresholdInMs){var timeoutId;return function debounced(){var obj=this;var args=arguments;function delayed(){fncAction.apply(obj,args);timeoutId=null;};if(timeoutId){clearTimeout(timeoutId);}timeoutId=setTimeout(delayed,intThresholdInMs);};}function isOnScreen($target){if(!$target.is(":visible")){return false;}var $windown=$(window);var viewport={top:$windown.scrollTop(),left:$windown.scrollLeft()};viewport.right=viewport.left+$windown.width();viewport.bottom=viewport.top+$windown.height();var bounds=$target.offset();bounds.right=bounds.left+$target.outerWidth()+64;bounds.bottom=bounds.top+$target.outerHeight()+64;bounds.top-=64;bounds.left-=64;return((viewport.right>=bounds.left)&&(viewport.left<=bounds.right)&&(viewport.bottom>=bounds.top)&&(viewport.top<=bounds.bottom));};var dictIconUrlLookup=null;function getIconUrlBasedOnContent(strItemContent){var $content=$(strItemContent);var strProdTypeID=$content.attr("data-prodtype");if(!NewMind.env.install.mapping.availableicons){var strMarkerImageBase=NewMind.env.install.mapping.overrideicons?"/images/DynamicMapping/shared_gfx/":"/engine/shared_gfx/";return strMarkerImageBase+"mkr-def-"+strProdTypeID+".png";}if(!dictIconUrlLookup){dictIconUrlLookup={};for(var i=0;i<NewMind.env.install.mapping.availableicons.length;i++){var strIconUrl=NewMind.env.install.mapping.availableicons[i];var arrUrlSegments=strIconUrl.split("/");var strFilename=arrUrlSegments[arrUrlSegments.length-1].toLowerCase();dictIconUrlLookup[strFilename]=strIconUrl;}}var strFilename;var strOptionalCatID=$content.attr("data-cat");
42if(strOptionalCatID){strFilename="mkr-def-"+strProdTypeID.toLowerCase()+"-"+strOptionalCatID.toLowerCase()+".png";if(dictIconUrlLookup[strFilename]){return dictIconUrlLookup[strFilename];}}strFilename="mkr-def-"+strProdTypeID.toLowerCase()+".png";if(dictIconUrlLookup[strFilename]){return dictIconUrlLookup[strFilename];}return "mkr-def.png";}return{CreateMap:createMap,GetIconUrlBasedOnContent:getIconUrlBasedOnContent};})();
43NewMind.registerNameSpace("NewMind.StandaloneProductMapDisplay").Core=(function(){"use strict";var arrVisibleInfoBubbles=[];var bSubscribedToItineraryUpdates=false;function initialise(objData){objData=objData||{};if(!objData.ProductListPartialRenderUrl){throw new Error("objData.ProductListPartialRenderUrl is not optional and must be provided");}if(!objData.Language){throw new Error("objData.Language is not optional and must be provided");}if(!objData.MapContainer){throw new Error("objData.MapContainer is not optional and must be provided");}if(NewMind.ajax&&NewMind.ajax.itinUpdated&&!bSubscribedToItineraryUpdates){NewMind.ajax.itinUpdated.subscribe(updateItineraryButtonsOfVisibleInfoBubbles);}var fncLogger=objData.OptionalLoggerOverride||logToConsole;getMappingDataFromProductListPartialRenderRequest(objData.ProductListPartialRenderUrl,function(objMappingConfiguration,arrItems){if(arrItems.length===0){fncLogger("Zero items were loaded so the map will not be drawn");return;}initialiseMapWithResults(objMappingConfiguration,arrItems,function(objMap){$(objData.MapContainer).addClass("initialised");$(window).resize(debounce(objMap.ResizeForContainer,100));initialiseProductsOnMapList(objMap,arrItems);},onInfoBubbleShown,onInfoBubbleClosed);},function(strError){fncLogger(strError);});function initialiseMapWithResults(objMappingConfiguration,arrItems,fncOnLoaded,fncOnInfoBubbleShown,fncOnInfoBubbleClosed){if(objMappingConfiguration.API==="googlev3"){NewMind.StandaloneProductMapDisplay.GoogleV3.Initialise({MapContainer:objData.MapContainer,Language:objData.Language,Items:arrItems,OptionalStartPosition:objData.OptionalStartPosition,OptionalOnLoaded:fncOnLoaded,OptionalOnInfoBubbleShown:fncOnInfoBubbleShown,OptionalOnInfoBubbleClosed:fncOnInfoBubbleClosed,OptionalIconDetails:objData.OptionalIconDetails,OptionalIconDetailGenerator:objData.OptionalIconDetailGenerator,OptionalProviderSettings:objData.OptionalProviderSettings});}else{fncLogger("Unsupported Mapping API: "+objMappingConfiguration.API);}}function initialiseProductsOnMapList(objMap,arrItems){if(!objData.OptionalProductListContainer){return;}var $productLinksContainer=$(objData.OptionalProductListContainer);if($productLinksContainer.length===0){fncLogger("An OptionalProductListContainer was specified but the target element does not exist");}var $list=$("<ol/>");for(var i=0;i<arrItems.length;i++){var objItem=arrItems[i];var $link=$("<a href=\"#\" />");$link.html(objItem.Name);var $listItem=$("<li />");$listItem.addClass("i"+i);if((i%2)===0){$listItem.addClass("odd");}$listItem.append($link);$list.append($listItem);(function(objItem){$link.click(function(e){objMap.ShowProduct(objItem.ProductKey);e.preventDefault();});}(objItem));}$productLinksContainer.append($list);$productLinksContainer.addClass("initialised");}}function getMappingDataFromProductListPartialRenderRequest(strUrl,fncSuccessCallback,fncErrorCallback){if(!strUrl){throw new Error("fncSuccessCallback is not optional and must be provided");}if(!fncSuccessCallback){throw new Error("fncSuccessCallback is not optional and must be provided");}$.ajax({type:"GET",url:strUrl,dataType:"html",success:function(data){var $data=$(data);if($data.length===0){fncErrorCallback("Unexpected content, appears to be empty");return;}var $firstControl=$($data[0]);if(!$firstControl.hasClass("sys_control")||!$firstControl.hasClass("ctl_ProductList")){fncErrorCallback("Unexpected content, first content should be a Product List Control");return;}var intControlKey=NewMind.ETWP.GetControlKey($firstControl);if(!intControlKey){fncErrorCallback("Unexpected content, could not retrieve Control Key from the Product List Control");return;}$firstControl.find('script').each(function(){var strScriptContent=""+($(this).text()||$(this).html());if(strScriptContent.indexOf("NewMind.env.install.mapping.configurations")!==-1){NewMind.registerNameSpace("NewMind.env.install.mapping.configurations");$("body").append(this);}});if(!NewMind.env||!NewMind.env.install||!NewMind.env.install.mapping||!NewMind.env.install.mapping.configurations){fncErrorCallback("Unexpected content, did not include any Mapping Configuration data");return;}var objMappingConfiguration=NewMind.env.install.mapping.configurations["map-"+intControlKey];if(!objMappingConfiguration){fncErrorCallback("Unexpected content, did not include Mapping Configuration data for the Product List Control");return;}var arrItems=[];$firstControl.find("div.ProductListMain > .productList > li").each(function(i){var $this=$(this);var $coordinates=$this.find("div.locationdata");var $lat=$coordinates.children("span.lat");var $lng=$coordinates.children("span.lng");if(($lat.length===0)||($lng.length===0)){fncErrorCallback("Item with index "+i+" has no location data - ignoring it");return;}var sngLat=parseFloat($lat.text());var sngLng=parseFloat($lng.text());if(isNaN(sngLat)||isNaN(sngLng)){fncErrorCallback("Item with index "+i+" has invali
43d location data - ignoring it");return;}var intProductKey=null;var strProdTypeIfAny=null;var strCategoryIfAny=null;var arrWrapperClasses=(""+this.className).split(" ");for(var intClassIndex=0;intClassIndex<arrWrapperClasses.length;intClassIndex++){var strClass=arrWrapperClasses[intClassIndex];if(strClass.substring(0,8)=="prodType"){strProdTypeIfAny=strClass.substr(8);}else if(strClass.substring(0,4)=="cat_"){strCategoryIfAny=strClass.substr(4);}else if(strClass.substring(0,1)==="p"){intProductKey=parseInt(strClass.substring(1,strClass.length),10);if(isNaN(intProductKey)){intProductKey=null;}}}if(intProductKey==null){fncErrorCallback("Unable to retrieve Product Key for item with index "+i+" - ignoring it");}var $productName=$this.find(".ProductName");var strProductName;if($productName.length===0){fncLogger("Unable to locate \".ProductName\" node for item with index "+i+" (will appear as \"Unnamed Product\")");strProductName="";}else{strProductName=$.trim(""+$productName.text());}arrItems.push({ProductKey:intProductKey,Latitude:sngLat,Longitude:sngLng,Name:(strProductName==="")?"Unnamed Product":strProductName,Content:["<div class=\"InfoBoxContent p",intProductKey,"\" style=\"float: left;\""," data-prodtype=\"",htmlEncode(""+strProdTypeIfAny),"\""," data-cat=\"",htmlEncode(""+strCategoryIfAny),"\">",$this.html(),"</div>"].join("")});});fncSuccessCallback({API:objMappingConfiguration.api,APIKey:objMappingConfiguration.apiKey},arrItems);},error:function(){fncErrorCallback("Product data retrieval failed");}});function htmlEncode(value){return $('<div/>').text(value).html();}}function onInfoBubbleShown(intProductKey,objEleInfoBubble){arrVisibleInfoBubbles.push({ProductKey:intProductKey,InfoBubble:objEleInfoBubble});updateItineraryButtonsOfVisibleInfoBubbles();if(NewMind.ajax&&NewMind.ajax.itinButtonClickHandler){getAddToItineraryButtonLinkFromInfoBubble(objEleInfoBubble).click(function(e){NewMind.ajax.itinButtonClickHandler.apply(this,arguments);e.preventDefault();return false;});}}function onInfoBubbleClosed(intProductKey,objEleInfoBubble){for(var i=arrVisibleInfoBubbles.length-1;i>=0;i--){if(arrVisibleInfoBubbles[i].InfoBubble===objEleInfoBubble){arrVisibleInfoBubbles.splice(i,1);}}}function updateItineraryButtonsOfVisibleInfoBubbles(){for(var i=0;i<arrVisibleInfoBubbles.length;i++){var $addToItineraryButtonLink=getAddToItineraryButtonLinkFromInfoBubble(arrVisibleInfoBubbles[i].InfoBubble);if($addToItineraryButtonLink.length===0){continue;}var strNotInItineraryClass="ep_Add";var strInItineraryClass="ep_Added";if(isProductKeyInItinerary(arrVisibleInfoBubbles[i].ProductKey)){$addToItineraryButtonLink.addClass(strInItineraryClass).removeClass(strNotInItineraryClass);}else{$addToItineraryButtonLink.addClass(strNotInItineraryClass).removeClass(strInItineraryClass);}}function isProductKeyInItinerary(intProductKey){if(!NewMind.env||!NewMind.env.excursion){return false;}for(var i=0;i<NewMind.env.excursion.length;i++){if(NewMind.env.excursion[i].product_key===intProductKey){return true;}}return false;}}function getAddToItineraryButtonLinkFromInfoBubble(objEleInfoBubble){return $(objEleInfoBubble).find("p.ex_AddButton > a");}function debounce(fncAction,intThresholdInMs){var timeoutId;return function debounced(){var obj=this;var args=arguments;function delayed(){fncAction.apply(obj,args);timeoutId=null;};if(timeoutId){clearTimeout(timeoutId);}timeoutId=setTimeout(delayed,intThresholdInMs);};}function logToConsole(strMessage){if((typeof(console)!=="undefined")&&console.log){console.log(strMessage);}}return{Initialise:initialise};})();
44NewMind.registerNameSpace("NewMind.StandaloneProductMapDisplay").GoogleV3=(function(){"use strict";var bRequestedAPILoad=false;var intMinZoom=6;var intMaxZoom=18;function initialise(objData){objData=objData||{};if(!objData.MapContainer){throw new Error("objData.MapContainer is not optional and must be provided");}if(!objData.Language){throw new Error("objData.Language is not optional and must be provided");}if(!objData.Items){throw new Error("objData.Items is not optional and must be provided");}if(!objData.Items.length){throw new Error("objData.Items may not be an empty array");}if(objData.OptionalStartPosition){if(isNaN(parseFloat(objData.OptionalStartPosition.Latitude))){throw new Error("objData.OptionalStartPosition.Latitude is not optional and must be provided as a valid number if objData.OptionalStartPosition is not null");}if(isNaN(parseFloat(objData.OptionalStartPosition.Longitude))){throw new Error("objData.OptionalStartPosition.Longitude is not optional and must be provided as a valid number if objData.OptionalStartPosition is not null");}var intZoom=parseInt(objData.OptionalStartPosition.Zoom,10);if(isNaN(intZoom)){throw new Error("objData.OptionalStartPosition.Zoom is not optional and must be provided as a valid number if objData.OptionalStartPosition is not null");}else if((intZoom<intMinZoom)||(intZoom>intMaxZoom)){throw new Error("objData.OptionalStartPosition.Zoom must be within "+intMinZoom+" and "+intMaxZoom+" (inclusive)");}}
44if(objData.OptionalIconDetails){if(!objData.OptionalIconDetails.Url){throw new Error("objData.OptionalIconDetails.Url is not optional and must be provided if objData.OptionalIconDetails is not null");}if(!objData.OptionalIconDetails.Size){throw new Error("objData.OptionalIconDetails.Size is not optional and must be provided if objData.OptionalIconDetails is not null");}if(isNaN(parseInt(objData.OptionalIconDetails.Size.X,10))){throw new Error("objData.OptionalIconDetails.Size.X is not optional and must be provided as a numeric value if objData.OptionalIconDetails is not null");}if(isNaN(parseInt(objData.OptionalIconDetails.Size.Y,10))){throw new Error("objData.OptionalIconDetails.Size.Y is not optional and must be provided as a numeric value if objData.OptionalIconDetails is not null");}if(!objData.OptionalIconDetails.Offset){throw new Error("objData.OptionalIconDetails.Offset is not optional and must be provided if objData.OptionalIconDetails is not null");}if(isNaN(parseInt(objData.OptionalIconDetails.Offset.X,10))){throw new Error("objData.OptionalIconDetails.Offset.X is not optional and must be provided as a numeric value if objData.OptionalIconDetails is not null");}if(isNaN(parseInt(objData.OptionalIconDetails.Offset.Y,10))){throw new Error("objData.OptionalIconDetails.Offset.Y is not optional and must be provided as a numeric value if objData.OptionalIconDetails is not null");}}if(objData.OptionalIconDetailGenerator){if(typeof(objData.OptionalIconDetailGenerator)!=="function" ){throw new Error("If objData.OptionalIconDetailGenerator is defined then it must be a function");}if(objData.OptionalIconDetails){throw new Error("May not specify objData.OptionalIconDetails AND objData.OptionalIconDetailGenerator - it must be one or the other (or neither)");}}objData.OptionalProviderSettings=objData.OptionalProviderSettings||[{featureType:"poi",stylers:[{visibility:"off"}]}];var $container=$(objData.MapContainer);if($container.length===0){throw new Error("objData.MapContainer does not reference any elements - invalid");}if((typeof(google)!=="undefined")&&google.maps){initialiseWithLoadedAPI();return;}else{if(bRequestedAPILoad){NewMind.ETWP.PersistentAttempt({Condition:function(){return(typeof(google)!=="undefined")&&google.maps;},Success:initialiseWithLoadedAPI,Failure:function(){if((typeof(console)!=="undefined")&&console.log){console.log("Map initialisation waited for Google Maps API to load but timed out doing so");}},FixedDelayInMs:100,MaxNumberOfAttempts:50});return;}var strLanguage=(""+objData.Language).split("-")[0];var strCallbackFunction="Callback"+Math.round(Math.random()*1000000);NewMind.StandaloneProductMapDisplay.GoogleV3[strCallbackFunction]=function(){delete(NewMind.StandaloneProductMapDisplay.GoogleV3[strCallbackFunction]);initialiseWithLoadedAPI();};var script=document.createElement("script");script.type="text/javascript";var url="https://maps.googleapis.com/maps/api/js?v=3.14"+"&language="+strLanguage+"&callback=NewMind.StandaloneProductMapDisplay.GoogleV3."+strCallbackFunction;if(NewMind.env&&NewMind.env.install&&NewMind.env.install.mapping&&NewMind.env.install.mapping.googleMapsApiKey&&NewMind.env.install.mapping.googleMapsApiKey!=="*"){script.src=url+"&key="+encodeURIComponent(NewMind.env.install.mapping.googleMapsApiKey);}else{NewMind.ETWP.Trace.PrintTraceWarning("(Standalone Product Map) Google Maps API key not set.");script.src=url;}document.body.appendChild(script);bRequestedAPILoad=true;}return;function initialiseWithLoadedAPI(){var objMap=new google.maps.Map($container[0],{minZoom:intMinZoom,maxZoom:intMaxZoom,scrollwheel:false,styles:objData.OptionalProviderSettings});if(objData.OptionalStartPosition){objMap.setCenter(new google.maps.LatLng(parseFloat(objData.OptionalStartPosition.Latitude),parseFloat(objData.OptionalStartPosition.Longitude)));objMap.setZoom(parseInt(objData.OptionalStartPosition.Zoom,10));}else{var sngMinLat=objData.Items[0].Latitude;var sngMaxLat=objData.Items[0].Latitude;var sngMinLng=objData.Items[0].Longitude;var sngMaxLng=objData.Items[0].Longitude;for(var i=1;i<objData.Items.length;i++){sngMinLat=Math.min(sngMinLat,objData.Items[i].Latitude);sngMaxLat=Math.max(sngMaxLat,objData.Items[i].Latitude);sngMinLng=Math.min(sngMinLng,objData.Items[i].Longitude);sngMaxLng=Math.max(sngMaxLng,objData.Items[i].Longitude);}objMap.fitBounds(new google.maps.LatLngBounds(new google.maps.LatLng(sngMinLat,sngMinLng),new google.maps.LatLng(sngMaxLat,sngMaxLng)));}var fncMapLoaded=google.maps.event.addListener(objMap,"tilesloaded",function(){if(objMap.getZoom()>15){objMap.setZoom(15);}google.maps.event.removeListener(fncMapLoaded);});var objInfoBubbleHandler=getNewInfoBubbleHandler(objMap,objData.OptionalOnInfoBubbleShown,objData.OptionalOnInfoBubbleClosed);var objProductKeyMarkerLookup={};for(var i=0;i<objData.Items.length;i++){var objItem=objData.Items[i];
44var objCustomMarkerIconDetails;if(objData.OptionalIconDetails){objCustomMarkerIconDetails={url:objData.OptionalIconDetails.Url,origin:new google.maps.Point(0,0),size:new google.maps.Size(parseInt(objData.OptionalIconDetails.Size.X,10),parseInt(objData.OptionalIconDetails.Size.Y,10)),anchor:new google.maps.Point(parseInt(objData.OptionalIconDetails.Offset.X,10),parseInt(objData.OptionalIconDetails.Offset.Y,10))};}else if(objData.OptionalIconDetailGenerator){var objGeneratedIconDetails=objData.OptionalIconDetailGenerator(objItem.Content);if(!objGeneratedIconDetails){throw new Error("OptionalIconDetailGenerator did not return a value");}if(!objGeneratedIconDetails.Url){throw new Error("OptionalIconDetailGenerator's return value has no Url value");}if(!objGeneratedIconDetails.Size){throw new Error("OptionalIconDetailGenerator's return value has no Size value");}if(isNaN(parseInt(objGeneratedIconDetails.Size.X,10))){throw new Error("OptionalIconDetailGenerator's return value Size.X is missing or not a valid numeric value");}if(isNaN(parseInt(objGeneratedIconDetails.Size.Y,10))){throw new Error("OptionalIconDetailGenerator's return value Size.Y is missing or not a valid numeric value");}if(!objGeneratedIconDetails.Offset){throw new Error("OptionalIconDetailGenerator's return value has no Offset value");}if(isNaN(parseInt(objGeneratedIconDetails.Offset.X,10))){throw new Error("OptionalIconDetailGenerator's return value Offset.X is missing or not a valid numeric value");}if(isNaN(parseInt(objGeneratedIconDetails.Offset.Y,10))){throw new Error("OptionalIconDetailGenerator's return value Offset.X is missing or not a valid numeric value");}objCustomMarkerIconDetails={url:objGeneratedIconDetails.Url,origin:new google.maps.Point(0,0),size:new google.maps.Size(parseInt(objGeneratedIconDetails.Size.X,10),parseInt(objGeneratedIconDetails.Size.Y,10)),anchor:new google.maps.Point(parseInt(objGeneratedIconDetails.Offset.X,10),parseInt(objGeneratedIconDetails.Offset.Y,10))};}else{objCustomMarkerIconDetails=null;}var objMarker=new google.maps.Marker({position:new google.maps.LatLng(objItem.Latitude,objItem.Longitude),map:objMap,title:objItem.Name,icon:objCustomMarkerIconDetails});(function(objMarker,intProductKey,strInfoContent){google.maps.event.addListener(objMarker,"click",function(){objInfoBubbleHandler.DisplayBubbleForMarker(objMarker,intProductKey,strInfoContent);});}(objMarker,objItem.ProductKey,objItem.Content));objProductKeyMarkerLookup[""+objItem.ProductKey]={Marker:objMarker,InfoContent:objItem.Content};}if(objData.OptionalOnLoaded){objData.OptionalOnLoaded(getMapWrapper(objMap,objProductKeyMarkerLookup,objInfoBubbleHandler));}}}function getMapWrapper(objMap,objProductKeyMarkerLookup,objInfoBubbleHandler){return{ResizeForContainer:function(){google.maps.event.trigger(objMap,"resize");},ShowProduct:function(intProductKey){var strLookupKey=""+intProductKey;if(!objProductKeyMarkerLookup.hasOwnProperty(strLookupKey)){throw new Error("Invalid Product Key: "+intProductKey);}var objMarkerData=objProductKeyMarkerLookup[strLookupKey];objInfoBubbleHandler.DisplayBubbleForMarker(objMarkerData.Marker,intProductKey,objMarkerData.InfoContent);}};}function getNewInfoBubbleHandler(objMap,fncOptionalBubbleShownCallback,fncOptionalBubbleClosedCallback){var objCurrentInfoBubbleDetailsIfAny=null;return{DisplayBubbleForMarker:function(objMarker,intProductKey,strInfoContent){var bDisplayBubbleOnlyToForceMapPan;if(objCurrentInfoBubbleDetailsIfAny){if((objCurrentInfoBubbleDetailsIfAny.Marker===objMarker)&&(objCurrentInfoBubbleDetailsIfAny.Content===strInfoContent)){bDisplayBubbleOnlyToForceMapPan=true;}else{if(fncOptionalBubbleClosedCallback){fncOptionalBubbleClosedCallback(intProductKey,objCurrentInfoBubbleDetailsIfAny.InfoWindow.content);}objCurrentInfoBubbleDetailsIfAny.InfoWindow.close();objCurrentInfoBubbleDetailsIfAny=null;bDisplayBubbleOnlyToForceMapPan=false;}}else{bDisplayBubbleOnlyToForceMapPan=false;}var infoContentContainer=document.createElement("div");infoContentContainer.style.float="left";infoContentContainer.style.styleFloat="left";infoContentContainer.style.cssFloat="left";infoContentContainer.innerHTML=strInfoContent;var infoWindow=new google.maps.InfoWindow({content:infoContentContainer});infoWindow.open(objMap,objMarker);if(bDisplayBubbleOnlyToForceMapPan){setTimeout(function(){infoWindow.close();});return;}objCurrentInfoBubbleDetailsIfAny={InfoWindow:infoWindow,Marker:objMarker,Content:strInfoContent,ProductKey:intProductKey};if(fncOptionalBubbleShownCallback){fncOptionalBubbleShownCallback(intProductKey,infoWindow.content);}google.maps.event.addListener(infoWindow,"closeclick",function(){if(fncOptionalBubbleClosedCallback){fncOptionalBubbleClosedCallback(intProductKey,infoWindow.content);}objCurrentInfoBubbleDetailsIfAny=null;});}};}return{Initialise:initialise};})();
45$(function(){"use strict";if($("div.StandaloneGoogleMap").length>0){function userInitialiseMap(){var $homePageMaps=$("div.interactiveMaps"),$tabLinksContainer=$homePageMaps.find("div.Tabs"),$attractions=$homePageMaps.find("div.Attractions"),$fooddrink=$homePageMaps.find("div.FoodDrink"),$accommodation=$homePageMaps.find("div.Accommodation"),$shopping=$homePageMaps.find("div.Shopping"),$activities=$homePageMaps.find("div.Activities");var loadingScreen='<div class="loading">'+'<p class="loadingAnimation"><img src="/images/ajax-loader.gif" alt="Loading"></p><p class="wait">'+NewMind.ETWP.GetResource("NewMind.env.lang.resources.custommaps.message","Loading...")+'</p>'+'</div>';$('.Types',$homePageMaps).each(function(){$('.MapContainer',$(this)).append(loadingScreen);});NewMind.StandaloneProductMapDisplay.StartUp.CreateMap({TabLinksContainer:$tabLinksContainer,MapDataEntries:[{Name:NewMind.ETWP.GetResource("NewMind.env.lang.resources.standalonegooglemap.accommodation","Accommodation"),Url:"/standalone-google-map?PartialRenderControlList=44895&PartialRenderType=html",MapContainer:$accommodation.find("div.MapContainer"),ProductLinksContainer:$accommodation.find("div.ProductsOnMap")},{Name:NewMind.ETWP.GetResource("NewMind.env.lang.resources.standalonegooglemap.attractions","Attractions"),Url:"/standalone-google-map?PartialRenderControlList=44896&PartialRenderType=html",MapContainer:$attractions.find("div.MapContainer"),ProductLinksContainer:$attractions.find("div.ProductsOnMap")},{Name:NewMind.ETWP.GetResource("NewMind.env.lang.resources.standalonegooglemap.foodanddrink","Food & Drink"),Url:"/standalone-google-map?PartialRenderControlList=44897&PartialRenderType=html",MapContainer:$fooddrink.find("div.MapContainer"),ProductLinksContainer:$fooddrink.find("div.ProductsOnMap")},{Name:NewMind.ETWP.GetResource("NewMind.env.lang.resources.standalonegooglemap.shopping","Shopping"),Url:"/standalone-google-map?PartialRenderControlList=44898&PartialRenderType=html",MapContainer:$shopping.find("div.MapContainer"),ProductLinksContainer:$shopping.find("div.ProductsOnMap")},{Name:NewMind.ETWP.GetResource("NewMind.env.lang.resources.standalonegooglemap.activities","Activities"),Url:"/standalone-google-map?PartialRenderControlList=49385&PartialRenderType=html",MapContainer:$activities.find("div.MapContainer"),ProductLinksContainer:$activities.find("div.ProductsOnMap")}],Language:NewMind.env.lang.languagecode,OptionalIconDetailGenerator:function(strItemContent){return{Url:NewMind.StandaloneProductMapDisplay.StartUp.GetIconUrlBasedOnContent(strItemContent),Size:{X:25,Y:36},Offset:{X:10,Y:26}};},OptionalDisableLazyLoading:!jQuery.browser.mobile,OptionalProviderSettings:(NewMind.Site&&NewMind.Site.CustomGoogleMapsStyles)?NewMind.Site.CustomGoogleMapsStyles:null,OptionalUserGeolocationStyles:{Size:100,FillColor:"#01A3E3"}});}$('div.StandaloneGoogleMap div.Tabs ol.placeholderTabs li').each(function(i){$(this).addClass("i"+i);});$('div.StandaloneGoogleMap div.Tabs ol.placeholderTabs li span').click(function(){$(this).addClass('triggerLoad');
45$('div.StandaloneGoogleMap').addClass("controlLoaded");userInitialiseMap();var obtainTriggerPlaceholder=$('div.StandaloneGoogleMap div.Tabs ol.placeholderTabs li span.triggerLoad');var obtainTriggerPlaceholderParentClass=$(obtainTriggerPlaceholder).parent().attr('class');NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $("div.StandaloneGoogleMap.controlLoaded div.MapWrapper > div:first-of-type div.MapContainer .gm-style .gm-style-cc span").length>0;},MaxNumberOfAttempts:200,Success:function(){$('div.StandaloneGoogleMap div.Tabs ol li.'+obtainTriggerPlaceholderParentClass+' a').trigger("click");}});});$('div.StandaloneGoogleMap div.initialiseMap div.label').click(function(){userInitialiseMap();$('div.StandaloneGoogleMap').addClass("controlLoaded");});}});
46(function(){var tourGuideSearch=$('div.productSearchTourGuide');if(tourGuideSearch.length){var selectDropdownAny=NewMind.ETWP.GetResource("NewMind.env.lang.resources.search.anyoption","Any");var selectLabelSeason=NewMind.ETWP.GetResource("NewMind.env.lang.resources.search.toursSeason.label","Season:");function funcModifyFacilityListSeason(){var liFacilityListObj=$('div.productSearchTourGuide .seasonFacilitySet');if(liFacilityListObj.length!==0){var spGroupLabelObj=($(liFacilityListObj).children('.label'));if(spGroupLabelObj.length!==0){var strGroupLabel=spGroupLabelObj.html();}else{var strGroupLabel=selectLabelSeason;}var strOutputText="";var strOutputValues="";$("div.productSearchTourGuide .seasonFacilitySet div.row ul > li").each(function(index){var strText=$(this).text();var inInputBoxObj=($(this).children('.checkbox'));if(inInputBoxObj.length!==0){var strValue=inInputBoxObj.attr('value');strOutputValues=strOutputValues+'<option value="'+strValue+'">'+strText+'</option>';}else{var strValue="";}});if(strOutputValues!==''){strOutputText=strOutputText+'<div class="row refine-facility">';strOutputText=strOutputText+'				<input type="hidden" name="refine-facility" value="on" />';strOutputText=strOutputText+'				<span class="label">'+strGroupLabel+'</span>';strOutputText=strOutputText+'				<span class="field">';strOutputText=strOutputText+'					<select name="src_facility" id="src_facility">';strOutputText=strOutputText+'						<option class="any" value="">-- '+selectDropdownAny+' --</option>';strOutputText=strOutputText+strOutputValues;strOutputText=strOutputText+'					</select>';strOutputText=strOutputText+'				</span>';strOutputText=strOutputText+'			</div>';$('div.seasonSelect').html(strOutputText);}}}funcModifyFacilityListSeason();if(NewMind.ETWP.MultiSearchSwitcher){NewMind.ETWP.MultiSearchSwitcher.CallBackEvent.subscribe(funcModifyFacilityListSeason);};$('div.productSearchTourGuide div.seasonSelect div.refine-facility select').change(function(){var value=$(this).attr('value');var valueClass=$(this);$('div.productSearchTourGuide form#refineBySearchForm div.seasonFacilitySet ul.facility li input').removeAttr('checked');$('div.productSearchTourGuide form#refineBySearchForm div.seasonFacilitySet ul.facility li input[value="'+value+'"]"').attr('checked','checked');if($(valueClass)[0].selectedIndex===0){$('div.productSearchTourGuide form#refineBySearchForm div.seasonFacilitySet ul.facility li input').removeAttr('checked');}});$('div.productSearchTourGuide form#refineBySearchForm div.seasonFacilitySet ul.facility li').each(function(){if($(this).find('input').is(":checked")){var valueSelect=$(this).find('input').attr('value');$('div.productSearchTourGuide div.seasonSelect div.refine-facility select').val(valueSelect);}});$('div.productSearchMobileTour div.seasonSelect div.refine-facility select').change(function(){var value=$(this).attr('value');var valueClass=$(this);$('div.productSearchMobileTour form#refineBySearchForm div.seasonFacilitySet ul.facility li input').removeAttr('checked');$('div.productSearchMobileTour form#refineBySearchForm div.seasonFacilitySet ul.facility li input[value="'+value+'"]"').attr('checked','checked');if($(valueClass)[0].selectedIndex===0){$('div.productSearchMobileTour form#refineBySearchForm div.seasonFacilitySet ul.facility li input').removeAttr('checked');}});$('div.productSearchMobileTour form#refineBySearchForm div.seasonFacilitySet ul.facility li').each(function(){if($(this).find('input').is(":checked")){var valueSelect=$(this).find('input').attr('value');$('div.productSearchMobileTour div.seasonSelect div.refine-facility select').val(valueSelect);}});}})();(function(){if($('div.productDetailTopTours div.TopWrapper div.TopWrapper.TopWrapperRight div.RouteInformation div.routes div.routeLength').length>0){var lengthHTML=$("div.productDetailTopTours div.TopWrapper div.TopWrapper.TopWrapperRight div.RouteInformation div.routes div.routeLength").html();lengthHTML=lengthHTML.substring(0,lengthHTML.indexOf('.'));var kmValue=NewMind.ETWP.GetResource("NewMind.env.lang.resources.
46km","km");$("div.productDetailTopTours div.TopWrapper div.TopWrapper.TopWrapperRight div.RouteInformation div.routes div.routeLength").html(lengthHTML+kmValue);}})();
47(function(){if($('div.FacebookWidgetContentPages').length>0){function checkForFacebookOnScreen(){if($('div.FacebookWidgetContentPages').isOnScreenWeb()){if(!$(this).hasClass("loadWidget")){(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id))return;js=d.createElement(s);js.id=id;js.src="//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.11&appId=322655434561107";fjs.parentNode.insertBefore(js,fjs);}(document,'script','facebook-jssdk'));$('div.FacebookWidgetContentPages').addClass("loadWidget");}}}checkForFacebookOnScreen();$(window).scroll(function(){checkForFacebookOnScreen();});}if($('div.SocialMediaShare').length>0){function checkForShareScreen(){if($('div.SocialMediaShare').isOnScreenWeb()){if(!$(this).hasClass("loadShares")){function facebookURL(){var URL=document.URL;$('div.fb-like').attr('data-href',URL);}facebookURL();(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id))return;js=d.createElement(s);js.id=id;js.src='https://connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v3.1';fjs.parentNode.insertBefore(js,fjs);}(document,'script','facebook-jssdk'));var addthis_config={"data_track_clickback":true};$.ajax({type:"GET",url:"https://s7.addthis.com/js/250/addthis_widget.js#pubid=newminddms",dataType:"script",cache:true});$('div.FacebookWidgetContentPages').addClass("loadShares");}}}checkForShareScreen();$(window).scroll(function(){checkForShareScreen();});}$("div.whatsNearbyMapImg").click(function(){$('html, body').animate({scrollTop:$("div.productDetailMap").offset().top},1000);});if($('div.rightCol div.productDetailInstagram div.instagram-social').children().length==0){$('div.rightCol div.productDetailInstagram').hide();}$('div.rightCol div.productDetailInstagram div.instagram-social div.socialmediaitem a').click(function(e){e.preventDefault();var url=$(this).attr('href');window.open(url,'_blank');});if($('div.InstagramSnapwidget').length>0){function instagramScript(){(function(){var widget=document.createElement('script');widget.type='text/javascript';;widget.src='https://snapwidget.com/js/snapwidget.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(widget,s);})();$('div.InstagramSnapwidget').append("<iframe src='https://snapwidget.com/embed/968965' class='snapwidget-widget' allowtransparency='true' frameborder='0' scrolling='no' style='border:none; overflow:hidden;  width:100%; '></iframe>");$('div.pageTitle').addClass("instagramScriptLoaded");$('div.InstagramSnapwidget').addClass("instagramScriptLoaded");}function checkInstagram(){if($('div.InstagramWidget').isOnScreenWeb()){if(!$('div.InstagramSnapwidget').hasClass("instagramLoadedWidget")){$('div.InstagramSnapwidget').removeClass('fadeInView');$('div.InstagramSnapwidget').addClass("instagramLoadedWidget");}if(!$('div.InstagramSnapwidget').hasClass("instagramScriptLoaded")){instagramScript();}}}function loadInstagram(){if($('div.InstagramSnapwidget').isOnScreenWeb()){if(!$('div.InstagramSnapwidget').hasClass("instagramScriptLoaded")){instagramScript();}}}checkInstagram();loadInstagram();$(window).scroll(function(){checkInstagram();loadInstagram();});}})();
48$(document).ready(function(){if($('body').hasClass('stage3')){if($('.facebook-social a').length>0){(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id))return;js=d.createElement(s);js.id=id;js.src="//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.11&appId=322655434561107";fjs.parentNode.insertBefore(js,fjs);}(document,'script','facebook-jssdk'));var userName=$(".facebook-social a:first").attr("href");$('.FacebookWidget').append('<div class="fb-page" data-href=" '+userName+'" data-width="500" data-height="500" data-hide-cover="false" data-show-facepile="true" data-show-posts="true"><div class="fb-xfbml-parse-ignore"></div></div>');}}});
49NewMind.registerNameSpace("NewMind.Site");$(function(){NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $("div.listMapLinkContainer ul.listMapLinks").length>0;},MaxNumberOfAttempts:200,Success:function(){if($('div.listMapLinkContainer ul.listMapLinks li.showBlock').hasClass('showBlockLink')){$('body').addClass('showListBlock');}$('div.listMapLinkContainer ul.listMapLinks li').click(function(){if($(this).hasClass('showBlockLink')){if($(this).hasClass('showBlock')){return;}else{$(this).addClass('showBlock');}}else{$('div.listMapLinkContainer ul.listMapLinks li.showBlockLink').removeClass('showBlock');$('body').removeClass('showListBlock');NewMind.ETWP.LazyLoadImages.RegisterLazyLoadTrigger();}});$('.showBlockLink').click(function(e){e.preventDefault();$('.showListLink').removeClass('showList');$('.showMapLink').removeClass('showMap');$('body').removeClass('mapShow');$('body').addClass('showListBlock');$("div.dynMapContainer").hide();$("div#mapProductList").hide();$("div.productList div.ProductListMain").show();});
49function ListViewDefault(){if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()){$(".showListLink").trigger("click");$('.showListLink').addClass('showList');$('body').removeClass('showListBlock');$('div.listMapLinkContainer ul.listMapLinks li.showBlockLink').hide();}else{return;}}ListViewDefault();$(window).resize(ListViewDefault);}});});
50$(function(){function calendarCustomScroll(){var obtainLeftTimeWidth,obtainRightTimeWidth,obtainContainerWidth,getCalculationNeeded,obtainCalendarWidth,obtainMovementValue,obtainMovementValueToUse,getTDdayViewWidth,totalWidth;$('div.ctl_DetailedItinerary').append('<div id="left"></div>');$('div.ctl_DetailedItinerary').append('<div id="right"></div>');var leftArrow=$("div.ctl_DetailedItinerary div#left");var rightArrow=$("div.ctl_DetailedItinerary div#right");function setWidthValues(){obtainLeftTimeWidth=$("div.ctl_DetailedItinerary div.calendar table.calendar td.times.left").width();obtainRightTimeWidth=$("div.ctl_DetailedItinerary div.calendar table.calendar td.times.right").width();obtainContainerWidth=$("div.ctl_DetailedItinerary div.calendar table.calendar").width();getCalculationNeeded=obtainContainerWidth-obtainLeftTimeWidth-obtainRightTimeWidth;obtainCalendarWidth=$("div.ctl_DetailedItinerary div.calendar table.calendar tbody td.dayView > div > table").width()+obtainLeftTimeWidth+obtainRightTimeWidth;if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()){getTDdayViewWidth=$("table.calendar td.dayView").width();$("div.ctl_DetailedItinerary div.container>table.calendar>tbody>tr>td.dayView>div>table>tbody>tr>td").addClass('importantForMobile');$("div.ctl_DetailedItinerary div.container>table.calendar>tbody>tr>td.dayView>div>table>tbody>tr>th").addClass('importantForMobile');}else if(NewMind.Site.BreakPoints.IsTabletPortraitOnly()){getTDdayViewWidth=$("table.calendar td.dayView").width();getTDdayViewWidth=getTDdayViewWidth/2;}else{getTDdayViewWidth=$("div.ctl_DetailedItinerary div.container>table.calendar>tbody>tr>td.dayView>div>table>tbody>tr.dayNames>th").width();}$("div.ctl_DetailedItinerary div.container>table.calendar>tbody>tr>td.dayView>div>table>tbody>tr>th").css('min-width',getTDdayViewWidth);$("div.ctl_DetailedItinerary div.container>table.calendar>tbody>tr>td.dayView>div>table>tbody>tr>td").css('min-width',getTDdayViewWidth);obtainMovementValueToUse=getTDdayViewWidth+5;totalWidth=0;calendarContent=$("div.ctl_DetailedItinerary div.container>table.calendar > tbody>tr>td.dayView>div>table").width();calendarContentParent=$("div.ctl_DetailedItinerary div.container>table.calendar").width();var totalWidth=0;totalWidth=totalWidth+calendarContentParent;if(calendarContent>totalWidth){leftArrow.addClass('showArrow');rightArrow.addClass('showArrow');}else{leftArrow.removeClass('showArrow');rightArrow.removeClass('showArrow');}};setWidthValues();function resetScrollPosition(){$("div.ctl_DetailedItinerary div.calendar table.calendar td.dayView").animate({scrollLeft:0},500);};var cachedWidthSpaceFix=$(window).width();$(window).resize(function(){var newWidthSpaceFix=$(window).width();if(newWidthSpaceFix!==cachedWidthSpaceFix){cachedWidthSpaceFix=newWidthSpaceFix;setWidthValues();resetScrollPosition();}});$("div.ctl_DetailedItinerary div#left").insertBefore('div.ctl_DetailedItinerary div.container.calendar table.calendar');$("div.ctl_DetailedItinerary div#right").insertBefore('div.ctl_DetailedItinerary div.container.calendar table.calendar');$('div.ctl_DetailedItinerary div.calendar #left').click(function(){var leftPos=$('div.ctl_DetailedItinerary div.calendar table.calendar td.dayView').scrollLeft();$("div.ctl_DetailedItinerary div.calendar table.calendar td.dayView").animate({scrollLeft:leftPos-obtainMovementValueToUse},500);});$('div.ctl_DetailedItinerary div.calendar #right').click(function(){var leftPos=$('div.ctl_DetailedItinerary div.calendar table.calendar td.dayView').scrollLeft();$("div.ctl_DetailedItinerary div.calendar table.calendar td.dayView").animate({scrollLeft:leftPos+obtainMovementValueToUse},500);});}calendarCustomScroll();});$(function(){function mapViewCustomScroll(){$('div.ctl_DetailedItinerary').append('<div id="Mapleft"></div>');$('div.ctl_DetailedItinerary').append('<div id="Mapright"></div>');var leftArrow=$("div.ctl_DetailedItinerary div#Mapleft");var rightArrow=$("div.ctl_DetailedItinerary div#Mapright");leftArrow.insertBefore('div.ctl_DetailedItinerary div.container.map>div.dateTabContainer');rightArrow.insertBefore('div.ctl_DetailedItinerary div.container.map>div.dateTabContainer');var obtainCalendarWidth,obtainMovementValue,obtainMovementValueToUse,dateTab,dateTabContainerParent,totalWidth;function setWidthValues(){obtainCalendarWidth=$("div.map div.dateTabContainer").width();$("div.ctl_DetailedItinerary div.additionalScrollMap div.additionalScrollInnerMap").css('width',obtainCalendarWidth);obtainMovementValue=$("div.ctl_DetailedItinerary div.container>div.dateTabContainer ul li").width();obtainMovementValueToUse=obtainMovementValue;totalWidth=0;dateTab=$("div.ctl_DetailedItinerary div.container>div.dateTabContainer ul.dateTabs");dateTabContainerParent=$("div.ctl_DetailedItinerary div.container>div.dateTabContainer").width();var totalWidth=0;$(dateTab).children().each(function(){totalWidth=totalWidth+$(this).width();});if(totalWidth>dateTabContainerParent){leftArrow.addClass('showArrow');rightArrow.addClass('showArrow');}else{leftArrow.removeClass('showArrow');rightArrow.removeClass('showArrow');}};setWidthValues();function resetScrollPosition(){$("div.dateTabContainer ul").animate({scrollLeft:0},500);$('div.ctl_DetailedItinerary div.container.map>div.dateTabContainer>ul>li:first-of-type a').trigger('click');};var cachedWidthSpaceFix=$(window).width();$(window).resize(function(){var newWidthSpaceFix=$(window).width();if(newWidthSpaceFix!==cachedWidthSpaceFix){cachedWidthSpaceFix=newWidthSpaceFix;setWidthValues();resetScrollPosition();}});$('div.ctl_DetailedItinerary div.map #Mapleft').click(function(){var leftPos=$('div.ctl_DetailedItinerary div.map div.dateTabContainer ul').scrollLeft();$("div.ctl_DetailedItinerary div.map div.dateTabContainer ul").animate({scrollLeft:leftPos-obtainMovementValueToUse},500);});$('div.ctl_DetailedItinerary div.map #Mapright').click(function(){var leftPos=$('div.ctl_DetailedItinerary div.map div.dateTabContainer ul').scrollLeft();$("div.ctl_DetailedItinerary div.map div.dateTabContainer ul").animate({scrollLeft:leftPos+obtainMovementValueToUse},500);});}$('div.ctl_DetailedItinerary div.viewTypeLinksContainer ul>li.viewType.map a').click(function(){if(!$(this).parent().hasClass('customScrollRequested')){mapViewCustomScroll();}$(this).parent().addClass('customScrollRequested');});});$(function(){function shortlistCustomScroll(){$('div.ctl_DetailedItinerary').append('<div id="Shortlistleft"></div>');$('div.ctl_DetailedItinerary').append('<div id="Shortlistright"></div>');var leftArrow=$("div.ctl_DetailedItinerary div#Shortlistleft");var rightArrow=$("div.ctl_DetailedItinerary div#Shortlistright");leftArrow.appendTo('div.ctl_DetailedItinerary div.container div.shortList div.productC
50ontainer');rightArrow.appendTo('div.ctl_DetailedItinerary div.container div.shortList div.productContainer');var obtainShortlistWidth,obtainMovementValue,obtainMovementValueToUse,shortlistItem,dateTabContainerParent,totalWidth;function setWidthValues(){obtainShortlistWidth=$("div.ctl_DetailedItinerary div.container div.shortList div.productContainer").width();obtainMovementValue=$("div.ctl_DetailedItinerary div.container div.shortList div.productContainer ul.products li").width();obtainMovementValueToUse=obtainMovementValue+15;totalWidth=0;shortlistItem=$("div.ctl_DetailedItinerary div.container div.shortList div.productContainer ul.products");shortlistItemParent=$("div.ctl_DetailedItinerary div.container div.shortList div.productContainer ul.products").width();var totalWidth=0;$(shortlistItem).children().each(function(){totalWidth=totalWidth+$(this).width();});if(totalWidth>shortlistItemParent){leftArrow.addClass('showArrow');rightArrow.addClass('showArrow');}else{leftArrow.removeClass('showArrow');rightArrow.removeClass('showArrow');}};setWidthValues();function resetScrollPosition(){$("div.ctl_DetailedItinerary div.container div.shortList div.productContainer ul.products").animate({scrollLeft:0},500);};var cachedWidthSpaceFix=$(window).width();$(window).resize(function(){var newWidthSpaceFix=$(window).width();if(newWidthSpaceFix!==cachedWidthSpaceFix){cachedWidthSpaceFix=newWidthSpaceFix;setWidthValues();resetScrollPosition();}});$('div.ctl_DetailedItinerary div.container div.shortList #Shortlistleft').click(function(){var leftPos=$('div.ctl_DetailedItinerary div.container div.shortList div.productContainer ul.products').scrollLeft();$("div.ctl_DetailedItinerary div.container div.shortList div.productContainer ul.products").animate({scrollLeft:leftPos-obtainMovementValueToUse},500);});$('div.ctl_DetailedItinerary div.container div.shortList #Shortlistright').click(function(){var leftPos=$('div.ctl_DetailedItinerary div.container div.shortList div.productContainer ul.products').scrollLeft();$("div.ctl_DetailedItinerary div.container div.shortList div.productContainer ul.products").animate({scrollLeft:leftPos+obtainMovementValueToUse},500);});}shortlistCustomScroll();});$(function(){if($('body').hasClass('itineraryPlannerDetailed')){var productNotOpen=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customText.js.shorlistItemClosed","Not open any time for the date range specified");var productAddedToCal=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customText.js.shorlistItemAdded","Added");function checkProductOpen(){$('div.ctl_DetailedItinerary div.container div.shortList div.productContainer ul.products li').removeClass('notOpenAtAllUpdated');$("div.ctl_DetailedItinerary div.container div.shortList div.productContainer ul.products li.notOpenAtAll").each(function(){if(!$(this).hasClass('notOpenAtAllUpdated')){$(this).append('<div class="productOverlay"></div>');$(this).find('div.thumbnail').append('<div class="productOverlayTextContainer"><div class="productOverlaySubText">'+productNotOpen+'</div></div>');}$(this).addClass('notOpenAtAllUpdated');});}function addedToCalText(){$('div.ctl_DetailedItinerary div.container div.shortList div.productContainer ul.products li').removeClass('showingOnCalendarUpdated');$("div.ctl_DetailedItinerary div.container div.shortList div.productContainer ul.products li").each(function(){if(!$(this).hasClass('showingOnCalendar')){$(this).find('div.productOverlay').remove();$(this).find('div.productOverlayTextContainer').remove();}});$("div.ctl_DetailedItinerary div.container div.shortList div.productContainer ul.products li.showingOnCalendar").each(function(){$(this).find('div.productOverlay').remove();$(this).find('div.productOverlayTextContainer').remove();if(!$(this).hasClass('showingOnCalendarUpdated')){$(this).append('<div class="productOverlay"></div>');$(this).find('div.thumbnail').append('<div class="productOverlayTextContainer"><div class="productOverlaySubText">'+productAddedToCal+'</div></div>');}$(this).addClass('showingOnCalendarUpdated');});};
50function amountOfDaysClassAdditionToCalendar(){var count=$(" div.ctl_DetailedItinerary div.container>table.calendar>tbody>tr>td.dayView>div>table>tbody>tr.dayNames  ").children().length;$('div.ctl_DetailedItinerary div.container>table.calendar').addClass('_'+count+'');};addedToCalText();if(NewMind&&NewMind.ETWP.DetailedItinerary&&NewMind.ETWP.DetailedItinerary.EventShortlistUpdated&&NewMind.ETWP.DetailedItinerary.EventShortlistUpdated.subscribe){NewMind.ETWP.DetailedItinerary.EventShortlistUpdated.subscribe(function(){checkProductOpen();addedToCalText();});NewMind.ETWP.DetailedItinerary.EventCalendarUpdated.subscribe(function(){checkProductOpen();addedToCalText();});}}});
51function boldTfaqLabels(){var elements=document.getElementsByClassName("tfaq");for(var i=0;i<elements.length;i++){var el=elements[i];var text=el.innerText;var colonIndex=text.indexOf(":");if(colonIndex===-1){continue;}var boldSpan=document.createElement("span");boldSpan.className="bold";boldSpan.textContent=text.slice(0,colonIndex+1);el.textContent="";el.appendChild(boldSpan);el.appendChild(document.createTextNode(text.slice(colonIndex+1)));var colonParagraph=el.nextElementSibling;if(colonParagraph&&colonParagraph.nodeName==="P"&&colonParagraph.textContent.trim()===":"){colonParagraph.textContent=" ";}}}if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",boldTfaqLabels);}else{boldTfaqLabels();}

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.