// Share News articles via popular websites
function shareDigg() {
    u = location.href;
    t = document.title;
    
    var titleCheck = 'Horse Racing > NEWS ARTICLE > ';
    if(t.length > titleCheck.length)
        if(t.substring(0, titleCheck.length) == titleCheck)
            t = t.substring(titleCheck.length);

    window.open('http://digg.com/submit?url=' + encodeURIComponent(u) + '&title=' + encodeURIComponent(t), 'diggr', 'toolbar=0,status=0,width=800,height=600,scrollbars=1');
}
function shareDelicious() {
    u = location.href;
    t = document.title;

    var titleCheck = 'Horse Racing > NEWS ARTICLE > ';
    if (t.length > titleCheck.length)
        if (t.substring(0, titleCheck.length) == titleCheck)
        t = t.substring(titleCheck.length);

    window.open('https://secure.delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url=' + encodeURIComponent(u)
        + '&amp;title=' + encodeURIComponent(t), 'delicious', 'toolbar=0,status=0,width=700,height=400');
}
function shareFacebook() {
    u = location.href;
    t = document.title;

    var titleCheck = 'Horse Racing > NEWS ARTICLE > ';
    if (t.length > titleCheck.length)
        if (t.substring(0, titleCheck.length) == titleCheck)
        t = t.substring(titleCheck.length);

    window.open('http://www.facebook.com/sharer.php?u=' + encodeURIComponent(u) + '&t=' + encodeURIComponent(t), 'facebook', 'toolbar=0,status=0,width=700,height=400');
}
