function pokaz(url,w,h,tyt)
{
	pp=window.open("","Orazek","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+w+",height="+h+", top=10, left=20");
	pp.document.open();
	pp.document.write("<html><head><title>Mieszek - ");
	pp.document.write(tyt);
	pp.document.write("</title>");
	pp.document.write("<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>");
	pp.document.write("<script language='JavaScript'></script>");
	pp.document.write("</head><body bgcolor='#FFFFFF' text='#FFFFFF' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>");
	pp.document.write("<CENTER><IMG SRC='"+url+"' ALT='Zamknij Okno' BORDER='0' onclick='window.close()' style='cursor: hand;' width='"+w+"' height='"+h+"'><BR><BR>");
	pp.document.write("</BODY></HTML>");
	pp.document.close();
}
function okno()
{
	oo=window.open("polec.php","polec","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=550,height=300, top=50, left=50");
}
function okno_htm(url,w,h)
{
	oo=window.open(url,"okno","toolbar=0, location=0, directories=0, status=0, menubar=0,,scrollbars=1, resizable=0, width="+w+", height="+h+", top=50, left=50");
}

var speed = 1;
var step = 1;
var hide = 20000;
var moveto = 750;

// Do not edit below this line
var left = 0;
function movein(){
 setTimeout('closemessage()',hide); 
 
}
function closemessage(){
        if (document.layers) {document.layers['message'].visibility='hidden';}
        else{document.getElementById('message').style.visibility='hidden';}
}
var speed_y = 5;
var step_y = 4;
var hide = 20000;
var moveto_y = 150;

// Do not edit below this line
var top = 0;
function move_y(){
  if (document.layers) {
        document.layers['message_y'].pageY = window.pageYOffset + top;
        top+=step_y;
        if(top<moveto_y){ setTimeout('move_y()',speed_y); }
        else { setTimeout('closemessage_y()',hide); }
    }
   
  else{
document.getElementById('message_y').style.top=top+'px';
top+=step_y;
if(top<moveto_y){ setTimeout('move_y()',speed_y); }
else { setTimeout('closemessage_y()',hide); }
  }
}
function closemessage_y(){
        if (document.layers) {document.layers['message_y'].visibility='hidden';}
        else{document.getElementById('message_y').style.visibility='hidden';}
}

function zmien(grafika,plik) { 
document.images[grafika].src=plik; }