$(document).ready(function(){
  $("#who ul li img:not(img[class^=avatar])").click(function(){
    var elm = this;
    
    if($(elm).next("p").is(":visible")) {
      $(elm).next("p").animate({ width: 0 }, 400, function() {
        $(this).hide().width(653);
        
        $("#aboutblog").hide("fast", function() {
          $("#welcome").fadeIn();
        });
      });
      return false;
    }
    
    if ($("#who ul li p:visible").length == 0) {
      $("#aboutblog").show();
      $("#welcome").hide();
      
      $(elm).next("p").width(0).show().animate({ width: 653 }, 400);
      return false;
    }

    $("#who ul li p:visible").hide();
    $(elm).next("p").show();
  });
  
  $("#aboutblog").click(function() {
    $("#who ul li p:visible").prev("img").trigger("click");
  });
});