$(document).ready(function(){

    $("H3.postTitle A.tumblrEta").each( function() {val = $(this).html(); $(this).html(val.replace("ago", "fa").replace("minutes", "minuti").replace("seconds", "secondi").replace("hours", "ore").replace("hour", "ora").replace("days", "giorni").replace("day", "giorno").replace("months", "mesi").replace("month", "mese"));});
    $(".postMeta").each( function() {val = $(this).html(); $(this).html(val.replace("note", "nota").replace("notas", "note"));});
    
    $("#inner H2").each( function() {val = $(this).html(); $(this).html(""); $(this).append("<span>"+val+"</span>");});
    $("H3.anno").each( function() {val = $(this).html(); $(this).html(""); $(this).append("<span>"+val+"</span>");});
    $("H3.cv").each( function() {val = $(this).html(); $(this).html(""); $(this).append("<span>"+val+"</span>");});
    
});

function getLastPost()
{
    $.ajax({
        type: "GET",
        url: "/inc.blog.php",
        cache: false,
        success: function(html) {
            $("#content_ultimipost").html(html);
        },
        error: function(XMLHttpRequest, ajaxOptions, thrownError) {
        }
    });
}
function getFlickr()
{
    $.ajax({
        type: "GET",
        url: "/inc.flickr.php",
        cache: false,
        success: function(html) {
            $("#content_ultimefoto").html(html);
        },
        error: function(XMLHttpRequest, ajaxOptions, thrownError) {
        }
    });
}
function getTwitter()
{
    $.ajax({
        type: "GET",
        url: "/inc.twitter.php",
        cache: false,
        success: function(html) {
            $("#content_twitter").html(html);
        },
        error: function(XMLHttpRequest, ajaxOptions, thrownError) {
        }
    });
}