port = {
    event:function(type){
        box = $('#portRound');
        buffer = type == 'up' ? parseInt($('#jsBuffer').text())-1 : parseInt($('#jsBuffer').text())+1;
        if($(box).find('div').eq(buffer).html() == null || buffer < 1){buffer = type == 'up' ? 4 : 1;}
        $(box).find('div>a').removeClass('active');
        $(box).find('div').eq(buffer).find('a').addClass('active');
        $('#jsBuffer').text(buffer);
    }
}
