function deliciousJSON(d) {
    var c = '';
    if ( d[0] && d[0].total_posts ) {
        c = d[0].total_posts;
    }
    var t = document.getElementById('delicious_count');
    if ( c ) {
        t.style.backgroundColor = 'rgb(85, 146, 233)';
        t.innerHTML = c;
    }
    else {
        t.style.backgroundColor = '';
        t.style.padding = 0;
        t.innerHTML = c;
    }
}
function reqDelicious(u) {
    document.write('<script type="text/javascript" src="http://feeds.delicious.com/v2/json/urlinfo/blogbadge?url='+u+'&amp;callback=deliciousJSON"></script>');
}