



var g_imgsvr = "http://meta.m0m.co.kr/";
var g_wpsvr = "/waapee/";
var g_wwwsvr = "/";

function chkImgSize(obj) {
		//alert("111");
		//obj.focus();
//this.onreadystatechange		
	var imgwidth, imgheight, objReadyState;
	objReadyState = obj.readyState
	imgwidth	= obj.width;
	imgheight	= obj.height;
	if (imgwidth == 0)
	{
		setTimeout("chkImgSize(document.all.bigTempName)", 10);
		return;
	}
	if (imgwidth>352  )
	{
		//alert(imgwidth);
		obj.width = 352;
		
	}

	if (imgheight>288 )
	{
		
		obj.height = 288;
	}
	//alert( objReadyState );
	//alert(imgwidth);
}



function VODChat_FillingCash(){
	NewWindow('/comm/VODChat_FillingCash.jam','VODChat_FillingCash',450, 500,'scrollbars=no,resizable=no','center');
}

function ev_go(chk){
	if(chk==1){
		location.href="/img_event/evw_060601/main.jam";
	}else if(chk==2){
		//ÅÂ±ØÀü»ç ÀÀ¿ø -> ev_go(2);
		location.href="/img_event/evw_060601/ev_1.jam";
	}else if(chk==3){
		//´©°¡ ³ÖÀ»±î? -> ev_go(3);
		location.href="/img_event/evw_060601/ev_2.jam";
	}else if(chk==4){
		//°øÃ£°í Çö±Ý´ë¹Ú -> ev_go(4); (ÆË¾÷Ã¢ ³ª¸ÓÁö´Â ÆäÀÌÁö ÀÌµ¿)
		//location.href="ev_1.jam";
		NewWindow('/img_event/evw_060601/popup_1.jam','ev_popup111',500, 286,'scrollbars=no,resizable=no','center');
	}else if(chk==5){
		//´çÃ·ÀÚ ¹ßÇ¥ -> ev_go(5);
		location.href="/img_event/evw_060601/ev_5.jam";
	}
}

function photoDel(whereis,photoValue,msubid) {	
	if (msubid !=''){
		if(photoValue==''){
			alert('»èÁ¦ÇÒ Æ÷Åä°¡ ¼±ÅÃµÇÁö ¾Ê¾Ò½À´Ï´Ù.');
		}else{
			hframe.location.href='/comm/photoDel.jam?whereis='+whereis+'&photoValue=' + photoValue;
		}
	}else{
		gogoSign('','');
	}
}

function photostudioSetupChk(msubid) {	
	if (msubid !=''){
		var winname = "chkPhotostudio";
		var url = "/activeX/photostudioSetupChk.jam";
		NewWindow	(url,winname,355, 330,'scrollbars=no,resizable=no','center');
	}else{
		gogoSign('','');
	}
}


function VODChatSetupChk2(msubid, roomOut) {	
	if (msubid !=''){
		var winname = "MULTI_CHAT_SKC";	//±âÁ¸Ã¤ÆÃ Á¾·á À§ÇØ¼­ Ã¤ÆÃÀÇ À©µµ¿ì nameÀ» »ç¿ë
		var url = "/activeX/VODChatSetupChk.jam?roomOut=" + roomOut;
		NewWindow	(url,winname,355, 330,'scrollbars=no,resizable=no','center');
	}else{
		gogoSign('','');
	}
}

function VODChatSetupChk(msubid) {	
	if (msubid !=''){
		chkLoccode('','','WEBVOD');
/*
		var winname = "chkVODChatSetup";
		var url = "/activeX/VODChatSetupChk.jam";
		NewWindow	(url,winname,355, 330,'scrollbars=no,resizable=no','center');
*/
	}else{
		gogoSign('','');
	}
}

function VODChatSetupChk_help(){
	NewWindow('/comm/vod_Activex2_new.htm','',536,600,'scrollbars=yes,resizable=no','center');
}

function docWrite(ID){
	document.write(document.getElementById(ID).value);
}

//ÇöÀçÆäÀÌÁö¿¡¼­ ¸µÅ© Å¬¸¯À¸·Î ´ÙÀ½ÆäÀÌÁö·Î ÀÌµ¿ÇÏÁö ¾Ê°í ·Î±×ÀÎ Ã¼Å© ÇÒ °æ¿ì Ã³¸® ÇÔ¼ö
function chkNowPageLogin(subid,strUrl){
	if(subid ==''){
		location.href="/login.jam?beforeLoginPage=" + UrlEncode(location.href);
	}else{
		//alert(strUrl);
		location.href=strUrl;
	}
}

var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);


function divinit(f){
	var allheight = document.body.scrollHeight //  + parseInt(document.body.clientHeight) ;
	var allwidth = document.body.scrollWidth	 // + parseInt(document.body.clientWidth) ;
	f.style.width=allwidth; 
	f.style.height=allheight ;
}

//·Îµù ÆäÀÌÁö¸¦ º¸ÀÎÈÄ ½ÇÁ¦ Æ÷ÀÌÁö¸¦ onload ¿¡ ³õÀ»¶§ »ç¿ë ÇÑ´Ù, ¸ÞÀÎÀÌ ¼ÀÇÃÀÌ´Ù.
function IF_Load(IName,Src){
	var fname = eval(IName) ;
	fname.location.href = Src ;
}

// ************************** URL ÀÎÄÚµù ****************************
function UrlEncode(url) // ¾ÏÈ£È­µ¥ÀÌÅÍ¸¦ À§ÇÑ ÀÚ¹Ù½ºÅ©¸³Æ® UrlEncode
{
	//jurl = encodeURI(jurl); 
	//url  = url.split("%").join("%25");
	url  = escape(url);
	url  = url.split("&").join("%26");
	url  = url.split("~").join("%7E");
	url  = url.split("#").join("%23");
	url  = url.split("$").join("%24");
	url  = url.split("(").join("%28");
	url  = url.split(")").join("%29");
	url  = url.split("=").join("%3D");
	url  = url.split("+").join("%2B");
	url  = url.split("/").join("%2F");
	url  = url.split("?").join("%3F");
	url  = url.split("/").join("%2F");
	url  = url.split(";").join("%3B");
	url  = url.split("'").join("%27");
	url  = url.split('"').join("%22");
	url  = url.split(",").join("%2C");
	url  = url.split("<").join("%3C");
	url  = url.split(">").join("%3E");
	url  = url.split("|").join("%7C");
	

	//url  = url.split("\r\n").join("%13%10");

	return url;
}

function unUrlEncode(url) // ¾ÏÈ£È­µ¥ÀÌÅÍ¸¦ À§ÇÑ ÀÚ¹Ù½ºÅ©¸³Æ® UrlEncode
{
	//jurl = encodeURI(jurl); 
	//url  = url.split("%").join("%25");
	url  = unescape(url);
	url  = url.split("%26").join("&");
	url  = url.split("%7E").join("~");
	url  = url.split("%23").join("#");
	url  = url.split("%24").join("$");
	url  = url.split("%28").join("(");
	url  = url.split("%29").join(")");
	url  = url.split("%3D").join("=");
	url  = url.split("%2B").join("+");
	url  = url.split("%2F").join("/");
	url  = url.split("%3F").join("?");
	url  = url.split("%2F").join("/");
	url  = url.split("%3B").join(";");
	url  = url.split("%27").join("'");
	url  = url.split('%22').join('"');
	url  = url.split("%2C").join(",");
	url  = url.split("%3C").join("<");
	url  = url.split("%3E").join(">");
	url  = url.split("%7C").join("|");
	

	//url  = url.split("\r\n").join("%13%10");

	return url;
}


//# °ñµåÈ¸¿ø¿©ºÎ ½ÃÀÛ
function popGoldMemberStart(parentpop){
	var winname = "";
	if (getCookie("A") != null){
			var url = "/Goldmem/pop_gold_step0.jam";
			if (parentpop=='Y'){
				window.close();
			}
			NewWindow	(url,winname,550,620,'scrollbars=no,resizable=no','center');
	}else{
			gogoSign('','');
	}
}
//# °ñµåÈ¸¿ø¿©ºÎ ³¡


function radioBoxCheck(frm,len){
var rrvalue = false;
	for(var i = 0;i<len;i++){	
		if (frm.rpoint[i].checked){
			rrvalue = true; break;
		}
	}
	return rrvalue;
}

