function showshare1() {
    $("shareLinks").style.visibility = "";
    showtimer = setTimeout("hideshare()",5000);
}
function showshare2() {
    $("shareLinks").style.visibility = "";
    clearTimeout(showtimer);
}
function hideshare() {
    $("shareLinks").style.visibility = "hidden";
}
window.onload = function() {
    document.body.onclick = function() {
        if ($("shareLinks").style.visibility != "hidden") {
            hideshare();
        }
    }
} 

//Social Media links javascript
function dg_click() {
                u=location.href;
                t=document.title;
                window.open('http://digg.com/submit?url='+encodeURIComponent(u)+'&title='+encodeURIComponent(t)+'&bodytext='+encodeURIComponent(t)+'&media=news&topic=tech_news','sharer','toolbar=0,status=0,scrollbars=1,width=800,height=600');
                return false;
}
function ms_click() {
                u=location.href;
                t=document.title;
                window.open('http://www.myspace.com/Modules/PostTo/Pages/?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t)+'&c=','sharer','toolbar=0,status=0,scrollbars=1,width=800,height=600');
                return false;
}
function fb_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,scrollbars=1,width=800,height=600');
                return false;
}
function dl_click() {
                u=location.href;
                t=document.title;
                window.open('http://delicious.com/post?url='+encodeURIComponent(u)+'&title='+encodeURIComponent(t),'sharer','toolbar=0,status=0,scrollbars=1,width=800,height=600');
                return false;
}
function tw_click() {
                u=location.href;
                t=document.title;
                window.open('http://twitter.com/home?status='+encodeURIComponent(t)+'%20'+encodeURIComponent(u),'sharer','toolbar=0,status=0,scrollbars=1,width=800,height=600');
                return false;
}
function su_click() {
                u=location.href;
                t=document.title;
                window.open('http://www.stumbleupon.com/submit?url='+encodeURIComponent(u)+'&title='+encodeURIComponent(t),'sharer','toolbar=0,status=0,scrollbars=1,width=800,height=600');
                return false;
} 
