﻿var snw_articleUrl = location.href;
var snw_articleTitle = document.title;

function shareOnFacebook() {
    window.open('http://www.facebook.com/sharer.php?u=' + encodeURIComponent(snw_articleUrl) + '&t=' + encodeURIComponent(snw_articleTitle), 'share_facebook', 'toolbar=0,status=0,width=626,height=436');
    return false;
}

function shareOnTwitter() {
    window.open('http://twitter.com/home?status=' + encodeURIComponent(snw_articleTitle) + ' - ' + encodeURIComponent(snw_articleUrl), 'share_twitter', 'toolbar=0,status=0,width=800,height=436');
    return false;
}

function shareOnNettby() {
    window.open('http://www.nettby.no/user/edit_link.php?name=' + encodeURIComponent(snw_articleTitle) + '&amp;url=' + encodeURIComponent(snw_articleUrl), 'share_nettby', 'scrollbars=no,width=450,height=430');
    return false;
}
