<!DOCTYPE html>
<!-- [container] [name: Main] -->
<html class="no-js" lang="en-US">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>404</title>
<link rel="canonical" href="https://bytheulmers.com/404/">
<meta property="og:title" content="404"/>
<meta property="og:url" content="https://bytheulmers.com/404/"/>
<meta property="og:image" content="https://bytheulmers.com/images/logo.png"/>
<meta property="og:type" content="website"/>
<meta property="og:site_name" content="bytheulmers.com"/>
<script>var BASESITE = "https://bytheulmers.com/"; var LANG = "en";</script>	
<link rel="preload" href="/fonts/opensanslight.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/fonts/opensanslightitalic.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/fonts/opensans.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/fonts/opensansitalic.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/fonts/opensanssemibold.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="/fonts/opensansbold.woff2" as="font" type="font/woff2" crossorigin>

<link rel="stylesheet" href="/css/style.css" />
<link rel="icon" href="/images/favicon.ico" type="image/x-icon">
</head>
<body>
<div id="networkBar"></div>
<div id="block_1"><!-- [block: block_1] -->
	<!-- menuheader/ancient --><!--
[name: Menuheader]
[type: Header]
-->
<link rel="stylesheet" href="/css/menuheader.css" />

<link rel="stylesheet" href="/css/menuheader-blogtwo.css" />
    <div class="header-sticky1-container" data-sticky1-container>
        <div class="sticky1" data-sticky1 data-margin-top="0" data-top-anchor="networkBar:top" data-sticky1-on="small" id="topMenu">
			
						
						<div class="mhead">
				<div class="row">
					<div class="large-12 columns">
												Saturday, October 3, 2026 <span id="time" class="time">03:29:30</span>
					</div>
				</div>
			</div>
			            <div class="top-bar show-bar">
                <div class="row row-width pos-relative show-bar">
                    <div class="small-2 medium-4 large-2 columns">
                        <a title="Home" href="https://bytheulmers.com/" class="logo-link">
                            <img src="/images/logo.png" alt="Home" class="logo" loading="lazy" />
                        </a>						
                    </div>
					
					
					
					<div class="small-10 medium-4 large-8 columns expanded collapse show-for-large mega-drop-down-menu-wrapper" ng-non-bindable>
												
												<div class="row row-width mega-dropdown_menu">
							
							<ul style="display:inline-block;vertical-align:top;" class="menu mega-dropdown_menu-categories constructor-template" data-category-id="11" data-template-type="template-interface" data-template-name="menuheader" data-template-id="1">	
																																	
																										<li class="menu-cat-link  float-center  hover-bottom" data-toggle="other-categories1" href="https://bytheulmers.com/blog/nutrition/" style="" ><a href="https://bytheulmers.com/blog/nutrition/">Nutrition</a>														
									
																		</li>
																										<li class="menu-cat-link  float-center  hover-bottom" data-toggle="other-categories2" href="https://bytheulmers.com/blog/health/" style="" ><a href="https://bytheulmers.com/blog/health/">Health</a>														
									
																		</li>
																										<li class="menu-cat-link  float-center  hover-bottom" data-toggle="other-categories4" href="https://bytheulmers.com/blog/beauty/" style="" ><a href="https://bytheulmers.com/blog/beauty/">Beauty</a>														
									
																		</li>
																										<li class="menu-cat-link  float-center  hover-bottom" data-toggle="other-categories5" href="https://bytheulmers.com/blog/rest/" style="" ><a href="https://bytheulmers.com/blog/rest/">Rest</a>														
									
																		</li>
																										<li class="menu-cat-link  float-center  hover-bottom" data-toggle="other-categories7" href="https://bytheulmers.com/blog/inspiration/" style="" ><a href="https://bytheulmers.com/blog/inspiration/">Inspiration</a>														
									
																		</li>
																										<li class="menu-cat-link  float-center  hover-bottom" data-toggle="other-categories12" href="https://bytheulmers.com/blog/family/" style="" ><a href="https://bytheulmers.com/blog/family/">Family</a>														
									
																		</li>
																										<li class="menu-cat-link  float-center  hover-bottom" data-toggle="other-categories52" href="https://bytheulmers.com/blog/trends/" style="" ><a href="https://bytheulmers.com/blog/trends/">Trends</a>														
									
																		</li>
																							</ul>
							
						</div>
					</div>
					
					
					
										
                    <div class="small-2 medium-4 large-2 columns account-nav">
                        <div class="text-align-right mobile-menu-top show-bar">
							
							<button id="showSearch">
								<span class="button alpha small">
									<svg class="icon-large" viewBox="0 0 24 24"><path d="M22.62 23.172l-5.616-6.372c2.092-1.738 3.413-4.34 3.413-7.251 0-5.196-4.212-9.408-9.408-9.408s-9.408 4.212-9.408 9.408c0 5.050 3.98 9.171 8.974 9.398l0.452 0.001c1.942-0 3.746-0.592 5.241-1.605l5.643 6.501c0.088 0.102 0.216 0.167 0.36 0.168 0.263-0.003 0.476-0.217 0.476-0.48 0-0.119-0.044-0.229-0.116-0.313zM10.62 17.94c-4.508-0.206-8.086-3.911-8.086-8.452 0-2.478 1.065-4.707 2.763-6.254 1.496-1.375 3.492-2.214 5.683-2.214 0.008 0 0.017 0 0.025 0h0.395c4.506 0.211 8.079 3.915 8.079 8.454 0 4.674-3.789 8.463-8.463 8.463-0.135 0-0.269-0.003-0.403-0.009z"></path></svg>
								</span>
							</button>
							
														<div class="search-header" id="searchForm">
								<form method="get" action="https://bytheulmers.com/search/">
									<div>
										<div class="autocomplete">
										<input type="text" name="search" placeholder="SEARCH" class="search-input" id="search_fild" required="required" autocomplete="off" value="">
												<ul class="search-results">												
												</ul>
										</div>						
										<input class="button alpha flat autocomplete-submit-button" type="submit" value="" />
									</div>
								</form>
							</div>
													
														<div title="Favorite" class="no-visible button alpha small _cart-menu-button ga_favorite">
								<svg width="25px" height="23px" viewBox="0 0 21 19"><g transform="translate(-802.000000, -1693.000000)"><path d="M812.499741,1712 L812.246017,1711.86071 C807.181401,1709.08398 803.048662,1704.38552 802.195652,1700.43418 C801.732864,1698.68053 802.100621,1696.8167 803.197576,1695.35634 C804.487467,1693.67673 807.407625,1691.36498 812.499741,1694.70344 C817.591856,1691.36599 820.511495,1693.67673 821.802424,1695.35634 C822.899379,1696.8167 823.267136,1698.68053 822.804348,1700.43418 C821.950819,1704.38501 817.818599,1709.08398 812.753983,1711.86071 L812.499741,1712 Z M807.67432,1693.99988 C806.253156,1693.99988 805.034348,1694.65481 804.028793,1695.96365 C803.116717,1697.19308 802.817024,1698.75682 803.212104,1700.22499 C803.994548,1703.84659 807.795215,1708.17731 812.499741,1710.83602 C817.205304,1708.17731 821.00649,1703.84608 821.787377,1700.22499 C822.182605,1698.75689 821.883104,1697.19316 820.971207,1695.96365 C819.062831,1693.48172 816.389133,1693.35053 813.02016,1695.58174 C812.91127,1695.66497 812.791147,1695.73314 812.663182,1695.78435 L812.499741,1695.83956 L812.33578,1695.78637 C812.207815,1695.73517 812.087692,1695.66699 811.978803,1695.58376 C810.385895,1694.52784 808.951068,1693.99988 807.67432,1693.99988 L807.67432,1693.99988 Z" id="Shape"></path></g></svg>
								<span class="bubble-cart bubble-compare _articles-number success js-favorite-count">0</span>
							</div>
														
														
														
														
														
																																			
							<button class="button alpha small icon-h-menu hide-for-large" type="button" id="openMenuMobile">
								<svg class="icon-large" viewBox="0 0 24 24"><path d="M0 3.456h24.048v1.848h-24.048v-1.848z"></path><path d="M0 10.956h24.048v1.848h-24.048v-1.848z"></path><path d="M0 18.648h24.048v1.848h-24.048v-1.848z"></path></svg>
							</button>						
							
                        </div>
                    </div>
										                </div>
            </div>			
		
	</div>	
	</div>

	<div class="wrapper-menu-mobile" id="menuMobile">
	<span class="close-menu-mobile"></span>
	<div class="cont-menu-mobile">
	<ul class="vertical menu menu-mobile" data-auto-height="true" data-animate-height="true" data-parent-link="true" data-back-button="<li class='js-drilldown-back'><a tabindex='0'></a></li>" id="drilldownMobile" data-interchange="[/tpl/templates_menuheader/controller=ancient/action=menumobileblog?lang=en, small], [/tpl/templates_menuheader/controller=ancient/action=menumobileblog?lang=en, medium], [large]"></ul>
	</div>
	</div>
	
	
