
var subMenuTotalNum = 8;
//var subMenuDefaultIndex = 0;
var subMenuReturnTime = 100;
var subMenuActiveFlag = false;
var subMenuOffCheckFlag = true;



function subMenuOn(index){
    subMenuActiveFlag = true;
    subMenuSet(index);
}

function subMenuOff(){
    
    subMenuActiveFlag = false;
    if(subMenuOffCheckFlag == true){
      subMenuOffCheckFlag = false;
      setTimeout("subMenuOffCheck()", subMenuReturnTime);
    }
}
function subMenuOffCheck(){
    if(subMenuActiveFlag == false){
        subMenuSet(-1);
    }
    subMenuOffCheckFlag = true;
}
function subMenuSet(index){
    for(i=0; i<subMenuTotalNum; i++){
        if(index==i){
        
            subMenu[i].style.left=gnb_link_club[i].offsetLeft;
            subMenu[i].style.top = gnb_link_club[i].offsetTop+50;
            subMenu[i].style.display='';
            
           
        }   
        else 
            subMenu[i].style.display='none';
            
    }
    return true;
    
}

function blockKey(){ 
	//Ctrl + n, Ctrl + r, function key, Alt + <-, Alt + -> ¸·À½.
	if((event.ctrlKey == true && (event.keyCode == 78 || event.keyCode == 82)) || 
		(event.keyCode >= 112 && event.keyCode <= 123) || (event.altKey == true && (event.keyCode == 37 || event.keyCode == 39))) 
	{ 
		event.keyCode = 0; 
		event.cancelBubble = true; 
		event.returnValue = false; 
	}
} 

document.onkeydown = blockKey;

function getCookieVal (offset) {
    var endstr = document.cookie.indexOf (";", offset);
    if (endstr == -1)
        endstr = document.cookie.length;
    return unescape(document.cookie.substring(offset, endstr));
 }
 
 function GetCookie (name) {
    var arg = name + "=";
    var alen = arg.length;
    var clen = document.cookie.length;
    var i = 0;
    while (i < clen) {
        var j = i + alen;
        if (document.cookie.substring(i, j) == arg)
            return getCookieVal (j);
        i = document.cookie.indexOf(" ", i) + 1;
        if (i == 0) 
            break; 
    }
    return null;
}
function expire(){
	try{
	top.expire();
	}catch(e){}
    parent.top.location.href = "/index.jsp?rUrl="+escape("/login/reLogin.jsp?logout=1"); 
}
 function isLogin () {
    var arg = "skyuser=";
    var alen = arg.length;
    var clen = document.cookie.length;
    var i = 0;
    var ckString= null;
    while (i < clen) {
        var j = i + alen;
        if (document.cookie.substring(i, j) == arg){
             var endstr = document.cookie.indexOf (";", j);
                if (endstr == -1)
                    endstr = document.cookie.length;
                ckString = unescape(document.cookie.substring(j, endstr));
        }   
        i = document.cookie.indexOf(" ", i) + 1;
        if (i == 0) 
            break; 
    }
    if(ckString== null ||ckString==""){
        return false;
    }
    return true;
}
function getAge() {
    var arg = "adclick_age=";
    var alen = arg.length;
    var clen = document.cookie.length;
    var i = 0;
    var ckString= null;
    while (i < clen) {
        var j = i + alen;
        if (document.cookie.substring(i, j) == arg){
             var endstr = document.cookie.indexOf (";", j);
                if (endstr == -1)
                    endstr = document.cookie.length;
                ckString = unescape(document.cookie.substring(j, endstr));
        }   
        i = document.cookie.indexOf(" ", i) + 1;
        if (i == 0) 
            break; 
    }
    if(ckString== null ||ckString==""){
        return "";
    }
    return ckString;
}
function getGender() {
    var arg = "adclick_gender=";
    var alen = arg.length;
    var clen = 0;
    var i = 0;
    var ckString= null;
	try {
		clen = document.cookie.length;
		while (i < clen) {
			var j = i + alen;
			if (document.cookie.substring(i, j) == arg){
				 var endstr = document.cookie.indexOf (";", j);
					if (endstr == -1)
						endstr = document.cookie.length;
					ckString = unescape(document.cookie.substring(j, endstr));
			}   
			i = document.cookie.indexOf(" ", i) + 1;
			if (i == 0) 
				break; 
		}
	} catch(e) {
	}
    if(ckString== null || ckString=="") {
		return "";
	}
    return ckString;
}
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_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_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.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];}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
var winName = new Array();

  function popup(goPageURL,goPageName,goPageWidth,goPageHeight) {
		if (winName.toString().indexOf(goPageName)== -1){
			win =  window.open(goPageURL,'','width='+goPageWidth+',height='+goPageHeight+',menubar=no, status=no, scrollbars=no, resizable=yes');
			win.name=goPageName;
			winName[winName.length]=goPageName;
		}else {
				window.open(goPageURL,goPageName,'width='+goPageWidth+',height='+goPageHeight+',menubar=no,status=no, scrollbars=no, resizable=yes');
		}
  }

  function popupnew(goPageURL,goPageName,goPageWidth,goPageHeight){
	window.open(goPageURL,goPageName,'width='+goPageWidth+',height='+goPageHeight+',menubar=no,status=no, scrollbars=no, resizable=yes');
  }

  
