/* author: kenny shen
   info: www.northpole.sg */
   
function fbs_click() {
    u=location.href;
    t=document.title;
    window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
    return false;
}
function tweet_click() {
    u=location.href;
    window.open('http://twitter.com/home?status='+encodeURIComponent(u));
}

function reddit_click() {
    u=location.href;
    window.open('http://www.reddit.com/submit?url='+encodeURIComponent(u));
}

function delicious_click() {
    u=location.href;
    window.open('http://www.delicious.com/save?v=5&noui&jump=close&url='+encodeURIComponent(u));
}

$(document).ready(function() {
    // init social
    $('.fb').click(function() {
        fbs_click();
    });
    $('.twitter').click(function() {
        tweet_click();
    });
    $('.reddit').click(function() {
        reddit_click();
    });
    $('.delicious').click(function() {
        delicious_click();
    });
});
