<!--
function win(url, width, height, resizable, scroll)
{
	if (!width)
		width = 300;
	if (!height)
		width = 300;
	if (scroll == null)
		scroll = 0;
	
	if (document.all)
	{
		var x = Math.round(window.screen.availWidth / 2 - width / 2);
		var y = Math.round(window.screen.availHeight / 2 - height / 2);
		if (x < 0) x = 10;
		if (y < 0) y = 10;
	}
	else
		var x = 200, y = 200;

	var features = 'height='+height+', left='+x+', location=no, menubar=no, resizable='+(resizable ? 'yes' : 'no')+', '
		+'scrollbars='+(scroll ? 'yes' : 'no')+', status=no, titlebar=no, toolbar=no, top='+y+', width='+width;
	window.open(url, '_blank', features);
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

/*function validate() //kontrola formularu
{
  if(document.formular.jmeno.value=="") {
  alert("Your name - no entry.");
  document.formular.jmeno.focus();
  return(false); }
  if(document.formular.prijmeni.value=="") {
  alert("Your surname - no entry.");
  document.formular.prijmeni.focus();
  return(false); }
  if(document.formular.email.value=="") {
  alert("Your e-mail - no entry.");
  document.formular.email.focus();
  return(false); }
  if(document.formular.???[0].checked) {
  alert("???");
  document.formular.???.focus();
  return(false); }
  else {	
  return(true); }
}*/

/*function enlarge(objpath)  //otevre okno
{
   var win=open(objpath,"window",'scrollbars=no,resizable=no,width=100,height=100');
   win.focus();
}*/

/*var okno, x, y  //otevre okno s rozmery

function enlarge(objpath, x, y)
{
  if (okno) {
    okno.close(); }
  okno = window.open(objpath,"window",'scrollbars=no,resizable=no,width=' + x + ',height=' + y + '');
  okno.focus();
}*/

/*function winclose()  //zavre okno
{
  if(okno) {
    okno.close(); }
}*/

/*function winprint()  //zajisti tiskovy dialog nebo alert
{
  if(window.print) {
    window.print(); }
  else {
    alert("Pro vytisknutí stiskněte CTRL-P!"); }
}*/

/*function checkframe()  //zjisti, zda stranka je/neni soucasti ramu
{
  if(self==parent) {
    document.write('Tento dokument je pouze součást rámu: <A HREF=index.html>zde</A> přejděte na hlavní stranu.') };
}*/

/*function updateframes(url1,url2)  //updatuje x ramu ve framesetu, cisla ramu dle poradi ve framesetu
{
  parent.frames[2].location=url2;
  parent.frames[0].location=url1;
}*/

/*function MakeState()  //zajisti over efekt v bunce
{
  this.over='';
  this.out='';
  return this;
}

function MakeStateArray(pocet)
{
  for (var i=1;i<=pocet;i++)
    this[i]=new MakeState();
  return this;
}

pocet_menu=x;
var sub;

sub=new MakeStateArray(pocet_menu);

sub[x].over='';
sub[x].out='';

function RowOver(row,sub_id)
{
  row.style.backgroundColor=sub[sub_id].over;
}

function RowOut(row,sub_id)
{
  row.style.backgroundColor=sub[sub_id].out;
}*/
//-->
