',{class:'offseason-notice'});\n\t\t\tnotice.text('The distillery will be in silent season from the 13th - 30th of September. Please note we are still running tours as normal however there will be no production happening during this time.');\n\t\t\ttriggerOffseasonNotice = setTimeout(function(){\n\t\t\t\t$('#booking-calendar .ui-datepicker-calendar').before(notice);\n\t\t\t},50);\n\t\t} else{\n\t\t\tclearTimeout(triggerOffseasonNotice);\n\t\t}\n\t}\n\t// SWITCH BETWEEN JOURNEYS\n\t$('.switch-journey-active').click(function(){\n\t\t$(this).toggleClass('active');\n\t});\n\t// SLIDER ON PROGRESS BAR\n\tvar progress = $('.booking-progress-steps'),\n\t\t$progress = progress.flickity({\n\t\tprevNextButtons:false,\n\t\tpageDots:false,\n\t\tcontain:true,\n\t\tcellAlign:'left',\n\t\tdraggable:false\n\t});\n\t$progress.flickity('select',progress.find('.active').index())\n\t// Increment Quantities\n\t// $('.inc-less,.inc-more').click(function(){\n\t// \tvar input = $(this).siblings('input'),\n\t// \t\tinc = 1;\n\t// \tif($(this).hasClass('inc-less')){\n\t// \t\tinc = -1;\n\t// \t}\n\t// \tif($(this).hasClass('inc-less') && parseInt(input.val()) == 0){\n\t// \t\tinc = 0;\n\t// \t}\n\t// \tinput.val(parseInt(input.val()) + inc);\n\t// });\n\t// FIX CONTINUE PANEL ON DESKTOP\n\t$(window).resize(function(){\n\t\t$('.booking-continue').each(function(){\n\t\t\t$(this).css({\n\t\t\t\ttop:$(this).siblings('.booking-basket').outerHeight()\n\t\t\t})\n\t\t});\n\t}).resize();\n\t// ACTIVATE VOUCHER BUTTON IF AVAILABLE\n\t$('#basket-promo-input').on('keyup',function(){\n\t\tif($(this).val().length > 0){\n\t\t\t$('#basket-promo-submit').attr('disabled',false);\n\t\t} else{\n\t\t\t$('#basket-promo-submit').attr('disabled',true);\n\t\t}\n\t});\n\t$(\".checkbox__wrapper .checkbox__box\").on(\"click\", function() {\n\t\t\n\t\tvar checkboxWrapper = $(\".checkbox__wrapper\")\n\n\t\tif ($(checkboxWrapper).find(\"input\").prop(\"checked\")) {\n\t\t\t$(checkboxWrapper).find(\"input\").prop(\"checked\", \"on\");\n\t\t}\n\t\t$(checkboxWrapper).find(\".checkbox__box\").toggleClass(\"checked\");\n\t\t\t\n\t})\n});\n\nfunction goToPage(url){\n\twindow.location = url;\n}","function openEnquireBox(){\n\tbody.addClass('enquire-open');\n\t$('#enquire-form-offcanvas').css({\n\t\ttop:scrolld\n\t})\n\t$('#enquire-form-offcanvas .close').click(function(){\n\t\tbody.removeClass('enquire-open');\n\t});\n}","$(function () {\n $('.news-hero__filters .filter-box').each(function() {\n\n var _this = $(this);\n\n var toggle = _this.find('.filter-box__toggle');\n\n toggle.on('click', function() {\n _this.toggleClass('open');\n })\n\n })\n\n})","$(function(){\n\tif($('#header-nav').length){\n\t\t$(window).resize(function(){\n\t\t\tbody.removeClass('header-collapse');\n\t\t\tif($('#header-logo').offset().top != $('#header-nav').offset().top){\n\t\t\t\tbody.addClass('header-collapse');\n\t\t\t}\n\t\t}).resize();\n\t\t$(window).bind('load',function(){\n\t\t\t$(window).resize();\n\t\t});\n\t}\n});","var initMap = function(){\n\t$('figure.map-single').each(function(i){\n\t\tvar scope = $(this),\n\t\t\t$map = scope.attr('id') || 'map-office-'+i,\n\t\t\tlat = scope.attr('data-lat-lng').split(',')[0],\n\t\t\tlng = scope.attr('data-lat-lng').split(',')[1],\n\t\t\tbadge = scope.attr('data-badge'),\n\t\t\tzoom = 15;\n\n\t\tscope.attr('id',$map);\n\t\tdistMap[i] = render_map_distillery(document.getElementById($map), i, lat, lng, zoom, badge);\n\n\t\tdrawCustomZoom(distMap[i],scope);\n\t})\n};\n\nvar distMap = [];\n\nfunction drawCustomZoom(map,container){\n\tvar cont = $('
',{class:'map-zoom-control'}),\n\t\tzIn = $('