//ÂÊÁöµî¿¡¼­ ÀüÃ¼¼±ÅÃ ¹öÆ°°ú ¿¬°á
function selectAllCheck(frm,fsname) {
	var fname = eval(frm);
	if(fname.checkAll.value == "N"){
		fname.checkAll.value = "Y"
		checkVal = true;
	}else if(fname.checkAll.value == "Y"){
		fname.checkAll.value = "N"
		checkVal = false;
	}
	for (var i = 0; i < fname.elements.length; i++) {
		if (fname.elements[i].name == fsname) {
			fname.elements[i].checked = checkVal ;
		}
	}
}
//ÂÊÁöµî¿¡¼­ Ã¼Å©¹Ú½º°¡ ¼±ÅÃÀÌ µÇ¾ú´ÂÁö ¾ÈµÇ¾ú´ÂÁö¸¦ È®ÀÎÇÑ´Ù.

function checkboxCheck(frm,fsname){
	    var fname = eval(frm);
		var isCheck = false;
		for (var i = 0; i < fname.elements.length; i++) {
			if (fname.elements[i].name == fsname && fname.elements[i].checked == true) {
				isCheck = true;
				break;
			}
		}

		return isCheck;
}


//·Î±×¾Æ¿ôÃ³¸®
function goLogoutPage(){
	top.main.location.href="/LogOut.jam";
	//top.footer.location.href="/blank.htm";
}
//dropMenu ±¸¼º ½ÃÀÛ
function defaultMenu(id, varIndex, pxX, pxY, mySubid)
{
	if (dropMenu != null && typeof dropMenu != "undefined") {
		var html = preDiv + makeLayer(varIndex,id,'', mySubid) + sufDiv ; 
		dropMenu.innerHTML = html;
		setMenu(id, pxX, pxY);
	}
}

//½ºÅ¸------------------------------------------------------------------



function starTingLetter(ssubid){
	//var winname = "starTingLetter"+getCookie("Z");
	var winname = "";
	if (getCookie("A") != null){
			var url = "/comm/star_SMS_msg1.jam?ysid="+ssubid;
			NewWindow	(url,winname,680,550,'scrollbars=no,resizable=no','center');	
	}else{
			gogoSign('','');
	}
}

function starVisitor(ssubid){
	location.href="/starting/star_bay_BG.jam?subid="+ssubid;
}

function starZzim(ssubid){
	var winname = "starZzim"+getCookie("Z");
	if (getCookie("A") != null){
			hframe.location.replace("/starting/starZZim.jam?subid="+ssubid);
	}else{
			gogoSign('','');
	}
}

function defaultMenuStar(id, mySubid)
{
	var ContentLayer = '<tr><td height="14" style="padding-top:2;cursor:hand;font-size:11px;" onMouseOver="this.style.backgroundColor=\'#E0E0E0\'" ' ;
	ContentLayer +='onMouseOut="this.style.backgroundColor=\'\'" onclick="starTingLetter(\''+id+'\');hideMenu(\'force\');" >ÆÃ·¹ÅÍ &nbsp;</td></tr>' ;
	
	ContentLayer +='<tr><td height="1" background="../img_comm/dot_gray2.gif"></td></tr>'
	ContentLayer +='<tr><td height="14" style="padding-top:2;cursor:hand;font-size:11px;" onMouseOver="this.style.backgroundColor=\'#E0E0E0\'" ' ;
	ContentLayer +='onMouseOut="this.style.backgroundColor=\'\'" onclick="starVisitor(\''+id+'\');hideMenu(\'force\');" >¹æ¸í·Ï &nbsp;</td></tr>' ;
	
	ContentLayer +='<tr><td height="1" background="../img_comm/dot_gray2.gif"></td></tr>'
	ContentLayer +='<tr><td height="14" style="padding-top:2;cursor:hand;font-size:11px;" onMouseOver="this.style.backgroundColor=\'#E0E0E0\'" ' ;
	ContentLayer +='onMouseOut="this.style.backgroundColor=\'\'" onclick="starZzim(\''+id+'\');hideMenu(\'force\');" >½ºÅ¸Âò &nbsp;</td></tr>' ;

	var preDiv = '<table width="58"   border="0" cellpadding="0" cellspacing="1" bgcolor="#ACA899" >'
	 preDiv +='<tr><td align="center" bgcolor="#FFFFFF"><table width="54"  border="0" cellspacing="0" cellpadding="0">'
	 preDiv +='<td align="center" bgcolor="#FFFFFF"><table width="54"  border="0" cellspacing="0" cellpadding="0" style="padding-left:10px">'
	var sufDiv = '</table></td></tr></table>'

	if (dropMenu != null && typeof dropMenu != "undefined") {
		var html = preDiv + ContentLayer + sufDiv ; 
		dropMenu.innerHTML = html;
		//setMenu(id, pxX, pxY);

		var boxWidth = 58,boxHeight=50;
		var boxWidth = (dropMenu.offsetWidth) + 6;
		var xMax = parseInt(document.body.clientWidth) - boxWidth;
		var yMax = parseInt(document.body.clientHeight) - boxHeight;
		
		event.clientX >= xMax ? xPos = xMax : xPos =  event.clientX;
		event.clientY >= yMax ? yPos = yMax : yPos =  event.clientY;

		
		//yPos =  event.clientY;

		var x = xPos + document.body.scrollLeft;
		//var y = yPos + document.body.scrollTop-pxY;	
		var y = yPos + document.body.scrollTop;	

		
		
		dropMenu.style.left = x -1//x + 5;
		dropMenu.style.top = y -1//y - 30;
		dropMenu.style.visibility='visible';	
		dropMenu.focus();
	}
}

//½ºÅ¸------------------------------------------------------------------

function gogoSign(rurl,ryurl){
  if (ryurl ==''){
  	//alert("/Login.jam?beforeLoginPage="+rurl);
	//top.main.document.location.href="/Login.jam?beforeLoginPage="+rurl
	top.main.document.location.href="/Login.jam?beforeLoginPage="+escape(top.main.location.href);
  }else{
  	//alert("/Login.jam?beforeLoginPage="+ryurl);
	top.main.document.location.href="/Login.jam?beforeLoginPage="+escape(ryurl)
  }
}
function TempInputWaitMsg(yid){
        document.msgWait.location="/comm/My_WaitMsg_List.jam?yi="+yid;
}


//ÄíÅ°°ü·Ã
	function setCookie (name, value, expires, path, domain, secure) {
		// cookie string
		var cs = name + "=" + escape(value) + ( (expires) ? "; expires=" + expires.toGMTString() : "") + ( (domain) ? "; domain=" + domain : "") + ( (secure) ? "; secure" : "");
		document.cookie = cs;
	}

	function getDelayDay(day) {
		expires = new Date();
		expires.setTime(expires.getTime() + 24 * 60 * 60 * day * 1000);
		return expires;
	}	
	function getCookie (name) {
	
		// cookie string
		var cs = document.cookie;
		var prefix = name + "=";
		
		// cookie's Start Index of the information of it.
		var cSI = cs.indexOf(prefix);
		if (cSI == -1) {
			return null;
		}
		
		// Find cookie's End Index of the information of the cookie.
		var cEI = cs.indexOf(";", cSI + prefix.length);
		
		// If it din't find the CEI, then set it to the end of the cs
		if (cEI == -1) {
			cEI = cs.length;
		}
		// Decode the value of the cookie's
		return unescape(cs.substring(cSI + prefix.length, cEI));		
	}
	function deleteCookie (name) {
		document.cookie = name + "=";
	}

//ÄíÅ°°ü·Ã ³¡


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

// ¿ìÃø ÀÌº¥Æ® ¹è³Ê
function initRightBanner()
{
	document.all.RightBanner.style.top = document.body.scrollTop + 105; 
	document.all.RightBanner.style.visibility = "visible";
	document.all.RightBanner.style.setExpression("left", "calXRightBanner()", "javascript");
	moveRightBanner();
}
function calXRightBanner()
{
	var edge = (document.body.clientWidth - 835) / 2;
	if( edge < 0 ) edge = 0;
	var x = 835 + 10 + edge;
	return x;
}
function moveRightBanner()
{
	var yBannerPos, yScrollTopPos;
	var yLimitPos;
	var interval;
	var yNewPos;
	var yNewTop;
	var dHeight = 105;

	yScrollTopPos = parseInt(document.body.scrollTop, 10);
	yBannerPos = parseInt(document.all.RightBanner.style.top, 10);
	if (document.body.scrollTop < dHeight) {
		yLimitPos = dHeight;
	}
	else {
		yLimitPos = document.body.scrollTop + 20;
	}

	if (yBannerPos != yLimitPos) {
		yNewPos = Math.ceil(Math.abs(yLimitPos - yBannerPos) / 20);
		
		if (yLimitPos < yBannerPos) {
			yNewPos = -yNewPos;
		}

		yNewTop = parseInt(document.all.RightBanner.style.top, 10) + yNewPos;
		if (yNewTop > document.body.scrollHeight) {
			document.all.RightBanner.style.top = document.body.scrollHeight;
		}
		else {
			document.all.RightBanner.style.top = yNewTop;
		}
	  }
	  
	  setTimeout ("moveRightBanner()", 10);
}
// ¿ìÃø ÀÌº¥Æ® ¹è³Ê ³¡