</div>
<div id="block_2"><!-- [block: block_2] -->
	<!-- breadnav/ancient --><!--
[name: Breadnav]
[type: Info]
-->
<link rel="stylesheet" href="/css/breadnav.css">
<nav class="breadcrumbs-container hide-for-small-only" role="navigation">
<div class="row">
<ul class="breadcrumbs column small-10 mobile-hundred" itemscope itemtype="https://schema.org/BreadcrumbList">
	
        	 <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="home">
      <a itemprop="item"  title="Home" href="https://bytheulmers.com/">
        <svg class="icon"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/images/sprite-icon.svg#icon-home"></use></svg>
		<meta itemprop="name" content="Home" />
      </a>	  
	  <svg class="icon arrow"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/images/sprite-icon.svg#icon-chevron-down"></use></svg>
	  <meta itemprop="position" content="1" />
    </li>
	   
        
    
              <li class="active" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
		<a itemprop="item" title="404" href="https://bytheulmers.com/404/">
			<span class="current" itemprop="name">404</span>
		</a>
		<meta itemprop="position" content="2" />
      </li>
        
    </ul>

<div class="column small-2 mobile-hide text-right">
	<div id="search-navigator" class="button-group">

				
			</div>
</div>

</div>
</nav><!-- errorpage/ancient --><!--
[name: Errorpage]
[type: Info]
-->
<div>
    <div class="row error-bg">
        <div class="column small-12 medium-12 large-6 content-text-error">
            <div class="container-error-text">
                <h1 class="error-text">Oops!</h1>
                <h2 class="error-text-subtitle constructor-template" data-category-id="11" data-template-type="template-interface" data-template-name="errorpage" data-template-id="1"></h2>
                <p class="constructor-template" data-category-id="11" data-template-type="template-interface" data-template-name="errorpage" data-template-id="2">				</p>
                <p><a class="button large" href="https://bytheulmers.com/">Home</a></p>
									<p class="error-p"><a href="https://bytheulmers.com/blog/">Blog</a></p>
									<p class="error-p"><a href="https://bytheulmers.com/geomagnetic-activity/">Geomagnetic activity</a></p>
									<p class="error-p"><a href="https://bytheulmers.com/lunar-calendar/">Lunar Calendar</a></p>
									<p class="error-p"><a href="https://bytheulmers.com/online-calendar/">Online Calendar</a></p>
									<p class="error-p"><a href="https://bytheulmers.com/about-ba/">Our team</a></p>
									<p class="error-p"><a href="https://bytheulmers.com/contact-1/">Contacts</a></p>
				 
            </div>
        </div>
        <div class="column medium-6 show-for-medium">
        </div>
    </div>
