PageSourceSearch

https://www.thisisdurham.com/JsHandlerMin/javascript/jquery.actual…/FeaturedItemsScroll_v63731564309.js

js thisisdurham.com collected 2026-10-02 05:53:12 UTC 95,368 bytes, 33 lines download raw bytes

1;(function($){$.fn.addBack=$.fn.addBack||$.fn.andSelf;$.fn.extend({actual:function(method,options){if(!this[method]){throw '$.actual => The jQuery method "'+method+'" you called does not exist';}var defaults={absolute:false,clone:false,includeMargin:false};var configs=$.extend(defaults,options);var $target=this.eq(0);var fix,restore;if(configs.clone===true){fix=function(){var style='position: absolute !important; top: -1000 !important; ';$target=$target.clone().attr('style',style).appendTo('body');};restore=function(){$target.remove();};}else{var tmp=[];var style='';var $hidden;fix=function(){$hidden=$target.parents().addBack().filter(':hidden');style+='visibility: hidden !important; display: block !important; ';if(configs.absolute===true)style+='position: absolute !important; ';$hidden.each(function(){var $this=$(this);var thisStyle=$this.attr('style');tmp.push(thisStyle);$this.attr('style',thisStyle?thisStyle+';'+style:style);});};restore=function(){$hidden.each(function(i){var $this=$(this);var _tmp=tmp[i];if(_tmp===undefined){$this.removeAttr('style');}else{$this.attr('style',_tmp);}});};}fix();var actual=/(outer)/.test(method)?$target[method](configs.includeMargin):$target[method]();restore();return actual;}});})(jQuery);
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$(document).ready(function(){function enableContentExpander($content,intContentLength){var strHiddenClass="expandableContentHidden";$content.each(function(){var $this=$(this);function GetDetails(){return $this.children("div.details");}function GetSummary(){return $this.children("div.summary");}$this.expander({slicePoint:intContentLength,afterCollapse:function(){GetDetails().addClass(strHiddenClass).show();GetSummary().removeClass(strHiddenClass);},beforeExpand:function(){GetDetails().removeClass(strHiddenClass).hide();GetSummary().addClass(strHiddenClass);}});GetDetails().addClass(strHiddenClass).show();});}enableContentExpander($(".expandable"),300);enableContentExpander($(".productDetailFacilities .facilities"),400);enableContentExpander($("div.specialOfferDetail ol.offersList li"),200);function insertLineBreak(){$("div.specialOfferDetail ol.offersList li .summary span.dots").append("<br>");}insertLineBreak();});
4$(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","0");});});
5(function(){var $basket=$(".itineraryBasket");var $link=$("<a class=\"hbtn\" />");var $added=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customText.js.added","Added...");$link.attr("href",'/itinerary-planner');var $header=$basket.find("h2");$link.insertBefore($header);$link.append($header);$link.click(function(e){if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()||NewMind.Site.BreakPoints.IsTabletPortraitOnly()){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");}GetToggleElements().slideToggle("slow");e.preventDefault();});DisableToggleIfRequired();$(window).resize(DisableToggleIfRequired);function DisableToggleIfRequired(){if($('div.IsMobileOnly, div.IsNarrowMobileOnly, div.IsTabletPortraitOnly').is(':hidden')){GetToggleElements().slideUp(1);}}$("p.ex_AddButton a").live("click",function(){if(!$("div.itineraryBasket").hasClass("itineraryActive")){if(!$basket.isOnScreen||!$basket.isOnScreen()){setTimeout(function(){$("html, body").animate({scrollTop:$("div.itineraryBasket").offset().top-40},2000,function(){var $overlay=$("div.itineraryBasket span.icon span.iconOverlay");$overlay.fadeIn("slow",function(){$overlay.fadeOut("slow");}).css("display","block");});},2000);return false;}else{setTimeout(function(){var $overlay=$("div.itineraryBasket span.icon span.iconOverlay");$overlay.fadeIn("slow",function(){$overlay.fadeOut("slow");}).css("display","block");},3000);}}});function GetToggleElements(){return $(".itineraryBasket .ItineraryTbl").add($("div.itineraryBasket form")).add($(".itineraryBasket .EmptyMsg")).add($(".itineraryBasket p.link"));}})();$(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");if($basket.length===0){return;}var $title=$basket.find("h2#ir_itinerary_yourplanner");var $count=$title.find("span.Count");if($count.length===0){$title.append("<span class=\"Count\"></span>");$title.append("<span class=\"icon\"><span class=\"iconOverlay\"></span></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");$basket.find(".ItineraryTbl").addClass("hide");}else{$count.removeClass("NoItems");$basket.addClass("itineraryActive");}$count.html(numberOfItems);}})();});
6(function(){NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return($("div.ctl_TwitterControl div.twtr-pub").length>0);},MaxNumberOfAttempts:100,Success:function(){$("div.ctl_TwitterControl").removeClass("hide");}});})();
7$(document).ready(function(){function facebookWidth(){FB.XFBML.parse();}var delay=(function(){var timer=0;return function(callback,ms){clearTimeout(timer);timer=setTimeout(callback,ms);};})();$(window).resize(function(){delay(function(){facebookWidth();},500);});});
8(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();};}$(document).ready(summaryHeaderWrapper);$(document).ready(hideSummaryTitle);if(NewMind.ETWP.ProductList){NewMind.ETWP.ProductList.listLoaded.subscribe(summaryHeaderWrapper);NewMind.ETWP.ProductList.listLoaded.subscribe(hideSummaryTitle);if($('div.refineBy').length){NewMind.ETWP.RefineSearchSummary.refinementStart.subscribe(summaryHeaderWrapper);NewMind.ETWP.RefineSearchSummary.refinementStart.subscribe(hideSummaryTitle);NewMind.ETWP.RefineSearchSummary.refinementCompleteCallBack.subscribe(summaryHeaderWrapper);NewMind.ETWP.RefineSearchSummary.refinementCompleteCallBack.subscribe(hideSummaryTitle);NewMind.ETWP.RefineSearchSummary.refinementAddedCallBack.subscribe(summaryHeaderWrapper);NewMind.ETWP.RefineSearchSummary.refinementAddedCallBack.subscribe(hideSummaryTitle);NewMind.ETWP.RefineSearchSummary.refinementRemovedCallBack.subscribe(summaryHeaderWrapper);NewMind.ETWP.RefineSearchSummary.refinementRemovedCallBack.subscribe(hideSummaryTitle);NewMind.ETWP.RefineSearchSummary.productDataLoadedCallBack.subscribe(summaryHeaderWrapper);NewMind.ETWP.RefineSearchSummary.productDataLoadedCallBack.subscribe(hideSummaryTitle);}};})();
9(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;$.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>
9=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.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};
9if(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));}function fixIds(i){if(this.id){this.id+=i;}}})(jQuery);
10(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:'slideUp',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();
10if(!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:''});
10if(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+'">'+o.expandPrefix;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);
11(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]);}});})();
12NewMind.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");}};}());
13(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]);}}
13});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();}})();
14(function($){$.fn.FeatPageSquare=function(options){var config=$.extend({},{TransitionSpeed:1,TransitionSpeedSlide:600,HoverDelay:250},options);$(this).find('div.blogListItem').each(function(){var $li=$(this);var li={animationBottom:0,titleHeight:0,imageHeight:0,combinedHeight:0};function setHeight(){li.titleHeight=$li.find('h3').actual("outerHeight");li.imageHeight=$li.find('.image img').actual("outerHeight");li.titleHeightBlog=$li.find('header.blogpostheader h2').actual("outerHeight");li.combinedHeight=li.imageHeight;li.animationBottom=li.imageHeight-li.titleHeight;li.animationBottomBlog=li.imageHeight-li.titleHeightBlog;$li.find('.SqaureContentSlide').css({'bottom':-li.animationBottom,'top':'auto'}).height(li.combinedHeight);$li.find('.SqaureContentSlideBlog').css({'bottom':-li.animationBottomBlog,'top':'auto'}).height(li.combinedHeight);};var title=$li.find('h3');if(!title.hasClass('SqaureContentPage')){title.addClass("HasDescription SqaureContent SqaureContentPage");$li.find('p.Description').addClass("SqaureContent");$li.find('.SqaureContent').wrapAll('<div class="SqaureContentSlide" />');var storedURL=$li.find('h3 > a').attr('href');if(storedURL){$li.wrapInner('<a href=" '+storedURL+'" class="largeLink" />');}$li.find('p.image').prepend('<div class="SquareOverlay"></div>');}var titleBlog=$li.find('header.blogpostheader');if(!titleBlog.hasClass('SqaureContentBlog')){titleBlog.addClass("HasDescription SqaureContent SqaureContentBlog");$li.find('div.blogpostteaser').addClass("SqaureContent");$li.find('.SqaureContent').wrapAll('<div class="SqaureContentSlideBlog" />');var storedURLBlog=$li.find('header.blogpostheader > h2 > a').attr('href');if(storedURLBlog){$li.wrapInner('<a href="'+storedURLBlog+'" class="largeLink" />');}$li.find('p.image').prepend('<div class="SquareOverlay"></div>');}setHeight();$(window).resize(setHeight);});$('.FeatPageSquare ul li:last-child').addClass('last');return this;};})(jQuery);
15(function($){$.fn.HighlightSquare=function(options){var config=$.extend({},{TransitionSpeed:1,TransitionSpeedSlide:600,HoverDelay:250},options);$(this).find('div.Highlight').each(function(){var $highlight=$(this);var elements={animationBottom:0,titleHeight:0,imageHeight:0,combinedHeight:0};function setHeight(){elements.titleHeight=$highlight.find('h2').css("height","auto").actual("outerHeight");elements.imageHeight=$highlight.find('.Image img').css("height","auto").actual("outerHeight");elements.combinedHeight=elements.imageHeight;elements.animationBottom=elements.imageHeight-elements.titleHeight;$($highlight).find('.SqaureContentSlide').css({'bottom':-elements.animationBottom,'top':'auto'});$($highlight).find('.SqaureContentSlide').height(elements.combinedHeight);};if($highlight.find('div.Dates').length){var title=$highlight.find('h2');
15if(!title.hasClass('SqaureContent')){$highlight.find('h2').addClass("HasDescription SqaureContent");$highlight.find('div.Dates').addClass("SqaureContent");$highlight.find('.SqaureContent').wrapAll('<div class="SqaureContentSlide" />').wrapAll('<div class="SqaureContentSlideSub" />');var storedURL=$highlight.find('h2 > a').attr('href');$highlight.wrapInner('<a href=" '+storedURL+'" class="largeLink" />');$highlight.find('div.Image').prepend('<div class="SquareOverlay"></div>');}setHeight();$(window).resize(setHeight);var timer;var delay=config.HoverDelay;$highlight.hover(function(){timer=setTimeout(function(){$($highlight).find('.SqaureContentSlide').addClass('SqaureContentSlideHover').css({'bottom':'0'});},delay);},function(){clearTimeout(timer);$($highlight).find('.SqaureContentSlide').removeClass('SqaureContentSlideHover').css({'bottom':-elements.animationBottom,'top':'auto'});});}});return this;};})(jQuery);
16(function(){$('.productSearchMobile form#refineBySearchForm').hide();$('.productSearchMobile .accommodationSearchImg h2.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 h2').removeClass('showHide');$(".productSearchMobile").removeClass('showSearch');$(this).addClass('showHide');$('.productSearchMobile form.searchform').slideUp();$(this).parent().next().slideDown("slow");$(this).closest(".productSearchMobile").addClass('showSearch');}}return false;});$('.srchHome').wrapAll('<div class="searchBlockWrapper"></div>');$('#TopEvents .srchHome form.searchform').hide();$('#TopEvents .srchHome h2.ir').click(function(){if($(this).is(':visible')&&!$('form.searchform').is(':animated')){if($(this).hasClass('showHide')){$(this).removeClass('showHide');$(this).parent().next().slideUp("slow");}else{$('#TopEvents .srchHome h2').removeClass('showHide');$(this).addClass('showHide');$('#TopEvents .srchHome form.searchform').slideUp();$(this).parent().next().slideDown("slow");}}return false;});})();
17(function(){function moveHeaderItems(){var topWrapper=$('div#topWrapper');if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()||NewMind.Site.BreakPoints.IsTabletPortraitOnly()){$(topWrapper).insertBefore('div.navigationUtility');}else{$(topWrapper).insertBefore('div#headerWrapper');}}moveHeaderItems();$(window).resize(moveHeaderItems);function moveSocialMedia(){var socialMediaIcons=$('div.featuredPagesSocial');if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()||NewMind.Site.BreakPoints.IsTabletPortraitOnly()||NewMind.Site.BreakPoints.IsSmallTabletLandscapeOnly()||NewMind.Site.BreakPoints.IsBigTabletLandscapeOnly()){$(socialMediaIcons).appendTo('div#columnBot');$(socialMediaIcons).addClass('featuredPagesSocialTop');}else{$(socialMediaIcons).appendTo('div#SocialMediaWrapper');$(socialMediaIcons).removeClass('featuredPagesSocialTop');}}moveSocialMedia();$(window).resize(moveSocialMedia);})();
18(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);})();
19(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");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);});});})();
20(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);};})();})();
21(function(){$('.productDetailFacilities .facilities ul').each(function(){$(this).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" />');};$(".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($('.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);});$("div.productDetailAwardsGradings div.gradings .gradingLogoImg").appendTo("div.productDetailAwardsGradings div.gradings ul");if($('.productDetail div').children().length==0){$('.productDetail').addClass("hide");}
21if($('.exl_buyTicketsButton').length==0){$('.AccessInfo').hide();}var myEls=$('div.productDetailProducts .relatedproductitem');var numEls=myEls.length;for(i=0;i<numEls;i=i+3){myEls.eq(i).add(myEls.eq(i+1)).add(myEls.eq(i+2)).wrapAll('<div class="relatedProductsWrapper"/>');}if($('.productDetail div.TADetail').length==0){$('.productDetail h2.tripAdvisorTitle').addClass("hide");}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);}}$("div.whatsNearby").each(function(){if($(this).length>0){var $tabs=$(this).find("> form > div.row");if($tabs.length>0){$tabs.wrapAll("<div class='tabContainer' />");}}});(function(){var $target=$("div.whatsNearby");if($target.length>0){$target.find('h2').wrapInner('<span></span>');}})();})();$(document).ready(function(){$('.tourismForAll').each(function(){var $container=$(this);var $summaryTitle=$container.find('.summary .node.TFAInfo > h2[id="TFATitle"]').first();$summaryTitle.text("Accessibility Information");$container.find('.details .node.TFAInfo > h2[id="TFATitle"]').remove();$container.prepend($summaryTitle);});if($('.tourismForAll').length>0){$('.tfaq').each(function(){var text=$(this).text();var parts=text.split(/:(.+)/);if(parts.length>1){$(this).html('<span class="tfaq-title">'+parts[0]+': </span>'+'<span class="tfaq-text">'+parts[1].trim()+'</span>');}});}});(function(){if($("body.ProductSearchSwitcher.stage3").length>0){var getProductID=NewMind.Vars.Page.ProductKey;if((getProductID===453701)||(getProductID===804781)||(getProductID===1062971)||(getProductID===25731)||(getProductID===769201)||(getProductID===1068691)||(getProductID===1068751)||(getProductID===1063851)||(getProductID===1026071)||(getProductID===1069991)){var script=document.createElement('script');script.innerHTML="gtag('event','conversion', {'allow_custom_scripts': true,'send_to': 'DC-11075114/convers/conve0+standard'});";document.head.appendChild(script);}}function bookingUnitSelectionIsEmpty(){var $unitSelection=$('div.bookingUnitSelection');if(!$unitSelection.length){return false;}return $unitSelection.children().length===0;}function hasExternalBookOnlineLink(){return $('.productDetailTop .address br:last-child, .bookOnlineTop .address br:last-child a[rel="external"]').length>0;}function hideInternalBookOnlineOnly(){$('.productDetailTop .address br:last-child, .bookOnlineTop .address br:last-child').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();}})();
22$(document).ready(function(){$('.dontMissNavAcco').appendTo('.navigationMain ul li.accommodation ul.sub1');$('.dontMissNavTTD').appendTo('.navigationMain ul li.ttd ul.sub1');$('.dontMissNavEvent').appendTo('.navigationMain ul li.whatsOn ul.sub1');$('.dontMissNavFood').appendTo('.navigationMain ul li.food ul.sub1');$('.dontMissNavInspire').appendTo('.navigationMain ul li.inspire ul.sub1');$('.dontMissNavVisitor').appendTo('.navigationMain ul li.visitor ul.sub1');$('.dontMissNavExplore').appendTo('.navigationMain ul li.explore ul.sub1');$('body.northernsaints .dontMissNavAcco').appendTo('body.northernsaints .navigationMain ul li.accommodation ul.sub1');$('body.northernsaints .dontMissNavTTD').appendTo('body.northernsaints .navigationMain ul li.ttd ul.sub1');$('body.northernsaints .dontMissNavFood').appendTo('body.northernsaints .navigationMain ul li.food ul.sub1');$('body.northernsaints .dontMissNavTrails').appendTo('body.northernsaints .navigationMain ul li.trails ul.sub1');$('body.northernsaints .dontMissNavAbout').appendTo('body.northernsaints .navigationMain ul li.about ul.sub1');$('body.northernsaints .dontMissNavVisitor').appendTo('body.northernsaints .navigationMain ul li.visitor ul.sub1');
22if(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");});});});
23if(/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');}});}
24(function(){NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $("div.automatedMapWidget div.mapView.googleView div#mapFilters > fieldset > fieldset").length>1;},MaxNumberOfAttempts:200,Success:function(){$("div.mapFilterIcon").toggle(function(){$(this).find('div.refineIcon').addClass('refineIconOpen');$('div.MapFilterIconSet').addClass('MapFilterIconSetOpen');if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()){$('div.automatedMapWidget div.mapView.googleView').addClass('refineOpen');}else{$('div.automatedMapWidget div.mapView.googleView').addClass('refineOpen');}},function(){$(this).find('div.refineIcon').removeClass('refineIconOpen');$('div.MapFilterIconSet').removeClass('MapFilterIconSetOpen');if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()){$('div.automatedMapWidget div.mapView.googleView').removeClass('refineOpen');}else{$('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;$('div.mapEmbedTabs div.tabNavigation').append('<li class="closePopup"><img src="/images/Icons/icon_close.png" /></li>');var closePopup=$('div.mapEmbedTabs div.tabNavigation li.closePopup');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';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 iframeCustomValue='<iframe src="'+mapUrl+'" width="'+iframeCustomWidth+'" height="'+iframeCustomHeight+'" frameborder="0" style="border:0" allowfullscreen></iframe>';var iframeCustomWidth=$("div.mapEmbedTabs div.productTabs div.tabContainer div.tab div.mapContainer div.mapEmbedOption input.custom-width").val();var iframeCustomHeight=$("div.mapEmbedTabs div.productTabs div.tabContainer div.tab div.mapContainer div.mapEmbedOption input.custom-height").val();var embedTabItem=$('div.mapEmbedTabs div.tabNavigation > ul > li > a');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);});
24$(closePopup).click(function(){$(embedTabs).removeClass(mapEmbedOpen);$(embedOverlay).removeClass(embedOverlayOpen);});$(embedMapSmall).click(function(){var mapUrl=window.location.href;var itemText=$(this).html();$(embedWidgetInputEmbedIframe).val(iframeSmallValue);$(embedMapDefaultText).html(itemText);$(embedWidgetCustomSize).removeClass(embedCustomDimensionsOpen);mapWidgetActiveInput();selectInputText();});$(embedMapMedium).click(function(){var mapUrl=window.location.href;var itemText=$(this).html();$(embedWidgetInputEmbedIframe).val(iframeMediumValue);$(embedMapDefaultText).html(itemText);$(embedWidgetCustomSize).removeClass(embedCustomDimensionsOpen);mapWidgetActiveInput();selectInputText();});$(embedMapLarge).click(function(){var mapUrl=window.location.href;var itemText=$(this).html();$(embedWidgetInputEmbedIframe).val(iframeLargeValue);$(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.tab div.mapContainer div.mapEmbedOption input.custom-width").val();var iframeCustomHeight=$("div.mapEmbedTabs div.productTabs div.tabContainer div.tab div.mapContainer div.mapEmbedOption input.custom-height").val();$(embedWidgetInputEmbedIframe).val('<iframe src="'+mapUrl+'" 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);});$(embedOpenShareOption).click(function(){var mapUrl=window.location.href;$(embedTabs).addClass(mapEmbedOpen);$(embedOverlay).addClass(embedOverlayOpen);$(embedWidgetInputShareIframe).val(mapUrl);if($(embedMapDefaultText).text()==embedMapCustom.html()){var iframeCustomWidth=$("div.mapEmbedTabs div.productTabs div.tabContainer div.tab div.mapContainer div.mapEmbedOption input.custom-width").val();var iframeCustomHeight=$("div.mapEmbedTabs div.productTabs div.tabContainer div.tab div.mapContainer div.mapEmbedOption input.custom-height").val();$(embedWidgetInputEmbedIframe).val('<iframe src="'+mapUrl+'" width="'+iframeCustomWidth+'" height="'+iframeCustomHeight+'" frameborder="0" style="border:0" allowfullscreen></iframe>');}else if($(embedMapDefaultText).text()==embedMapSmall.html()){$(embedWidgetInputEmbedIframe).val(iframeSmallValue);}else if($(embedMapDefaultText).text()==embedMapMedium.html()){$(embedWidgetInputEmbedIframe).val(iframeMediumValue);}else if($(embedMapDefaultText).text()==embedMapLarge.html()){$(embedWidgetInputEmbedIframe).val(iframeLargeValue);}selectInputText();});$(embedWidgetInputShareIframe).click(function(){$(this).select();});$(embedWidgetInputEmbedIframe).click(function(){$(this).select();});});})();
25$(window).load(function(){NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $("div.twitter div.TweetWrapper div.twtr-bd2 div.twtr-tweets2").length>0;},MaxNumberOfAttempts:1000,Success:function(){$("div.twitter div.TweetWrapper div.twtr-bd2 div.twtr-tweets2").each(function(i){$(this).addClass("item"+(i+1));$(this).wrapInner("<div class='tweetContent'></div>");});(function(){var $twitterControl=$("div.twitter");function twitterMoveDate(){if($twitterControl.length>0){var $twitterDate=$twitterControl.find("div.twtr-tweets2");var $twitterContent=$twitterControl.find("div.tweetContent");if($twitterDate.length<1)return;if($twitterDate.length>1)$twitterDate.each(function(){var $item=$(this);var $details=$item.find("div.twtr-pub");var $detailsMoved=$item.find("div.tweetContent");$details.insertAfter($detailsMoved);});}}twitterMoveDate();})();$("div.twitter div.TweetWrapper div.twtr-bd2 div.twtr-tweets2.item1").appendTo($("div.socialMediaBlockLeft"));$("div.twitter div.TweetWrapper div.twtr-bd2 div.twtr-tweets2.item2").appendTo($("div.socialMediaBlockLeft"));$("div.twitter div.TweetWrapper div.twtr-bd2 div.twtr-tweets2.item3").appendTo($("div.socialMediaBlockLeft"));$("div.twitter div.TweetWrapper div.twtr-bd2 div.twtr-tweets2.item4").appendTo($("div.socialMediaBlockRight"));$("div.twitter div.TweetWrapper div.twtr-bd2 div.twtr-tweets2.item5").appendTo($("div.socialMediaBlockRight"));$("div.twitter div.TweetWrapper div.twtr-bd2 div.twtr-tweets2.item6").appendTo($("div.socialMediaBlockRight"));}});});
26(function(){$("div.featuredItems div.wrapper>ol>li div.item-content").each(function(){$(this).find('div.title, div.description, ol.openings').wrapAll('<div class="featuredItemsInnerContent">');});$("div.featuredItemsFullWidth").each(function(){var control=$(this);control.find("div.wrapper>ol>li div.item-content").each(function(){$(this).find('div.featuredItemsInnerContent').wrapInner('<div class="featuredItemsInnerContentAdditional">');$(this).find('div.featuredItemsInnerContent').append('<div class="CarouselControlsPerItem"><div class="CarouselLeft"></div><div class="CarouselRight"></div></div>');});control.find('div.CarouselControlsPerItem div.CarouselLeft').click(function(){control.find("div.CarouselControls>div.CarouselLeft").trigger("click");});control.find('div.CarouselControlsPerItem div.CarouselRight').click(function(){control.find("div.CarouselControls>div.CarouselRight").trigger("click");});});function WrapFeaturedItems(){$("div.featuredItems div.wrapper > ol li.AlignLeftWrapTwo").each(function(i){$(this).nextAll().slice(0,2).wrapAll('<div class="featuredItemsInnerWrapper featuredItemsInnerWrapperNext"></div>');});$("div.featuredItems div.wrapper > ol li.AlignLeftWrapThree").each(function(i){$(this).nextAll().slice(0,3).wrapAll('<div class="featuredItemsInnerWrapper featuredItemsInnerWrapperThree featuredItemsInnerWrapperNext"></div>');});$("div.featuredItems div.wrapper > ol li.AlignLeftWrapFour").each(function(i){$(this).nextAll().slice(0,4).wrapAll('<div class="featuredItemsInnerWrapper featuredItemsInnerWrapperFour featuredItemsInnerWrapperNext"></div>');});$("div.featuredItems div.wrapper > ol li.AlignRightWrapTwo").each(function(i){$(this).prevAll().slice(0,2).wrapAll('<div class="featuredItemsInnerWrapper featuredItemsInnerWrapperPrev"></div>');});$("div.featuredItems div.wrapper > ol li.AlignRightWrapThree").each(function(i){$(this).prevAll().slice(0,3).wrapAll('<div class="featuredItemsInnerWrapper featuredItemsInnerWrapperThree featuredItemsInnerWrapperPrev"></div>');});$("div.featuredItems div.wrapper > ol li.AlignRightWrapFour").each(function(i){$(this).prevAll().slice(0,4).wrapAll('<div class="featuredItemsInnerWrapper featuredItemsInnerWrapperFour featuredItemsInnerWrapperPrev"></div>');});}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(){WrapFeaturedItems();}});}else{WrapFeaturedItems();}$("div.featuredItemsAnchorWrap div.wrapper ol li").each(function(){var anchortag=$(this).find('div.title a');var featuredURL=$(this).find('div.title a').attr('href');if($(anchortag).length>0){$(this).wrapInner('<a href="'+featuredURL+'" class="innerWrapper" />');}var featuredTarget=$(this).find('div.title a').attr('target');var featuredTargetCheck='_blank';var InnerWrapper=$(this).find("a.innerWrapper");if(featuredTarget==featuredTargetCheck){$(InnerWrapper).attr('target','_blank');}});if($('div.featuredItemsGrid').length>0){function checkFeaturedItemsGridInView(){setTimeout(function(){$("div.featuredItemsGrid div.wrapper ol li").each(function(){if($(this).isOnScreen()){$(this).addClass('gridInView');}});},1000);}checkFeaturedItemsGridInView();$(window).scroll(function(){checkFeaturedItemsGridInView();});}})();
27$('div.FeatPageSquare').FeatPageSquare();
28function BlogTitles(){var $list=$('div.CFTBlogNav li');$list.each(function(){$("div#BlogSection > div#"+$(this).attr("class")).prepend("<h3 class='BlogTitle'>"+$(this).text()+"</h3>");});}function resetTabIndex(){var $list=$('#BlogSection a');$list.each(function(){$(this).attr('tabindex','-1');});}function viewMoreBlogs(){var $viewmore=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customtext.viewmoreblogs","View More");var $blog=$('div#BlogSection div.BlogCategoryList');$blog.each(function(){var blogid=$(this).attr("id");$("<a tabindex='0' href='/blog#"+blogid+"' class='blogbtn'>"+$viewmore+"</a>").insertAfter("div#"+blogid+" div.blogpostlist");});}function defaultSelection(){var $item=$('div.CFTBlogNav li:first-of-type');$("div#BlogSection > div#"+$item.attr("class")).addClass('active');$("div#BlogSection div#"+$item.attr("class")+" a").each(function(){$(this).attr('tabindex','0');});$item.addClass('active');}function mapNavigation(){var $list=$('div.CFTBlogNav li');$list.click(function(){if(!$(this).hasClass('active')){$list.removeClass('active');$('div#BlogSection div.BlogCategoryList').removeClass('active');$('.BlogCategoryList a').each(function(){$(this).attr('tabindex','-1');});$("div#BlogSection div#"+$(this).attr("class")).addClass('active');$("div#BlogSection div#"+$(this).attr("class")+" a").attr("tabindex","0");$(this).addClass('active');}});}function mobileTabs(){$('div.BlogCategoryList h3.BlogTitle').click(function(){if(!$(this).parent('div').hasClass('active')){$('div.BlogCategoryList').removeClass('active');$('div.CFTBlogNav li').removeClass('active');$('div.CFTBlogNav li.'+$(this).parent('div').attr("id")).addClass('active');$(this).parent('div').addClass('active');$('html, body').animate({scrollTop:$(this).parent('div').offset().top},1000);}});}function readMoreButton(){var readmore=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customtext.readmoreblogs","Read More");var readmorelink=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customtext.readmoreblogslink","/blog");var $blogSection=$('div#BlogWrapper div#BlogSection');$($blogSection).append('<div class="readMoreBlogs"><h3><a tabindex="0" aria-label="Read More Blogs" title="Read More Blogs" href="'+readmorelink+'">'+readmore+'</a></h3></div>');}resetTabIndex();BlogTitles();defaultSelection();mapNavigation();mobileTabs();readMoreButton();
29var runCount=1;var runOneTime=0;var strShowMore=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customText.contentFreeText.showMore","View more");var strShowLess=NewMind.ETWP.GetResource("NewMind.env.lang.resources.customText.contentFreeText.showLess","Vie
29w less");function RowMaker(target,runCount){runCount=2;var $highlight=$(''+target+' div.ItemWrapper > div.Highlight:nth-child(2n)');rowCount=1;$highlight.each(function(){$(this).addClass('row'+rowCount);$(this).prev().addClass('row'+rowCount);rowCount++;if(rowCount>2){$(this).addClass('hide');$(this).prev().addClass('hide');}});if(!$(''+target+' div.HpBlocksShowMore').length>0){$(''+target+' div.ItemWrapper').after('<div class="showMore HpBlocksShowMore">'+strShowMore+'</div>');}$(''+target+' div.HpBlocksShowMore').click(function(){if(!$(this).hasClass('showLess')){$(''+target+' div.ItemWrapper > div.Highlight.row'+runCount).removeClass('hide').addClass('show');runCount++;}else{$(''+target+' div.ItemWrapper > div.Highlight').addClass('hide').removeClass('show');$(''+target+' div.ItemWrapper > div.Highlight.row1').removeClass('hide');runCount=2;$(''+target+' div.HpBlocksShowMore').text(strShowMore);$(''+target+' div.HpBlocksShowMore').removeClass('showLess');$('html, body').animate({scrollTop:$(target).offset().top},1000);}if(!$(''+target+' div.ItemWrapper > div.Highlight').hasClass('hide')){$(''+target+' div.HpBlocksShowMore').text(strShowLess);$(''+target+' div.HpBlocksShowMore').addClass('showLess');}});}function ResetRowMaker(target){var $highlight=$(''+target+' div.ItemWrapper > div.Highlight');$(''+target+' div.HpBlocksShowMore').remove();$highlight.removeClass('hide');$highlight.removeClass('row');}function runall(){if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()){if(runOneTime===0){console.log('calling');RowMaker('div.highlightsScroll','runner1');runOneTime++;}}else{ResetRowMaker('div.highlightsScroll');runOneTime=0;runCount=1;}}setTimeout(runall,1000);$(window).resize(function(){runall();});
30(function(){if($('div.siteSearchFullWidth > form div.form').length===0){$('div.siteSearchFullWidth > form').children().wrapAll('<div class="form"><div class="row"></div></div>');$('div.siteSearchFullWidth > form div.form div.row label').wrapAll('<span class="label">');$("div.siteSearchFullWidth > form div.form div.row input[type='search']").wrapAll('<span class="field defaultText">');$("div.siteSearchFullWidth > form div.form div.row input[type='image']").wrapAll('<span class="submit">');}$('div.siteSearchOverlayClose').appendTo('div.siteSearchFullWidth form.SearchSite div.form');$("div.siteSearchFullWidth > form div.form div.row input[type='text']").attr('autocomplete','off');$('div.siteSearchFullWidth > form div.form').find("input[type=text]").each(function(ev){if(!$(this).val()){$(this).attr("placeholder","Site Search");}});function siteSearch(){$('div.navigationFullScreenWrapper div.siteSearchIcon, div.navigationFullScreenWrapper div.siteSearchOverlayClose').click(function(){$("div.siteSearchFullWidth").toggleClass('siteSearchOpen');$("div#siteSearchOverlay").toggleClass('siteSearchOverlayOpen');$('body').toggleClass('noscroll');});}siteSearch();})();(function(){function siteSearch(){$('.siteSearchIconStandard span').click(function(){$(".siteSearchStandard").toggleClass('siteSearchOpen');});}siteSearch();})();
31(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"));$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);$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 />");
31$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);$availabilityElements.hide().removeClass('showElements');$checkbox.click(function(){$availabilityElements.toggleClass('showElements');});});}$(document).ready(openCloseAvailability);$(document).ready(openCloseAvailabilityMobile);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>");})();})();
32(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;}
32if(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);}$.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);}
32).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.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);
33NewMind.registerNameSpace("NewMind.Site");function FeaturedItemsScrollWrapping(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.featuredItemsScroll');var $item=$control.find('div.wrapper>ol li');$item.each(function(){var imagecredits=$(this).find('img').attr('data-copyright');if(imagecredits!=null){var $mediaNote=$(this).find('div.featuredItemsInnerContent');$(this).find($mediaNote).append('<p class="copyright">&copy; '+imagecredits+'</p>');}});}FeaturedItemsCopyright();}(function(){FeaturedItemsScrollWrapping('div.featItemJSScroll1');FeaturedItemsScrollWrapping('div.featItemJSScroll2');FeaturedItemsScrollWrapping('div.featItemJSScroll3');})();function FeaturedItemsScroll(target){var resizeFromTop='FeaturedItemsScroll20193x2';var resizeFromBottom='FeaturedItems4x3';var resizeTo='FeaturedItemsScroll20191x1';if(NewMind.ETWP.LazyLoadImages){}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>');
33$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 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>');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>');$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');});});},1000);}function scrollFunctionality(){$carouselControls=$('<div class="CarouselControls"></div>');$controlLeft=$('<div class="CarouselLeft"></div>');$controlRight=$('<div class="CarouselRight"></div>');
33$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('featuredItemsScrollFadeTitle')){$(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('featuredItemsScrollFadeTitle')){$(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();
33$($featuredItemsControl).addClass('controlLoaded');$('div#gallery-wrapper').addClass('controlLoaded');if($(target).hasClass('featuredItemsScrollPreview')){$('div#gallery-wrapper').addClass('background-wrapper-overflow');}if($(target).hasClass('featuredItemsScrollFadeTitle')){$(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('featuredItemsScrollSingleItem');
33$(target).addClass('controlLoaded');if($(target).hasClass('featuredItemsScrollFadeTitle')){$(target).find("div.wrapper>ol > li div.item-content div.featuredItemsInnerContent").removeClass('showItemContent');}videoCustomControlsYouTubeVimeoEmbed();videoCustomControls();var imgFI=$('div.featuredItemsScrollUpper').find('div.wrapper>ol > li img');NewMind.ETWP.LazyLoadImages.LoadSpecificLazyImages(imgFI);}}function transparentPanelsAppend(){if($('div.featItemJSScroll').hasClass('featuredItemsScrollPreview')){$('<div class="left"></div>').prependTo('div#gallery-wrapper div#gallery');$('<div class="right"></div>').appendTo('div#gallery-wrapper div#gallery');}var windowWidth=$(window).width();var headerWidth=$('div#header').width();var wrapperWidth=windowWidth-headerWidth;var wrapperWidth=wrapperWidth/2;$('div#gallery-wrapper div#gallery div.left').width(wrapperWidth);$('div#gallery-wrapper div#gallery div.right').width(wrapperWidth);};function controlHeightForLoading(){var newHeight=null;var imageResizerHeight,imageResizerWidth;if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()){imageResizerHeight=849;imageResizerWidth=480;}else{imageResizerHeight=984;imageResizerWidth=1750;}var obtainViewportSpace=$('div#gallery-wrapper').width();var setHeightAndWidthCalculation=(imageResizerHeight/imageResizerWidth);var newHeight=setHeightAndWidthCalculation*obtainViewportSpace;$("div.featItemJSScroll").each(function(){$(this).css('height',newHeight);$(this).find('ol > li').css('height',newHeight);});}controlHeightForLoading();function FullWidthcontrolHeightForLoading(){var newHeight=null;var imageResizerHeight,imageResizerWidth;if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()){}else{imageResizerHeight=984;imageResizerWidth=1750;}var obtainViewportSpace=$('div#gallery-wrapper').width();var setHeightAndWidthCalculation=(imageResizerHeight/imageResizerWidth);var newHeight=setHeightAndWidthCalculation*obtainViewportSpace;$("div.FullWidthfeatItemJSScroll").each(function(){$(this).css('height',newHeight);$(this).find('ol > li').css('height',newHeight);});}FullWidthcontrolHeightForLoading();function checkVideoIsPaused(){var isVideoActiveSlide=$('div.featuredItemsScroll div.wrapper>ol li.VimeoVideo');if($(isVideoActiveSlide).hasClass('active')){var nowObtainVideo=$('div.featuredItemsScroll div.wrapper>ol li.VimeoVideo.active').find('video');var nowObtainVideoNotActive=$('div.featuredItemsScroll 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(){FeaturedItemsScroll('div.featItemJSScroll1');checkVideoIsPaused();transparentPanelsAppend();})();(function(){function setIframeContentHeightVideo(){var newHeight=null;var imageResizerHeight=984;var imageResizerWidth=1750;var obtainViewportSpace=$('div#gallery-wrapper').width();var setHeightAndWidthCalculation=(imageResizerHeight/imageResizerWidth);var newHeight=setHeightAndWidthCalculation*obtainViewportSpace;$("div.featItemJSScroll").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#gallery-wrapper div#gallery div.left').width(wrapperWidth);$('div#gallery-wrapper div#gallery div.right').width(wrapperWidth);};if($("div.featItemJSScroll div.wrapper > ol > li.loading").length>0){NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $("div.featItemJSScroll 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=984;var imageResizerWidth=1750;var obtainViewportSpace=$('div.FeaturedItemsFullWidth').width();var setHeightAndWidthCalculation=(imageResizerHeight/imageResizerWidth);var newHeight=setHeightAndWidthCalculation*obtainViewportSpace;$("div.FullWidthfeatItemJSScroll").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.FullWidthfeatItemJSScroll div.wrapper > ol > li.loading").length>0){NewMind.ETWP.PersistentAttempt({Condition:function(intNumberOfAttempts){return $("div.FullWidthfeatItemJSScroll 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();FullWidthcontrolHeightForLoading();}});})();
33(function(){function ImageAmountCheck(){if(NewMind.Site.BreakPoints.IsNarrowMobileOnly()||NewMind.Site.BreakPoints.IsMobileOnly()){setTimeout(function(){if($("div.featItemJSScroll1 div.wrapper ol li").length===0){$("div#headerWrapper").removeClass("transition");}},2000);}}ImageAmountCheck();})();

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.