// popup
function NewWindow(u,n,w,h,f,p,x,y)
	{
		var	ws=window.screen?1:0,
		m=Math,C='center',R='random',M='custom',
		sw=screen.availWidth,
		sh=screen.availHeight,
		T=(p==C&&ws)?(sh-h)/2:(p==R&&ws)?(m.floor(m.random()*(sh-h))):(p==M)?y:100,
		L=(p==C&&ws)?(sw-w)/2:(p==R&&ws)?(m.floor(m.random()*(sw-w))):(p==M)?x:100,
		s='width='+w+',height='+h+',top='+T+',left='+L;s+=(!f||f=='')?'':','+f+',status=yes';win=window.open(u,n,s);if(win.focus)win.focus();//return win;
	}
/*
DropDownMenu Link Start 
*/

//GPSÆÃ ¾ÆÀÌÅÛ Ã¼Å© ¹× GPSº¸¿©ÁÖ±â
function mapKeyShow(ssid,refp,POPUP_Flag){
	hframe.location.href="/FullHouse/chkGPSItem.jam?subid=" + ssid + "&POPUP_Flag=" + POPUP_Flag //+ "&refp=" + refp ;
}
//GPSÆÃ ¾ÆÀÌÅÛ Ã¼Å© ¹× GPSº¸¿©ÁÖ±â
function mapKeyPopup(ssid,refp){
	var winname = "GoProfile"+getCookie("Z");
	var url = "/FullHouse/rFullHouse_gps1.jam?ssid="+ssid+"&refp="+refp;
	NewWindow	(url,winname,495,606,'scrollbars=no,resizable=no','center');
}


//ÂÊÁö ½ºÅ©¸³Æ®(¾ÆÀÌµð°ø°³ ¿É¼Ç) refp = "normal"
function GoMemo(ssubid,msubid){
	//var winname = "GoMemo"+getCookie("Z");
	var winname = "";
	if (msubid !=''){
			var url = "/comm/sms_msg1.jam?sparamname=ONEMemMsg&ysid="+ssubid;
			NewWindow	(url,winname,680,550,'scrollbars=no,resizable=no','center');	
	}else{
			gogoSign('','');
	}
}

//»ýÀÏÃàÇÏ ÂÊÁö 
function GoMemoBirth(ssubid,msubid){
	//var winname = "GoMemo"+getCookie("Z");
	var winname = "";
	if (msubid !=''){
			var url = "/comm/sms_msg1.jam?sparamname=ONEMemMsg&birth=Y&ysid="+ssubid;
			NewWindow	(url,winname,680,550,'scrollbars=no,resizable=no','center');	
	}else{
			gogoSign('','');
	}
}

//ÂÊÁö ½ºÅ©¸³Æ®(¾ÆÀÌµð°ø°³ ¿É¼Ç) refp = "normal"
function GoMemoAllNew(ssubid,msubid){	
	if (msubid !=''){
			var url = "/comm/sms_msg1.jam?sparamname=ONEMemMsg&ysid="+ssubid;
			NewWindow	(url,"",680,550,'scrollbars=no,resizable=no','center');	
	}else{
			gogoSign('','');
	}
}

//Âò ½ºÅ©¸³Æ®(¾ÆÀÌµð°ø°³ ¿É¼Ç) refp = "normal"
function GoZzim(ssubid,msubid){
	var winname = "GoZzim"+getCookie("Z");
	if (msubid !=''){
			var url = "/comm/popUp_Zzim_Add.jam?ssid="+ssubid;
			NewWindow	(url,winname,450,260,'scrollbars=no,resizable=no','center');	
	}else{
			gogoSign('','');
	}
}

//Ãª ½ºÅ©¸³Æ®(¾ÆÀÌµð°ø°³ ¿É¼Ç) refp = "normal"
function GoChat(ssubid,msubid){

//	var winname = "GoChat"+getCookie("Z");
	if (msubid !=''){
		chkLoccode('',ssubid,'roomPrps')
	}else{
			gogoSign('','');
	}
}
//ÇÁ·ÎÇÊ ½ºÅ©¸³Æ®(¾ÆÀÌµð°ø°³ ¿É¼Ç) refp = "normal"
function GoProfile(ssubid,msubid){
	var winname = "GoProfile"+getCookie("Z");
	if (msubid !=''){
			var url = "/FullHouse/rFullHouse_UserProfile.jam?ssid="+ssubid;
			NewWindow	(url,winname,495,606,'scrollbars=no,resizable=no','center');	
	}else{
			gogoSign('','');
			//gogoSign('',location.href);
	}
}


function GoNormalChatSingo(msubid,chatserial){
	var winname = "GoNormalChatSingo"+getCookie("Z");
	if (msubid !=''){
			var url = "/comm/mem_singo.jam?where=chat&subid="+UrlEncode(msubid)+"&serial="+chatserial
			NewWindow	(url,winname,495,606,'scrollbars=no,resizable=no','center');	
	}else{
			gogoSign('','');
			//gogoSign('',location.href);
	}
}




//Æ÷Åä ÇÁ·ÎÇÊ ½ºÅ©¸³Æ®(¾ÆÀÌµð°ø°³ ¿É¼Ç) refp = "normal"
function GoProfilePhoto(ssubid,msubid,refp){
	var winname = "GoProfile"+getCookie("Z");
	if (msubid !=''){
			var url = "/FullHouse/rFullHouse_PAlbum.jam?ssid="+ssubid+"&refp="+refp;
			NewWindow	(url,winname,495,606,'scrollbars=no,resizable=no','center');	
	}else{
			gogoSign('','');
	}
}


//Æ÷Åä ¼öÁ¤ ÇÏ±â
function GoEditPComment(pserial,msubid){
	var winname = "GoEditPComment"+getCookie("Z");
	if (msubid !=''){
			var url = "/comm/popUp_Photo_Comment_Edit.jam?pserial="+pserial;
			NewWindow	(url,winname,450,240,'scrollbars=no,resizable=no','center');	
	}else{
			gogoSign('','');
	}
}

//Æ÷Åä Å×¸¶¿­Àü ÄÚ¸àÆ® ¼öÁ¤ ÇÏ±â
function GoEditThemeComment(pserial,msubid){
	var winname = "GoEditPComment"+getCookie("Z");
	if (msubid !=''){
			var url = "/comm/popUp_PhotoTheme_Comment_Edit.jam?pserial="+pserial;
			NewWindow	(url,winname,450,240,'scrollbars=no,resizable=no','center');	
	}else{
			gogoSign('','');
	}
}

//ÆË¾÷ °øÁö»çÇ× È¤Àº faq º¸±â
function GoViewNotice(num){	
	var winname = "GoViewNotice"+getCookie("Z");
	var url = "/comm/popUp_Customer_Viewer.jam?scode=noti&num="+num;
	NewWindow	(url,winname,610,572,'scrollbars=no,resizable=no','center');	
}

//ÆË¾÷ °øÁö»çÇ× È¤Àº faq º¸±â
function GoViewFaq(num,substrings){	
	var winname = "GoViewNotice"+getCookie("Z");
	var url = "/comm/popUp_Customer_Viewer.jam?scode=faq&num="+num+"&substrings="+substrings;
	NewWindow	(url,winname,610,572,'scrollbars=no,resizable=no','center');	
}


//ºñ¹ÐÆ÷Åä ÇÁ·ÎÇÊ ½ºÅ©¸³Æ®(¾ÆÀÌµð°ø°³ ¿É¼Ç) refp = "normal"
function GoSecretPhoto(ssubid,msubid,refp){
	var winname = "GoProfile"+getCookie("Z");
	if (msubid !=''){
			var url = "/FullHouse/rFullHouse_PAlbum.jam?ssid="+ssubid+"&refp="+refp+"&selmode=c";
			NewWindow	(url,winname,495,606,'scrollbars=no,resizable=no','center');	
	}else{
			gogoSign('','');
	}
}

