

function rozwin(x)

{

	x = document.getElementById( x ); 

	if (x.style.display == "block"){ x.style.display = "none"; }

	else { x.style.display = "block"; }

}



function tog(x)

{

	x = document.images[x]; 

	 a=x.src.substring(x.src.length-8); 

	if (a == "plus.gif"){ x.src = "mins.gif";}

	else { x.src = "plus.gif"; }

}











<!-- Miniaturka

function Foto(img){

  foto1= new Image();

  foto1.src=(img);

  Controlla(img);

}

function Controlla(img){

  if((foto1.width!=0)&&(foto1.height!=0)){

    viewFoto(img);

  }

  else{

    funzione="Controlla('"+img+"')";

    intervallo=setTimeout(funzione,20);

  }

}

function viewFoto(img){

  largh=foto1.width+44;

  altez=foto1.height+24;

  extras="";

  if (altez>550)

  {

	  altez=550;extras=", scrollbars=yes";

  }

  stringa="width="+largh+",height="+altez+extras;

  finestra=window.open(img,"",stringa);

with(finestra.document) {

open();

write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><title>Podgląd obrazka</title><meta http-equiv="content-type" content="text/html; charset=utf-8"><link rel="stylesheet" href="pliki/styl.css" type="text/css"><style>body{margin:2px;}</style></head><body style="margin:10px;"  onselectstart="return false" ondragstart="return false" oncontextmenu="return false"><table width="100%" height="100%" ><tr><td align="center" height="100%"><img src="'+img+'"   onclick="window.close();"/></td></tr></table></body></html>');

close();

}

}

//  Miniaturka -->



function openWindow(dest, param) {

				Win = window.open(dest,'NoweOkno',param); Win.focus();

			}

function sprawdz(id)
{
 if (navigator.appName=="Microsoft Internet Explorer") { 
    if (document.all[id].style.visibility == 'visible') {
          document.all[id].style.visibility = 'hidden';
          document.all[id].style.display = 'none';
      }
    else {
       document.all[id].style.visibility = 'visible';
       document.all[id].style.display = 'block';
      }
 }
 else { 
  
    if (document.getElementById(id).style.visibility == 'visible') {
          document.getElementById(id).style.visibility = 'hidden';
          document.getElementById(id).style.display = 'none';
      }
    else {
       document.getElementById(id).style.visibility = 'visible';
       document.getElementById(id).style.display = 'block';
      }
 }
}


