noweOkienko = null;
function galeria(src, w, h){
if(window.screen){
 aw=screen.availWidth;
 ah=screen.availHeight;
}else{
 aw=640;
 ah=450;
}
if(noweOkienko==null || noweOkienko.closed){
 ustawienia=
 "left=" + (aw-w)/1.4 + ","
 +"top=" + (ah-h)/4 + ","
 +"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=no"
 noweOkienko = window.open("",'obrazek',ustawienia);
}
noweOkienko.document.open();
noweOkienko.document.clear();
noweOkienko.document.write(
"<html><head>\n"
+"<style><!--\n"
+"body{background-repeat:no-repeat; background-color: #ffffff}\n"
+"--></style>\n"
+"</head>\n"
+"<body>\n"
+"<center>\n"
+"<table border='0' width='100%' height='100%' cellspacing='0' cellpadding='0'>\n"
+"<tr>\n"
+"<td width='100%' valign='middle' align='center'><a href='#' onclick='javascript:window.close" + "()" + "'><img border='0' src='" + src + "'></a></td>\n"
+"</tr>\n"
+"</table>\n"
+"</center>\n"
+"</body>\n"
+"</html>"
);
noweOkienko.document.close();
noweOkienko.focus();
}