<!-- °ø¿ë js ÆÄÀÏ¿¡ Ãß°¡ ¿äÃ» -->

/**
 * ÇÃÇÊ È£Ãâ ÇÔ¼ö(skycode)
 * @param skycode È¸¿øÄÚµå : 0 È¤Àº °ªÀÌ ¾øÀ»½Ã ÀÚ½ÅÀÇ ÇÃÇÊÀ» È£Ãâ
 * @param typemenu ÇÏÀ§ ¸Þ´º Å¸ÀÔ
 * 		- 1 : È¨(DEFAULT)
 * 		- 2 : ÇÁ·ÎÇÊ
 * 		- 3 : ÀÏ±âÀå
 * 		- 4 : ¾Ù¹ü
 * 		- 5 : À§µå¹Ì
 * 		- 6 : Èñ¸ÁÇÔ
 * 		- 7 : °ü¸®
 * 		- 101 : ±Â¹ÙÀÌ¸àÆ®
 * @param url ¹Ù·Î°¡´Â PAGE URL
 * [Sample]
 * <a href="javascript:callPlfil();">ÀÚ½ÅÀÇ ÇÃÇÊÃ¢ È¨ ¿ÀÇÂ</a>
 * <a href="javascript:callPlfil(1001);">È¸¿øÄÚµå 1001 È¸¿øÀÇ ÇÃÇÊÃ¢, È¨À¸·Î ¿ÀÇÂ</a>
 * <a href="javascript:callPlfil(1001, 4);">È¸¿øÄÚµå 1001 È¸¿øÀÇ ÇÃÇÊÃ¢, ¾Ù¹ü ÆäÀÌÁö·Î ¿ÀÇÂ</a>
 * <a href="javascript:callPlfil(0,0,'/plfil/data_all.jsp');">ÀÚ½ÅÀÇ ÇÃÇÊÃ¢, Åë°è°ü¸® ÆäÀÌÁö·Î ¿ÀÇÂ</a>
 */
function callPlfil(skycode, typemenu, url  ) {

	
	if(skycode==null) skycode="";
	if(typemenu==null ) typemenu="";
	if(url==null) url="";
	
	//url= "/mp/main.jsp?typemenu="+typemenu+"&skycode="+skycode+"&frame_url="+encodeURIComponent(url);
	url= "/detail/"+skycode+".html";
	
	try {
		window.open(url, "Plfil", "width=920, height=550, menubar=0, status=0, scrollbars=0, resizable=0");
	} catch(e) {
		window.open("/mp/main.jsp", "Plfil", "width=540, height=680, menubar=0, status=0, scrollbars=0, resizable=0");
	}
	return;
} 

function albumList_search(skycode, skyid, albumcode) {
				var url = "/mp/main.jsp?typemenu=1&skycode="+skycode+"&frame_url="+escape("http://test.skylove.com/mypage/main.jsp?albumcode=" + albumcode); 
				window.open(url, "Plfil", "width=920, height=550, menubar=0, scrollbars=0, resizable=0");
} 

/**
 * ÇÃÇÊ È£Ãâ ÇÔ¼ö(skyid)
 * @param skyid È¸¿ø¾ÆÀÌµð : "" È¤Àº °ªÀÌ ¾øÀ»½Ã ÀÚ½ÅÀÇ ÇÃÇÊÀ» È£Ãâ
 */ 
