



function initBus()
{
	// rozklady - opcje popupa
	$('a.jsRozklad').fancybox({
 		'width'			:	850,
// 		'height'		:	800,
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	false
		
	});
}


// kalendarz ;)
function initKalendarz()
{
	$naviWrapp = $('#navi-miesiac');
	
	// ukrywamy wszystkie miesiace, poza pierwszym
	$naviWrapp
		.find('a')
			.click(
				function()
				{
					$naviWrapp.find('li.active').removeClass('active');
					$(this).parents('li').addClass('active');
					
					var idCurrent = $(this).attr('id');
					var $divCurrent = $('div.miesiac-'+idCurrent);
					$('div.jsMiesiacContainer:visible').fadeOut(
						500,
						function()
						{
							$divCurrent.fadeIn(500);	
						}
					);
					return false;
				}
			)
			.each(
				function(i)
				{
					var idCurrent = $(this).attr('id');
					var $divCurrent = $('div.miesiac-'+idCurrent);
					
					$divCurrent.addClass('jsMiesiacContainer');
					if(i > 0)
					{
						$divCurrent.hide();
					}
				}
			);
}



$(document).ready(
	function()
	{
		initBus();
		initKalendarz();
	}
);



