$(function(){
 
	$("#panel").css("left","-320px");
 
	$(".slide_button").toggle(function(){
 
		$("#panel").animate({left: "0px"}, 500 );
		$(this).addClass("zamknij"); 
		return false;
	},
	function(){	
		$("#panel").animate({left: "-320px"}, 500 );
		$(this).removeClass("zamknij"); 
		return false;
	});
 
});

// <![CDATA[
$.easing.custom = function (x, t, b, c, d) {
	var s = 1.70158; 
	if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
	return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
}

$(function() {
 
$(".scroll").scrollable({easing: 'custom', speed: 700, circular: true}).click(function() {
	$(this).data("scrollable").next();		
}).autoscroll({
	interval: 6000		
});
});


$(function() {
 
$(".scroll2").scrollable({ speed: 700, circular: true, vertical : false}).click(function() {
	$(this).data("scrollable").next();		
}).autoscroll({
	interval: 3000		
});
});


// ]]>

 
