/* 
Url Parameters are required, titles are optional since page titles are grabbed by default
More services can be added (using in combination with sharingServices.xml) and they will receive url and title parameters from Flash.
*/

function shareFacebook(url, title) {
	u = url;
	t = title==undefined? document.title: title;
	window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'FBsharer','toolbar=1,status=1,width=626,height=436');
	return false;
		
}
	
function shareTwitter(url, title) {
	u = url;
	t = title==undefined? document.title: title;
	window.open('http://twitter.com/home?status='+'Check%20this%20video%20out%20--'+t+'--'+ u,'TWsharer','toolbar=1,status=1,width=778,height=354');
}
	
function shareMySpace(url, title){
	u = url;
	t = title==undefined? document.title: title;
	window.open('http://www.myspace.com/Modules/PostTo/Pages/?t='+t+'&u='+ u, 'MSsharer','toolbar=1,status=1,width=825,height=726');
}

function shareOrkut(url, title){
	window.open('http://www.orkut.com/FavoriteVideos.aspx?u='+url, 'OrkutSharer','toolbar=1,status=1,width=1024,height=650');
}

function shareLiveSpaces(url, title){
	u = url;
	t = title==undefined? document.title: title;
	window.open('http://spaces.live.com/BlogIt.aspx?Title='+t+'&SourceURL='+u+'&description=','LiveSpacesSharer','toolbar=1,status=1,width=690,height=491');
}	
