function shareAtFacebook() {
	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 putToMySpace() {
	t = document.title;
	c = '';
	u = location.href;
	l = 5;
	window.open('http://www.myspace.com/Modules/PostTo/Pages/?t=' + encodeURIComponent(t) + '&u=' + encodeURIComponent(u) + '&c=' + c + '&l=' + l, 'MySpace', 'toolbar=0,status=0,width=870,height=720');
	return false;
}

function putToPusha() {
	t = document.title;
	u = location.href;
	window.open('http://www.pusha.se/posta?url=' + encodeURIComponent(u) + '&title=' + encodeURIComponent(t), 'Pusha', 'toolbar=0,status=0,width=870,height=720');
	return false;
}

function putToBloggy() {
	t = document.title;
	u = location.href;
	window.open('http://bloggy.se/home?status=' + encodeURIComponent(t) + '&link=' + encodeURIComponent(u), 'Bloggy', 'toolbar=0,status=0,width=870,height=720');
	return false;
}

function putToDigg() {
	t = document.title;
	u = location.href;
	window.open('http://digg.com/submit?url=' + encodeURIComponent(u) + '&title=' + encodeURIComponent(t) ,'Digg', 'toolbar=no,width=550,height=550');
	return false;
}


function putToStumbleUpon() {
	t = document.title;
	u = location.href;
	window.open('http://www.stumbleupon.com/submit?url=' + encodeURIComponent(u) + '&title=' + encodeURIComponent(t) ,'StumbleUpon', 'toolbar=yes,width=626,height=436');
	return false;
}

function putToDelicious() {
	t = document.title;
	u = location.href;
	window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&url=' + encodeURIComponent(u) + '&amp;title=' + encodeURIComponent(t) ,'delicious', 'toolbar=no,width=550,height=550');
	return false;
}

function putToLinkedIn() {
	t = document.title;
	u = location.href;
	window.open('http://www.linkedin.com/shareArticle?mini=true&url=' + encodeURIComponent(u) + '&title=' + encodeURIComponent(t),'linkedin', 'toolbar=no,width=550,height=550');
	return false;
}

function putToTwitter() {
	t = document.title;
	u = location.href;
	window.open('http://twitter.com/home?status=' + encodeURIComponent(t) + ' - ' + encodeURIComponent(u), 'twitter', 'toolbar=no,width=550,height=550');
	return false;
}

function shareAtSocialNetwork(networkName, url, title) {
    if ( url == null ) {
        url = location.href;
    }

    if ( title == null || title == "" ) {
        title = document.title;
    }

    if ( networkName == "Facebook" ) {
        window.open('http://www.facebook.com/sharer.php?u=' + encodeURIComponent(url) + '&t=' + encodeURIComponent(title), 'Facebook', 'toolbar=0,status=0,width=626,height=436')       
    } else if ( networkName == "MySpace" ) {
        var c = '';
        var l = 5;
        window.open('http://www.myspace.com/Modules/PostTo/Pages/?t=' + encodeURIComponent(title) + '&u=' + encodeURIComponent(url) + '&c=' + c + '&l=' + l, 'MySpace', 'toolbar=0,status=0,width=870,height=720');
    } else if ( networkName == "Pusha" ) {
        window.open('http://www.pusha.se/posta?url=' + encodeURIComponent(url) + '&title=' + encodeURIComponent(title), 'Pusha', 'toolbar=0,status=0,width=870,height=720');
    } else if ( networkName == "Bloggy" ) {
        window.open('http://bloggy.se/home?status=' + encodeURIComponent(title) + '&link=' + encodeURIComponent(url), 'Bloggy', 'toolbar=0,status=0,width=870,height=720');
    } else if ( networkName == "Digg" ) {
        window.open('http://digg.com/submit?url=' + encodeURIComponent(url) + '&title=' + encodeURIComponent(title) ,'Digg', 'toolbar=no,width=550,height=550');
    } else if ( networkName == "StumbleUpon" ) {
        window.open('http://www.stumbleupon.com/submit?url=' + encodeURIComponent(url) + '&title=' + encodeURIComponent(title) ,'StumbleUpon', 'toolbar=yes,width=626,height=436');
    } else if ( networkName == "Delicious" ) {
        window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&url=' + encodeURIComponent(url) + '&amp;title=' + encodeURIComponent(title) ,'Delicious', 'toolbar=no,width=550,height=550');
    } else if ( networkName == "LinkedIn" ) {
        window.open('http://www.linkedin.com/shareArticle?mini=true&url=' + encodeURIComponent(url) + '&title=' + encodeURIComponent(title) ,'LinkedIn', 'toolbar=no,width=550,height=550');
    } else if ( networkName == "Twitter" ) {
        window.open('http://twitter.com/home?status=' + encodeURIComponent(title + ' - ' + url),'Twitter', 'toolbar=no,width=550,height=550');
    }

    return false;
}



