noweOkienko = null;
function galeria(src,w,h){
if(window.screen){
 aw=screen.availWidth;
 ah=screen.availHeight;
}else{
 aw=800;
 ah=600;
}
if(noweOkienko==null || noweOkienko.closed){
 ustawienia=
 "left=" + (aw-w)/2 + ","
 +"top=" + (ah-h)/2 + ","
 +"screenX=" + (aw-w)/2 + ","
 +"screenY=" + (ah-h)/2 + ","
 +"width=" + (w+40) + ","
 +"height=" + (h+80) + ","
 +"innerWidth=" + w + ","
 +"innerHeight=" + h + ","
 +"toolbar=no,"
 +"location=no,"
 +"directories=no,"
 +"status=yes,"
 +"menubar=no,"
 +"scrollbars=yes,"
 +"resizable=yes"
 noweOkienko = window.open("",'obrazek',ustawienia);
}
noweOkienko.document.open();
noweOkienko.document.clear();
noweOkienko.document.write(
"<?xml version='1.0' encoding='iso-8859-2' ?>\n"
+"<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>\n"
+"<html xmlns='http://www.w3.org/1999/xhtml'>\n"
+"<title>Producent Mebli Szkolnych</title>\n"
+"<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-2' />\n"
+"<meta http-equiv='content-language' content='pl' />\n"
+"<style type='text/css'>\n"
+"body {font-family:  Georgia, 'Times New Roman', Times, serif; font-size: 12px; font-style: normal; font-weight: normal; color: #003366; text-decoration: none;\n"
+"background: #FFFFFF; margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px;}\n"
+"table {height: 100%; width: 100%;}\n"
+"tr,td,a {font-family:  Georgia, 'Times New Roman', Times, serif; font-size: 12px; font-style: normal; font-weight: bold; color: #003366; text-decoration: none;}\n"
+"a.info {font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; font-style: normal; font-weight: normal; color: #003366; text-decoration: none;}\n"
+"a.info:hover {font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 11px; font-style: normal; font-weight: normal; color: #0099CC; text-decoration: none;}\n"
+"img {display: block; border: 0px;}\n"
+".pics {display: block; border: 0px;}</style>\n"
+"</head><body>\n"
+"<table border='0' cellpadding='10' cellspacing='0'>\n"
+"<tr><td bgcolor='#FFFFFF' align='center'><a href='javascript:window.close()' class='info'><img src='"+src+"' class='pics' alt='zamknij okno / close window' /></a></td></tr>\n"
+"</table></body></html>"
);
noweOkienko.document.close();
noweOkienko.focus();
}