//Æ÷Åä ÃßÃµ Á¡¼ö ½ºÄÚ¾î ½ºÅ©¸³Æ®(¾ÆÀÌµð°ø°³ ¿É¼Ç) refp = "normal"
//°¢°¢ ÇØ´ç ¼­ºê¾ÆÀÌµð,³» ¼­ºê¾ÆÀÌ´Ù,°ø°³¿©ºÎ,
function GoScorePhoto(ssubid,msubid,refp,p,se,selmode){
	var winname = "GoProfile"+getCookie("Z");
	var sselmodes = ""
	if (selmode == 1){       //code = 1 ¿¡ ÇØ´çÇÏ´Â Æ÷Åä º¸±â
		sselmodes = "n";
	}else if(selmode == 2){//code = 2 ¿¡ ÇØ´çÇÏ´Â Æ÷Åä º¸±â
		sselmodes = "b";
	}else if(selmode == 3){//code = 3 ¿¡ ÇØ´çÇÏ´Â Æ÷Åä º¸±â
		sselmodes = "c";		
	}else{
		sselmodes = "n";		
	}

	if (msubid !=''){
			var url = "/FullHouse/rFullHouse_PAlbum_View.jam?ssid="+ssubid+"&refp="+refp+"&p="+p+"&se="+se+"&selmode="+sselmodes;		
			NewWindow	(url,winname,495,606,'scrollbars=no,resizable=no','center');	
	}else{
			gogoSign('','');
	}
}

//¹æ¸í·Ï º¸±â
function GoNormalReply(ssubid,msubid,refp){
	var winname = "GoNormalReply"+getCookie("Z");
	if (msubid !=''){
			var url = "/FullHouse/rFullHouse_nComment.jam?ssid="+ssubid+"&refp="+refp;
			NewWindow	(url,winname,495,606,'scrollbars=no,resizable=no','center');	
	}else{
			gogoSign('','');
	}
}

//ÀÏ±âÀå º¸±â
function GoDiaryProfile(ssubid,msubid,refp){
	var winname = "GoDiaryProfile"+getCookie("Z");
	if (msubid !=''){
			var url = "/FullHouse/rFullHouse_Diary.jam?ssid="+ssubid+"&mode=all&refp="+refp;
			NewWindow	(url,winname,495,606,'scrollbars=no,resizable=no','center');	
	}else{
			gogoSign('','');
	}
}

//À½¼ºÇÁ·ÎÇÊ ½ºÅ©¸³Æ®(¾ÆÀÌµð°ø°³ ¿É¼Ç) refp = "normal"
function GoVoiceProfile(ssubid,msubid){
	alert("À½¼ºÇÁ·ÎÇÊ µè±â ¼­ºñ½º´Â Á¡°ËÁß¿¡ ÀÖ½À´Ï´Ù.");
	/*
	var winname = "GoVoiceProfile"+getCookie("Z");
	if (msubid !=''){
			var url = "/Comm/popUp_LoveCall_Voice_Hear.jam?sid="+ssubid;
			NewWindow	(url,winname,430, 300,'scrollbars=no,resizable=no','center');	
	}else{
			gogoSign('','');
	}
	*/
}

//·¯ºêÄÝ Á¡¼ö ¸Å±â±â
function GoVoiceRank(ssubid,msubid){
	var winname = "GoVoiceProfile"+getCookie("Z");
	if (msubid !=''){
			var url = "/Comm/popUp_LoveCall_Voice_Rank.jam?sid="+ssubid;
			NewWindow	(url,winname,430,300,'scrollbars=no,resizable=no','center');	
	}else{
			gogoSign('','');
	}
}

//ÂÊÁö °ü·Ã ÆË¾÷¿¡¼­ÀÇ ÂÊÁö ÀÏ±â ÇÔ¼ö
function GoMsgRead(msubid,serial,imgis,sendORreceive){
	var smsInclude = false;
	
	if (imgis=='0'){ //±âº»ÂÊÁö
		smsInclude = true;
	}else if(imgis=='1'){//»ýÀÏ ÀÌ¹ÌÁö
		smsInclude = true;
	}else if(imgis=='2'){//Æ÷ÅäÂÊÁö
		smsInclude = true;
	}else if(imgis=='3'){//1:1ÅëÈ­¿äÃ»
		smsInclude = true;		
	}else if(imgis=='4'){//¸ÖÆ¼ÂÊÁö
		smsInclude = true;	
	}else if(imgis=='5'){//¾Æ¹ÙÅ¸¼±¹°
		smsInclude = true;	
	}else if(imgis=='6'){//ºñ¹Ð»çÁø°ø°³¿äÃ» ¸Þ¼¼Áö
		smsInclude = true;			
	}else if(imgis=='7'){//sms Àü¼Û ¾ÈÇÏ°í ¹«Á¶°Ç ÂÊÁö db ¿¡¸¸ ÀÎ¼­Æ®
		smsInclude = false;		
	}

	if (smsInclude){
		GoMultiMsgRead(msubid,serial,sendORreceive,'');
	}else{
		GoNormalMsgRead(msubid,serial,sendORreceive,'');
	}

}

//¿À·£ÁöÂ´ Çö±Ý ±³È¯ ¸µÅ©
function GoMoneyForOrangeZam(oneReserved,twoReserved){
	//2010.07.21 Çö±Ý½ÅÃ» ÆË¾÷À¸·Î º¯°æ
	NewWindow('/popup/jam_change1.jam','popcash',440, 415,'scrollbars=no,resizable=no','center');
//	location.href='/jamshop/jamshop_change.jam';
}

//ÂÊÁö °ü·Ã ÆË¾÷¿¡¼­ÀÇ ÂÊÁö ÀÏ±â ÇÔ¼ö
function GoBkMsgRead(msubid,serial,imgis,sendORreceive,Bk){
	var smsInclude = false;
	if (imgis=='0'){ //±âº»ÂÊÁö
		smsInclude = true;
	}else if(imgis=='1'){//»ýÀÏ ÀÌ¹ÌÁö
		smsInclude = true;
	}else if(imgis=='2'){//Æ÷ÅäÂÊÁö
		smsInclude = true;
	}else if(imgis=='3'){//1:1ÅëÈ­¿äÃ»
		smsInclude = true;		
	}else if(imgis=='4'){//¸ÖÆ¼ÂÊÁö
		smsInclude = true;	
	}else if(imgis=='5'){//¾Æ¹ÙÅ¸¼±¹°
		smsInclude = true;	
	}else if(imgis=='6'){//ºñ¹Ð»çÁø°ø°³¿äÃ» ¸Þ¼¼Áö
		smsInclude = true;			
	}else if(imgis=='7'){//sms Àü¼Û ¾ÈÇÏ°í ¹«Á¶°Ç ÂÊÁö db ¿¡¸¸ ÀÎ¼­Æ®
		smsInclude = false;		
	}
	
	if (smsInclude){
		GoMultiMsgRead(msubid,serial,sendORreceive,Bk);
	}else{
		GoNormalMsgRead(msubid,serial,sendORreceive,Bk);
	}

}


//¸ÖÆ¼(imgis=1ÀÌ»ó) ¹ÞÀº ÂÊÁö ÆË¾÷Ã¢
function GoMultiMsgRead(msubid,serial,sendORreceive,Bk){
	var winname = "GoMsgRead"+getCookie("Z");
	if (msubid !=''){			
			var url = "/Comm/popUp_Msg_Multi_Read.jam?se="+serial+"&sor="+sendORreceive+"&callLocation="+Bk;
			NewWindow	(url,winname,242,571,'scrollbars=no,resizable=no','center');	
	}else{
			gogoSign('','');
	}
}

//ÀÏ¹Ý ¹ÞÀº ÂÊÁö ÆË¾÷Ã¢
function GoNormalMsgRead(msubid,serial,sendORreceive,Bk){
	var winname = "GoMsgRead"+getCookie("Z");
	if (msubid !=''){
			var url = "/Comm/popUp_Msg_Basic_Read.jam?se="+serial+"&sor="+sendORreceive+"&callLocation="+Bk;
			NewWindow	(url,winname,460,369,'scrollbars=no,resizable=no','center');	
	}else{
			gogoSign('','');
	}
}

//ÀÚ±âÀÚ½ÅÀÇ ¹ø°³ÆÃ µî·Ï ÆäÀÌÁö
function GoSpeedMeetingRegister(msubid,scode){
	var winname = "GoSpeedMeeting"+getCookie("Z");
	if (msubid !=''){
			var url = "/Comm/popUp_Speed_Meet_Reg.jam?msid="+msubid+"&mscode="+scode;
			NewWindow	(url,winname,460,369,'scrollbars=no,resizable=no','center');	
	}else{
			gogoSign('','');
	}
}