function callPlfilById(skyid, domain) {
	if(domain==null) { domain = ""; }
	var url = domain + "/mp/main.jsp";
	if(skyid!=null && skyid!="") {
		url += "?skyid=" + skyid;
	}
	try {
		window.open(url, "Plfil", "width=920, height=550, menubar=0, status=0, scrollbars=0, resizable=0");
	} catch(e) {
		window.open("/mp/main.jsp", "Plfil", "width=920, height=550, menubar=0, status=0, scrollbars=0, resizable=0");
	}
	return;
}




/* 2005.07.13 new plfile */
function callPlfilnew(skycode, typemenu, url  ) {
	var w = 920;
	var h = 550;
	if(skycode==null) skycode="";
	if(typemenu==null ) typemenu="";
	if(url==null) url="";
	
	url= "/mp/main.jsp?typemenu="+typemenu+"&skycode="+skycode+"&frame_url="+escape(url);
	
	try {
		window.open(url, "Plfil", "width="+w+", height="+h+", menubar=0, status=0, scrollbars=0, resizable=0");
	} catch(e) {
		window.open("/mp/main.jsp", "Plfil", "width="+w+", height="+h+", menubar=0, status=0, scrollbars=0, resizable=0");
	}
	return;
} 


function callPlfilByIdnew(skyid, domain) {
	var w = 920;
	var h = 550;
	if(domain==null) { domain = ""; }
	var url = domain + "/mp/main.jsp";
	if(skyid!=null && skyid!="") {
		url += "?skyid=" + skyid;
	}
	try {
		window.open(url, "Plfil", "width="+w+", height="+h+", menubar=0, status=0, scrollbars=0, resizable=0");
	} catch(e) {
		window.open("/mp/main.jsp", "Plfil", "width="+w+", height="+h+", menubar=0, status=0, scrollbars=0, resizable=0");
	}
	return;
}
/* 2005.07.13 new plfile */




/**
 * ÇÃÆ÷¸¶¹ý»ç È£Ãâ ÇÔ¼ö
 * @param typepropose : ÇÁ·ÎÆ÷Áî Á¾·ù
 * 		- 1 : ÂÊÁö ÇÃÆ÷(DEFAULT)
 * 		- 2 : Æ÷Åä ÇÃÆ÷
 * 		- 3 : 101 ÇÃÆ÷
 * 		- 4 : ¹ÌÆÃÃÊ´ë ÇÃÆ÷
 * @param num : °³º° ÇÁ·ÎÆ÷ÁîÀÇ ¼­ºêÅ¸ÀÔ ÄÚµå - ¿É¼Ç
 * @param code : ÀúÀåµÈ ÇÁ·ÎÆ÷Áî ÄÚµå - °ªÀÌ ÀÖÀ¸¸é ³»°¡ ¸¸µç ÇÁ·ÎÆ÷Áî ¾²±â, °ªÀÌ ¾øÀ¸¸é »õ·Î ¾²±â
 * @param skyids : ¹Þ´Â »ç¶÷ È¸¿ø¾ÆÀÌµð(º¹¼ö - ';' ·Î ±¸ºÐ) - °ªÀÌ ¾øÀ»½Ã ÇÃÆ÷¸¶¹ý»ç ³»¿¡¼­ Á÷Á¢ÀÔ·Â
 */
function callProposeWizard(typepropose, num, code, skyids) {
	wheight = 600;
  if(navigator.appVersion.indexOf("NT 5.1") > 0 )
    wheight = wheight + 12;

	try {
		if(typepropose==null) { typepropose = ""; }
		if(num==null) { num = ""; }
		if(code==null) { code = ""; }
		if(skyids==null) { skyids = ""; }
		window.open("/propose/propose_wizard.jsp?typepropose=" + typepropose + "&num=" + num + "&code=" + code + "&skyids=" + skyids, "ProposeWizard", "width=460, height="+wheight+", menubar=0, status=0, scrollbars=0, resizable=0");
	} catch(e) {
		window.open("/propose/propose_wizard.jsp", "ProposeWizard", "width=460, height="+wheight+", menubar=0,  status=0,scrollbars=0, resizable=0");
	}
	return;
}

