<!--
// Copyright 2003 by Jarosław Karlik 


function foto(plik, szer, wys) {

  var lewy = (screen.availWidth - szer) /2;
  var gora = (screen.availHeight - wys) /2;

  var start = plik.lastIndexOf('/');
  var stop = plik.lastIndexOf('.');
  if (stop < start) stop = plik.length;
  var nazwa = plik.substring(start+1, stop);

  var okno = window.open("", "", "menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,left="+lewy+",top="+gora+",scrollbars=no" + (szer ? ",width=" + szer : "") + (wys ? ",height=" + wys : ""));

  okno.document.write('<!DOC'+'TYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">\n' +
  '<HT'+'ML>\n' +
  '<HE'+'AD>\n' +
  '<ME'+'TA HTTP-EQUIV="Content-type" CONTENT="text/html; char'+'set=iso-8859-2">\n' +
  '<TI'+'TLE> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </TI'+'TLE>\n' +
  '</HE'+'AD>\n' +
  '<BO'+'DY bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">\n' +
  '<table border="0" cellspacing="0" cellpadding="0"><tr><td><img src="' + plik + '"></td></tr></table>'+
  '</BO'+'DY>\n' +
  '</HT'+'ML>');
}

function max() {
	self.moveTo(0,0)
	self.resizeTo(screen.availWidth,screen.availHeight)
}

function okno(plik, szer, wys) {

  var lewy = (screen.availWidth - szer) /2;
  var gora = (screen.availHeight - wys) /2;

  var okienko = window.open(plik,"okno",'width=' + szer + ',height=' + wys + ',menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,left=' + lewy + ',top=' + gora + '');
}

function okno_bar(plik, szer, wys) {
  var szer = szer + 17;
  
  var lewy = (screen.availWidth - szer) /2;
  var gora = (screen.availHeight - wys) /2;

  var okienko = window.open(plik,"okno",'width=' + szer + ',height=' + wys + ',menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=yes,left=' + lewy + ',top=' + gora + '');
}

var DHTML = (document.getElementById || document.all || document.layers);

function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}

function tophide (obj) {
	if (!DHTML) return;
	var x = new getObj(obj);
	x.style.visibility = 'hidden';
}

function invi(objname)
{
	if (!DHTML) return;
	var x = new getObj(objname);
	if (x.style.visibility == 'visible') { x.style.visibility = 'hidden' }
	else { x.style.visibility = 'visible' }
}

function tooltip(d,E,b,i,a){
  d=document;E=d.documentElement;b=d.body;if(!E)return;
  for(i=0;a=b.getElementsByTagName("span")[i];i++){
    if(a.title){
      with(a.t=d.createElement("div")){
        id="tooltip"
        innerHTML=a.title.replace(/\|/g,"<br />")
      }
      a.onmouseover=function(e){
        with(this){title="";onmousemove(e)}
        b.appendChild(this.t)
      }
      a.onmouseout=function(x){
        with(this){title=t.innerHTML.replace(/<br \/>/g,"\|")}
        if(x=d.getElementById("tooltip"))b.removeChild(x)
      }
      a.onmousemove=function(e){
        e=e||event;with(this.t.style){
         left=e.clientX+(E.scrollLeft||b.scrollLeft)+"px"
         top=e.clientY+(E.scrollTop||b.scrollTop)+"px"
        }
      }
    }
  }
}
function addEvent(O,E,F,x){
  return(x=O.addEventListener)?x(E,F,1):(x=O.attachEvent)?x('on'+E,F):!1
}
addEvent(window,'load',tooltip);

function tylkocyfry(t,v){if(!~~(v=t.value+1))t.value=(v=parseFloat(v))?v:''}


 -->
