noweOkienko = null;
nowePhoto = null;
function nic()
{
}
function g(src, w, h)
{
if(window.screen){
 aw=screen.availWidth;
 ah=screen.availHeight;
}else{
 aw=640;
 ah=450;
}
if(noweOkienko==null || noweOkienko.closed)
 {
 settings=
 "left=" + ((aw-790)/2+790-w-10) + ","
 +"top=" + (ah-h-52) + ","
 +"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=yes,"
 +"resizable=yes";
noweOkienko = window.open(src,'obrazek',settings);
noweOkienko.focus();
 }else	{
		noweOkienko.close();
		noweOkienko = window.open(src,'obrazek',settings);
		}
}

function p(src, w, h)
{
if(window.screen){
 aw=screen.availWidth;
 ah=screen.availHeight;
}else{
 aw=640;
 ah=450;
}
 settings=
 "left=" + ((aw-790)/2+790-w-10) + ","
 +"top=" + (ah-h-52) + ","
 +"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";
if(nowePhoto==null || nowePhoto.closed)
 {
nowePhoto = window.open(src,'zdjecie',settings);
nowePhoto.focus();
} else	{
		nowePhoto.close();
		nowePhoto = window.open(src,'zdjecie',settings);
		nowePhoto.focus();
		}
nowePhoto = window.open(src,'zdjecie',settings);
}


