
	<style>

	h1.confirm-competence-title {
		text-transform: uppercase;
		font-weight: 500;
		font-size: 20px;
		padding: 15px;
		text-align: center;
		line-height: 100%
	}
	
	

	.confirm-competence {
		display: none;
		position: fixed;
		left: 0;
		right: 0;
		margin: 0 auto;
		top: 17%;
		text-align: justify;
		z-index: 99999;
		background: white;
		max-width: 500px;
		padding: 20px 0px;
		box-shadow: rgb(100, 100, 111) 0px 7px 29px 0px;
		border-radius: 3px;
	}

	.confirm-competence-text {
		display: none;
	}

	p.confirm-competence-text {
		padding: 0px 30px;
	}


p.confirm-competence-text.cct-m {
        word-spacing: -1px;
        font-size: 11px;
		line-height: 200%;
}

p.confirm-competence-text.cct-d {
        word-spacing: -1px;
        font-size: 11px;
		line-height: 200%;
}


	.competence-buttons {
		display: flex;
		justify-content: space-around;

	}
	.confirm-competence-button {
		display: inline-block;
		font-weight: bold;
		width: 260px;
		font-size: 16px;
		padding: 15px 10px;
		color: #fff;
		text-decoration: none;
		background: #f9a405;
		margin: 15px 30px 15px 30px;
		cursor: pointer;
		border: none;
	}

	.confirm-competence-button:hover {
		background-color: #999;
		color: #fff;
	}


	@media (max-width: 540px) {
		.confirm-competence {
			top: 20%;
		}
	}

	@media (max-width: 767px) {
		.confirm-competence-text.cct-d {
			display: none;
		}
		.confirm-competence-text.cct-m {
			display: block;
		}
	}

	@media (min-width: 768px) {
		.confirm-competence-text.cct-d {
			display: block;
		}
		.confirm-competence-text.cct-m {
			display: none;
		}
	}

	</style>
	<div class='confirm-competence'>
		<h1 class='confirm-competence-title'>Jste odborný pracovník ve zdravotnictví?</h1>
		<p class='confirm-competence-text cct-m' onclick='toggleLongtext()'>
			Jsem odborníkem ve smyslu zákona č. 40/1995 Sb., o regulaci reklamy v platném znění,
			tedy jsem osobou oprávněnou předepisovat nebo osobou oprávněnou vydávat humánní léčivé
			přípravky, zdravotnické prostředky nebo diagnostické zdravotnické prostředky in vitro.
			Potvrzuji, že jsem se seznámil/a s definicí odborník dle zákona č. 40/1995 Sb.
			Potvrzuji, že jsem se seznámil/a s riziky, jimž se jako jiná osoba než odborník vystavuji,
			vstoupím-li na stránky určené pro odborníky.		</p>
		<p class='confirm-competence-text cct-d' onclick='toggleLongtext()'>
			Jsem odborníkem ve smyslu zákona č. 40/1995 Sb., o regulaci reklamy v platném znění,
			tedy jsem osobou oprávněnou předepisovat nebo osobou oprávněnou vydávat humánní léčivé
			přípravky, zdravotnické prostředky nebo diagnostické zdravotnické prostředky in vitro.
			Potvrzuji, že jsem se seznámil/a s definicí odborník dle zákona č. 40/1995 Sb.
			Potvrzuji, že jsem se seznámil/a s riziky, jimž se jako jiná osoba než odborník vystavuji,
			vstoupím-li na stránky určené pro odborníky.
		</p>
		<div class='competence-buttons'>
			<button class='confirm-competence-button' onclick='confirmCompetencePopup();'>Ano, vstoupit</button>
			<button class='confirm-competence-button' onclick='window.location.href = "https://google.com/";'>Ne, odejít</button>
		</div>
	</div>
	<script>
	function toggleLongtext() {
		if (window.innerWidth < 767) {
			const short = document.getElementsByClassName('cct-m')[0];
			const long = document.getElementsByClassName('cct-d')[0];
			if (short.style.display == 'none') {
				short.style.display = 'block';
				long.style.display = 'none';
			} else {
				short.style.display = 'none';
				long.style.display = 'block';
			}
		}
	}

	document.addEventListener('DOMContentLoaded', function() {
		if (!document.cookie.includes('confirmed-competence') && (!!location.href.match('/produkty/chirurgie/') || !!location.href.match('/produkty/urologie/') || !!location.href.match('/produkty/pece-o-cevni-vstupy/'))) {
			document.getElementsByClassName('confirm-competence')[0].style.display = 'block';
			document.getElementsByTagName('body')[0].style.overflow = 'hidden';
			document.getElementsByTagName('body')[0].style.pointerEvents = 'none';
			document.getElementsByTagName('body')[0].style.opacity = '0.75';
			document.getElementsByClassName('confirm-competence')[0].style.pointerEvents = 'initial';
		}
	}, false);

	function confirmCompetencePopup() {
		document.getElementsByClassName('confirm-competence')[0].style.display = 'none';
		document.getElementsByTagName('body')[0].style.overflow = 'scroll';
		document.getElementsByTagName('body')[0].style.pointerEvents = 'initial';
		document.getElementsByTagName('body')[0].style.opacity = '1';
    	const d = new Date();
		d.setTime(d.getTime() + (30 * 24 * 60 * 60 * 1000));
		let expires = 'expires='+d.toUTCString();
  		document.cookie = 'confirmed-competence'+'=' + '1' + ';' + expires + ';path=/';
	}
	</script>
	<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/wp-sitemap.xsl" ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>/dslc_templates/single-produkty/</loc><lastmod>2018-09-10T11:26:13+02:00</lastmod></url><url><loc>/dslc_templates/novinky-archiv/</loc><lastmod>2020-04-15T11:00:17+02:00</lastmod></url><url><loc>/dslc_templates/novinky-novinka/</loc><lastmod>2018-11-08T13:23:23+01:00</lastmod></url><url><loc>/dslc_templates/partneri-template/</loc><lastmod>2018-10-02T13:26:20+02:00</lastmod></url><url><loc>/dslc_templates/partneri/</loc><lastmod>2020-03-16T10:37:47+01:00</lastmod></url><url><loc>/dslc_templates/strana-nenalezena/</loc><lastmod>2019-01-21T14:00:09+01:00</lastmod></url></urlset>