//ÀÚ±âÀÚ½ÅÀÇ ¹ø°³ÆÃ µî·Ï ÆäÀÌÁö
function GoSpeedMeetingHope(msubid,sid,scode){
	var winname = "GoSpeedMeeting"+getCookie("Z");
	if (msubid !=''){
			var url = "/Comm/popUp_Speed_Meet_Hope.jam?msid="+msubid+'&sid='+sid+"&mscode="+scode;
			NewWindow	(url,winname,460,369,'scrollbars=no,resizable=no','center');	
	}else{
			gogoSign('','');
	}
}




//ÀÏ¹Ý ¹ÞÀº ÂÊÁö ÆË¾÷Ã¢
function GoLoveCallProfileView(msubid,ssubid){
	var winname = "GoLoveCallProfileView"+getCookie("Z");
	if (msubid !=''){
			var url = "/Comm/popUp_LoveCall_Profile.jam?sid="+ssubid;
			NewWindow	(url,winname,460,369,'scrollbars=no,resizable=no','center');
	}else{
			gogoSign('','');
	}
}

//¾ÆÀÌÅÛ ±¸ÀÔ ½Ì±Û ÆË¾÷Ã¢
function GoItemSingle(msubid,serial){
	var winname = "GoItem"+getCookie("Z");
	if (msubid !=''){
			var url = "/popup/item_buy1.jam?se="+serial;			//20090908 ½Å±Ô ¾ÆÀÌÅÛ±¸¸Å ÆË¾÷ [Á¤ÈïÁø]
			NewWindow	(url,winname,440,376,'scrollbars=no,resizable=no','center');
/*			var url = "/comm/popUp_Item_Buy_Single.jam?se="+serial;
			NewWindow	(url,winname,460,550,'scrollbars=no,resizable=no','center');
*/
	}else{
			gogoSign('','');
	}
}

//¾ÆÀÌÅÛ ¼±¹° ´Ù´ë´Ù ÆË¾÷ [2009.09.10 ÈïÁø]
function GoItemPresent(msubid,serial){
	var winname = "GoItem"+getCookie("Z");
	if (msubid !=''){
			var url = "/popup/item_present.jam?se="+serial;
			NewWindow	(url,winname,440,514,'scrollbars=no,resizable=no','center');
	}else{
			gogoSign('','');
	}
}

//°øÅë ¾ÆÀÌÅÛ Ã¼Å© ¹× popup¶ç¿ì±â [2009.09.23 ÈïÁø]
//str : db°ª¿¡ ÀÖ´Â ´ë¸Þ´º ¾ÆÀÌÅÛ¸í
function NewItemChk(str){
	hframe.location.href="/popup/NewItemChk.jam?se="+str;
}

//¾ÆÀÌÅÛ ±¸ÀÔ ¼ÂÆ® ÆË¾÷Ã¢
function GoItemSet(msubid,serial){
	var winname = "GoItem"+getCookie("Z");
	if (msubid !=''){
			var url = "/comm/popUp_Item_Buy_Set.jam?se="+serial;			
			NewWindow	(url,winname,460,369,'scrollbars=no,resizable=no','center');
	}else{
			gogoSign('','');
	}
}

//1:1 ºñ¹ÐÆùÆÃ ¿äÃ»
function GoOnenOneSPhting(msubid,ssubid,refp){
	//alert("ARS ¼­¹ö Á¡°ËÁßÀÔ´Ï´Ù.");	
	///*
	var winname = "GoPhoneTing"+getCookie("Z");
	if (msubid !=''){
			var url = "/comm/popUp_OnenOne_S_Phting.jam?sid="+ssubid;
			NewWindow	(url,winname,460,369,'scrollbars=no,resizable=no','center');
	}else{
			gogoSign('','');
	}
	//*/
}

//1:1 ºñ¹ÐÆùÆÃ ¹ÞÀº ¸Þ¼¼Áö º¸±â(½ÅÃ»ÀÚ ÇÁ·ÎÇÊº¸±â)
function GoOnenOneProfileOpen(msubid,ssubid){
	///*
	var winname = "GoOnenOneSPhting"+getCookie("Z");
	if (msubid !=''){
			var url = "/comm/popUp_OnenOne_Profile.jam?sid="+ssubid;
			NewWindow	(url,winname,460,369,'scrollbars=no,resizable=no','center');
	}else{
			gogoSign('','');
	}
	//*/
	//alert("ARS ¼­¹ö Á¡°ËÁßÀÔ´Ï´Ù.");	
}
//½ÇÁ¦ ÆùÆÃ ARS DB ¿¡ ÀÎ¼­Æ® ÇÑ´Ù.
function GoPhoneTing(msubid,ssubid){
	///*
	var winname = "GoPhoneTing"+getCookie("Z");
	if (msubid !=''){
			var url = "/comm/popUp_LoveCall_Connection.jam?sid="+ssubid;
			NewWindow	(url,winname,460,369,'scrollbars=no,resizable=no','center');
	}else{
			gogoSign('','');
	}
	//*/
	//alert("ARS ¼­¹ö Á¡°ËÁßÀÔ´Ï´Ù.");	
}

//ÆùÆÃ ÇÁ·ÎÇÊº¸°í ÅëÈ­ÇÏ±â ¹öÆ° ´­·µÀ» °æ¿ì ¿¬°á ÀüÀ±ÅÂ 060803
function GoLoveCallProfileAndConnect(version,subid,ysid){
	//subid ´Â ºñ¾îµµ »ó°ü¾ø½À´Ï´Ù.
	//start version = 1
	if(parseInt(version) != 1){
			alert("GoLoveCallProfileAndConnect current version code is " + version);
			return false
	}else{
				var winname = "GoLoveCallProfileAndConnect"+getCookie("Z");
				if (subid !=''){
						if (ysid !=''){
							var url = "/comm/lopg.jam?q="+ysid;
							NewWindow	(url,winname,460,670,'scrollbars=no,resizable=no','center');
						}else{
							alert("»ó´ë¹æ Á¤º¸°¡ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù.");
							return false
						}
				}else{
						gogoSign('','');
				}
	}
}

//À½¼ºÇÁ·ÎÇÊµî·Ï ARS
function GoVoiceRecord(msubid,ssubid){
	/*
	var winname = "GoVoiceRecord"+getCookie("Z");
	if (msubid !=''){
			var url = "/comm/popUp_Voice_Record.jam?sid="+ssubid;
			NewWindow	(url,winname,460,369,'scrollbars=no,resizable=no','center');
	}else{
			gogoSign('','');
	}
	*/
	alert("À½¼ºÇÁ·ÎÇÊ µî·Ï ¼­ºñ½º´Â Á¡°ËÁß¿¡ ÀÖ½À´Ï´Ù");	
}

//ÀÏ¹ÝÂÊÁö º¸³»±â ÀÌ°Ç sms ¾ÈÇÑ´Ù.
function GoBasicMemoWrite(msubid,ssubid){
	//var winname = "GoBasicMemoWrite"+getCookie("Z");
	var winname = "";
	if (msubid !=''){
			var url = "/comm/popUp_Msg_Basic_Write.jam?sid="+ssubid;
			NewWindow	(url,winname,460,320,'scrollbars=no,resizable=no','center');
	}else{
			gogoSign('','');
	}
}



//ºñ¹ÐÆ÷Åä ¿äÃ» ÆË¾÷
function GoSecretPhotoReset(msubid,ssubid,refp){
	var winname = "GoSecretPhotoReset"+getCookie("Z");
	if (msubid !=''){
			var url = "/comm/popUp_Secret_Photo_Request.jam?sid="+ssubid+'&refp='+refp;
			NewWindow	(url,winname,460,369,'scrollbars=no,resizable=no','center');
	}else{
			gogoSign('','');
	}
}

//ºñ¹ÐÆ÷Åä ½ÂÀÎ ÆË¾÷
function GoSecretPhotoAccept(msubid,serial){
	var winname = "GoSecretPhotoReset"+getCookie("Z");
	if (msubid !=''){
			var url = "/comm/popUp_Secret_Photo_Accept.jam?serial="+serial;
			NewWindow	(url,winname,460,369,'scrollbars=no,resizable=no','center');
	}else{
			gogoSign('','');
	}
}

//ÀëÇÇÀÇ ÇÏ³ªÀÇ µ¡±Û º¸±â
function GoJamReply(msubid,subid,refp,serial,pnum,selmode){
	var qselmode
	if (selmode==1){
		qselmode = 'n';
	}else if(selmode==2){
		qselmode ='b';
	}else if(selmode==3){
		qselmode ='c';
	}

	var winname = "GoJamReply"+getCookie("Z");
	if (msubid !=''){
			//var url = "/comm/popUp_Secret_Photo_Accept.jam?serial="+serial;
			var url = "/FullHouse/rFullHouse_PAlbum_View.jam?ssid="+subid+"&refp="+refp+"&p="+pnum+"&se="+serial+"&selmode="+qselmode
			///FullHouse/rFullHouse_PAlbum_View.jam?ssid=&refp=&p=&se=20129&selmode=n
			NewWindow	(url,winname,460,369,'scrollbars=no,resizable=no','center');
	}else{
			gogoSign('','');
	}
}


