// Copyright Pawel Tomaszek
// 31.01.2003


//określenie stałych

	tlmOrigBg = "#518A9F";
	tlmOrigCol = "White";
	tlmHlBg = "#97BCCA";
	tlmHlCol = "Black";
	borderCol = "#518A9F";
	menuBg = "#74A5B8";

//funkcja która zamienia tło w komórce tabeli

function chgBg (it, col)
	{
	el=eval (it) ;
	ela=eval (it+'a') ;

	if (col==0)
		{
		el.style.background = tlmOrigBg ;
		ela.style.color = tlmOrigCol ;
		}
	  else
		{
		if (col&1) el.style.background = tlmHlBg ;
		if (col&1) ela.style.color = tlmHlCol ;
		if (col&4) el.style.background = menuBg ;
		if (col&4) ela.style.color = tlmOrigCol ;

		}
	}

function powiekszenie_zwykle(plik, tytul)
{
tekst=window.open('', 'Nazwa', ', , resizable, toolbar=no, location=no, width=20, height=20, \n');
tekst.document.write('<html>\n');
tekst.document.write('<head>\n');
tekst.document.write('<title>', tytul, '</title>\n');
tekst.document.write('<link rel="StyleSheet" href="style/style.css" type="text/css">\n');
tekst.document.write('<script language="JavaScript1.1">\n');

//funkcja do powiekszania okna
tekst.document.write('var i=0;\n');
tekst.document.write('function resize()\n');
tekst.document.write('	{\n');
tekst.document.write('  if (navigator.appName == "Netscape") i=40;\n');
tekst.document.write('  if (document.images[0]) window.resizeTo(document.images[0].width +40, document.images[0].height+110);\n');
tekst.document.write('  self.focus();\n');
tekst.document.write('  }\n');
tekst.document.write('\n');

//określenie stałych
tekst.document.write('	tlmOrigBg = "#518A9F";\n');
tekst.document.write('	tlmOrigCol = "White";\n');
tekst.document.write('	tlmHlBg = "#97BCCA";\n');
tekst.document.write('	tlmHlCol = "Black";\n');
tekst.document.write('	borderCol = "#518A9F";\n');
tekst.document.write('	menuBg = "#74A5B8";\n');
tekst.document.write('\n');

//funkcja która zamienia tło w komórce tabeli
tekst.document.write('function chgBg (it, col)\n');
tekst.document.write('	{\n');
tekst.document.write('	el=eval (it) ;\n');
tekst.document.write('	ela=eval (it+"a") ;\n');

tekst.document.write('	if (col==0)\n');
tekst.document.write('		{\n');
tekst.document.write('		el.style.background = tlmOrigBg ;\n');
tekst.document.write('		ela.style.color = tlmOrigCol ;\n');
tekst.document.write('		}\n');
tekst.document.write('	  else\n');
tekst.document.write('		{\n');
tekst.document.write('		if (col&1) el.style.background = tlmHlBg ;\n');
tekst.document.write('		if (col&1) ela.style.color = tlmHlCol ;\n');
tekst.document.write('		if (col&4) el.style.background = menuBg ;\n');
tekst.document.write('		if (col&4) ela.style.color = tlmOrigCol ;\n');
tekst.document.write('		}\n');
tekst.document.write('	}\n');
tekst.document.write('</script>\n');
tekst.document.write('</head>\n');

tekst.document.write('\n');

tekst.document.write('<body style="margin-top:12;" onload="resize();">\n');
tekst.document.write('<table align=center>');
tekst.document.write('<tr><td><img border=1 src=',plik,' alt= ',tytul,'>\n');
tekst.document.write('</table>\n');

tekst.document.write('<table align=center width=140>\n');
tekst.document.write('<td onMouseOver=chgBg("tlm3",3) onMouseOut=chgBg("tlm3",0) id=tlm3 onMouseDown=window.close() \n');
tekst.document.write('class=zamknij style="padding-right:15px;padding-left:15px">\n');
tekst.document.write('<table cellpadding=2 cellspacing=0 border=0><tr><td>\n');
tekst.document.write('<A ID="tlm3a" class=CL0 HREF="#"><B>Zamknij</B></A></font></td></tr></table></td>\n');
tekst.document.write('</tr>\n');
tekst.document.write('</table>\n');

tekst.document.write('</td>\n');
tekst.document.write('</tr>\n');
tekst.document.write('</table>\n');
tekst.document.write('</body>\n');
tekst.document.write('</html>\n');
tekst.location.reload();
}

//---------------ukrywanie obiektu---------------
function ukryj(obiekt){
el=eval (obiekt);
el.style.visibility='hidden';
}
//-------------ukrywanie obiektu end-------------


