<!-- 
if(!window.name) {
window.name = 'main';
}

/****************************TOPList***********************************************/
document.write ('<img style="visibility: hidden; position: absolute; right: 0px; bottom: 0px;" src="http://toplist.cz/dot.asp?id=81525&amp;http='+escape(document.referrer)+'&amp;wi='+escape(window.screen.width)+'&he='+escape(window.screen.height)+'&amp;t='+escape(document.title)+'" width=1 height=1 border=0 alt=""/>');

/********************Disablovani poli v souvisejicich rozhlednach******************/
function DisableSouvisejici() {
var i;
if(document.getElementById('checksr0').checked==false) {
  for (i=0; i<document.forms[0].elements.length;i++) {
    if (document.forms[0].elements[i].type=="checkbox" && document.forms[0].elements[i].id!='checksr0')
      document.forms[0].elements[i].disabled = true;
  }
}
else {
  for (i=0; i<document.forms[0].elements.length;i++) {
    if (document.forms[0].elements[i].type=="checkbox")
      document.forms[0].elements[i].disabled = false;
}
}
}

/***********Overeni vyplneni formulare (inspirovano knihou J.Kosek: PHP)***********/
function validform(form) {
    if(form.jmeno.value=="")
    {    alert("Prosím vyplňte své jméno (přezdívku)!");
	 form.jmeno.focus();
	 return false;
    }
    else if(form.text.value=="")
    {    alert("Prosím vyplňte text příspěvku!");
	 form.text.focus();
	 return false;
    }
    else
    {    return true;
    }
}


function validMAILform(form) {
    if(form.jmeno.value=="")
    {    alert("Prosím vyplňte své jméno!");
	 form.jmeno.focus();
	 return false;
    }
    else if(form.eemmaaiill.value=="")
    {    alert("Prosím vyplňte svůj e-mail!");
	 form.eemmaaiill.focus();
	 return false;
    }
    else if(form.predmet.value=="")
    {    alert("Prosím vyplňte předmět e-mailu!");
	 form.predmet.focus();
	 return false;
    }
    else if(form.text.value=="")
    {    alert("Prosím vyplňte text e-mailu!");
	 form.text.focus();
	 return false;
    }
    else if (window.RegExp)
    {
	re = new RegExp("^[^@]+@[^.]+\..+$");
	if (!re.test(form.eemmaaiill.value))
	{
		alert("Zadaná e-mailová adresa není korektní!");
		form.eemmaaiill.focus();
		return false;
	}
    }
    else
    {    return true;
    }
}

function validHadanky(form) {
    if(form.jmeno.value=="")
    {    alert("Prosím vyplňte své jméno (přezdívku)!");
	 form.jmeno.focus();
	 return false;
    }
    else if(form.odpoved.value=="")
    {    alert("Prosím vyplňte odpověď!");
	 form.text.focus();
	 return false;
    }
    else
    {    return true;
    }
}

/***********************Vlozeni textu do pole**************************/
function AddSmile(smile) {
  document.forms.form.text.focus();
  document.forms.form.text.value=
	document.forms.form.text.value+smile;
}

/*****Rozevírací menu + skrytí GPS*****/
document.write ("<style>span.rozbal{position: absolute; z-index:100; visibility: hidden; } div.polozkaHover span.rozbal{visibility: visible; z-index:100;} div.polozka {behavior: url(/hover.htc);} #gps, #admin {display:none;}</style>");

function Gps() {
	gps = document.getElementById('gps').style;
	gps.display = (gps.display == "block") ? "none" : "block";
}

/*****************************Panorama*********************************/
function Panorama(Vyska) {
  Vyska = Vyska +25;
  window.open("","Panorama","toolbar=0,location=0,scrollbars=1,width="+(screen.availWidth -10)+",height="+Vyska+",resizable=1,left=0,top=0");
}

/**************************Rolovani panorama***************************/
function runTimer() {
    curPos = curPos +3;
    window.scrollTo(curPos, 0);
    // Spusti se kdyz dokument dosáhene konce
    if (curPos > (document.getElementById('panoramaticka_fotka').width - screen.availWidth)) {
       window.scrollTo(0,0);
       curPos = 0;
    }
}

function StopPanorama(){
  window.clearInterval(tScroll);
}
function PlayPanorama(){
  window.clearInterval(tScroll);
  tScroll = window.setInterval("runTimer();", 50);
}

/*****************************Okno Pristup*****************************/
function openWindowpris() {
window.open("","php_pristup",'toolbar=1,location=0,scrollbars=1,width='+screen.availWidth+',height='+screen.availHeight+',resizable=1,left=0,top=0,');
}

/****************************Okno SafeMail*****************************/
function SafeMail() {
window.open("","safemail",'toolbar=0,location=0,scrollbars=1,width=430,height=400,resizable=1,left=150,top=50');
}


/*****************************Okno Kontakt*****************************/
function openWindowkont() {
window.open("","contact",'toolbar=0,location=0,scrollbars=0,width=375,height=250,resizable=0,left=150');
}


/****************************Okno Komentare*****************************/
function openWindowcoment() {
window.open("","comments",'toolbar=0,status=1,location=0,menubar=1,scrollbars=1,width=500,height=400,resizable=1,left=50,top=50');
}

function openWindowcompri() {
window.open("","commentspridej",'toolbar=0,status=1,location=0,menubar=1,scrollbars=1,width=400,height=492,resizable=1,left=50,top=50');
}