//ÆË¾÷ »çÀÌÁî Á¶Á¤ÇÒ¶§ ¾´´Ù.
function pwResize(w,h){
		window.resizeTo(w, h);
}

//ÆË¾÷ÀÌ Á¾·áµÉ¶§ ºÎ¸ðÃ¢ Æ÷Ä¿½º
function popClose(){
			if( opener != null ) opener.focus();
			window.close();
}

//function goWaaPee(userid){
//	if( top.footer != null )	//ÇöÀç ÆäÀÌÁö°¡ ¿Í±Û »çÀÌÆ®¸é
//	{
//		top.footer.window.open(g_wpsvr + 'wp.asp?targetURL=wp_main.asp&userid='+userid, '_blank','resizable=yes,width=1010,height=689, status=yes, scrollbars=yes');
//	}
//	else	//ÇöÀç ÆäÀÌÁö°¡ ¿Í±Û »çÀÌÆ®°¡ ¾Æ´Ï¸é
//	{
//		window.open(g_wpsvr + 'wp.asp?targetURL=wp_main.asp&userid='+userid, '_blank','resizable=yes,width=1010,height=689, status=yes, scrollbars=yes');
//	}
//}

//function goPhotoAlbum(userid){
//	window.open(g_wpsvr + 'wp.asp?targetURL=wp_al_list.asp&si='+userid, '_blank','resizable=yes,width=1010,height=689, status=yes, scrollbars=yes');
//}
//function sendMemo(userid){
//	window.open(g_wwwsvr + 'comm/popup_msg_MMS.asp?si='+userid, '_blank','width=810,height=630');
//}
//function AddZZim(userid){
//	window.open(g_wwwsvr + 'comm/popup_zzim.asp?si='+userid, '_blank','width=400,height=452');
//}

//function AddZZim(ssubid){
//	window.open(g_wwwsvr + 'comm/popUp_Zzim_Add.jam?ssid='+ssubid, '_blank','width=400,height=200');
//}
//function goProfile(userid){
//	window.open(g_wwwsvr + 'comm/popup_profile.asp?si='+userid, '_blank','width=442,height=572');
//}
//function goPhonePoAlbum(userid){
//	window.open(g_wwwsvr + 'comm/popup_photo.asp?si='+userid, '_blank','width=470,height=335,scrollbars=yes');
//}
/*
DropDownMenu Link Stop 
*/


/*
DropDownMenu START 
*/
var preDiv = '<table width="90" height="98" border="0" cellpadding="0" cellspacing="1" bgcolor="#ACA899" onMouseOver="this.style.visibility=\'visible\'" onMouseOut="this.style.visibility=\'hidden\'">'
	 preDiv +='<tr><td align="center" bgcolor="#FFFFFF"><table width="86"  border="0" cellspacing="0" cellpadding="0">'
	 preDiv +='<td align="center" bgcolor="#FFFFFF"><table width="86"  border="0" cellspacing="0" cellpadding="0" style="padding-left:10px">'
var sufDiv = '</table></td></tr></table>'

/* old
var preDiv = '<table width="68" height="100" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" >'
	 preDiv +='<tr><td align="center" bgcolor="#FFFFFF"><table width="60"  border="0" cellspacing="0" cellpadding="0">'
	 preDiv +='<td align="center" bgcolor="#FFFFFF"><table width="60"  border="0" cellspacing="0" cellpadding="0">'
var sufDiv = '</table></td></tr></table>'
*/
/*

var preDiv = '	<table width="90" border="0" cellspacing="0" cellpadding="0"> ' ;
	preDiv +=  '		<tr><td width="87" height="6"><img src="' + g_imgsvr + 'img_common/DropN_1.gif" width="87" height="8"></td><td width="3" height="6"><img src="' + g_imgsvr + 'img_common/blank.gif" width="1" height="1"></td></tr>' ;
	preDiv +=  '   <tr><td background="' + g_imgsvr + 'img_common/DropN_2.gif" align="center">' ;
	preDiv +=  '				<table width="84" border="0" cellspacing="0" cellpadding="0" >  ' ;
var sufDiv = ' </table></td><td width="3"  valign="top" background="' + g_imgsvr + 'img_common/Drop_5_1.gif" style="filter: Gray alpha(Opacity=60)"><img src="' + g_imgsvr + 'img_common/Drop_5.gif" width="3" height="3"></td></tr>  ' ;
	sufDiv +=  ' <tr><td height="4"><img src="' + g_imgsvr + 'img_common/DropN_3.gif" width="87" height="4"></td><td width="3" height="4" background="' + g_imgsvr + 'img_common/Drop_5_1.gif"><img src="' + g_imgsvr + 'img_common/Drop_5_1.gif" width="3" height="3"></td></tr>' ;
	sufDiv +=  ' <tr><td height="3" colspan="2" style="filter: Gray alpha(Opacity=60)"><img src="' + g_imgsvr + 'img_common/DropN_4.gif" width="90" height="3"></td></tr></table>' ;


/*	
var preDiv = '	<table width="149" border="0" cellspacing="0" cellpadding="0"> ' ;
	preDiv +=  '		<tr><td width="146" height="6"><img src="' + g_imgsvr + 'img_common/Drop_1.gif" width="146" height="6"></td><td width="3" height="6"><img src="' + g_imgsvr + 'img_common/blank.gif" width="1" height="1"></td></tr>' ;
	preDiv +=  '   <tr><td height="30" background="' + g_imgsvr + 'img_common/Drop_1_1.gif" style="padding-left:3px"><span id="userid"></span></td><td width="3" rowspan="2" valign="top" background="' + g_imgsvr + 'img_common/Drop_5_1.gif" style="filter: Gray alpha(Opacity=60)"><img src="'+ g_imgsvr +'img_common/Drop_5.gif" width="3" height="3"></td></tr>  ' ;
	preDiv +=  '   <tr><td align="center" background="' + g_imgsvr + 'img_common/Drop_2.gif">' ;
	preDiv +=  '				<table width="139" border="0" cellspacing="0" cellpadding="0" >  ' ;
var sufDiv = ' </table></td></tr>  ' ;
	sufDiv +=  ' <tr><td height="4"><img src="' + g_imgsvr + 'img_common/Drop_3.gif" width="146" height="4"></td><td width="3" height="4" style="filter: Gray alpha(Opacity=60)" background="' + g_imgsvr + 'img_common/Drop_5_1.gif"><img src="' + g_imgsvr + 'img_common/Drop_5_1.gif" width="3" height="3"></td></tr>' ;
	sufDiv +=  ' <tr><td height="3" colspan="2" style="filter: Gray alpha(Opacity=60)"><img src="' + g_imgsvr + 'img_common/Drop_4.gif" width="149" height="3"></td></tr></table>' ;
*/
  

var dropMenu = null;

var menulist=new Array();
/*¿ÍÇÇ¾ø´Â È¸¿ø¸Þ´º*/
menulist[0]=new Array();
menulist[0][0]=new Array('ÇÁ·ÎÇÊ','GoProfile');
menulist[0][1]=new Array('','');
menulist[0][2]=new Array('·¯ºêÆù·¡ÅÍ','GoMemo');
menulist[0][3]=new Array('1:1ºñ¹ÐÆùÆÃ','GoOnenOneSPhting');
menulist[0][4]=new Array('ÂÊÁö','GoBasicMemoWrite');
menulist[0][5]=new Array('±ÃÇÕ','GOHarmony');

menulist[0][6]=new Array('','');
//menulist[0][7]=new Array('Ä£±¸ ¸Î±â','FriendPrps');
menulist[0][7]=new Array('Âò','GoZzim');


/*¿ÍÇÇÀÖ´Â È¸¿ø¸Þ´º*/
//	menulist[1]=new Array();
//	menulist[1][0]=new Array('ÇÁ·ÎÇÊ º¸±â','GoProfile');
//	menulist[1][1]=new Array('','');
//	menulist[1][2]=new Array('Æ÷Åä¾Ù¹ü º¸±â','GoProfilePhoto');
//	menulist[1][3]=new Array('ÆùÆ÷¾Ù¹ü º¸±â','GoProfilePhoto');
//	menulist[1][4]=new Array('¿ÍÇÇ¹æ¹®','goWaaPee');
//	menulist[1][5]=new Array('','');
//	menulist[1][6]=new Array('ÂÊÁöº¸³»±â','GoMemo');
//	menulist[1][7]=new Array('Âò ÇÏ±â','GoZzim');

