
	 noweOkienko = null;
 function galeria(src, w, h){
	 if(window.screen){ aw=screen.availWidth;ah=screen.availHeight; }else{ aw=320; ah=450;
 	}
	 if(noweOkienko==null || noweOkienko.closed){
	  ustawienia=
	  "left=" + (w)/2 + ","	  +"top=" + (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=no,"	  +"menubar=no,"	  +"scrollbars=no,"	  +"resizable=yes"
	  noweOkienko = window.open("",'obrazek',ustawienia);
	 }
	 noweOkienko.document.open();
	 noweOkienko.document.clear();
	 noweOkienko.document.write(
	 "<html><head>\n"
	 +" <Title> --- Galeria ---</title>"
	 +" <SCRIPT>"	 +"function na_dol(){"	 +"new_window = window.resizeTo(width=galeria.width+10  , height=galeria.height+40);"
	 +"}"	 +"</"	 +"SCRIPT>"	 +"</HEAD><BODY topmargin=0 leftmargin=0 onload=na_dol(); BgColor=#ffffff>"
	 +"\n"	 +"\n"	 +"<img name=galeria src=" + src + ">"+"");
	 noweOkienko.document.close();
	 noweOkienko.focus();
 	}

//---------------------------------
	 noweOkienko2 = null;
function openW(strona,width_,height_){
		noweOkienko2 = window.open(strona,'strona','width='+width_+',height='+height_+',toolbars=no,resizeble="yes",scrollbars=yes');
		noweOkienko2.focus();
}
//---------------------------------
function selecturl(s) {
	var gourl = s.options[s.selectedIndex].value;	
	window.top.location.href = gourl;
}
//---------------------------------
function tlo(a){
if (a.className=="menu") a.className="menuz"; else a.className="menu";
}

//---------------------------------
function ukryj(obj){
		document.getElementById(obj).style.display = "none";
}
//---------------------------------
function pokaz(obj,w,h){
//	var wx=screen.availWidth/2;
//	var	hy=screen.availHeight/2;

 if (navigator.appName=="Netscape") {
  var wx = window.innerWidth/2;
  var hy = window.innerHeight/2; }
else{
  var wx = document.body.offsetWidth/2;
  var hy = document.body.offsetHeight/2;
 }
document.getElementById(obj).style.pixelLeft=wx-w;	
document.getElementById(obj).style.pixelTop=h;	
document.getElementById(obj).style.display = "block";
}