function tworz_okno(url, x, y) 
{				
	okno = window.open("", "o", "width="+x+", height="+y+", left=100, top=25,"				
	+ " innerwidth="+x+", innerheight="+y+", location=0, directories=0,"				
	+ " scrollbars=0, menubar=0, toolbar=0, status=0, resizable=1");				
	okno.document.open();				
	okno.document.writeln(url);				
	okno.document.close();				
	okno.focus();				
}				

  function otworz(sciezka, w,h, okno)
  {
	  if(window.screen){
			aw=screen.availWidth;
			ah=screen.availHeight;
		}
		else{
			aw=640;
			ah=450;
		}
		
		ustawienia=
		"left=" + (aw-w)/2 + ","
		+"top=" + (ah-h)/2 + ","
		+"screenX=" + (aw-w)/2 + ","
		+"screenY=" + (ah-h)/2 + ","
		+"width=" + w + ","
		+"height=" + h + ","
		+"innerWidth=" + w + ","
		+"innerHeight=" + h + ","
		+"toolbar=no,"
		+"location=no,"
		+"directories=no,"
		+"status=yes,"
		+"menubar=no,"
		+"scrollbars=no,"
		+"resizable=no";		
		
		open(sciezka, okno, ustawienia);
	}

	
function t(tresc,v,e,t, typ){
  if (window.scrollX>=0) { // przesuniêcie i wymiar okna dla Netscape, Firefox
    przesY = window.scrollY;
  } else { // dla IE, Opery
    przesY = document.body.scrollTop
  }
  
  if(!document.createElement)return
  t=document.createElement("div")
  t.move=function(e){
    e=e||event

    t.style.left=e.clientX+15+"px"
    t.style.top=e.clientY+przesY+22+"px"
  }
  t.hide=function(x){
    if(x=document.getElementById(typ)) document.body.removeChild(x)
  }
  t.move(e);
  t.id=typ
  t.innerHTML=tresc
  document.body.appendChild(t)
  v.onmouseout=t.hide
  v.onmousemove=t.move
}

function o(t, typ){
  if (x=document.getElementById('tooltip')) document.body.removeChild(x);
}