function initializeMenu(){
	var initHTML = '<div id="dropMenu" style="position:absolute; left:346px; top:214px; width:68px;  z-index:2; visibility: hidden ;"></div>' ;
	document.body.insertAdjacentHTML("afterBegin", initHTML);
	dropMenu = document.getElementById('dropMenu');

}

function makeLayer(idx,id,status,mySubid)
{

	var temp ='';
	for (i=0; i<menulist[idx].length; i++)
	{
		if(menulist[idx][i].length==3) {	//Ã¤ÆÃÂ÷´ÜÃ¼Å©
			temp += '<tr><td style="padding-top:2;cursor:hand;font-size:11px;"   onMouseOver="this.style.backgroundColor=\'#E0E0E0\'" ' ;
			temp +=	'onMouseOut="this.style.backgroundColor=\'\'" onclick="' + (status? 'cancelKick':'kickUser') + '(\''+ id +'\');" ><a href="#">' + (status? 'Â÷´ÜÇØÁ¦':'Ã¤ÆÃÂ÷´Ü') + '</a></td></tr>' ;
		}
		else if(menulist[idx][i][0]=='')temp += '<tr><td height="1" background="../img_comm/dot_gray2.gif"></td></tr>'
			//temp += '<tr><td height="1"></td></tr><tr><td align="center"><img src="' + g_imgsvr + 'img_common/DropN_dot.gif" width="77" height="1"></td></tr><tr><td height="2"></td></tr>' ;
		else
		{
			temp += '<tr><td height="14" style="padding-top:2;cursor:hand;font-size:11px;" onMouseOver="this.style.backgroundColor=\'#E0E0E0\'" ' ;
			
			if(menulist[idx][i][1] == "GoProfile" || menulist[idx][i][1] == "GoMemo" || menulist[idx][i][1] == "GoZzim" ){	
			   temp +=	'onMouseOut="this.style.backgroundColor=\'\'" onclick="' + menulist[idx][i][1] + '(\''+id+'\',\''+mySubid+'\');" >' + menulist[idx][i][0] + '</td></tr>' ;

			}else{
			   temp +=	'onMouseOut="this.style.backgroundColor=\'\'" onclick="' + menulist[idx][i][1] + '(\''+mySubid+'\',\''+id+'\');" >' + menulist[idx][i][0] + '</td></tr>' ;
			}
		}
	}
	return temp ;
	
}

function hideMenu(force)
{
	if(typeof force != "undefined" && force != "") {
		dropMenu.style.visibility = 'hidden';
		return;
	}
	if( dropMenu.componentFromPoint( event.x, event.y ) != '' )
		dropMenu.style.visibility = 'hidden';
}


function setMenu(id, pxX, pxY) { 	
	/*
	var IE = document.all?true:false; 

	var tempX = 0; 
	var tempY = 0; 

	if (IE) { 
		tempX = event.clientX + document.body.scrollLeft; 
		tempY = event.clientY + document.body.scrollTop; 
	} 
	else 
	{  
		tempX = e.pageX; 
		tempY = e.pageY; 
	}   
	if (tempX < 0){tempX = 0;} 
	if (tempY < 0){tempY = 0;}   

	
	
	dropMenu.style.left = tempX - pxX; 
	dropMenu.style.top = tempY - pxY; 
	dropMenu.style.visibility='visible';	
	dropMenu.focus();
	*/
	var boxWidth = 98,boxHeight=100;
	var boxWidth = (dropMenu.offsetWidth) + 6;
	var xMax = parseInt(document.body.clientWidth) - boxWidth;
	var yMax = parseInt(document.body.clientHeight) - boxHeight;
	
	event.clientX >= xMax ? xPos = xMax : xPos =  event.clientX;
	event.clientY >= yMax ? yPos = yMax : yPos =  event.clientY;

	
	//yPos =  event.clientY;

	var x = xPos + document.body.scrollLeft;
	if (pxY != 0){
		var y = yPos + document.body.scrollTop-pxY;	
	}else{
		var y = yPos + document.body.scrollTop;	
	}

	
	
	dropMenu.style.left = x -1//x + 5;
	dropMenu.style.top = y -1//y - 30;
	dropMenu.style.visibility='visible';	
	dropMenu.focus();
}




attachEvent("onload", initializeMenu);

function preventKey() {
	if	(	(event.ctrlKey == true && (event.keyCode == 78 || event.keyCode == 82)) ||
			(event.keyCode >= 112 && event.keyCode <= 123) || 
			event.keyCode == 13 || 
			event.keyCode == 93															)	{
		event.keyCode = 0;
		event.cancelBubble = true;
		event.returnValue = false;
		
	}
}

function preventMouse()
{
	//if(event.button==2 || event.button==3) alert('¿À¸¥ÂÊ ¸¶¿ì½º´Â »ç¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù!');
	if(event.button==2 || event.button==3) return;
}

//document.onkeydown		= preventKey;
//document.onmousedown	= preventMouse;
//document.oncontextmenu	= function anonymouse() { return false; };

/*
DropDownMenu END
*/

//·Ñ¿À¹ö ÀÌ¹ÌÁö µå¸²À§¹ö ÀÚ¹Ù½ºÅ©¸³ [ÀÌ»ó°æ Ãß°¡ 2005³â4¿ù18ÀÏ]
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//ÅøÆÁ
var get_tooltip_flg = false;
function get_tooltip() {
	if (!get_tooltip_flg) return;
	var boxWidth = 64,boxHeight=20;
	var boxWidth = (divToolTip.offsetWidth) + 6;
	//if(login_userid == 'sinachuri') alert(boxWidth)
	var xMax = parseInt(document.body.clientWidth) - boxWidth;
	event.clientX >= xMax ? xPos = xMax : xPos =  event.clientX;
	//alert((event.clientX - xMax) / boxWidth)
	
	if(((event.clientX - xMax) / boxWidth) > 0.3)
		tblToolTip.rows[2].cells[1].align = 'center';
	else
		tblToolTip.rows[2].cells[1].align = 'left';
	
	//xPos =  event.clientX;
	yPos =  event.clientY;
	var x = xPos + document.body.scrollLeft;
	var y = yPos + document.body.scrollTop;	
	
	divToolTip.style.left = x + 5;
	divToolTip.style.top = y - 30;
	
}

function showToolTip(str) {
	if(typeof(divToolTip) != 'object') return;
	

	str = str.replace(" ","");

	var strToolTip = '<table id=tblToolTip border="0" cellspacing="0" cellpadding="0">'
	+ '  <tr> '
	+ '    <td height="3" width="3"><img src="/img_comm/alt_box01.gif" width="3" height="3"></td>'
	+ '    <td background="/img_comm/alt_box05.gif" height="3"></td>'
	+ '    <td height="3" width="3"><img src="/img_comm/alt_box02.gif" width="3" height="3"></td>'
	+ '  </tr>'
	+ '  <tr bgcolor=#ffffff>'
	+ '    <td background="/img_comm/alt_box06.gif" width="3"></td>'
	+ '    <td class=Basic0 valign="bottom" style="padding:2 3 0 3"><nobr>'+ str +'</nobr></td>'
	+ '    <td background="/img_comm/alt_box07.gif" width="3"></td>'
	+ '  </tr>'
	+ '  <tr> '
	+ '    <td width="3" height="8"><img src="/img_comm/alt_box03.gif" width="3" height="8"></td>'
	+ '    <td background="/img_comm/alt_box08.gif" style="padding:0 2 0 2"><img src="/img_comm/alt_box09.gif" width="11" height="8"></td>'
	+ '    <td width="3" height="8"><img src="/img_comm/alt_box04.gif" width="3" height="8"></td>'
	+ '  </tr>'
	+ '</table>';
	
	divToolTip.innerHTML = strToolTip;
	get_tooltip_flg = true;
	get_tooltip();
	document.onmousemove = get_tooltip;
	divToolTip.style.display = "inline";
}
function hideToolTip() {
	get_tooltip_flg = false;
	document.onmousemove = "";
	divToolTip.style.display = "none";
	//spnToolTipStr.innerText = '';
}

//¸¶Äû
var tID       = null;
var getObj	= null;
var mq = new classMQ();

function classMQ() 
{
} 