function openProposeWizard(skyids, typepropose, num, code, itemcode, itemkey, itemtype, preview) {
	wheight = 600;
  if(navigator.appVersion.indexOf("NT 5.1") > 0 )
    wheight = wheight + 12;

	try {
		if(skyids==null) { skyids = ""; }
		if(typepropose==null) { typepropose = ""; }
		if(num==null) { num = ""; }
		if(code==null) { code = ""; }
		if(itemcode==null) { itemcode = ""; }
		if(itemkey==null) { itemkey = ""; }
		if(itemtype==null) { itemtype = ""; }
		if(preview==null) { preview = ""; }
		window.open("/propose/propose_wizard.jsp?typepropose=" + typepropose + "&num=" + num + "&code=" + code + "&itemcode=" + itemcode + "&itemkey=" + itemkey + "&itemtype=" + itemtype + "&preview=" + preview + "&skyids=" + skyids, "", "width=460, height="+wheight+", menubar=0,  status=0,scrollbars=0, resizable=0");
	} catch(e) {
		window.open("/propose/propose_wizard.jsp", "", "width=460, height="+wheight+", menubar=0, status=0, scrollbars=0, resizable=0");
	}
	return;
}
<!-- °ø¿ë js ÆÄÀÏ¿¡ Ãß°¡ ¿äÃ» -->

<!-- ÆË¾÷ -->
function popup2(url,wtarget,wwidth,wheight) {
  if(navigator.appVersion.indexOf("NT 5.1") > 0 )
    wheight = wheight + 12;

  window.open(url,wtarget,'width='+wwidth+',height='+wheight);
}	
<!-- ÆË¾÷ -->  

function photoView(skycode){
			if(skycode=="")return;
			var openpage = "/common/photoView.jsp?skycode="+skycode;
			popup(openpage,'',420,500);
		}

<!-- Ä£±¸ -->
function friendAdd(skyid){
			if(skyid=="")return;
			var openpage = "/friend/friend_add.jsp?id="+skyid;
			popupnew(openpage,'',400,310);
		}
function badAdd(skyid){
			if(skyid=="")return;
			var openpage = "/friend/bad_add.jsp?bid="+skyid;
			popupnew(openpage,'',340,180);
		}
function badAddCode(skycode, skyid){
			if(skyid=="")return;
			var openpage = "/friend/bad_add.jsp?bcode="+skycode+"&bid="+skyid;
			popupnew(openpage,'',340,180);
		}
<!-- Ä£±¸ -->


<!-- »çÀÌ¹öÄ° : ½ÃÀÛ -->
function reportCopPropose(badid, badtitle, contents) {
	var openpage = "/cop/report/cyber_report_propose.jsp?badid=" + badid + "&badtitle=" + badtitle + "&contents=" + contents;
	popup(openpage, "", 400, 320);
}
<!-- »çÀÌ¹öÄ° : ³¡ -->


<!-- ¸Þ½ÃÁö : ½ÃÀÛ -->
function sendMessage(rcode, rid){
	var openpage = "/message/message_send.jsp?rcode="+rcode+"&rid="+rid;
	popupnew(openpage,'',400,310);
}

function sendMessageId(rid){
	var openpage = "http://www.skylove.com/message/message_sendid.jsp?rid="+rid;
	popupnew(openpage,'',400,310);
}

function reportCop(badid, contents){
	var openpage = "/cop/report/cyber_report_memo.jsp?badid="+badid+"&contents="+contents;
	popup(openpage,'',400,320);
}
<!-- ¸Þ½ÃÁö : ³¡ -->


<!-- textarea  ±ÛÀÚÁ¦ÇÑ byte -->
/*
*  ÆäÀÌÁö¿¡¼­ »ç¿ë 
*	function checkcomment(textobj,length_limit)	{
*		var length = calculate_msglen(textobj.value);
*		if (length > length_limit) {
*			SkyAlert('±ÛÀÚ¼öÁ¦ÇÑ', 'ÃÖ´ë ' + length_limit + 'byteÀÌ¹Ç·Î<br> ÃÊ°úµÈ ±ÛÀÚ¼ö´Â ÀÚµ¿À¸·Î »èÁ¦µË´Ï´Ù.',360,200);
*			textobj.value = textobj.value.replace(/\r\n$/, "");
*			textobj.value = assert_msglen(textobj.value, length_limit);
*		}
*	}
*  <textarea onkeyup='checkcomment(this,10)'></textarea>
*/
function calculate_msglen(message) {
	var nbytes = 0;

	for (i=0; i<message.length; i++) {
		var ch = message.charAt(i);
		if(escape(ch).length > 4) {
			nbytes += 2;
		} else if (ch == '\n') {
			if (message.charAt(i-1) != '\r') {
				nbytes += 1;
			}
		} else if (ch == '<' || ch == '>') {
			nbytes += 4;
		} else {
			nbytes += 1;
		}
	}
	return nbytes;
}

