// JavaScript Document
function sw(id)
{
	var i=0;
	var obj;
	var ozm;
	while(obj = document.getElementById('art'+i))
	{
		obj.className='hidden';		
		i++;
	}
	document.getElementById('art'+id).className='visible';
	func='sw('+(id+1)+')';
	if (id < i-1)
		setTimeout(func,4000);
	else
		setTimeout("sw(0)",4000);
}

function popupWidnow(file, windowWidth, windowHeight)
{
	var new_window;
	var windowX = Math.round((screen.width - windowWidth)/2);
	var windowY = Math.round((screen.height - windowHeight)/2);
	newWindow	= window.open(file,'okno','toolbar=0,menubar=0,resizable=0,dependent=0,status=0,width='+windowWidth+', height='+windowHeight+', left='+windowX+',top='+windowY);
}
