var num = 0;
var event_flg = true;
function scrollPhotos(count, force){
    if (event_flg || force) {
        num += count;
        if (!$('#topic_img' + num).html()) {
            num = 0;
        }
        $('#topic_img').stop().scrollTo( '#topic_img' + num, 500);
    }
}
$(function(){
    setInterval("scrollPhotos(1)", 7000);
    $('#topic_img').mouseout(function(){ event_flg = true; });
    $('#topic_img').mouseover(function(){ event_flg = false; });
    $('.topic_img_navi').mouseout(function(){ event_flg = true; });
    $('.topic_img_navi').mouseover(function(){ event_flg = false; });
});

