$(document).ready(function()
{
   $("a[href*='#Home']").click(function(event)
   {
      event.preventDefault();
      $('html, body').stop().animate({ scrollTop: $('#wb_Home').offset().top }, 600, 'easeOutCirc');
   });
$.cookieBar(
{
   acceptButton: true,
   acceptText: 'I Understand',
   acceptOnContinue: false,
   acceptOnScroll: false,
   acceptAnyClick: false, 
   append: false, 
   autoEnable: false, 
   bottom: true,
   declineButton: false, 
   declineText: 'Disable Cookies', 
   domain: String(window.location.hostname),
   effect: 'slide', 
   element: 'body',
   expireDays: 365, 
   fixed: true, 
   forceShow: false, 
   message: 'Our website uses cookies. By continuing we assume your permission to deploy cookies as detailed in our cookie and general terms & conditions policies.',
   policyButton: true, 
   policyText: 'Privacy Policy', 
   policyURL: '/cookies.php',
   redirect: String(window.location.href), 
   renewOnVisit: false, 
   zindex: '9999'
});
   $('#headerMenu .dropdown-toggle').dropdown({popperConfig:{placement:'bottom-start',modifiers:{computeStyle:{gpuAcceleration:false}}}});
   $(document).on('click','.headerMenu-navbar-collapse.show',function(e)
   {
      if ($(e.target).is('a') && ($(e.target).attr('class') != 'dropdown-toggle')) 
      {
         $(this).collapse('hide');
      }
   });
});
