function okno(url,nazev,x,y) {
 xc=(screen.width / 2) - (x/2);
 yc=(screen.height / 2) - (y/2);
 var windows=window.open(url,nazev,'width='+x+',height='+y+',top='+yc+',left='+xc+',menubar=0,toolbar=0,margins=0,scrollbars=1');
}

function oknoImg(url,nazev,x,y) {
 xc=(screen.width / 2) - (x/2);
 yc=(screen.height / 2) - (y/2);
 imgx=x-20;
 imgy=y-20;
 var windows=window.open(url,nazev,'width='+x+',height='+y+',top='+yc+',left='+xc+',menubar=0,toolbar=0,margins=0,scrollbars=0');
 windows.document.write('<body topmargin=0 leftmargin=0 rightmargin=0>');
 windows.document.write('<table cellspacing=0 cellpadding=0 border=0>');
 windows.document.write('<tr><td><img src='+url+' width='+x+' height='+y+' border=0></td></tr></table></body>'); 
}

function ImgOn(id) {
   var button = document.getElementById(id); 
   button.src = eval(id + "_on.src");
}

function ImgOff(id) {
   var button = document.getElementById(id); 
   button.src = eval(id + "_off.src");
}

var checker = true;

function scrolldown(element){
  if (checker) {
	
	if (document.getElementById) { // DOM3 = IE5, NS6 
       document.getElementById(element).scrollTop+=10; 
	   setTimeout("scrolldown('" + element + "')",50);
       };
	    
    if (document.layers) { // Netscape 4 
       document.element.scrollTop+=10; 
	   setTimeout("scrolldown('" + element + "')",50);
	   };
	   
	}
}

function scrollup(element){
 if (checker) {
	
	if (document.getElementById) { // DOM3 = IE5, NS6 
       document.getElementById(element).scrollTop+=-10; 
	   setTimeout("scrollup('" + element + "')",50);
       };
	    
    if (document.layers) { // Netscape 4 
       document.element.scrollTop+=-10; 
	   setTimeout("scrollup('" + element + "')",50);
	   };
  }
}