function assert_msglen(message, maximum) {
	var inc = 0;
	var nbytes = 0;
	var msg = "";
	var msglen = message.length;

	for (i=0; i<msglen; i++) {
		var ch = message.charAt(i);
		if (escape(ch).length > 4) {
			inc = 2;
		} else if (ch == '\n') {
			if (message.charAt(i-1) != '\r') {
				inc = 1;
			}
		} else if (ch == '<' || ch == '>') {
			inc = 4;
		} else {
			inc = 1;
		}
		if ((nbytes + inc) > maximum) {
			break;
		}
		nbytes += inc;
		msg += ch;
	}
	//textlimit.innerText = nbytes;
	return msg;
}
<!-- textarea  ±ÛÀÚÁ¦ÇÑ byte -->

<!-- Çàº¹ ÃæÀü -->
 function fillhappy() {
   popup2('http://happy.skylove.com/payment/fill_happy.jsp','wfillhappy',400,190);
 }
 function fillhappytest() {
   popup2('http://happy.skylove.com/paymenttest/fill_happy.jsp','wfillhappy',400,190);
 }
 function fillhappyout() {
   popup2('http://happy.skylove.com/paymentout/fill_happy.jsp','wfillhappy',400,190);
 }
<!-- notice layer -->
 function initPopupNotice() {
	document.body.insertAdjacentHTML('beforeEnd',"<span id='popupNotice'  style='position:absolute; left:10; top:360; width:307; height:220; z-index:5; filter:revealTrans(transition=23,duration=0.5) blendTrans(duration=0.5); border-width:1px; border-style:none;'></span>");
//	document.write("</span>");
 }

 var isShowPopupNotice = false;
 currentX = currentY = 0; 
 lastScrollX = 0;
 lastScrollY = 0;
 NS = (document.layers) ? 1 : 0;
 IE = (document.all) ? 1: 0;
 
 function setPopupNotice(targetUrl, contents){
    if( eval("document.all.popupNotice")==null) {
         initPopupNotice();
    }      
    
 	var sHtml = "";
	sHtml += "<table width='300' height='220' border='0' cellspacing='0' cellpadding='0' bgcolor='ffffff'><tr><td colspan=3><img src='http://image.skylove.com/help/div_notice_top.gif'></td></tr>";
	sHtml += "<tr><td width='50'><img src='http://image.skylove.com/help/div_notice_left.gif'></td><td width='241' valign='top'>";
	sHtml += "<table width='241' border='0' cellspacing='0' cellpadding='0'><tr><td><img src='http://image.skylove.com/help/div_notice_1.gif'></td><td style='color:1A5381' bgcolor='ffffff'></td></tr>";
	sHtml += "<tr><td colspan=2><img src='http://image.skylove.com/help/div_notice_2.gif'></td></tr><tr><td height='73' colspan=2 valign='top' bgcolor='ffffff'>";
	sHtml += contents;
	sHtml += "</td></tr><tr><td height='20' colspan=2 align='right' valign='top'bgcolor='ffffff' ><a href='javascript:closePopupNotice()' onfocus='this.blur()'><img src='http://image.skylove.com/help/div_notice_b_close.gif' border='0' ></a></td></tr>";
	sHtml += "<tr><td height='25' align='right' colspan=2><a href='javascript:goHelpNotice()' onfocus='this.blur()'><img src='http://image.skylove.com/help/div_notice_b_help.gif' border='0'></a></td></tr></table></td><td width='9'><img src='http://image.skylove.com/help/div_notice_right.gif'></td></tr>";
	sHtml += "<tr><td colspan=3><img src='http://image.skylove.com/help/div_notice_down.gif'></td></tr></table>	";
    popupNotice.innerHTML = sHtml;
 	showPopupNotice(popupNotice);
 	
 }
 function setPopupNotice2(targetUrl, contents){
    if( eval("document.all.popupNotice")==null) {
         initPopupNotice();
    }      
    
 	var sHtml = "";
	sHtml += "<table width='300' height='220' border='0' cellspacing='0' cellpadding='0' bgcolor='ffffff'><tr><td colspan=3><img src='http://image.skylove.com/help/div_notice_top.gif'></td></tr>";
	sHtml += "<tr><td width='50'><img src='http://image.skylove.com/help/div_notice_left.gif'></td><td width='241' valign='top'>";
	sHtml += "<table width='241' border='0' cellspacing='0' cellpadding='0'><tr><td><img src='http://image.skylove.com/help/div_notice_1.gif'></td><td style='color:1A5381' bgcolor='ffffff'></td></tr>";
	sHtml += "<tr><td colspan=2><img src='http://image.skylove.com/help/div_notice_2.gif'></td></tr><tr><td height='73' colspan=2 valign='top' bgcolor='ffffff'>";
	sHtml += contents;
	sHtml += "</td></tr><tr><td height='20' colspan=2 align='right' valign='top'bgcolor='ffffff' ><a href='javascript:closePopupNotice()' onfocus='this.blur()'><img src='http://image.skylove.com/help/div_notice_b_close.gif' border='0' ></a></td></tr>";
	sHtml += "<tr><td height='25' align='right' colspan=2></td></tr></table></td><td width='9'><img src='http://image.skylove.com/help/div_notice_right.gif'></td></tr>";
	sHtml += "<tr><td colspan=3><img src='http://image.skylove.com/help/div_notice_down.gif'></td></tr></table>	";
    popupNotice.innerHTML = sHtml;
 	showPopupNotice(popupNotice);
 	
 }
 
 function showPopupNotice(divid) {
	divid.filters.blendTrans.apply(); 
	divid.style.visibility = "visible"; 
	divid.filters.blendTrans.play(); 
	setTimeout("closePopupNotice()",20000);
	isShowPopupNotice = true;
	movePopupNotice();
 }
 
 function closePopupNotice() {
	popupNotice.filters.blendTrans.apply();
	popupNotice.style.visibility = "hidden";
	popupNotice.filters.blendTrans.play(); 
	isShowPopupNotice = false;
 }

