
var JSFSplashWin = null;
// static :)
function ShowImage(url, width, height, cNazwa, cLogoUrl, borderless) {
	ScrWidth = 440; ScrHeight = 500;
	if (window.screen) {ScrWidth = window.screen.width; ScrHeight = window.screen.height}
//	PosX = Math.round((ScrWidth - width)/2);
//	PosY = Math.round((ScrHeight - height)/2);

	PosX = 50;
	PosY = 50;
	width2 = width+80;
	height2 = height+100;

	if (JSFSplashWin != null && !document.layers) {JSFSplashWin.close();}
	if (borderless && !document.layers) {
		JSFSplashWin = window.open("", "splash", "fullscreen=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no");
		JSFSplashWin.resizeTo(width2, height2);
		JSFSplashWin.moveTo(PosX, PosY);
	}
	else
		JSFSplashWin = window.open("", "splash", "menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=" + width2 + ",height=" + height2 + ",left=" + PosX + ",top=" + PosY);

	JSFSplashWin.document.open();
	JSFSplashWin.document.clear();
	JSFSplashWin.document.write("<html><head><title>" + cNazwa + "</title><style><!-- .nazwa{ font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; font-weight: normal; color: #660000; display: block; width: "+width+"px; border: 1px solid #B0C4DE; text-align: center; padding: 3px; margin-bottom: 5px;} .logo{ display: block; width: "+width+"px; border: 1px none #B0C4DE; text-align: right; padding: 3px; margin-bottom: 2px;} --></style></head><body topmargin='10' style='background-color: #FFFFFF'><script>function closeMe(e){window.close();} document.onclick = closeMe;</script><div align='center'><div class='logo'><img src='" + cLogoUrl + "' border='0' alt=''></div><div class='nazwa'>" + cNazwa + "</div><img src='" + url + "' border='0' alt='" + cNazwa + "' width='"+width+"' height='"+height+"' style='border: 1px solid #B0C4DE'></body></html>");
	JSFSplashWin.document.close();
	JSFSplashWin.focus();	
}

function JSFSplashShow(url, width, height, borderless) {
	ScrWidth = 440; ScrHeight = 480;
	if (window.screen) {ScrWidth = window.screen.width; ScrHeight = window.screen.height}
//	PosX = Math.round((ScrWidth - width)/2);
//	PosY = Math.round((ScrHeight - height)/2);

	PosX = 50;
	PosY = 50;

	if (JSFSplashWin != null && !document.layers) {JSFSplashWin.close();}
	if (borderless && !document.layers) {
		JSFSplashWin = window.open(url, "splash", "fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0");
		JSFSplashWin.resizeTo(width, height);
		JSFSplashWin.moveTo(PosX, PosY);
	}
	else
	JSFSplashWin = window.open(url, "splash", "fullscreen=1;menubar=0,toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=no");
	JSFSplashWin.focus();	
}



	function info01() {
		d=window.open("info/info.php?No=01","Przesyłka","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=460,height=300,left=20,top=20");
	}

	function opis01( cParam ) {
		cLink = "info/opis.php?cParam=" + cParam;
		d=window.open( cLink,"Opis","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=600,height=650,left=10,top=10");
	}

	function firma( cKodFirmy ) {
		cLink = "firmy/firma.php?cKodFirmy=" + cKodFirmy;
		d=window.open( cLink,"Producenci","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars,resizable,copyhistory=no,width=630,height=770,left=10,top=10");
	}

	function duze(foto,szer,wys){
	     duzewin=window.open("pusta.html","Foto","height=600,width=750,screenX=20,screenY=1,left=20,top=1,directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no");
	     duzewin.document.write("<html><head><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-2'><title>Biust.pl - duże zdjęcie</title><link rel='stylesheet' href='styl_foto_centrum.css' type='text/css'></head>");
	     duzewin.document.write("<body bgcolor=#FFFFFF>");
	     duzewin.document.write("<center><table border='0' cellpadding='0' cellspacing='0' width='700'><tr><td width='700' align='center'><A class=o2 href='javascript:window.close()'>Zamknij okno</a></td></tr></table>");
	     duzewin.document.write("<br></center>");
	     duzewin.document.write("<p align='center'><img src=foto/centrum/" + foto + " border=0 width=" + szer + " height=" + wys + "></p><p><br></p>");
	     duzewin.document.write("</body></html>");
	   }

	function clearSignup(t){
		if (t.form.email.value=="Podaj adres e-mail"){
			t.form.email.value="";
		}
	}

	function clearFraza(t){
		if (t.form.cFraza.value=="Dowolny ciag znakow"){
			t.form.cFraza.value="";
		}
	}

