


function shareFaceBook(u,t)
{
  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 shareSmartFaceBook(t)
{
  url = (document.location.toString());
  //alert(url)
  window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(url)+'&t='+encodeURIComponent(t),'sharer', 'toolbar=0, status=0, width=626, height=436'); 
	return false;
}
function shareFaceBookTrack(title,trk)
{
	u = document.location.toString();
	uTemp = u.split('#');
	//alert(u)
	//alert(uTemp)
	url = uTemp[0]+'?trk='+trk+'&song='+title+'#'+uTemp[1]
	//alert(url);
	//return false;
	t = 'Ascolta "'+title+'"';
  window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(url)+'&t='+encodeURIComponent(t),'sharer', 'toolbar=0, status=0, width=626, height=436');
	return false;
}
function shareMySpaceTrack(title,trk)
{
	u = document.location.toString()+'?trk='+trk+'&song='+title;
	t = 'Ascolta "'+title+'"';
	window.open('http://www.myspace.com/Modules/PostTo/Pages/?u='+encodeURIComponent(u),'ptm','height=450,width=440');
	return false;
}
function shareMySpace()
{
	window.open('http://www.myspace.com/Modules/PostTo/Pages/?u='+encodeURIComponent(document.location.toString()),'ptm','height=450,width=440');
	return false;
}


