// Facebook

function facebook(title)
{
	var url = location.href;
	
	window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(url)+'&t='+encodeURIComponent(title),'sharer','toolbar=0,status=0,width=626,height=436');
	
	return false;
}


// Delicious.com

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


// MySpace

function myspace(title, description)
{
	if(description == undefined) description = "";
	var url = location.href;
	var targetUrl = 'http://www.myspace.com/index.cfm?fuseaction=postto&' + 't=' + encodeURIComponent(title)
    + '&c=' + encodeURIComponent(description) + '&u=' + encodeURIComponent(url) + '&l=3';
	
    window.open(targetUrl, 'myspace', 'toolbar=0,status=0,width=626,height=436');
	
	return false;
}


// Digg

function digg(title, description)
{
	if(description == undefined) description = "";
	var url = location.href;
	var targetUrl = "http://digg.com/submit?url=" + encodeURIComponent(url) + "&title=" + encodeURIComponent(title) + "&bodytext=" + encodeURIComponent(description) + "&media=news&topic=music";
	
	window.open(targetUrl, 'digg', 'toolbar=0,status=0,width=960,height=636,scrollbars=1');
	
	return false;
}
