/* Skargi i wnioski: Piotr Machura */

function winopen(plik, w, h, scroll)
{
	if(window.screen) {
	  aw=screen.availWidth;
	  ah=screen.availHeight;
	}else{
	  aw=640;
	  ah=450;
	}
	 ustawienia=
	 "left="+(aw-w)/2+","
	 +"top="+(ah-h)/2+","
	 +"screenX="+(aw-w)/2+","
	 +"screenY="+(ah-h)/2+","
	 +"width="+w+","
	 +"height="+h+","
	 +"toolbar=no,"
	 +"location=no,"
	 +"directories=no,"
	 +"status=no,"
	 +"menubar=no,"
	 +"scrollbars="+scroll+","
	 +"resizable=no"
	 window.open(plik,'Karta',ustawienia);
//	 return window.open(plik,'Karta',ustawienia);
}

function popImageWithTitle(sImageHref,podpis)
{
	winopen( "/show.html?href="+sImageHref+"&text="+podpis, 400, 50, "no" );
	return false;
}

function popImageWithTitleAtBottom(sImageHref,podpis)
{
	winopen( "/show.html?href="+sImageHref+"&bottomtext="+podpis, 400, 50, "yes" );
	return false;
}

function popImageWithTitleAtTopAndBottom(sImageHref,tytul,podpisdolny)
{
	winopen( "/show.html?href="+sImageHref+"&text="+tytul+"&bottomtext="+podpisdolny, 400, 50, "yes" );
	return false;
}

function popImage(sImageHref)
{
	winopen( "/show.html?href="+sImageHref, 400, 50, "no" );
	return false;
}

