// JavaScript Document

<!--
 function odeslat() {
  document.vybrat.submit();
 }
//-->

<!--
 function zavrit()
 {
  window.close(); 
 }
//-->

<!--
 function okno(url,w,h) {
		var sirka_obrazovky = screen.width;
		var vyska_obrazovky = screen.height;
		var pozice1 = (sirka_obrazovky - w) / 2;
		var pozice2 = (vyska_obrazovky - h) / 2;
        window.open(url,'', 'width=' + w +',height=' + h +',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no,top=' + pozice2 +',left=' + pozice1 +'');
		}
//-->


<!--
function kontrola_v_kontaktu(){
	var text_email = self.document.forms.kontakt.f_email.value;
	var text_zprava = self.document.forms.kontakt.f_zprava.value;
    var kontrola_emailu = text_email != "";
	var kontrola_zpravy = text_zprava != "";
	if(kontrola_emailu == false && kontrola_zpravy == false) {
			window.alert("Je potřeba zadat Váš e-mail a napsat zprávu");
			var odeslano2 = false;
		}
	else if (kontrola_emailu == false) {
			window.alert("Nezadali jste svou e-mailovou adresu. Je potřeba, abysme Vám mohli odpovědět.");
			var odeslano2 = false;
		}
	else if (kontrola_zpravy == false) {
			window.alert("Zatím jste nenapsali žádnou zprávu.");
			var odeslano2 = false;
		}
	else var odeslano2 = true;
    return odeslano2; 
}
//-->

<!--
function neni_platny_mail(f_email) {
	window.alert("Není platná e-mailová adresa");
}
//-->


<!-- 
 function nahled(iden,sirka,vyska) {
var trailimage=["", sirka, vyska] //image path, plus width and height
var offsetfrommouse=[15,0] //image x,y offsets from cursor position in pixels. Enter 0,0 for no offset
var displayduration=0 //duration in seconds image should remain visible. 0 for always.


function gettrailobj(){
return document.getElementById("" +iden+ "").style
}

gettrailobj().visibility="visible"

function truebody(){
return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function hidetrail(){
gettrailobj().visibility="hidden"
document.onmousemove=""

}

function followmouse(e){
var xcoord=offsetfrommouse[0]
var ycoord=offsetfrommouse[1]
if (typeof e != "undefined"){
xcoord+=e.pageX
ycoord+=e.pageY
}
else if (typeof window.event !="undefined"){
xcoord+=truebody().scrollLeft+event.clientX
ycoord+=truebody().scrollTop+event.clientY
}
var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15
var docheight=document.all? Math.max(truebody().scrollHeight, truebody().clientHeight) : Math.max(document.body.offsetHeight, window.innerHeight)
if (xcoord+trailimage[1]+3>docwidth || ycoord+trailimage[2]> docheight)
gettrailobj().display="none"
else 
gettrailobj().display=""
gettrailobj().left=xcoord+"px"
gettrailobj().top=ycoord+"px"
}

document.onmousemove=followmouse

if (displayduration>0)
setTimeout("hidetrail()", displayduration*1000)
 }
 //-->
 
 
<!-- 
 function nahled_ukonceni(iden) {
 	function gettrailobj(){
		return document.getElementById("" +iden+ "").style
		}

	gettrailobj().visibility="hidden"
	document.onmousemove=""
 }
 //-->
 
 
 
 <!-- 
function nahled_galerie(iden) {



		function gettrailobj(){
		return document.getElementById("" +iden+ "").style
		}
		function gettrailobj_placebo(){
		return document.getElementById("placebo").style
		}

		gettrailobj().visibility="visible"
		gettrailobj_placebo().visibility="hidden"

}
 //-->
 
 
 
 
 
 <!-- 
 function nahled_galerie_ukonceni(iden) {
 	function gettrailobj(){
		return document.getElementById("" +iden+ "").style
		}
	function gettrailobj_placebo(){
		return document.getElementById("placebo").style
		}

	gettrailobj().visibility="hidden"
	gettrailobj_placebo().visibility="visible"
 }
 //-->