
function shareDelicious(url, text) {	
    var delUrl = 'http://del.icio.us/post?partner=addthis&url='+escape(window.location)+'&notes='+escape(text);
    window.open(delUrl, '_blank');
}

function shareDigg(url, text) {
    var digUrl = 'http://digg.com/submit/?partner=addthis&url=' + escape(window.location) + '&title=' + escape(text) + '&bodytext=';
    window.open(digUrl, '_blank');
}

function shareFacebook(url, text) {

    var fbUrl = "http://www.facebook.com/sharer.php?u=" + escape(window.location) + "&t=" + escape(text);
    //alert(fbUrl);
    window.open(fbUrl, "_blank");
}

function shareTwitter(url, text) {
    //var bitUrl = 'http://api.bit.ly/v3/shorten?login=' + bitLyLogin + '&apiKey=' + bitLyApi + '&uri=' + escape(window.location) + '&format=txt';
    postTwitter(window.location);    
}

function postTwitter(shortLink) {
    //alert('posting twitter link:' + shortLink);
    window.open("http://twitter.com/?status=" + escape(shortLink), '_blank');
}

