jQuery(document).ready(function(){$(window).off('keydown.mm');$('.dropdown-menu').find('.dropdown-item-col.hasSubNav:last-child .dropdown-item:last-child a, .dropdown-item-col.hasNoSubNav:last-child a, .dropdown-item-col.dropdown-item-image a, .dropdown-item-booking .btn').addClass('nav-keyboard-last');$('.mainNavi').find('.nav-item:last-child .dropdown-menu .dropdown-item:last-child a').addClass('nav-keyboard-last-closeall');$('.nav-keyboard-toggle').on('keydown',function(e){$target=$(e.target);$dropdown=$(e.target).next();if(e.keyCode==9){e.preventDefault();$($target).attr('aria-expanded','true');$($dropdown).attr('aria-hidden','false');$($dropdown).css({'opacity':'1','visibility':'visible'});$($dropdown).find('a').attr('tabindex','0');$($dropdown).find('.dropdown-item:first >  .dropdown-menu-subnav > li:first > a, .dropdown-item:first > a').focus()}});$('.nav-keyboard-last').on('keydown',function(e){if($(this).hasClass('nav-keyboard-last-closeall')){$target=$(e.target);$dropdown=$(e.target).next();if(e.keyCode==9){$('.nav-keyboard-toggle').attr('aria-expanded','false');$('.dropdown-menu').attr('aria-hidden','true');$('.dropdown-menu').css({'opacity':'0','visibility':'hidden'})}
$('.breadcrumb .breadcrumb-item:first-child a').focus()}else{$target=$(e.target);$dropdown=$(e.target).next();if(e.keyCode==9){$('.nav-keyboard-toggle').attr('aria-expanded','false');$('.dropdown-menu').attr('aria-hidden','true');$('.dropdown-menu').css({'opacity':'0','visibility':'hidden'})}}});$('a').on('keydown',function(e){$target=$(e.target);$dropdown=$(e.target).next();if(e.keyCode==27){$('.nav-keyboard-toggle').attr('aria-expanded','false');$('.dropdown-menu').attr('aria-hidden','true');$('.dropdown-menu').css({'opacity':'0','visibility':'hidden'})}});$('.imageboxslider-slide-button-link').attr('tabindex','-1');$('.imageboxslider-slide-button-link').on('keydown',function(e){if(e.keyCode==9){}})})