function banner_slide() {
  
  var img = [];
  var now = 0;
  $.each($('#banner_slider img'), function(i) {
    if(i >= 1) {
      $(this).css({'left': '-200px'});
    }
    $(this).css({'position': 'absolute'});
    img.push(this);
  });
  if(img) {
    setTimeout(function(){ banner_move(img, now) }, 5000);
  }
}



function banner_move(img, now) {

  var next = now + 1;
  if(img.length - 1 == now) {
    next = 0;
  }
  
  $(img[now]).animate({
    left: '200px',
  }, 2000, function() {
    $(img[now]).css({'left': '-200px'});
  });
  $(img[next]).animate({
    left: '0',
  }, 2000, function() {
    
  });
  
  setTimeout(function(){ banner_move(img, next) }, 5000);
}
