<!--
function Pilot(pliki)
{
	this.ipliki = pliki;
	this.lp = 0;
	return this;
}


function showPilot(opilot)
{
	var next_p, next_arrow, back_p, back_arrow, padding_p;
	if (window.frames) {
		var src = window.frames['rpilot'];
		src.location.href = opilot.ipliki[opilot.lp];				
	}
	
	if(opilot.lp == 0)
	{
		padding_p=document.getElementById('padding_p');
		padding_p.style.display = 'none';
		next_p=document.getElementById('next_p');
		next_p.style.display = 'none';
		next_arrow=document.getElementById('next_arrow');
		next_arrow.style.display = 'none';
		back_p=document.getElementById('back_p');
		back_p.style.display = 'inline';
		back_arrow=document.getElementById('back_arrow');
		back_arrow.style.display = 'inline';
	} else if(opilot.lp > opilot.ipliki.length - 2)
	{
		padding_p=document.getElementById('padding_p');
		padding_p.style.display = 'inline';
		next_p=document.getElementById('next_p');
		next_p.style.display = 'inline';		
		next_arrow=document.getElementById('next_arrow');
		next_arrow.style.display = 'inline';
		back_p=document.getElementById('back_p');
		back_p.style.display = 'none';
		back_arrow=document.getElementById('back_arrow');
		back_arrow.style.display = 'none';
	} else
	{
		padding_p=document.getElementById('padding_p');
		padding_p.style.display = 'none';
		next_p=document.getElementById('next_p');
		next_p.style.display = 'inline';		
		next_arrow=document.getElementById('next_arrow');
		next_arrow.style.display = 'inline';
		back_p=document.getElementById('back_p');
		back_p.style.display = 'inline';
		back_arrow=document.getElementById('back_arrow');
		back_arrow.style.display = 'inline';
	}
}

function backPilot(opilot)
{
	if(!(opilot.lp > opilot.ipliki.length - 2)) 
		opilot.lp += 1;
	showPilot(opilot);	
}

function nextPilot(opilot)
{
	if(!opilot.lp < 1)
		opilot.lp -= 1;
	showPilot(opilot);	
}


function showKalendarz(day, month, year, miasto, rodzaj, data)
{
	if (window.frames) {
		var src2 = window.frames['kalendarz'];
		src2.location.href = "../kalendarz.php?day="+day+"&month="+month+"&year="+year+"&miasto="+miasto+"&rodzaj="+rodzaj+"&data="+data;
	}
}

function showForum(nr)
{
	if((!nr) || (nr < 1) || (nr > 3))
		nr = 1;
		
	if (window.frames) {
		var src3 = window.frames['rforum'];
		src3.location.href = "../forum.php?forum="+nr;
	}
	
	var lin;
	for(i=1; i<4; ++i)	
	{
		lin = document.getElementById('linkForum'+i);
		if(i == nr)		
			lin.className = "link-und-br-br";
		else
			lin.className = "link-und-br";
	}
}

//-->
