

jQuery.easing.easeOutQuart = function (x, t, b, c, d) {
	return -c * ((t=t/d-1)*t*t*t - 1) + b;
};


/*

$(document).ready(function(){
 var width;
	width = (document.body.clientWidth) - 1000;
	if (width>0){
		temp = (width / 2) + 206;
		
	} else {
		temp = 206;
	}
	$('#wiatrak').css("left",temp);
});
*/

$(document).ready(function()
{
//wysuń menu
	
	$('#wiatrak').click(function () {
		$('.menu ul.menu_body').slideToggle('slow');
		$('.izumaPic .slide').slideToggle('slow');
	});
 
});


$(document).ready(function()
{
// obróæ wiatraczek	 
	$('#wiatrak img').rotate({
	bind:
	[
		{"mouseover":function(){$(this).rotateAnimation(15);}},
		{"mousedown":function(){$(this).rotateAnimation(340);}},
		{"mouseout":function(){$(this).rotateAnimation(0);}}
	]
	,preservePosition:true
	});
});


$(document).ready(function(){
	$('#topBarR #minPic').serialScroll({
		event: 'click',
		items:'li',
		step: 1,
		prev:'#topBarR #arrowL a.prev',
		next:'#topBarR #arrowR a.next',
		offset:-50, //when scrolling to photo, stop 230 before reaching it (from the left)
		start:1, //as we are centering it, start at the 2nd
		duration:50,
		force:false,
		stop:true,
		lock:true,
		cycle:false, //don't pull back once you reach the end
		easing:'easeOutQuart', //use this easing equation for a funny effect
		jump: false //click on the images to scroll to them
	});
	
});



