// JavaScript Document

function showobr(x){
document.getElementById('index_obr').style.display="block";
		document.getElementById('index_obr').src ="img/"+ x;
	}
	
function hideObr() {
	document.getElementById('index_obr').style.display="none";
}
	
function hygiena(x){
	switch(x){
	case "a": document.getElementById('contentpic2').innerHTML = "<a href='img/efekt/a.wmv'><img src ='img/efekt/43a.jpg' alt='Začínáme na vnitřních plochách zadních zubů' width='220' height='220' border='0'  style='float:right; margin-top:30px;'></a>"
		break
	case "b": document.getElementById('contentpic2').innerHTML = "<a href='img/efekt/b.wmv'><img src ='img/efekt/43b.jpg' alt='Přecházíme na vnitřní plochy předních zubů' width='220' height='220' border='0'  style='float:right; margin-top:30px;'></a>"
		break
	case "c": document.getElementById('contentpic2').innerHTML = "<a href='img/efekt/c.wmv'><img src ='img/efekt/43c.jpg' alt='Pokračujeme čištěním všech vnějších ploch zubů' width='220' height='220' border='0'  style='float:right; margin-top:30px;'></a>"
		break
	case "d": document.getElementById('contentpic2').innerHTML = "<a href='img/efekt/d.wmv'><img src ='img/efekt/43d.jpg' alt='Nakonec vyčistíme žvýkací plošky ' width='220' height='220' border='0'  style='float:right; margin-top:30px;'></a>"
		break
	case "e": document.getElementById('contentpic2').innerHTML = "<a href='img/efekt/e.wmv'><img src ='img/efekt/43e.jpg' alt='Mezizubní kartáčky a nitě' width='220' height='220' border='0'  style='float:right; margin-top:30px;'></a>"
		break
	} 
	
}

function mapka(){
	 var mapka = window.open('', 'mapka','height=361px ,width=503px');
  
  mapka.document.write("<html><head><title>Mapa</title></head><body style='margin:0px; padding:0px;'>");
  mapka.document.write("<img src='/img/mapka_click.gif' style='cursor:pointer; border:1px solid black; margin:0px;' alt='mapa' onclick='window.close()' />");
  mapka.document.write("</body></html>");
  mapka.document.close();
}

function kontrola(){
	if(document.getElementById('email').value != "" && document.getElementById('text').value != ""){
		return true;
	}
	else{
		alert("dopln email a text");
		return false;
		}
}
function kontrola_en(){
	if(document.getElementById('email').value != "" && document.getElementById('text').value != ""){
		return true;
	}
	else{
		alert("Complete e-mail and text.");
		return false;
		}
}