//sns 연동 관련 함수
function sns(type, msg, url, tag)
{
	switch (type)
	{
		case "Twitter": sns_url = "http://twitter.com/share?text=" + encodeURIComponent(msg) + ":" + encodeURIComponent(url);
		break;
		case "Me2Day": sns_url = "http://me2day.net/posts/new?new_post[body]=\"" + encodeURIComponent(msg) + "\":" + encodeURIComponent(url) + "&new_post[tags]=" + encodeURIComponent(tag);
		break;
		case "FaceBook": sns_url = "http://www.facebook.com/sharer.php?u=" + encodeURIComponent(url) + "&t=" + encodeURIComponent(msg);
		break;
		case "YozmDaum": sns_url = "http://yozm.daum.net/api/popup/post?sourceid=&prefix=" + encodeURIComponent(msg) + "&link=" + encodeURIComponent(url) + "&parameter=" + encodeURIComponent(tag);
		break;
	}
	var href = sns_url;
	var a = window.open(href, 'sns', '');
	if ( a ) 
	{
		a.focus();
	}

}


