4 function activate(tag) {
7 $("#b-author").removeClass('active');
11 $("#b-user").removeClass('active');
15 $("#b-inter").removeClass('active');
17 if ($("#b-" + tag).hasClass('active')) {
18 $(".p-" + tag).hide();
19 $("#b-" + tag).removeClass('active');
21 $(".p-" + tag).show();
22 $("#b-" + tag).addClass('active');
26 $("#b-author").click(function() {activate('author')});
27 $("#b-user").click(function() {activate('user')});
28 $("#b-inter").click(function() {activate('inter')});