var current_cat=6;

$(document).ready(function(){
  
  $("#newslink-0").css('font-weight','bold');
  
	$("#categoryposts-3").hide();
	$("#categoryposts-4").hide();
	$("#categoryposts-5").hide();
	
	$("a#newslink-0").click(function () {
		    $("#categoryposts-"+current_cat).fadeOut("600",function(){
         current_cat = 6;
         $("#categoryposts-"+current_cat).fadeIn("600");
        });
        
        $("#newslink-0").css('font-weight','bold');
        $("#newslink-1").css('font-weight','normal');
        $("#newslink-2").css('font-weight','normal');
        $("#newslink-3").css('font-weight','normal');
        
      	return true;
    });

	$("a#newslink-1").click(function () {
		    $("#categoryposts-"+current_cat).fadeOut("600",function(){
         current_cat = 3;
         $("#categoryposts-"+current_cat).fadeIn("600");
        });
        
        $("#newslink-0").css('font-weight','normal');
        $("#newslink-1").css('font-weight','bold');
        $("#newslink-2").css('font-weight','normal');
        $("#newslink-3").css('font-weight','normal');
        
      	return true;
    });
	
	$("a#newslink-2").click(function () {
		    $("#categoryposts-"+current_cat).fadeOut("600",function(){
         current_cat = 4;
         $("#categoryposts-"+current_cat).fadeIn("600");
        });
        
        $("#newslink-0").css('font-weight','normal');
        $("#newslink-1").css('font-weight','normal');
        $("#newslink-2").css('font-weight','bold');
        $("#newslink-3").css('font-weight','normal');
                
      	return true;
    });
	
	$("a#newslink-3").click(function () {
		    $("#categoryposts-"+current_cat).fadeOut("600",function(){
         current_cat = 5;
         $("#categoryposts-"+current_cat).fadeIn("600");
        });	
        
        $("#newslink-0").css('font-weight','normal');
        $("#newslink-1").css('font-weight','normal');
        $("#newslink-2").css('font-weight','normal');
        $("#newslink-3").css('font-weight','bold');        
        	
      	return true;
    });
	
  });
