var MyCookie = {
    Write:function(name,value,days) {
        var D = new Date();
        D.setTime(D.getTime()+86400000*days)
        document.cookie = escape(name)+"="+escape(value)+
            ((days == null)?"":(";expires="+D.toGMTString()))
        return (this.Read(name) == value);
    },
    Read:function(name) {
        var EN=escape(name)
        var F=' '+document.cookie+';', S=F.indexOf(' '+EN);
        return S==-1 ? null : unescape(     F.substring(EN=S+EN.length+2,F.indexOf(';',EN))    );
    }
}

function NavBar( level, name, url ) {
    MyCookie.Write("NBname"+level,name,1);
    MyCookie.Write("NBurl"+level,url,1);
    document.write ('<table border="0" cellspacing="0" cellpadding="0"><tr>');
    for(var i=1; i<level;i++) {
        if((xname=MyCookie.Read("NBname"+i))==null) xname="";
        if((xurl=MyCookie.Read("NBurl"+i))==null) xurl="";
        if(i==level) 
            document.write('<td><font size="1"><b><nobr>'+xname+'</nobr></b></font></td>');
        else
            document.write('<td bgcolor="#DEDEDE" onmouseout="this.style.backgroundColor='+"'#DEDEDE'"+' " onmouseover="this.style.backgroundColor='+"'#FFFFCC'"+'"><font size="1"><b><nobr>[&nbsp;<a onmouseover="return true;" href="'+xurl+'">'+xname+'</a>&nbsp;]</nobr></b></font></td><td><img src="../images/nxt.gif" border="0" align="right" hspace="2" vspace="0" width="12" height="12"></td>');
    }
    document.write ('</tr></table>');
}

function redbar() {
  m=redbar.arguments.length/2;

  if (m==0) return;
  for (var i=0, j=1; i<m; i++) {
	d=redbar.arguments[i+m];
    if (redbar.arguments[i]==0) {
	  document.write('<img border="0" title="'+d+'" src="images/1x1.gif" width="1" height="50"><br>');
	} else {
	  j++;
	  document.write('<img border="0" src="images/1x1.gif" width="1" height="3"><br>');
	  document.write('<img border="0" title="Nové '+d+'" src="images/blick'+(j%2==1?'i':'a')+'.gif" width="3" height="7"><br>');
	  document.write('<img border="0" title="Nové '+d+'" src="images/blick'+(j%2==1?'a':'i')+'.gif" width="3" height="30"><br>');
	  document.write('<img border="0" title="Nové '+d+'" src="images/blick'+(j%2==1?'i':'a')+'.gif" width="3" height="7"><br>');
	  document.write('<img border="0" src="images/1x1.gif" width="1" height="3"><br>');
	}
  }
}

function playw(URL) {
  orloj=window.open(URL,"Teď", "status=no,srollbars=no,resizable=no,width=140,height=140,menubar=no,directories=no");
  orloj.location=URL;
}

function go_to_Home_Page() {
	if (window.home) { 
		window.home(); 
	} else { 
		window.location = "about:home"; 
	}
}
/*
Auto Maximize Window Script- By Nick Lowe (nicklowe@ukonline.co.uk)
For full source code, 100's more free DHTML scripts, and Terms Of Use
Visit http://www.dynamicdrive.com

window.moveTo(0,0);
if (document.all) {
  W=screen.availWidth<=800?screen.availWidth:800;
  H=screen.availHeight<=600?screen.availHeight:600;
  top.window.resizeTo(W,H);
} else if (document.layers||document.getElementById) {
  if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
    top.window.outerHeight = screen.availHeight<=600?screen.availHeight:600;
    top.window.outerWidth = screen.availWidth<=800?screen.availWidth:800;
  }
}
*/