/*****************************Okno Obrazek*****************************/
function OpenPicture(Sirka,Vyska,Scrollbarsx) {
	Vyska = Vyska +22;
	Sirka = Sirka +4;
	/*Vyska = 662
	Sirka = 715*/
	if(Scrollbarsx==true) {
		scrollovatka="1";
		Sirka = Sirka +15;
	}
	else {
		scrollovatka="0";
	}
	window.open("","Picture",'toolbar=0,location=0,scrollbars='+scrollovatka+',width='+Sirka+',height='+Vyska+',resizable=1,left=100,top=10');
}

/******************************Popis fotek******************************/
var zobrazena = "px";
function zobraz_popis(popis_obr){
	if (document.getElementById(zobrazena)){
		document.getElementById(zobrazena).style.display = "none";
		document.getElementById(popis_obr).style.display = "block";
		zobrazena = popis_obr;
		return false;
	}
}

/**************************Checkboxy v seznamu**************************/
function check() {
for (var i=0; i<document.checkboxes.elements.length;i++) {

if (document.checkboxes.elements[i].type=="checkbox") document.checkboxes.elements[i].checked = true;

}
}
function nocheck() {
for (var i=0; i<document.checkboxes.elements.length;i++) {

if (document.checkboxes.elements[i].type=="checkbox") document.checkboxes.elements[i].checked = false;

}
}

/******************************Okno Panorama*****************************/
function openWindowpano() {
window.open("","panorama",'toolbar=0,location=0,scrollbars=1,width=screen.availWidth,height=495,resizable=1,left=0,top=0');
}

/*****************************Nacitani stránky - NEPOUZITO*****************************/
function hideLoadingPage() {
        if (document.getElementById) {  // DOM3 = IE5, NS6
                document.getElementById('hidepage').style.visibility = 'hidden';
        }
        else {
                if (document.layers) {  // Netscape 4
                        document.hidepage.visibility = 'hidden';
                }
                else {  // IE 4
                        document.all.hidepage.style.visibility = 'hidden';
                }
        }
}



/************************************QUICK HELP*****************************************
* Cool DHTML tooltip script- © Dynamic Drive DHTML code library (www.dynamicdrive.com) *
* 		   This notice MUST stay intact for legal use			       *
*      Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code        *
****************************************************************************************

var offsetxpoint=-60 //Customize x offset of tooltip
var offsetypoint=20 //Customize y offset of tooltip
var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false
if (ie||ns6)
var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function ddrivetip(thetext, thecolor, thewidth){
if (ns6||ie){
if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=thetext
enabletip=true
return false
}
}

function positiontip(e){
if (enabletip){
var curX=(ns6)?e.pageX : event.x+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.y+ietruebody().scrollTop;
//Find out how close the mouse is to the corner of the window
var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20
var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20

var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000

//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<tipobj.offsetWidth)
//move the horizontal position of the menu to the left by it's width
tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+"px" : window.pageXOffset+e.clientX-tipobj.offsetWidth+"px"
else if (curX<leftedge)
tipobj.style.left="5px"
else
//position the horizontal position of the menu where the mouse is positioned
tipobj.style.left=curX+offsetxpoint+"px"

//same concept with the vertical position
if (bottomedge<tipobj.offsetHeight)
tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+"px"
else
tipobj.style.top=curY+offsetypoint+"px"
tipobj.style.visibility="visible"
}
}

function hideddrivetip(){
if (ns6||ie){
enabletip=false
tipobj.style.visibility="hidden"
tipobj.style.left="-1000px"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}

document.onmousemove=positiontip




***************************************************************/
/*******************Stare otevirani fotek**********************/
/**************************************************************


var WindowName=null;

function OpenWindow(Path,X,Y,nazev,autor)
{ 
if (WindowName!=null && !(WindowName.closed)) {WindowName.close()}
WindowName=window.open("","obrazek","toolbar=0,location=0,scrollbars=0,width="+X+",height="+Y+",resizable=0,top=20,left=150");
WindowName.document.open();
WindowName.document.write('<HTML><HEAD><TITLE>'+nazev+'</TITLE></HEAD>');
WindowName.document.write('<BODY TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 bgcolor=#CCC0B0><a href=\'javascript:window.close()\' title=\'Zavřít okno\'><IMG border=0 SRC="',Path,'"></a>');
WindowName.document.write('<div style="position: absolute; bottom: 0; right: 0; background: #FFFFFF; margin: 2px; font-weight: bold; padding: 1px; filter: alpha(opacity=70); -moz-opacity: 0.7; text-align: right; visibility: visible;" onclick="this.style.visibility=\'hidden\';" title="Skrýt popis">'+nazev+' <span style="font-weight: normal; font-size: 0.9em;">Autor: ©'+autor+'</span></div>');
WindowName.document.write('</BODY></HTML>');
WindowName.document.close();
}

-----------------------------Záloha------------------------------
var WindowName=null;

function OpenWindow(Path,X,Y,nazov)
{ Y = Y+18;
if (WindowName!=null && !(WindowName.closed)) {WindowName.close()}
WindowName=window.open("","obrazek","toolbar=0,location=0,scrollbars=0,width="+X+",height="+Y+",resizable=0,top=20,left=150");
WindowName.document.open();
WindowName.document.write('<HTML><HEAD><TITLE>'+nazov+'</TITLE></HEAD>');
WindowName.document.write('<BODY TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 bgcolor=#CCC0B0><a href=\'javascript:window.close()\' title=\'Zavřít okno\'><IMG border=0 SRC="',Path,'"></a>');
WindowName.document.write('<br><center><font size=2 face=Arial><b>'+nazov+'</b></font></center>');
WindowName.document.write('</BODY></HTML>');
WindowName.document.close();
}

**************************************************************/

//-->
