$(document).ready(function(){   
       
    var current_panel = 1;   
       
    var animation_duration = 1500;//スライド時の動きの速さ   
       
    $.timer(6000, function (timer) {   
        //スライド至るまでの動きの速さ   
        switch(current_panel){   
            case 1:   
                $("#slideshow").stop().animate({left: "-245px", top: "0px"}, {easing: 'easeOutBack', duration: animation_duration});//@左に何px 上に何px 移動するか指定   
                current_panel = 2;   
            break;   
            case 2:   
                $("#slideshow").stop().animate({left: "-490px", top: "0px"}, {easing: 'easeOutBack', duration: animation_duration});//A左に何px 上に何px 移動するか指定   
                current_panel = 3;   
            break;   
            case 3:   
                $("#slideshow").stop().animate({left: "-735px", top: "0px"}, {easing: 'easeOutBack', duration: animation_duration});//B左に何px 上に何px 移動するか指定   
                current_panel = 4;   
            break;   
            case 4:   
                $("#slideshow").stop().animate({left: "-980px", top: "0px"}, {easing: 'easeOutBack', duration: animation_duration});//C左に何px 上に何px 移動するか指定   
                current_panel = 5;   
            break;     
            case 5:   
                $("#slideshow").stop().animate({left: "-1225px", top: "0px"}, {easing: 'easeOutBack', duration: animation_duration});//C左に何px 上に何px 移動するか指定   
                current_panel = 6;   
            break;     
            case 6:   
                $("#slideshow").stop().animate({left: "0px", top: "0px"}, {easing: 'easeOutBack', duration: animation_duration});//C左に何px 上に何px 移動するか指定   
                current_panel = 1;   
            break;     
            timer.reset(12000);   
        }   
    });   
       
});  

