/****************** Menu rozwijane *********************/
var id_time;

function schowaj()
{
	if(id_time)
	{
		var div_menu = document.getElementById('rozwin');
		div_menu.style.visibility="hidden";
	}
}

function fu()
{
	id_time = setTimeout("schowaj()",1000);
}

function pokaz()
{
	id_time=clearTimeout(id_time);
	var div_menu = document.getElementById('rozwin');
	div_menu.style.visibility="visible";
}

/****************** AntySpam *********************/
function mailto(adres)
{
	adres = adres.replace('(#)','@');
	window.location.href="mailto:"+adres;
}

/****************** Kolorowanie naprzemiennie wierszy w tabeli *********************/
function kolorujNaprzemiennie(p_className)
{
	var i,colTabela = document.getElementsByTagName('table');
	for(i=0; i<colTabela.length; i++)
	{	
		if (colTabela[i].className.indexOf(p_className != -1))
		{
			var colTr = colTabela[i].getElementsByTagName('TR');
			for(var j=0; j<colTr.length; j++)
			{
				colTr[j].className = (j % 2) ? 'pr' : 'npr';
			}
		}	
	}
}


/****************** Nowe okno *********************/
var noweOkno = '';
function powieksz(zdj,w,h)
{
	if(noweOkno != '' && noweOkno.closed == false)
	{
		noweOkno.close();
	}


	config="width="+w+","+"height="+h+","+"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no";

	noweOkno=window.open("","nazwaOkna",config);
	noweOkno.document.open();
	noweOkno.document.clear();
	noweOkno.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"');
	noweOkno.document.write('"http://www.w3.org/TR/html4/strict.dtd">');
	noweOkno.document.write('<html>');
	noweOkno.document.write('<title>InterPetro</title>');
	noweOkno.document.write('<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-2">');
	noweOkno.document.write('<body style="margin: 0px;padding: 0px; overflow:hidden">');
	noweOkno.document.write('<a href="#" onclick="window.close(); return false;" title="Zamykanie okna"><img src='+zdj+' alt="Kliknij aby zamkn±æ okno" style="border: 0px;" ></a>');
	noweOkno.document.write('</body>');
	noweOkno.document.write('</html>');
	noweOkno.document.close();
}