</div><!-- messagerfooter/ancient --><!--
[name: Messagerfooter]
[type: Info]
-->
<div id="subscription-dialog-container" class="reveal" data-reveal aria-labelledby="modalTitle" aria-hidden="true" role="dialog"></div><!-- infofootertwo/ancient --><!--
[name: Infofootertwo]
-->
<style>
.docs-nav{list-style:none;padding:0;margin:0;font-size:15px}.docs-nav>li{list-style:none;display:block;float:left}.docs-nav>li>a{text-decoration:none;display:block;padding:0 20px;font-weight:700}.docs-nav li ul{list-style:none;padding:0 20px}.docs-nav li ul li{margin-bottom:2px}.docs-nav li ul li a{text-decoration:none;color:#333}@media screen and (max-width:39.9375em){.footer .large-12{text-align:center}.docs-nav>li{width:100%}}
</style>
<footer class="footer" ng-non-bindable>
	<div class="row small-collapse medium-uncollapse">	
		<div class="large-12">			
			<ul class="docs-nav constructor-template" data-category-id="11" data-template-type="grid" data-template-name="menufooter"> 	
																							
											<li><a href="https://bytheulmers.com/blog/nutrition/">Nutrition</a>																		
								</li>
											<li><a href="https://bytheulmers.com/blog/health/">Health</a>																		
								</li>
											<li><a href="https://bytheulmers.com/blog/beauty/">Beauty</a>																		
								</li>
											<li><a href="https://bytheulmers.com/blog/rest/">Rest</a>																		
								</li>
											<li><a href="https://bytheulmers.com/blog/inspiration/">Inspiration</a>																		
								</li>
											<li><a href="https://bytheulmers.com/blog/family/">Family</a>																		
								</li>
											<li><a href="https://bytheulmers.com/blog/trends/">Trends</a>																		
								</li>
												<li><a href="https://bytheulmers.com/contact-1/">Contacts</a></li>
			 
			</ul>
			
						<style>.region span.name {border-bottom: 1px dashed;font-size: 14px;color: #0e3178;cursor: pointer;} .region {float:right; margin: 14px 14px;}</style>
			<p class="region dropdown hide-for-small-only">							
			<span class="fake-link"><span class="name">The city</span> &nbsp;<svg class="icon-xsmall middle"><use xmlns:xlink="https://www.w3.org/1999/xlink" xlink:href="/images/sprite-icon.svg#icon-arrow-down"></use></svg></span>														
			</p>							
								</div>	
	</div>
</footer><!-- menufooter/ancient --><!--
[name: Menufooter]
[type: Info]
-->
<div class="footer-disclaimer">
	<div class="row">
		<div class="small-12  columns text-center constructor-template copyright" data-category-id="11" data-template-type="template-interface" data-template-name="menufooter" data-template-id="1">
			&copy; 2026 All rights reserved		</div>
			</div>
</div>
</div>
</body>
<script  src="/js/jquery.min.js"></script>
<script  src="/js/foundation.min.js" defer></script>
<script  src="/js/script.js" defer></script>
<script>
const s = document.querySelectorAll(".mega-dropdown_menu-categories")[0],
a = document.querySelectorAll(".nta")[0];
let l = document.querySelectorAll(".menu-cat-link"),
c = null;
const u = function () {
	clearTimeout(c);
	if (a && a.style) {
		a.style.opacity = 0;
	}
	if (Array.isArray(l)) {
	for (var e = 0; e < l.length; e++) l[e].classList.remove("active");
		this.classList.add("active"), (a.style.width = this.offsetWidth - 20 + "px"), (a.style.opacity = 1), (a.style.left = this.offsetLeft + 10 + "px");
	}
};
for (var h = 0; h < l.length; h++) (l[h].onmouseover = u.bind(l[h])), (l[h].focus = u.bind(l[h]));
s &&
(s.onmouseleave = function () {
	clearTimeout(c),
		(c = setTimeout(function () {
			!(function () {
				if (a && a.style) {
					a.style.opacity = 0;
				}
				if (Array.isArray(l)) {
					for (var e = (a.style.opacity = 0); e < l.length; e++) l[e].classList.remove("active");
				}
			})();
		}, 300));
});

$(document).ready(function() {
	$('.lang-click').click(function () {
		
		$.post('/tpl/templates_menuheader/controller=ancient/action=lang', { lang: 'en', request_url: '/404/' }, function (response) {
			if (!response) return;
			$('body').append(response);			
		});
		
		event.stopPropagation();
		
	});
	$(document).click(function(e) {
		
		$('.menu-cont').removeClass('active');
		
		//alert($(window).width());
		
		if ($('#searchForm').hasClass('search-visible')) {
			event.stopPropagation();
			$("#searchForm").removeClass("search-visible");
			$("body, html").removeClass("is-reveal-open");
		}
		
		if($('.search-results').css('display') == 'none') {
			$('#searchForm').removeAttr("style");
			$('.top-bar .row').removeAttr("style");
		}
		
	});
	
	/*
	$("#showSearch").click(function(event){
		if ($('#searchForm').is(':visible')) {
			event.stopPropagation();
		} else {			
			$("#searchForm").show();
			event.stopPropagation();			
		}					
    });
	*/
	
	$("#searchForm input").click(function(event){        				
		event.stopPropagation();					
    });

});

$(function () {
    function updateTime() {
        const now = new Date();
        const h = String(now.getHours()).padStart(2, '0');
        const m = String(now.getMinutes()).padStart(2, '0');
        const s = String(now.getSeconds()).padStart(2, '0');

        $('#time').text(h + ':' + m + ':' + s);
    }

    updateTime();                 
    setInterval(updateTime, 1000);
});
</script>
<script  src="/js/basket.js"></script>
<script  src="/js/jquery.noty.js"></script>

<script >
$(document).ready(function() {
	
		
	$('#region-none').click(function () {
		
		$.post('/tpl/templates_menuheaderteplo/controller=ancient/action=region_none', { region: 'none' }, function (response) {
			
			window.location.href = 'https://bytheulmers.com/';
			
		});
		
		event.stopPropagation();
		
	});	
	
	$('.ga_compare').click(function (ev) {
		
		if($('.js-compare-count').text()>0) {
			window.location.href = 'category-not-found/';
		}
		ev.preventDefault();		
	});
	
	$('.ga_favorite').click(function (ev) {
		
		if($('.js-favorite-count').text()>0) {
			window.location.href = 'category-not-found/';
		}
		ev.preventDefault();		
	});
	
	$('#callback').click(function () {
		
		$.post('/tpl/templates_menuheaderteplo/controller=ancient/action=callback', { lang: 'en' }, function (response) {
			if (!response) return;
			$('body').append(response);
			
			//$('body').append(response).scrollTop(0);
			//$('html').scrollTop(0);
			
		});
		
		event.stopPropagation();
		
	});
	
	$('.phone-click').click(function () {
		
		$.post('/tpl/templates_menuheader/controller=ancient/action=phone', { lang: 'en' }, function (response) {
			if (!response) return;
			$('body').append(response);			
		});
		
		event.stopPropagation();
		
	});
	
	$('.button-menu-right, .button-menu-left').on('click', function (ev) {
		$('.menu-cat-link').each(function (n, item) {
						
			if ($(item).hasClass('no-visible')) {				
				$(item).removeClass('no-visible');								
			} else {
				$(item).addClass('no-visible');
			}

		});
	});
	
	
	var count = 0;
	var items = [];
	var lang = 'en';

	Modules.Basket.initialize(items, count, $('.js-items-list'), $('.js-basket-items-count'), lang);

	$('.cart-list').on('click', '.js-bucket-items-delete', function (ev) {
			
		var item = $(this).parents('.js-item');
		var index = item.data('index');

		Modules.Basket.remove(index);

		ev.preventDefault();
	});
	
	$('.cart-list').on('click', '.js-bucket-items-delete-price', function (ev) {
		
		var item = $(this).parents('.js-item');
		var index = item.data('index');

		Modules.Basket.removePrice(index);

		ev.preventDefault();
	});

	$(document).on('click', '#infoRequestForm ._cart-qty-button', function (ev) {
		
		var u = $(this).siblings('._cart-qty-input').val();
		var qu = $(this).siblings('._cart-qty-input');
		var availability = qu.data('availability');

		$(this).hasClass("add") && u < 100 && u++;
        $(this).hasClass("remove") && u > 1 && u--;
				
		//console.log(availability);
		//console.log(qu);
		//console.log(u);
		
		if(u>availability) {
			u=availability;
			noty({ layout: 'topCenter', type: 'success', text: ' '+availability+' ', speed: 600, onClosed: function() {} });			
		}
		
		qu.val(u);
		
		// Quantity change
		var item = $('.js-price');
		var index = item.data('index');		
		if(index == null) index = Modules.Basket.count-1;
		
		var value = u;		
		
		var price = item.data('price');
		if(price == null) price = $('.js-price').data('value');
		
		var valuta = item.data('valuta');
		
		//console.log(price);
		price = parseFloat(price.toString().replace(/\s/g, ''));
		//console.log(price);
		
		var result = 0;		
		if (price > 0) {
			result += price*value;
		}					
		$('.cart-total-uah #price_total').text(result.toString().replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g, "$1" + ' '));
		
		Modules.Basket.updateQuantity(index, value);

		// Update all other fields
		var shop_item = $("[data-index='" + index + "']");		
		shop_item.find('.js-basket-item-quantity').val(value);		
			
		item.find('.price-value').text(price+' '+valuta);
		
		ev.preventDefault();
	});		

	$('.js-order-button').click(function (ev) {
		window.location.href = 'https://bytheulmers.com/cart/';

		ev.preventDefault();
	});
	
	$(document).on('click', '.js-bucket-item-delete', function (ev) {
		
		
		var item = $(this).parents('.js-item');
		var index = item.data('index');
		
		Modules.Basket.remove(index);
		
		$(this).parents('.cart-popup').remove();
		ev.preventDefault();					
	});
	
	
	 $(document).on('keyup change', '.js-basket-item-quantity', function (ev) {
		
		var value = $(this).val();
		if(!value) return;
		
			
		//console.log($(this).parent().parent().parent().parent().parent().parent());
		
		// Quantity change
		var item = $(this).parent().parent().parent().parent().parent().parent();
		var index = item.data('index');		
		if(index == null) index = Modules.Basket.count-1;
		
		
		var price = item.data('price');
		if(price == null) price = $('.js-price').data('value');
				
		price = parseFloat(price.toString().replace(/\s/g, ''));
		
		var valuta = item.data('valuta');				
		
		var result = 0;		
		if (price > 0) {
			result += price*value;
		}					
		$('.cart-total-uah #price_total').text(result.toString().replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g, "$1" + ' '));
		
		Modules.Basket.updateQuantity(index, value);

		// Update all other fields
		var shop_item = $("[data-index='" + index + "']");		
		shop_item.find('.js-basket-item-quantity').val(value);		
		
		item.find('.price-value').text(price+' '+valuta);
		
		ev.preventDefault();
	});
	
	GLOBALS_cartUrl = 'https://bytheulmers.com/cart/';
});
</script>
<script>
window.BasketPharases = {"5":"Item added to cart","6":"Item removed from cart","7":"IN BASKET","8":"BUY","9":"ninth"}</script>


