        $(document.body).ready(function () {
            function ResizeDiv() {
                
                if (parseInt( ($("body").width()- 770 ) / 210 ) <= 0) {
                    $("#blocks").css(  {'float': 'none', width: $("body").width()-20 } )
                    $("#block_body").width($("body").width()-20)
                    
                    $("#blocks").css({paddingLeft: ((     ($("body").width()-20) - ( ((parseInt((($("body").width()-20) / 220) ) ) )*220 )    ) / 2 )}, 0 )
                    
                    $(".block").width(200)
                }
                else { 
                        $("#blocks").css(  {'float': 'left', paddingLeft: 0} )
                        $(".block").css( { marginLeft:   15, marginRight: 0  }, 0 )
                        $("div").show()
//                      Primero calculamos cuantos bloques podemos tener...
                        var bloques = parseInt( ($("body").width()- 770 ) / 210);
                        if (bloques > 3) {
                        var bloques = 3
                        }
                        $("#blocks").width(  bloques*222 )
//                      $("#blocks").width(450)
//                      
                        
                        $(".block").width(200)
                        $("#block_body").width($("body").width() - bloques*232 )
                     }
            }
            
            function Init() {
                $("#top div.bar2 a").attr("href", "#");
                $('#top div.bar2 li.option').click(function () {
                    $('.common_block').hide();
                    var id_name = /(\w+)-nekmo/.exec(this.id)[1]
                    $('#block_' + id_name).show();
                    $('#top div.bar2 li.option').removeClass("select");
                    $(this).addClass("select");
                    if ($('#block_' + id_name).html() == "") {
                    $('#block_' + id_name).html("<div class=\"loading3\"><img src=\"/static/snow_nekmo/images/loading.gif\" alt=\"Loading...\" class=\"loading\" /></div>");
                    $('#block_' + id_name).load('/ajax/' + id_name).hide().fadeIn(300);
                    }
                });
               
            }
            
            ResizeDiv()
            Init()
            $(window).resize(function(){
//              $("div").animate({opacity: 0.5},600);
                ResizeDiv()
//              $(this).delay(600,function(){
//                 $("div").animate({opacity: 1.0},600);
//              });
                
                });
                
// IDENTI
$(function() {
    jQuery.getJSON("http://identi.ca/api/statuses/user_timeline.json?id=nekmo&count=1&callback=?", function(json) {
        jJSON["text"] = (function() {
            response = {
                values: [],
                count: 0
            };
            $.each(json,function(i,item) {
                if (item.text != "undefined") {
                    response.count++;
                    response.values[i] = item.text;
                }
            });
            return response;
        })();
        $('#text-identi').text( String( jJSON.getValues("text",null) ) );
    });
});
var jJSON = {
    getValues: function(obj,num) {
        return jJSON[obj]["values"].slice(0,((num == null) ? jJSON[obj]["values"].length : num));
    },
};
// END IDENTI
                
                });