function movePopupNotice() {
	if(IE) { 
		diffY = document.body.scrollTop; 
		diffX = 0; 
	}
	if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
	if(diffY != lastScrollY) {
		percent = .1 * (diffY - lastScrollY);
		if(percent > 0) percent = Math.ceil(percent);
		else percent = Math.floor(percent);
		if(IE) document.all.popupNotice.style.pixelTop += percent;
		if(NS) document.popupNotice.top += percent; 
		lastScrollY = lastScrollY + percent;
	}
	if(diffX != lastScrollX) {
		percent = .1 * (diffX - lastScrollX);
		if(percent > 0) percent = Math.ceil(percent);
		else percent = Math.floor(percent);
		if(IE) document.all.popupNotice.style.pixelLeft += percent;
		if(NS) document.popupNotice.top += percent;
		lastScrollY = lastScrollY + percent;
	} 
	if(  NS || IE ){
		if(isShowPopupNotice ) setTimeout("movePopupNotice()",10);	
	}
} 

function goHelpNotice() {
	top.sky.location = "/help/self_xp.html";
 }


/**
 * Fox Chating Invite Function
 * rcode		: ¹Þ´Â»ç¶÷ È¸¿øÄÚµå
 * rid			: ¹Þ´Â»ç¶÷ È¸¿ø¾ÆÀÌµð
 * sgender	: º¸³»´Â»ç¶÷ ¼ºº° (³²ÀÚ=1, ¿©ÀÚ=2)
 */
 
function inviteFoxChat(rukey, ruid, rsid, stypesex) {
	try {
		if(stypesex==1){
			window.open("/foxchat/invite_send/invite_card_send_m.jsp?rukey="+rukey+"&ruid="+ruid+"&rsid="+rsid, "", "width=420, height=490, menubar=0, status=1, scrollbars=0, resizable=0");
		}else{
			window.open("/foxchat/invite_send/invite_card_send_w.jsp?rukey="+rukey+"&ruid="+ruid+"&rsid="+rsid, "", "width=420, height=490, menubar=0, status=1, scrollbars=0, resizable=0");
		}
	} catch(e) {
	}
	return;
}

/**
 * Fox Chating Multi Invite Function
 */
