dropdown-resources').checked = false;
              }
            }, 450);
          });
          document.getElementById('products-list').addEventListener('mouseout', function() {
            // if not hovering over the sublist, uncheck the dropdown
            // wait 1 sec
            setTimeout(function() {
              if (!document.querySelector('.products-sublist:hover') && !document.querySelector('#products-list:hover')) {
                document.getElementById('dropdown-products').checked = fals