$(function(event) {
    
    if ($('div#bloglink').length) {
        $.ajax({
            url: '/side.html',
            cache: false,
            success: function(html){
                $("#bloglink").html(html);
            }
        });    
    }
    
    if ($('body#index.top').length) {
        $('#menuBox a').mouseover(oppOver);
    }
});

function oppOver(event) {
    var op = 10;
    var elem = $(event.target);
    var timeId = setInterval(function() {
        elem.css({opacity: op / 100});
        op += 10;
        if (op > 100) clearInterval(timeId);
    }, 15);
}