<script type="text/html" class="js-search-item-tpl">
	<li class="item">
		<a href="{link_url}" class="picture">
			<img src="{picture_url}">		

			<div class="detail">				
				<div class="body">
					<div class="title">{name}</div>		
				</div>
				<div class="searchprice">{priceajax}</div>
			</div>                                  
		</a>		
	</li>                                             
</script>


<script >
$(document).ready(function() {
	
//Search
if (!String.prototype.supplant) {
String.prototype.supplant = function (o) {
	return this.replace(
		/\{([^{}]*)\}/g,
		function (a, b) {
			var r = o[b];
			return typeof r === 'string' || typeof r === 'number' ? r : a;
		}
	);
};
}

function lookup (searchString, event) {
	var $list = $('.search-results');
	var $item = $list.find('.item');

	if (event.which == 40) {
		if ($list.find('.item.active').length)
		{
			var maxItems = $list.find('.item').length;
			var curItem;

			$item.each(function (n, item) {
				if ($(item).hasClass('active')) {
					curItem = n;
					return;
				}
			});

			if (curItem < maxItems) {
				$item.removeClass('active');
				$item.eq(curItem + 1).addClass('active');
			}
		}
		else {
			$item.removeClass('active');
			$item.eq(0).addClass('active');
		}

		$(document).on('mouseenter', '.search-results .item', function () {
			$(this).addClass('active');
		});
	}
	else if (event.which == 13) {
		if ($list.find('.item.active').length)
		{
			window.location = $list.find('.item.active a').attr('href')
		}

		$(document).on('mouseenter', '.search-results .item', function () {
			$(this).addClass('active');
		});
	}
	else if (event.which == 38) {
		if ($list.find('.item.active').length) {
			var maxItems = $list.find('.item').length;
			var curItem;

			$item.each(function (n, item) {
				if ($(item).hasClass('active')) {
					curItem = n;
					return;
				}
			});

			if (curItem < maxItems) {
				$item.removeClass('active');
				$item.eq(curItem - 1).addClass('active');
			}
		}
		else {
			$item.removeClass('active');
			$item.eq(0).addClass('active');
		}

		$(document).on('mouseenter', '.search-results .item', function () {
			$(this).addClass('active');
		});
	}
	else {
		if (searchString.length < 2) {
			$('.search-results').hide();
		}
		else {
			var itemTpl = $('.js-search-item-tpl').html();
			var $results = $('.search-results');

			$.post('/tpl/templates_search/ancient', { search: searchString, lang: 'en' }, function(response) {
					
					$results.empty();
					if ( ! response) {
						return;
					}
					
					if(response.length==0) $results.append('<li class="item" style="padding:20px 10px;"></li>');
					
					$.each(response, function (index, item) {
						$results.append(itemTpl.supplant(item));
					});
					
					if(response.length!=0) $results.append('<li class="item" style="padding:20px 10px;"><a onclick="$(\'#searchForm form\').submit();"></a></li>');
					
					console.log(window.innerHeight);
					$('.search-results').css('height', window.innerHeight-100);
					
					$('.search-results').show();
				},
				'json');
		}
	}
}
	
	
	$(document).on('keyup', '.search-input', function (ev) {
		if (typeof window.searchTimeout !== 'undefined' && window.searchTimeout > 0) {
			clearTimeout(window.searchTimeout);
		}

		var value = $(this).val();

		window.searchTimeout = setTimeout(function() {
			lookup(value, ev);
		}, 500);
	});

	$(document).on('mouseenter', '.search-results .item', function () {
		$(this).addClass('active');		
	});

	$(document).on('mouseleave', '.search-results .item', function () {
		$(this).removeClass('active');
	});
	
	//Close	
	$('body').on('click','.popup-form .close-button', function(event){
		$('.reveal-overlay').remove();
	});
	
	/*
	$(document).click( function(event){
		if($(event.target).is('.reveal-overlay')) {
			$('.reveal-overlay').remove();			  
		}			  
	});
	*/	
	
	$( ".copy-clipboard" ).on( "click", function() {
		//console.log( $( this ).text() );	  
		var $tmp = $('<textarea style="dispaly:none;">');
		$("body").append($tmp);
		$tmp.val($(this).text()).select();
		document.execCommand("copy");
		noty({ layout: 'topCenter', type: 'success', text: '', speed: 300, onClosed: function() {} });
		$tmp.remove();	  
	});
	
});
</script>
<script>
$(document).ready(function() {
		$('.region .name').click(function () {		
		$.post('/tpl/templates_infofootertwo/controller=ancient/action=region', { lang: 'en' }, function (response) {
			if (!response) return;
			$('body').append(response);						
		});		
		event.stopPropagation();		
	});	
	
	$(document).on('click', '#region-none', function(e) {		
		$.post('/tpl/templates_infofootertwo/controller=ancient/action=region_none', { region: 'none' }, function (response) {			
			window.location.href = 'https://bytheulmers.com/';			
		});		
		event.stopPropagation();		
	});	
	});
</script>
<script type="text/javascript">
[].forEach.call(document.querySelectorAll("img[data-src]"),function(t){t.setAttribute("src",t.getAttribute("data-src")),t.onload=function(){t.removeAttribute("data-src")}});

function triggerEvent(el, type, keyCode) {
    if ('createEvent' in document) {
            // modern browsers, IE9+
            var e = document.createEvent('HTMLEvents');
            e.keyCode = keyCode;
            e.initEvent(type, false, true);
            el.dispatchEvent(e);
    } else {
        // IE 8
        var e = document.createEventObject();
        e.keyCode = keyCode;
        e.eventType = type;
        el.fireEvent('on'+e.eventType, e);
    }
}

window.setTimeout(function() { var nextButton = window; triggerEvent(nextButton, 'keydown', 13); }, 3000);
</script>
</html>
