span”).hover(function(){ self.trigger(‘configuration’, [‘debug’, false, true]); }, function(){ setTimeout(function(){ self.trigger(‘configuration’, [‘debug’, false, true]); }, 1); }); }); $(window).resize(function(){ $(“.tt_upcoming_events”).trigger(‘configuration’, [‘debug’, false, true]); }); //timetable row heights /*var maxHeight = Math.max.apply(null, $(“.timetable:visible tr td:first-child”).map(function () { return $(this).height(); }).get()); $(“.timetable:visible tr td”).css(“height”, maxHeight); //timetable height fix $(“.timetable .event”).each(function(){ if($(this).children(“.event_container”).length>1) { var childrenHeight = 0; $(this).children(“.event_container”).not(“:last”).each(function(){ childrenHeight += $(this).innerHeight(); }); var height = $(this).height()-childrenHeight-($(this).parent().parent().width()$(this).children(“.event_container”).last().height()) $(this).children(“.event_container”).last().css(“height”, height + “px”); } });*/ //show/hide event hours on mobile device $(document.body).on(“click”, “.tt_timetable.small .plus.box_header”, function(event) { var $this = $(this); var $list = $this.next(“ul.tt_items_list”); $list.slideDown(500); $this.removeClass(“plus”); $this.addClass(“minus”); }); $(document.body).on(“click”, “.tt_timetable.small .minus.box_header”, function(event) { var $this = $(this); var $list = $this.next(“ul.tt_items_list”); $list.slideUp(500, function() { $this.removeClass(“minus”); $this.addClass(“plus”); }); }); }); ]]>
Holiday Lights is SOLD OUT 11/24 through 11/27. Please visit our ticketing page for avaiaialbe tickets.
diversity-equity-inclusion-pledge/ diversity-equity-inclusion-pledge/ diversity-equity-inclusion-pledge/ diversity-equity-inclusion-pledge/ diversity-equity-inclusion-pledge/ diversity-equity-inclusion-pledge/ diversity-equity-inclusion-pledge/ diversity-equity-inclusion-pledge/
See Our Full Calendar
Membership at Cheekwood
Enjoy free, unlimited admission for one year, plus additional benefits and discounts.
Join, Renew or Give the Gift
Cheekwood News
READ OUR BLOG
‘+index+”); }); var hapNavArr= $(‘.happening ul.slide-nav li a’); var hapNav = $.makeArray(hapNavArr); $(hapNav[0]).addClass(‘active’); $(hapNav).each(function(index){ $(this).click(function(){ $(hapNav).removeClass(‘active’); $(hapNav[index]).addClass(‘active’); $(haps).hide(); $(haps[index]).show(); }); }); }); ]]>
Back to Top
=1){ $(‘.content iframe’).wrap(”); $(‘.embed’).prepend(”); } $(function(){ $(‘.main-menu li.sub > a’).contents().unwrap().wrap(”); }); if($(‘ul.gform_fields select’).length){ $(‘ul.gform_fields select’).dropkick({mobile:true}); } $( “.filter select” ).dropkick({ mobile: true }); $( “.datetime” ).datepicker({ minDate: 0 }); }); $(window).load(function(){ if($(‘.slideshow’).length>=1){ slideshow(); sizeSlideshow(); } if($(‘.accordion’).length>=1){ accordions(); } if($(‘.spot’).length>=1){ interactiveMap(); } }) $(window).resize(function(){ sizeSlideshow(); mobileNav(); }); function slideshow(){ $(‘.slideshow’).each(function(index){ $(this).append(‘
- ‘); var show = $(this); var slidesArr = $(this).find(‘.slide-img’); var slides = $.makeArray(slidesArr); var cur = 0; var total = slides.length-1; $(slides).each(function(index){ $(show).find(‘.slide-nav’).append(‘
- ‘+index+”); }); var slideNavArr = $(show).find(‘.slide-nav li a’); var slideNav=$.makeArray(slideNavArr); $(show).find(‘.slide-nav li’).each(function(index){ $(this).find(‘a’).click(function(){ // $(show).find(‘.slide-nav li a’).removeClass(‘active’); //$(this).addClass(‘active’); nextSlide(index); }); }); $(show).find(‘.slide-nav li:first-child a’).addClass(‘active’); $(show).find(‘.next’).click(function(){ if(cur==total){ nextSlide(0); }else{ nextSlide(cur+1); } }); $(show).find(‘.prev’).click(function(){ if(cur==0){ nextSlide(total); }else{ nextSlide(cur-1); } }); $(show).swipe({ swipe:function(event, direction) { if(direction==’left’){ if(cur==total){ nextSlide(0); }else{ nextSlide(cur+1); }5 } if(direction==’right’){ if(cur==0){ nextSlide(total); }else{ nextSlide(cur+-1); } } }, //z threshold:50, allowPageScroll:”vertical”} ); function nextSlide(slideNum){ cur=slideNum; $(slideNav).removeClass(‘active’); $(slideNav[cur]).addClass(‘active’); $(slides).fadeOut(); $(slides[slideNum]).fadeIn(); } }); }; function sizeSlideshow(){ if($(‘.slideshow’).length){ var heights = $(“.slideshow .slide-img”).map(function () { return $(this).find(‘img’).height(); }).get(), maxHeight = Math.max.apply(null, heights); //alert(maxHeight); //var sHgt = $(‘.slideshow .slide-img:first img’).height(); $(‘.slideshow’).removeAttr(‘style’) $(‘.slideshow’).css(‘min-height’,maxHeight); } }; function accordions(){ $(‘ul.accordion’).each(function(index){ var unit = $(this); $(this).find(‘li a.header’).click(function(){ if(!$(this).hasClass(‘active’)){ unit.find(‘li a.header’).removeClass(‘active’).next(‘.description’).slideUp(250); $(this).addClass(‘active’).next(‘.description’).slideDown(500,function(){ var goTo = $(this).parent().offset().top; //scrollToPoint(goTo); }); }else{ unit.find(‘li a.header’).removeClass(‘active’).next(‘.description’).slideUp(250); } }); }); } function interactiveMap(){ var spotArr = $(‘.spot’); var spots = $.makeArray(spotArr); var accArr = $(‘ul.accordion.locations > li’); var acc = $.makeArray(accArr); var spotCnt = $(spots).length-1; $(‘a.back-to-map’).click(function(){ scrollToPoint($(‘.int-map’).offset().top-$(‘header’).outerHeight()); }); $(spots).each(function(index){ $(this).click(function(){ //alert($(acc[index]).offset().top); $(‘ul.accordion.locations > li a.header’).removeClass(‘active’).next(‘.description’).hide(); $(acc[index]).find(‘a.header’).addClass(‘active’).next(‘.description’).show(); scrollToPoint($(acc[index]).offset().top-$(‘header’).outerHeight()); }); }); } function scrollToPoint(point){ $(‘html, body’).stop().animate({ scrollTop: point }, 350); } function mobileNav(){ if($(window).width() li.menu-item-has-children a’).click(function(){ $(this).parent().toggleClass(‘current-menu-ancestor’); $(‘ul.main-menu.mobile > li.menu-item-has-children’).not($(this).parent()).removeClass(‘current-menu-ancestor’); }); $(‘.mobile-activate’).click(function(){ $(this).toggleClass(‘open’); $(‘.responsive-wrap’).css(‘max-height’,$(window).height()); $(‘header nav’).toggle(); }) $(‘p.back-to-top a’).click(function(){ scrollToPoint(0); }); ]]>