orced');
	} else {
		popup.classList.remove('darkForced');
	}
	popup.style.display = 'block';
}

function hideModal (popup) {
	popup = popup || document.querySelector('#popup1');

	if (popup.style.display !== 'none') {
		popup.style.display = 'none';
		popup.querySelector('.content').innerHTML = '';

		document.body.classList.remove('modal-open');

		if (window.lastScrollOffset){
			window.scrollTo(0, window.lastScrollOffset);
		}
	}
}
function toggleRestoreModal (popup) {
	var popup = popup || document.que