var topx = 88;
var banner_count =0;
var margin_b = 0;
$(document).ready(function(){
	var n_b = $('.slider_banner img').length;
	var bottom_b = ((n_b-2)*88)+'px';		
	var down_b = ((n_b-1)*88)+'px';
	$('.slider_banner img').each(function(){
										if(banner_count==n_b-1)
											banner_count=-1;
				$(this).css('position','absolute').css('top',(banner_count*topx));
				banner_count++;
			});
	$('a.banner_up').click(function(){
		$('.slider_banner img:not(:animated)').animate({'top':'-=88px'},500, function(){
					$('.slider_banner img').each(function(){
						if($(this).css('top')==-176+'px')
						$(this).css('top',bottom_b);
					});
				});
		return false;
	});
	$('a.banner_down').click(function(){
		$('.slider_banner img:not(:animated)').animate({'top':'+=88px'},500, function(){
					$('.slider_banner img').each(function(){
						if($(this).css('top')==down_b)
						$(this).css('top','-88px');	
					});
				});	
		return false;
	});
});
