var _c = _h = 0;
$(document).ready(function () {
    $('#bannerBtn .index_adv_btn').mouseover(function(){
        var i = $(this).attr('alt') - 1 ;
        clearInterval(_h);
        _c = i;
        change(i);
    })
    $("#bannerPic .pic").hover(function(){
        clearInterval(_h)
    }, function(){
        play()
    });
    play();
})
function play()
{
    _h = setInterval("auto()", 5000);

}
function change(i)
{
    $("#bannerPic .pic").hide().eq(i).show();
}
function auto()
{
    _c = _c > 1 ? 0 : _c + 1;
    change(_c);
}
        
