// wyskakujace okna do referencji

function popUp(url,windowName,windowTitle,closeOnClick,width,height,t){
    if(!url)return
    function readSize(){if(t.complete)showPopup(t.width,t.height);else setTimeout(readSize,1e2)}
    function showPopup(w,h){with(window.open('',windowName||'','width='+(width||w)+',height='+(height||h)).document){open();write('<html><head><title>'+(windowTitle||'')+'</title></head><body style="margin:0;padding:0"><img src="'+url+'" style="display:block'+(closeOnClick?';cursor: pointer" onclick="self.close()" title="Zamknij okno"':'"')+'></body></html>');close()}}
    if(!width||!height)t=new Image(),t.src=url,readSize()
    else showPopup(width,height)
}

// rozwijane stanowiska pracy

	$(document).ready(
	function()
	{
		$("ul#lista_stanowisk li").children("h2").click( function() { $(this).next("p").toggle(); });
	});
	
	$(document).ready(
	function()
	{
		$("span.rozwijana").children("ul").click( function() { $(this).next("li").toggle(); });
	});
	
	
// powiekszanie tekstu
function zmien_rozmiar(act){
var size = document.getElementById("text").style.fontSize;
	if (act == 'in')
	{
	newSize = parseInt(size)+1;
	}
	else
	{
	newSize = parseInt(size)-1;
	}
document.getElementById("text").style.fontSize = newSize;
}