//ceobiz /////////////////////////////////////////////////////////////////////////////////////////////
/***********************************************************************
* 1. 함수명 : goYozmDaum(link,prefix,parameter)      *
* 2. 용  도 : 요즘 SNS 서비스와 연동작업을 제어한다.     *
************************************************************************/
function goYozmDaum(link,prefix,parameter) 
{
 var href = "http://yozm.daum.net/api/popup/prePost?link=" + encodeURIComponent(link) + "&prefix=" + encodeURIComponent(prefix) + "&parameter=" + encodeURIComponent(parameter);
 var popup = window.open(href, 'yozmSend', 'width=466, height=356');
 if ( popup ) {
 popup.focus();
 }
}

/***********************************************************************
* 1. 함수명 : sendTwitter(title,url)         *
* 2. 용  도 : 트위터 SNS 서비스와 연동작업을 제어한다.    *
************************************************************************/
function sendTwitter(title,url) 
{
 //var popup = window.open("http://twitter.com/home?status=" + encodeURIComponent(title) + " " + encodeURIComponent(url), 'twitter', '');
 var popup = window.open(" http://twitter.com/share?text=" + encodeURIComponent(title) + "&url=" + encodeURIComponent(url), 'twitter', '');	//ceobiz_20110523
 if ( popup ) {
 popup.focus();
 }
}

/***********************************************************************
* 1. 함수명 : sendMe2Day(title,url,tag)        *
* 2. 용  도 : 미투데이 SNS 서비스와 연동작업을 제어한다.    *
************************************************************************/
function sendMe2Day(title,url,tag) 
{
 title = "\""+title+"\":"+url;
 var popup = window.open("http://me2day.net/posts/new?new_post[body]=" + encodeURIComponent(title) + "&new_post[tags]=" + encodeURIComponent(tag), 'me2Day', '');
 if ( popup ) {
 popup.focus();
 }
}

/***********************************************************************
* 1. 함수명 : sendFaceBook(title,url)         *
* 2. 용  도 : 페이스북 SNS 서비스와 연동작업을 제어한다.    *
************************************************************************/
function sendFaceBook(title,url) 
{
 var popup = window.open("http://www.facebook.com/sharer.php?u=" + url + "&t=" + encodeURIComponent(title), 'facebook', 'width=600px,height=420px');
 if ( popup ) {
 popup.focus();
 }
}

/***********************************************************************
* 1. 함수명 : sendCyWorld(title,url,thumbnail,summary,wirter)    *
* 2. 용  도 : 싸이월드 SNS 서비스와 연동작업을 제어한다.    *
************************************************************************/
function sendCyWorld(title,url,thumbnail,summary,wirter) 
{
	//var popup = window.open("http://csp.cyworld.com/bi/bi_recommend_pop.php?url="+encodeURIComponent(url)+"&thumbnail="+encodeURIComponent(thumbnail)+"&writer="+encodeURIComponent(wirter)+"&title="+encodeURIComponent(title)+"&summary="+encodeURIComponent(summary),"clog","width=400px,height=364px")
	var popup = window.open("http://csp.cyworld.com/bi/bi_recommend_pop.php?url="+encodeURIComponent(url)+"&thumbnail="+encodeURIComponent(thumbnail)+"&writer="+encodeURIComponent(wirter),"clog","width=400px,height=364px")
 if ( popup ) {
 popup.focus();
 }
}

/************************************************************************
* 1. 함수명 : goCyWorld(code)           *
* 2. 용  도 : 싸이월드 서비스와 연동작업을 제어한다.     *
************************************************************************/
function goCyWorld(code) 
{
 var href = "http://api.cyworld.com/openscrap/post/v1/?xu=http://domain.com/cyworldApi.asp?code=" + code +"&sid=s0000000";
 var a = window.open(href, 'cyworld', 'width=450,height=410');
 if ( popup ) {
	popup.focus();
 }
}

