//do karuzeli na stronie startowej
//ten plik musi być dodany przed plikiem "utilt.js"

jQuery.easing['jswing'] = jQuery.easing['swing'];

jQuery.extend( jQuery.easing,
{
def: 'easeOutQuad',
swing: function (x, t, b, c, d) {
//alert(jQuery.easing.default);
return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
},
easeOutElastic: function (x, t, b, c, d) {
var s=1.70158;var p=0;var a=c;
if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
if (a < Math.abs(c)) { a=c; var s=p/4; }
	else var s = p/(2*Math.PI) * Math.asin (c/a);
	return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
	},
	easeOutBack: function (x, t, b, c, d, s) {
	if (s == undefined) s = 1.70158;
	return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
	},
	easeOutBounce: function (x, t, b, c, d) {
	if ((t/=d) < (1/2.75)) {
		     return c*(7.5625*t*t) + b;
		     } else if (t < (2/2.75)) {
				    return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
				    } else if (t < (2.5/2.75)) {
						   return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
						   } else {
						   return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
						   }
						   },
						   
});
