


function okno(nazwa,szer,wys)
{	 
	if(eval(szer)==0)
		szer = 100;
	if(eval(wys)==0)
		szer = 200;
	window.open(nazwa,'','toolbar=no,scrollbars=yes,resizable=yes,status=no,location=no,directories=no,width='+eval(szer)+',height='+eval(wys)+',menubar=no,top=200,left=200')
}

function fullscreen(plik,nazwa)
{	 
	window.open(plik,nazwa,'fullscreen=yes')
}

$(document).ready(function()
{
	var content="";
	$('.menu').bind("click",function (e)
	{
		var menuItemUrl = $(this).attr("href");
		$.ajax({
				url: menuItemUrl,
				cache: false,
				success: function(html){
//					tb_init('a.thickbox, area.thickbox, input.thickbox');
					$("#scrolledContent").html(html);
					content=html;
//					$('#scrolledContent').jScrollPane({showArrows:false, scrollbarWidth: 38, arrowSize: 1});
				}
		});
		return false;

	});
	$('#scrolledContent').ajaxStart(function(){
		$(this).fadeOut();
	}).ajaxStop(function(){
		$(this).fadeIn();
		tb_init('a.thickbox, area.thickbox, input.thickbox');
		$("#scrolledContent").html(content);
		$('#scrolledContent').jScrollPane({showArrows:false, scrollbarWidth: 38, arrowSize: 1});

	});

	$('#scrolledContent').jScrollPane({showArrows:false, scrollbarWidth: 38, arrowSize: 1});
	$('#dock').Fisheye(
		{
			maxWidth: 29,
			items: 'a',
			itemsText: 'span',
			container: '.dock-container',
			itemWidth: 98,
			proximity: 110,
			halign : 'center'
		}
	);
	//$('a.media').media( { width: 300, height: 20} );

	
});