classMQ.prototype.set = function( obj )
{
getObj	= obj;
this.BLANK     = "                 ";
this.CONTENT = getObj.value;
this.SCROLL    = this.BLANK + this.CONTENT + this.BLANK + this.CONTENT;
}

classMQ.prototype.scroll = function( ) 
{
if (!getObj)	return;	
			
var value = getObj.value;
getObj.value = value.substring(1);
if ("" == getObj.value.length)
{
	getObj.value = this.SCROLL;
}			
}

classMQ.prototype.init = function(  ) 
{
if (!getObj)	return;
getObj.value = this.CONTENT;
}


document.write ('<div id="divToolTip" style="display:none;position:absolute;width:0;height:0;top:0;z-index:22" class="opacity70"></div>');

//Blink ÅÂ±× ÄÁÆ®·Ñ blink ÅÂ±×¸¦ »ç¿ëÇÏ¸é Text°¡ ±ôºý~±ôºý~ ÀÌ»ó°æ 05.05.09 Ãß°¡
function doBlink() {
var blink = document.all.tags("BLINK")
for (var i=0; i < blink.length; i++)
blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : ""
}

function startBlink() {
if (document.all)
setInterval("doBlink()",500)
}
//window.onload = startBlink;
attachEvent("onload", startBlink);

function chkLoccode(serial,subid,howToFlag){
	var urlStr = "/chat/chat_chkLoccode.jam?serial=" + serial + "&subid=" + subid + "&howToFlag=" + howToFlag;
	//alert(urlStr);

	document.hframe.location.replace(urlStr) ;
	//document.location.replace(urlStr) ;
}


// ÀÌ¹ÌÁö¸¦ ¿øº»»çÀÌÁî·Î »õÃ¢ ¶ç¿öÁÖ±â~~ ¹Ú³²¿µ 05.12.14Ãß°¡.===============
function showPicture(src) { 
		var imgObj = new Image(); 
				imgObj.src = src; 
		var wopt = "scrollbars=no,status=no,resizable=no"; 
				wopt += ",width=" + imgObj.width; 
				wopt += ",height=" + imgObj.height; 
		var wbody = "<head><title>¿øº»»çÁøÀÌ¹ÌÁö</title>"; 
				wbody += "<script language='javascript'>"; 
				wbody += "function finalResize(){"; 
				wbody += " var oBody=document.body;"; 
				wbody += " var oImg=document.images[0];"; 
				wbody += " var xdiff=oImg.width-oBody.clientWidth;"; 
				wbody += " var ydiff=oImg.height-oBody.clientHeight;"; 
				wbody += " window.resizeBy(xdiff,ydiff);"; 
				wbody += "}"; 
				wbody += "</"+"script>"; 
				wbody += "</head>"; 
				wbody += "<body onLoad='finalResize()' style='margin:0'>"; 
				wbody += "<a href='javascript:window.close()'><img src='" + src + "' border=0></a>"; 
				wbody += "</body>"; 
			winResult = window.open("about:blank","",wopt); 
			winResult.document.open("text/html", "replace"); 
			winResult.document.write(wbody); 
			winResult.document.close(); 
		return; 
} 


//2009.10.14 MessageWindowStartÃ¢ ´©±¸´Ï? Ã¢ [Á¤ÈïÁø]
function MessageWindow()
{
	var pop;
	var width = 238, height = 118;
	var _height = 0;
	var timer, hideTimer;
	var msgArea;
	var hideTimeout = 5000;

	function init()
	{
		pop = window.createPopup();
		pop.document.body.style.cssText = "margin:0 0 0 0;padding:0 0 0 0;overflow:hidden;border:outset 1px;";

		var tbl = pop.document.createElement("table");
		tbl.width = "100%";
		tbl.height = height;
		tbl.cellSpacing = tbl.cellPadding = 0;
		var row = tbl.insertRow(0);
		var cell = row.insertCell(0);
		cell.height = "30";
		cell.align = "right";
		var closer = pop.document.createElement("span");
//		closer.style.cssText = "cursor:pointer;margin:0 5 0 0;font-size:9pt;font-family:verdana;";
		closer.innerHTML = "<table width='236' height='30' border='0' cellpadding='0' cellspacing='0'><tr><td height='30' background='/popup/images/who_top.gif'><table width='227' border='0' cellspacing='0' cellpadding='0'><tr><td width='121' style='padding-left:4;'><div align='left'><img src='/popup/images/who_t.gif' width='90' height='30'></div></td><td width='106'><div align='right'><img src='/popup/images/bt_whoclose.gif' name='Image3' width='14' height='13' border='0' style='cursor:hand'></div></td></tr></table></td></tr></table>";
//		closer.onmouseover = function(){this.style.color = 'red';};
//		closer.onmouseout = function(){this.style.color = '';};
		closer.onclick = function(){this.style.color = '';clear();pop.hide();};
		cell.appendChild(closer);
		row = tbl.insertRow(1);
		cell = row.insertCell(0);
		cell.align = "center";
		cell.style.cssText = "cursor:pointer;";
/*
		cell.onmouseover = function()
		{
			this.style.cssText = "text-decoration:underline;color:blue;font-size:9pt;cursor:pointer;"
		}
		cell.onmouseout = function()
		{
			this.style.cssText = "text-decoration:none;color:blue;font-size:9pt;cursor:pointer;"
		}
*/
		msgArea = cell;
		pop.document.body.appendChild(tbl);
	}

	function clear()
	{
		window.clearTimeout(hideTimer);
		window.clearInterval(timer);
	}

	function setMessage(msg, timeout)
	{
		_height = 0;
		hideTimeout = timeout;
		msgArea.innerHTML = msg;
		var _this = this;
		msgArea.onclick = function()
		{
//			window.clearInterval(timer);
//			pop.hide();
			if(_this.onclick)
			_this.onclick(_this);
		}
		clear();
		timer = window.setInterval(animateShow, 5);
	}
	this.setMessage = setMessage;

	function animateShow()
	{
		if(_height < height)
		{
			pop.show(
			screen.width - width - 15,
			screen.height - _height - 45,
			width,
			_height++
			);
		}
		else
		{
//			window.clearInterval(timer);
//			hideTimer = window.setTimeout(pop.hide, hideTimeout);
		}
	}

	init();
}

function MessageWindowStart(itemis, msg, avata, subid, mysubid){
	var msgWindow = new MessageWindow();

	msgWindow.tag = "³Í!´©±¸´ÏÆäÀÌÁö·Î ÀÌµ¿ÇÕ´Ï´Ù.";
	msgWindow.onclick = function(sender)
	{
		// À§ÀÇ ±¤°í¿¹Á¦ÀÌ¿É´Ï´Ù ¶ó´Â ¾Ë·¯Æ®Ã¢À» ¾²°í ½Í´Ù¸é ÁÖ¼®À» Áö¿ì¼¼¿ä
		//alert(sender.tag);
		// Å¬¸¯½Ã ¿øÇÏ´Â È¨ÆäÀÌÁö ÁÖ¼Ò¸¦ ¶ç¿ì·Á¸é ¾Æ·¡ÀÇ ÁÖ¼®À» Áö¿ì¼¼¿ä.
		top.main.document.location.href="/myfolder/myfolder_concern.jam?q=0";
		if(itemis == 1){
			GoProfile(subid, mysubid);
		}
		//window.open("http://www.jample.com");

	};

	// °ýÈ£¾È¿¡ ¿øÇÏ´Â ¹®±¸¸¦ ³Ö¾îÁÖ¼¼¿ä (ÀÌ¹ÌÁöµµ °¡´É)
	msgWindow.setMessage("<table width='236' height='85' border='0' cellpadding='0' cellspacing='0'><tr><td height='85' background='/popup/images/who_down.gif'><table width='236' height='85' border='0' cellpadding='0' cellspacing='0'><tr><td width='90' valign='top'><table width='89' height='76' border='0' align='right' cellpadding='0' cellspacing='0'><tr><td align='center' valign='middle' background='"+avata+"'><img src='/popup/images/bg_ab.gif' width='89' height='76' border='0'></td></tr></table></td><td><table width='94%'  border='0' cellspacing='0' cellpadding='0'><tr><td height='40'><font style='FONT-SIZE: 9pt;text-decoration:none;COLOR:#FF7100;font-weight: bold;'>"+msg+"</font><font style='FONT-SIZE: 9pt; color: #666666; line-height : 17px;'>´ÔÀÌ <br>´ç½ÅÀÇ ÇÁ·ÎÇÊÀ» Á¶È¸Áß!</font></td></tr><tr><td height='30'><img src='/popup/images/bt_who.gif' width='135' height='22' border='0'></td></tr></table></td></tr></table></td></tr></table>")
}


