function shareIt(id, lang, movieId, youtubeId)
{
	var t = "Samsung Omnia - Everything in one touch";
	var vu = "http://www.youtube.com/watch?v=" + youtubeId;
	var c;
	var u;
	
	if(lang == "en")
	u = "http://support-sena.samsung.com/omnia/theroom/?vid=" + movieId;
	else
	u = "http://www.samsung.com/" + lang +"/current/campaign/omnia/site/index.html?vid=" + movieId;

	switch(id)
	{
		case "facebook":
			w = 620
			h = 440
			url = "http://www.facebook.com/sharer.php?u=" + encodeURIComponent(u) + "&t=" + encodeURIComponent(t) 
			break;
		
		case "myspace":
			c='<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/' + youtubeId + '&hl=en&rel=0"></param><embed src="http://www.youtube.com/v/' + youtubeId +'&hl=en&rel=0" type="application/x-shockwave-flash" width="425" height="355"></embed></object>'

			w = 1024
			h = 650
			url = "http://www.myspace.com/Modules/PostTo/Pages/?t=" + encodeURIComponent(t) + "&c=" + encodeURIComponent(c) + "&u=" + encodeURIComponent(vu) +"&l=1"
			break;
			
		case "live":
			c='<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/' + youtubeId + '&hl=en&rel=0"></param><embed src="http://www.youtube.com/v/' + youtubeId +'&hl=en&rel=0" type="application/x-shockwave-flash" width="425" height="355"></embed></object>'
			
			w = 1024
			h = 650
			url = "http://spaces.live.com/BlogIt.aspx?Title=" + encodeURIComponent(t) + "&SourceURL=" + encodeURIComponent(u) + "&description=" + encodeURIComponent(c)
			break;
			
		case "google":
			w = 1024
			h = 650
			url = "http://www.google.com/bookmarks/mark?op=add&bkmk=" + encodeURIComponent(u) + "&t=" + encodeURIComponent(t)
			break;
			
		case "del":
			w = 1024
			h = 650
			url = "http://del.icio.us/post?v=4&noui&jump=close&url=" + encodeURIComponent(u) + "&title=" + encodeURIComponent(t)
			break;
			
		case "digg":
			w = 1024
			h = 650
			url = "http://digg.com/submit?url=" + encodeURIComponent(u) + "&title=" + encodeURIComponent(t) + "&bodytext=&media=video&topic=gadgets"
			break;
			
		case "stumble":
			w = 1024
			h = 650
			
			url = "http://www.stumbleupon.com/submit?url=" + encodeURIComponent(u) + "&title=" + encodeURIComponent(t) 
			break;
	
	}
	openPopup(url, "shareWindow", h, w, true)
}

function openPopup(url,name,height,width,opt_show_scrollbars){
	var scrollbar_param=opt_show_scrollbars?",scrollbars=1":"";
	var newwindow=window.open(url,name,'height='+height+',width='+width+scrollbar_param);
	if(newwindow&&!newwindow.opener){newwindow.opener=window;}
	if(window.focus){newwindow.focus()}
	return false;
}