function inviteFoxChatMulti() {
	try {
		var foxwin = window.open("/foxchat/invite_send/invite_card_send_multi.jsp", "", "width=432, height=541, menubar=0, status=1, scrollbars=0, resizable=0");
		if(foxwin==null) {
			alert("ÆË¾÷ Çã¿ëÀ» ÇØÁÖ¼¼¿ä.\n\n(µµ±¸(T)>ÆË¾÷ Â÷´Ü(P)>ÇöÀç »çÀÌÆ®ÀÇ ÆË¾÷À» Ç×»ó Çã¿ë(A)...)");
		}
	} catch(e) {
		alert("ÆË¾÷ Çã¿ëÀ» ÇØÁÖ¼¼¿ä.\n\n(µµ±¸(T)>ÆË¾÷ Â÷´Ü(P)>ÇöÀç »çÀÌÆ®ÀÇ ÆË¾÷À» Ç×»ó Çã¿ë(A)...)");
	}
	return;
}
 
<!-- ¿©¿ìÃ¤ÆÃ ¿©¿ìÁ¤º¸ Ã¢ -->
function fox_userinfo(ukey,siteid) {
  if(navigator.appVersion.indexOf("NT 5.1") > 0 )
		window.open("/foxchat/info/pop_info.jsp?ukey="+ukey+"&siteid="+siteid, "fox_info"+ukey, "width=600, height=407, menubar=0, status=1, scrollbars=0, resizable=0");
	else
		window.open("/foxchat/info/pop_info.jsp?ukey="+ukey+"&siteid="+siteid, "fox_info"+ukey, "width=600, height=401, menubar=0, status=1, scrollbars=0, resizable=0");
} 
 
function inviteWolfChat(rcode, rid, sgender) {
    try {
        if(sgender==1) {
            window.open("/wolfchat/invite_card/invite_card_send_m.jsp?rcode="+rcode+"&rid="+rid, "", "width=432, height=541, menubar=0, status=1, scrollbars=0, resizable=0");
        } else {
            window.open("/wolfchat/invite_card/invite_card_send_w.jsp?rcode="+rcode+"&rid="+rid, "", "width=432, height=541, menubar=0, status=1, scrollbars=0, resizable=0");
        }
    } catch(e) {
        window.open("/wolfchat/invite_card/invite_card_send_w.jsp?rcode="+rcode+"&rid="+rid, "", "width=432, height=541, menubar=0, status=1, scrollbars=0, resizable=0");
    }
    return;
}

/**
 * Fox Chating È¸¿ø Á¤º¸
 * skycode	: ¹Þ´Â»ç¶÷ È¸¿øÄÚµå
 */

function wolf_userinfo(skycode) {
  if(navigator.appVersion.indexOf("NT 5.1") > 0 )
        window.open("/wolfchat/pop_foxinfo.jsp?skycode="+skycode, "", "width=390, height=386, menubar=0, status=1, scrollbars=0, resizable=0");
    else
        window.open("/wolfchat/pop_foxinfo.jsp?skycode="+skycode, "", "width=390, height=380, menubar=0, status=1, scrollbars=0, resizable=0");
}

function checkSearchContent(checkStr) {
	if(checkStr.length < 2)
		return false;
	/*
	var TEXT = "~!@#$%^&*()\\_+|'\=-`,.><?/£££¦£ª£À¡×¡Ø¡Ù¡Ú¤±¡Û¡Ü¤»¡Ý¡Þ¡ß¡à¡á¡â¡ã¡ä¡å¡æ¡ç¡è¡é¡ê¡ë¢·¢¸¢¹¢Ã¢»¢¼¢½¢¾¢¿¢À¢Á¢Â¢Ã¢Ä¢Å¢Æ¢Ç¢È¢É¢Ë¢Ì¢Í¢Î¢Ï¢Ð¢Ñ¤²¤¸¤§¤¡¤µ¤Ë¤Å¤Á¤À¤Ä¤±¤»¤¤¤¼¤·¤º¤¯¤¾¤Ð¤Ç¤Í¤Ñ¤¿¤Ó";
	for (i = 0;  i < checkStr.length;  i++) {
		ch = checkStr.charAt(i);
		for (j = 0;  j < TEXT.length;  j++) {
			if (ch == TEXT.charAt(j) || ch.char==220 || ch.char==222 || ch=='"') {
				return (false);
				break;
			}
		}
	}
	*/
	return (true);
}
