jQuery.fn.slider = function (options) {
	settings = jQuery.extend({
	 animation_time: 500
	}, options);
	var animation = 0;
	$('.leftpagin').click (function () {
		if (animation == 0) {
			if (((-1*($('.act li:first').css('left')!='auto'?parseInt($('.act li:first').css('left')):0))/$('.act li:first').width())>0) {
				animation = 1;
				$('.act li').animate({'left':'+='+$('.act li:first').width()+'px'},settings.animation_time,function () {
					animation = 0;
				});
			}
		}
		return false;
	});
	$('.rightpagin').click (function () {
		if (animation == 0) {
			if (((-1*($('.act li:first').css('left')!='auto'?parseInt($('.act li:first').css('left')):0))/$('.act li:first').width())<$('.act li').length-1) {
				animation = 1;
				$('.act li').animate({'left':'-='+$('.act li:first').width()+'px'},settings.animation_time,function () {
					animation = 0;
				});
			}
		}
		return false;
	});
};
