(function($) {
	$.fn.goSlider = function(params) {

		// merge default and user parameters
		params = $.extend({minlength: 0, maxlength: 99999}, params);

		// traverse all nodes
		this.each(function() {
			var $t = $(this);
			var $list = $(this).find('.pics_list');
			var $pic = $(this).find('.content_pic');

			$list.find('a').click(function(e){
				target = $(this).attr('href');
				big_pic = $pic.find('img');
				
				if (big_pic.attr('src') == target) 
				    return false;
				    
				big_pic.load(function() {
					$pic.html($(this).fadeIn(1500));
				}).attr("src", target);
				
				return false;
			});
				
			var default_top = '265px';
			$list.css({top: '360px'});
				
			$t.mouseenter(function(event) 
			{
				$list
					.show()
					.animate({top: default_top}, 600, 'easeInOutBack');
			})
			.mouseleave(function(event) 
			{
				$list
					.animate({top: '360px'}, 400, 'easeInOutBack');
			});
		});

		return this;
	};

})(jQuery);