is_mn_wnd=true;function global_pointer(){}document.writeln('<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=euc-kr">');if("undefined"==typeof window.dialogArguments&&!navigator.cookieEnabled)if(confirm("ÄíÅ° ¼³Á¤ÀÌ µÇ¾î ÀÖÁö ¾Ê½À´Ï´Ù.\nÄíÅ° ¼³Á¤ ¾øÀÌ´Â ¼¼ÀÌÅ¬·´ »ç¿ëÀÌ ºÒ°¡´ÉÇÕ´Ï´Ù.\nÄíÅ° ¼³Á¤ µµ¿ò¸»À» º¸½Ã°Ú½À´Ï±î?")){idx=navigator.appVersion.indexOf("MSIE");if(idx>-1)IEV=parseInt(navigator.appVersion.substr(idx+4));if(IEV<=4)document.location.href="http://member.pmang.com/cookie/cookie_ie4.nwz";else document.location.href="http://member.pmang.com/cookie/cookie_ie5.nwz"}
function setDomainCookie(name,value,expire){var ExpDate=new Date;ExpDate.setDate(ExpDate.getDate()+expire);document.cookie=name+"="+escape(value)+"; path=; domain="+document.domain+"; expires="+ExpDate.toGMTString()+";"}
function getDomainCookie(name){var nameOfCookie=name+"=";var x=0;while(x<=document.cookie.length){var y=x+nameOfCookie.length;if(document.cookie.substring(x,y)==nameOfCookie){if((endOfCookie=document.cookie.indexOf(";",y))==-1)endOfCookie=document.cookie.length;return unescape(document.cookie.substring(y,endOfCookie))}x=document.cookie.indexOf(" ",x)+1;if(x==0)break}return""}
function setDocumentDomain(){var arrhostname=document.location.hostname.split(".");if(arrhostname.length<=1)return;if(arrhostname[arrhostname.length-1].length>2||arrhostname.length==3)document.domain=arrhostname[arrhostname.length-2]+"."+arrhostname[arrhostname.length-1];else document.domain=arrhostname[arrhostname.length-3]+"."+arrhostname[arrhostname.length-2]+"."+arrhostname[arrhostname.length-1];var arrpath=document.location.pathname.split("/");setDomainCookie("__CHANNEL_HISTORY_2",getDomainCookie("__CHANNEL_HISTORY"),
1);setDomainCookie("__CHANNEL_HISTORY",document.location,1)}function redirectDocumentDomain(){if(getDomainCookie("CHANNEL_SSID")!="pmang.com")document.location.href="http://"+getDomainCookie("CHANNEL_GID")+"."+getDomainCookie("CHANNEL_SSID");else if(document.location.hostname=="www.pmang.com")document.location.href="http://"+document.location.hostname+"/channel_deny.nwz";else document.location.href="http://www.pmang.com/channel_deny.nwz"}setDocumentDomain();
function isIE(){return window.navigator.appName=="Microsoft Internet Explorer"?true:false}var redirectMap={"www.pmang.com":"m.pmang.com","conan.pmang.com":"m.conan.pmang.com","bfo.pmang.com":"m.bfo.pmang.com","slugger.pmang.com":"m.slugger.pmang.com","sf.pmang.com":"m.sf.pmang.com","specialforce.pmang.com":"m.specialforce.pmang.com","ava.pmang.com":"m.ava.pmang.com","fifaonline.pmang.com":"m.fifaonline.pmang.com","raycity.pmang.com":"m.raycity.pmang.com","r2beat.pmang.com":"m.r2beat.pmang.com","raiderz.pmang.com":"m.raiderz.pmang.com"};
if(redirectMap[document.location.hostname]!=undefined){var ag=navigator.userAgent;var lc=document.location;if((ag.indexOf("iPhone")!=-1||ag.indexOf("Android")!=-1||ag.indexOf("Opera")!=-1)&&lc.search.indexOf("mobile")==-1&&lc.pathname=="/")document.location.href="http://"+redirectMap[document.location.hostname]}IE_Version=new Number(window.navigator.appVersion.split("; ")[1].split(" ")[1]);var crossDomainList="www.pmang.com,s4.pmang.com,crossfire.pmang.com,nbaso.pmang.com,debut.pmang.com,r2beat.pmang.com,sunonline.pmang.com,mhf.pmang.com,silkroad.pmang.com,conan.pmang.com,specialforce.pmang.com,ava.pmang.com,bfo.pmang.com,fifaonline.pmang.com,fifaonline.game.daum.net,slugger.pmang.com,raycity.pmang.com,dizzel.pmang.com,file.pmang.com,tenvi.pmang.com,raiderz.pmang.com,memo.pmang.com,secure.pmang.com,member.pmang.com,cm.pmang.com,file.pmang.kr,help.pmang.com";
if(crossDomainList.indexOf(document.location.hostname)!=-1)is_allow_cross_browsing=1;else is_allow_cross_browsing=0;if(!isIE()&&is_allow_cross_browsing!=1)if(document.location.hostname=="slugger.plaync.co.kr"){alert("ÇØ´ç ºê¶ó¿ìÀú¿¡¼­´Â °ÔÀÓÀ» Á¤»óÀûÀ¸·Î ÀÌ¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");document.location.href="http://www.plaync.co.kr"}else if(getCookie("nie_test")!="1")document.location.href="http://file.pmang.kr/html/pmang/404/IE50.html";function OnQuit_SayClub(){alert("¼­¹ö¿ÍÀÇ Á¢¼ÓÀÌ ²÷¾îÁ³½À´Ï´Ù.")}
function isOverXPSP2(){var strVerStr=window.navigator.appVersion;var arrVerStr=strVerStr.split("; ");if(arrVerStr.length>=4){var arrOsVer=arrVerStr[2].split(" ");if(arrOsVer.length>=3&&arrOsVer[0]=="Windows"){var osVerNum=new Number(arrOsVer[2]);if(osVerNum>=5.1&&strVerStr.indexOf("SV1")>=35)return true}}return false}
function error_hompyax(){var args=new Array;var winTitle="È¨ÇÇ ÇÁ·Î±×·¥ ¼³Ä¡ ¿À·ù";args["winTitle"]=winTitle;HompyInstallDialog=window.showModalDialog("http://www.pmang.com/global/HompyInstallModalPopup.nwz",args,"dialogWidth:405px; dialogHeight:455px; edge:sunken; center:yes; resizable:no; status:no; help:no; scroll:no;");if(HompyInstallDialog=="install")window.open("http://dl.pmang.com/common/pmangctl/imginst.EXE","_Top","width=1, height=1");history.back()}
function Logout_SayClub(){if(document.domain=="pmang.com")window.open("http://www.pmang.com/logout.nwz","_top");else window.open("http://member.pmang.com/logout.nwz","_top");return}
String.prototype.URLEncode=function URLEncode(){var SAFECHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_.!~*()";var HEX="0123456789ABCDEF";var plaintext=this;var encoded="";for(var i=0;i<plaintext.length;i++){var ch=plaintext.charAt(i);if(ch==" ")encoded+="+";else if(SAFECHARS.indexOf(ch)!=-1)encoded+=ch;else{var charCode=ch.charCodeAt(0);if(charCode>255)encoded+="+";else{encoded+="%";encoded+=HEX.charAt(charCode>>4&15);encoded+=HEX.charAt(charCode&15)}}}return encoded};
function Logout_Pubgame(url){window.open("http://www.pmang.com/logout.nwz?pageurl="+url.URLEncode(),"_top");return}function Logout_Hompy(targetmsrl){window.open("http://hompy.sayclub.com/hp_logout.nwz?targetmsrl="+targetmsrl,"_top");return}function Logout_PubGame(ssn){window.open("http://www.pmang.com/pub_logout.nwz?ssn="+ssn,"_top");return}function urlencode(url){var strurl=escape(url.replace(/ /g,"+"));return strurl.replace(/\//g,"%2F")}
function urldecode(url){var strurl=unescape(url.replace(/\+/g," "));return strurl.replace(/%2F/g,"/")}function passwd_window(){var fromLocation;fromLocation=location.href;document.cookie="fromLocation="+fromLocation+";domain=pmang.com; path=/;";location.href=ssl_request_url("https://member.pmang.com/forget_passwd.nwz")}function gura_arg(){t=new Date;return t.getTime()}if("undefined"==typeof WINDOW_ONLOAD_HANDLE_LIST)var WINDOW_ONLOAD_HANDLE_LIST=new Array;
function addOnloadHandle(eval_str,priority){if("undefined"==typeof priority||priority<0){if("undefined"==typeof WINDOW_ONLOAD_HANDLE_LIST[9])WINDOW_ONLOAD_HANDLE_LIST[9]=new Array;WINDOW_ONLOAD_HANDLE_LIST[9][WINDOW_ONLOAD_HANDLE_LIST[9].length]=eval_str;return}if("undefined"==typeof WINDOW_ONLOAD_HANDLE_LIST[priority])WINDOW_ONLOAD_HANDLE_LIST[priority]=new Array;WINDOW_ONLOAD_HANDLE_LIST[priority][WINDOW_ONLOAD_HANDLE_LIST[priority].length]=eval_str}
function execOnloadHandle(){for(var i=0;i<=9;i++){if(typeof WINDOW_ONLOAD_HANDLE_LIST[i]=="undefined")continue;for(var j in WINDOW_ONLOAD_HANDLE_LIST[i])try{eval(WINDOW_ONLOAD_HANDLE_LIST[i][j])}catch(E){}}}var objectForClipping=new Array;var oTableForClipping=new Array;function addIFrameForClipping(frameName,tableName){var count=objectForClipping.length;objectForClipping[count]=frameName;oTableForClipping[count]=tableName}var WINDOW_ONRESIZE_HANDLE_LIST=new Array;
function addOnresizeHandle(eval_str){WINDOW_ONRESIZE_HANDLE_LIST[WINDOW_ONRESIZE_HANDLE_LIST.length]=eval_str}function execOnresizeHandle(){for(var i in WINDOW_ONRESIZE_HANDLE_LIST)eval(WINDOW_ONRESIZE_HANDLE_LIST[i])}function tachy_go_handler(a){eval(AppletSession.codec(50,a,""))}function tachy_go(url,target,options){if(url.indexOf("http://www.pmang.com/join")>=0)AppletSession.executeHTTP(url,"","tachy_go_handler","");else window.open(url,target,options)}
function pim_go_url(url){document.location.href=url}function pim_open_popup(url,target,options){if(url.indexOf("http://www.pmang.com/join")>=0)AppletSession.executeHTTP(url,"","tachy_go_handler","");else window.open(url,target,options)}var error_reported=false;function error_handle(msg,url,line){return true}if("undefined"==typeof POST_JS_ERROR)window.onerror=error_handle;
function window_name(name1,name2){var fname="";var name0=escape("_say"+"_"+name1+"_"+name2);for(i=0;i<name0.length;i++)if(name0.charAt(i)=="%"||name0.charAt(i)=="/")fname+="_";else fname+=name0.charAt(i);return fname}function html_my_name(name1,name2){if(window.name!="sc_body")window.name=window_name(name1,name2)}
function open_game_top_win(url,name,w,h,scroll,resize,type){var oWnd=window.open(url,name,"scrollbars="+scroll+",resizable="+resize+",width="+w+",height="+h);try{oWnd.focus()}catch(Exception){}return set_game_top_window(oWnd,type)}
function pmangModalDialog(url,param,width,height){var args=new Array;clsid="2729A0B7-23AD-48a9-9FBE-56452FE63D1C";if(AppletSession.externalmethod("isrunning",clsid,0,0,""))open_game_top_win(url,"_pmang_pop",width,height,"no","no",0);else{var ret=window.showModalDialog(url,args,"dialogWidth:"+width+"px; dialogHeight:"+height+"px; edge:sunken; center:yes; resizable:no; status:no; help:no; scroll:no;");switch(ret){case 1:window.close();break;default:break}}return}
function get_screen_center(w,h){var sleft=parseInt(screen.width/2-w/2)-6;var stop=parseInt(screen.height/2-h/2)-30;sleft=sleft<0?0:sleft;stop=stop<0?0:stop;return"top="+stop+", left="+sleft}function open_win(url,name,w,h){var vleft;var vtop;vleft=(screen.width-w)/2;vtop=(screen.height-h)/2-150;var oWin=window.open(url,name,"scrollbars=no,resizable=yes,width="+w+",height="+h+", top="+vtop+", left="+vleft);try{oWin.focus()}catch(Exception){}}
function open_win_position(url,name,w,h,x,y){var oWin=window.open(url,name,"scrollbars=no,resizable=yes,width="+w+",height="+h+", top="+x+", left="+y);try{oWin.focus()}catch(Exception){}}function open_win_scroll(url,name,w,h){var oWin=window.open(url,name,"scrollbars=yes,resizable=yes,width="+w+",height="+h);try{oWin.focus()}catch(Exception){}}
function open_win_noresizable(url,name,w,h,scenter){var strPos="";if(scenter)strPos=", "+get_screen_center(w,h);var oWin=window.open(url,name,"scrollbars=no,resizable=no,width="+w+",height="+h+strPos);try{oWin.focus()}catch(Exception){}}function open_win_ret(url,name,w,h){var oWin=window.open(url,name,"scrollbars=no,resizable=yes,width="+w+",height="+h);try{oWin.focus()}catch(Exception){}return oWin}
function open_window(url,name,extra){var oWin=window.open(url,name,extra);try{oWin.focus()}catch(Exception){}}function nrbOpenItemBuyWin(){open_win("http://pmangmall.pmang.com/saymall_buy_product.nwz?&saleinfo_id=362805","coupon",436,480)}
function open_nrbchatwin(opentype,rinfo){var winname="nrbwin";var chkvarname="nrbWinID";var chkpage="http://saychatting.sayclub.com/noraeting/nrb_chkload.nwz?wintype=C";var options="width=790,height=600,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0";var oldwin=findWindow("nrbwin",options,"",chkvarname);if(oldwin!=null){oldwin.focus();return}if(opentype=="makeroom"){var options="width=590,height=314,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0";
window.open(chkpage+rinfo+"&gourl="+escape("http://saychatting.sayclub.com/noraeting/nrb_mkroom.nwz"),winname,options)}else if(opentype=="joinroom")window.open(chkpage+"&gourl="+escape(rinfo),winname,options)}
function open_nrbselfwin(searchstr){var winname="nrbwin";var chkvarname="nrbWinID";var options="width=790,height=398,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0";var chkpage="http://saychatting.sayclub.com/noraeting/nrb_chkload.nwz?wintype=S";var oldwin=findWindow("nrbwin",options,"",chkvarname);if(oldwin!=null){oldwin.focus();return}window.open(chkpage+searchstr,winname,options)}
function open_nrbselfwin_play(searchstr){var winname="nrbwin";var chkvarname="nrbWinID";var options="width=790,height=398,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0";var chkpage="http://saychatting.sayclub.com/noraeting/nrb_chkload.nwz?wintype=S&play=true";var oldwin=findWindow("nrbwin",options,"",chkvarname);if(oldwin!=null){oldwin.focus();return}if(typeof searchstr=="undefined")searchstr="";var nrbwin=window.open(chkpage+searchstr,winname,options)}
function findWindow(wname,options,framename,chkvariable){var chkwin=window.open("",wname,options);try{if(framename==""||framename==null){if(eval("chkwin."+chkvariable)!=null)return chkwin}else if(eval("chkwin."+framename)!=null)if(eval("chkwin."+framename+"."+chkvariable)!=null)return chkwin;return null}catch(Exception){return null}}function opener_open(ssn,url){timeover=500;setTimeout("opener_open_time("+ssn+", '"+url+"')",timeover)}
function opener_open_time(ssn,url){open_win("http://www.pmang.com/"+url+"?ssn="+ssn,"_refill",450,150)}function open_talk(target){var dt=new Date;var talkwin=open_win("http://saychatting.pmang.com/chat/neotalk.nwz?targetid="+target+"&guraarg="+gura_arg(),"talk_"+dt.getTime(),500,500);return talkwin}
function connect_ting_client(type,msrl,userid,nickname){if(type=="c")open_talk(userid);else if(type=="k"){url="http://saychatting.sayclub.com/kkting/kkting_connect_game.nwz?tmsrl="+msrl+"&tusrid="+userid+"&tnick="+nickname;open_win(url,"_go_game",450,300)}else if(type=="s"){url="http://saychatting.sayclub.com/schoolting/schoolting_connect_game.nwz?tmsrl="+msrl+"&tusrid="+userid+"&tnick="+nickname;open_win(url,"_go_game",400,300)}else if(type=="n")open_nrbchatwin("makeroom","&autoinvitemsrl="+msrl)}
function findWindow4Frame(wname,options,framename,chkvariable){var chkwin=window.open("",wname,options);try{if(eval("chkwin."+framename)!=null)if(eval("chkwin."+framename+"."+chkvariable)!=null)return chkwin;return null}catch(Exception){return null}}var tmpCapsLock=false;
function checkCapsLock(e){var myKeyCode=0;var myShiftKey=false;if(document.all){myKeyCode=e.keyCode;myShiftKey=e.shiftKey}if(e.keyCode!=13&&tmpCapsLock==false)if(myKeyCode>=65&&myKeyCode<=90&&!myShiftKey){tmpCapsLock=true;document.fo_login.iscapslock.value="Y"}else if(myKeyCode>=97&&myKeyCode<=122&&myShiftKey){tmpCapsLock=true;document.fo_login.iscapslock.value="Y"}else{tmpCapsLock=false;document.fo_login.iscapslock.value="N"}}
function iebody(){return document.compatMode!="BackCompat"?document.documentElement:document.body}nWndWidth=600;nTop=-1;function resize_wnd(calltype){resize_wnd_v2()}function auto_fit_wnd(nNewWidth){auto_fit_wnd_v2(nNewWidth)}function auto_fit_wnd_ssl(nNewWidth){auto_fit_wnd_v2(nNewWidth)}
function resize_client(width){var mybody=iebody();var maxHeight=screen.availHeight;if(maxHeight<mybody.scrollHeight)mybody.scroll="yes";if(!width||width==0)width=mybody.scrollWidth;var dw=width-mybody.clientWidth;var dh=Math.min(document.getElementById("blank_img").offsetTop,maxHeight)-mybody.offsetHeight;window.resizeBy(dw,dh)}
function auto_fit_client(width){var mybody=iebody();var oldOnLoad=mybody.onload;document.writeln("<iframe width='1' height='1' frameborder=0 marginheight=0 marginwidth=0 scrolling=no id='blank_img' src='about:blank'></iframe>\n");mybody.onload=function(){if(oldOnLoad)oldOnLoad();resize_client(width)};setTimeout("resize_client("+width+")",500)}
function getJsLink(strJsCode,innerHTML,strAttribute){if("undefined"==typeof strAttribute)strAttribute="";if(0==strJsCode.indexOf("javascript:"))strJsCode=strJsCode.substr(11);return'<a href="javascript:'+strJsCode+'" onclick="event.returnValue=false;'+strJsCode+'" '+strAttribute+">"+innerHTML+"</a>"}function writeJsLink(strJsCode,innerHTML,strAttribute){document.write(getJsLink(strJsCode,innerHTML,strAttribute))}
function channel_url(encoded_channel,encoded_opts,fw){var chanPrefix=encoded_channel.substr(0,encoded_channel.indexOf("/"));var returl="";if(encoded_opts!="")returl+="&"+encoded_opts;return returl}
function saycast_reg_url(sendermsrl,targetmsrl,domainid,userflag,encoded_opts){var returl="http://saycast.sayclub.com/cast_join_station.nwz";returl=returl+"?sendermsrl="+sendermsrl;returl=returl+"&targetmsrl="+targetmsrl;returl=returl+"&domainid="+domainid;returl=returl+"&userflag="+userflag;if(encoded_opts!="")returl+="&"+encoded_opts;return returl}
function studio_url(encoded_channel,encoded_opts){var chanPrefix=encoded_channel.substr(0,encoded_channel.indexOf("/"));var returl="";returl="http://pmangmall.pmang.com/saymall_studio.nwz?act=join&channel="+encoded_channel;if(encoded_opts!="")returl+="&"+encoded_opts;return returl}
function go_webgame(ssn){var boardgame=new Array("38","60","12","16","5");var casualgame=new Array("32","27","31","30","28");var gostopgame=new Array("24","14","19","1","26","25","43");var pokergame=new Array("3","40","2","23","17","18");var mobilegame=new Array("111");if(util_in_array(ssn,pokergame)||util_in_array(ssn,gostopgame)){document.location.href="http://www.pmang.com/game_top.nwz?ssn="+ssn;return}if(util_in_array(ssn,boardgame)||util_in_array(ssn,casualgame)){document.location.href="http://www.pmang.com/game_casual_top.nwz?ssn="+
ssn;return}if(util_in_array(ssn,mobilegame)){document.location.href="http://www.pmang.com/game_mobile_top.nwz?ssn="+ssn;return}document.location.href="http://www.pmang.com/game_top.nwz?ssn="+ssn}function go_game(encoded_channel,encoded_opts){eval(virtualGET("http://"+location.hostname+"/global/virtual/game_virtual.nwz?ch="+encoded_channel+"&opt="+encoded_opts+"&type=1"))}
function go_game2(ssn,chnum){eval(virtualGET("http://"+location.hostname+"/global/virtual/game_virtual.nwz?ssn="+ssn+"&chnum="+chnum+"&type=2"))}
function go_game2_pwd(ssn,chnum,pwd,enckey,fingerprint,tm){try{var resp=virtualGET("http://"+location.hostname+"/global/virtual/game_virtual.nwz?ssn="+ssn+"&chnum="+chnum+"&pwd="+pwd+"&enckey="+enckey+"&fingerprint="+fingerprint+"&tm="+tm+"&type=2");var result=eval(resp);if(result&&(result[0]=="pwderr"||result[0]=="overcnt"))return result;else return["success"]}catch(e){}return null}
function go_game2_optstr(ssn,chnum,optstr){eval(virtualGET("http://"+location.hostname+"/global/virtual/game_virtual.nwz?ssn="+ssn+"&chnum="+chnum+"&optstr="+optstr+"&type=2"))}function go_game2_motp(ssn,chnum,usn){document.cookie="webgamemotp="+usn+"; domain=pmang.com; path=/";eval(virtualGET("http://"+location.hostname+"/global/virtual/game_virtual.nwz?ssn="+ssn+"&chnum="+chnum+"&type=2"))}
function go_game3(ssn,usrid,nick){eval(virtualGET("http://"+location.hostname+"/global/virtual/game_virtual.nwz?ssn="+ssn+"&chnum=1&type=2&rstr=FI|"+usrid+"|"+nick))}function go_game4(ssn,chnum,usrid,nick){eval(virtualGET("http://"+location.hostname+"/global/virtual/game_virtual.nwz?ssn="+ssn+"&chnum="+chnum+"&type=2&rstr=FI|"+usrid+"|"+nick))}
function go_game5(ssn,chnum,rstr){eval(virtualGET("http://"+location.hostname+"/global/virtual/game_virtual.nwz?ssn="+ssn+"&chnum="+chnum+"&type=2&rstr=DI|"+rstr))}function go_tournament(ssn){val=eval(virtualGET("http://"+location.hostname+"/pmang_tm_virtual.nwz?ssn="+ssn));if(val==21)window.open("http://"+location.hostname+"/pmang_tmchannel.nwz?ssn="+ssn,"tmchannel","width=310,height=260");else go_game2(ssn,val)}
function run_tachy(){tachy_clsid="92d76507-24cd-42e6-bea9-d84410a44de5";if(typeof AppletSession=="undefined")return;if(AppletSession.externalmethod("isinstalled",tachy_clsid,0,0,"20031223-0"))AppletSession.externalmethod("run",tachy_clsid,0,0,"");else AppletSession.externalmethod("install",tachy_clsid,0,0,"¼¼ÀÌÅ¬·´ Å¸Å° ´Ù¿î·Îµå")}
function run_game(arg){var AppletSession=document.getElementById("AppletSession");if(typeof AppletSession=="undefined")return;clsid="2729A0B7-23AD-48a9-9FBE-56452FE63D1C";if(!AppletSession.externalmethod("isrunning",clsid,0,0,"")){if(!AppletSession.externalmethod("isinstalled",clsid,0,0,"PM2010-04-08-0"))AppletSession.externalmethod("install",clsid,0,0,"ÇÇ¸Á ´Ù¿î·Îµå");if(!AppletSession.externalmethod("run",clsid,0,0,arg)){AppletSession.externalmethod("install",clsid,0,0,"ÇÇ¸Á ´Ù¿î·Îµå");AppletSession.externalmethod("run",
clsid,0,0,arg)}}else AppletSession.externalmethod("send",clsid,1,1,arg)}function run_playroom(){playroom_clsid="81971ED4-B0E9-4130-A3C6-A29F86FE7AAE";if(typeof AppletSession=="undefined")return;if(!AppletSession.externalmethod("isinstalled",playroom_clsid,0,0,"20080226-0"))AppletSession.externalmethod("install",playroom_clsid,1,0,"ÇÃ·¹ÀÌ·ë ´Ù¿î·Îµå")}
function set_game_top_window(oWnd,itype){if(!oWnd||typeof AppletSession=="undefined")return 0;clsid="2729A0B7-23AD-48a9-9FBE-56452FE63D1C";if(AppletSession.externalmethod("isrunning",clsid,0,0,"")){var hwnd=AppletSession.gethwnd(oWnd);AppletSession.externalmethod("send",clsid,2,hwnd,itype);return 1}return 0}
function send_game(itype,arg){if(typeof AppletSession=="undefined")return;clsid="2729A0B7-23AD-48a9-9FBE-56452FE63D1C";if(AppletSession.externalmethod("isrunning",clsid,0,0,""))AppletSession.externalmethod("send",clsid,3,itype,arg)}
function game_menu(itype,arg1,arg2){var tmp=0;switch(itype){case 1:execSayMenu("gohompy","?gohompy="+arg1+",off");break;case 4:execSayMenu("smssend","?smssend="+arg1+",off");break;case 5:execSayMenu("mailnew","?mailnew="+arg1+",off");break;case 6:execSayMenu("talk","?talk="+arg1+",true");break;case 14:open_game_top_win("http://"+location.hostname+"/view_manual.nwz?ssn="+arg1,"",698,543,"no","yes",14);break;case 16:idx1=arg1.indexOf("^__1__");idx2=arg1.indexOf("^__2__");idx_len=arg1.length;if(idx1==
-1&&idx2==-1){value1=arg1;value2="";value3=""}if(idx1!=-1&&idx2==-1){value1=arg1.substr(0,idx1);value2=arg1.substr(idx1+7,idx_len);value3=""}if(idx1==-1&&idx2!=-1){value1=arg1.substr(0,idx2);value2=arg1.substr(idx2+7,idx_len);value3=""}if(idx1!=-1&&idx2!=-1){value1=arg1.substr(0,idx1);value2=arg1.substr(idx1+6,idx2-idx1-6);value3=arg1.substr(idx2+6,idx_len)}window.open(value1,value2,value3);break;case 17:if(arg1==4||arg1==60||arg1==7)document.location.replace("http://"+location.hostname+"/game_casual_top.nwz?ssn="+
arg1);else document.location.replace("http://"+location.hostname+"/game_top.nwz?ssn="+arg1);break;case 18:ch=virtualGET("http://"+location.hostname+"/pmang_get_channel_max.nwz?ssn="+arg1+"&chtype="+arg2);if(ch=="")break;if(ch.charAt(0)=="0")ch=ch.replace("0","");go_game2(arg1,ch);document.location.replace("http://"+location.hostname+"/game_top.nwz?ssn="+arg1);break;case 20:document.location.replace("http://"+location.hostname);break;case 22:eval(virtualGET("http://"+location.hostname+"/global/virtual/game_kill.nwz?lusrid="+
arg1));break;case 23:if(arg1==1)window.focus();if(arg2==1){top.virtual_fr.location="http://"+location.hostname+"/pmang_ad_endban.nwz?gametype=G";setTimeout("document.location.reload()",1E3)}else if(arg2==9)location.href="http://www.pmang.com/mileage_top.nwz?flag=game";else document.location.reload();break;case 24:tachy_go(arg1,0,0);break;case 25:join_channel(arg1,arg2);break;case 27:open_game_top_win("http://"+location.hostname+"/pmang_purchase_product.nwz?ssn="+arg2+"&product_id="+arg1+"&cat_id=1000004142",
"clientbuy",430,400);break;case 29:url=virtualGET("http://"+location.hostname+"/global/virtual/gamepopup_virtual.nwz?ssn="+arg1);if(url)open_game_top_win(url,"_eventpopup",400,650,"no","no",29);break;case 30:open_win(pmang_get_url("mm","/pmangdir/promotion/realname/gamelimit.html"),400,200);break;case 31:go_game2(arg1,arg2);document.location.replace("http://www.pmang.com/game_top.nwz?ssn="+arg1);break;case 32:if(arg2!="D"){top.virtual_fr.location="http://"+location.hostname+"/pmang_ad_endban.nwz?gametype=C";
setTimeout("document.location.reload()",1E3)}else document.location.reload();break;case 35:setTimeout("open_game_top_win('http://"+location.hostname+"/pmang_refill.nwz?ssn="+arg1+"&isallin=Y', 'allinpop', 434, 443, 'no'/*scroll*/, 'yes'/*resize*/, '35');",1500);break;case 36:open_game_top_win(virtualGET("http://"+location.hostname+"/global/virtual/gameitem_virtual.nwz?ssn="+arg1+"&srl="+arg2),"_gameitem",400,250,"no","no",36);break;case 37:window.open("http://"+location.hostname+"/pmang_faq_goto.nwz?ssn="+
arg1);break;case 38:window.open("http://"+location.hostname+"/pmang_mall_goto.nwz?ssn="+arg1);break;case 39:var isOpen=virtualGET("http://"+location.hostname+"/global/virtual/game_extmoney_virtual.nwz?ssn="+arg1);if(isOpen=="01")open_game_top_win("http://"+location.hostname+"/pmang_extmoney_alert.nwz?ssn="+arg1,"clientalram",480,400);break;case 40:open_win("http://"+location.hostname+"/pmang_purchase_product.nwz?ssn="+arg1+"&codestr="+arg2,450,260);break;case 41:open_game_top_win("http://"+location.hostname+
"/pmang_extmoney_pop.nwz?ssn="+arg1,"clientalram",480,580);break;case 42:open_game_top_win("http://"+location.hostname+"/pmang_purchase_premium.nwz?ssn="+arg1+"&rsrl="+arg2,"clientbuy",430,400);break;case 43:var url=pmang_get_url("file","/images/pmang/nabi/html/fcitem/item_fc"+arg1+"_safe.html");open_game_top_win(url,"fciteminfo",480,460);break;case 44:var method=arg2.substr(0,arg2.indexOf("|"));var cat_id=arg2.substr(arg2.indexOf("|")+1,arg2.length);document.location.replace("http://"+location.hostname+
"/premium_top.nwz?ssn="+arg1+"&method="+method+"&cat_id="+cat_id);break;case 45:go_game2(arg1,arg2);document.location.replace("http://"+location.hostname+"/game_top.nwz?ssn="+arg1);break;case 46:window.focus();open_game_top_win("http://"+location.hostname+"/promotion/pmang_jangddang_sms.nwz","_jangddangsms",436,370);break;case 47:idx1=arg1.indexOf("#__1__");if(idx1!=-1){value1=arg1.substr(0,idx1);value2=arg1.substr(idx1+6)}go_game5(value1,value2,arg2);break;case 50:open_game_top_win("http://"+location.hostname+
"/pmang_profile_popup.nwz?method=guestbook&targetmsrl="+arg1,"_profile",400,330);break;case 51:var wnd=window.open("http://"+location.hostname+"/my_friends.nwz");try{wnd.focus()}catch(Exception){}set_game_top_window(wnd,null);break;case 52:var wnd=open_talk(arg1);set_game_top_window(wnd,null);break;case 90:window.open("http://"+location.hostname+"/promotion/pmang_pcbang_fighting.nwz","_blank");break;case 91:var days=1;var name="HAVETICKET";var value="Y";var dt=new Date;dt.setDate(dt.getDate()+days);
document.cookie=name+"="+value+"; path=/; expires="+dt.toUTCString();break;case 92:var dealcho=virtualGET("http://"+location.hostname+"/promotion/pmang_dealcho_click_client.nwz?ssn="+arg1);ch=virtualGET("http://"+location.hostname+"/pmang_get_channel_max.nwz?ssn="+arg1+"&golevel="+arg2);if(ch=="")break;if(ch.charAt(0)=="0")ch=ch.replace("0","");go_game2(arg1,ch);break;case 93:if(!tmpGetCookie("powermission_tue")&&!tmpGetCookie("powermission")){var powerParam=virtualGET("http://"+location.hostname+
"/promotion/pmang_powermission_getinfo.nwz?ssn="+arg1);if(powerParam.indexOf("#__Y__")!=-1&&!tmpGetCookie("powermission"))open_game_top_win("http://"+location.hostname+"/promotion/pmang_powermission_popup_join.nwz?ssn="+arg1,"_powermission",400,330)}break;case 101:size=new Array("","");if(arg2!="")size=arg2.sprit("|");open_win(arg1,size[0],size[1]);break}}
function tmpGetCookie(Name){var search=Name+"=";if(document.cookie.length>0){offset=document.cookie.indexOf(search);if(offset!=-1){offset+=search.length;end=document.cookie.indexOf(";",offset);if(end==-1)end=document.cookie.length;return unescape(document.cookie.substring(offset,end))}}return false}var new_win;function url_to_new_win(url){if("object"==typeof new_win)try{new_win.sayNavigate(url);return}catch(e){}new_win=window.open(url,"_blank","height=500,width=800")}
function say_open_url(url){var windowToOpen;if(parent&&parent!=self){var c=parent;var t;var cnt=0;while(cnt++<20&&c.parent&&c!=c.parent)if(c.opener)c=c.opener;else c=c.parent;cnt=0;if("undefined"==typeof c.sumMenus_club&&(1||!AppletSession)&&"object"==typeof c.opener&&c.opener!=c){c=c.opener;if("object"==typeof c.top)c=c.top}windowToOpen=c}else windowToOpen=self;if("undefined"!=typeof windowToOpen.sayNavigate)try{windowToOpen.sayNavigate(url)}catch(e){url_to_new_win(url)}else try{windowToOpen.document.location.assign(url)}catch(e){url_to_new_win(url)}}
function join_channel(encoded_channel,encoded_opts){if(encoded_channel.substring(2,4)=="GG")go_game(escape(encoded_channel),encoded_opts);else if(encoded_channel.substring(2,3)=="b"){var url=channel_url(escape(encoded_channel),encoded_opts);open_nrbchatwin("joinroom",url)}else if(encoded_channel.substring(2,4)=="SS"){var typecheck=typeof parent.opener;if(typecheck!="undefined"&&typecheck!="unknown")open_win(studio_url(escape(encoded_channel),encoded_opts),"_new",510,800);else open_win(studio_url(escape(encoded_channel),
encoded_opts),"_new",510,800)}else{var url=channel_url(escape(encoded_channel),encoded_opts);say_open_url(url)}}function checkSkyScraper(){if(screen.width<1024||screen.height<768||document.body.clientWidth<=934)return false;else return true}is_ready_gp=false;function bring_top_game(title){if(!is_ready_gp){setTimeout("bring_top_game()",200);return}if(typeof sc_game=="object"&&typeof sc_game.bring_top=="object"){sc_game.bring_top(title);return}}var lastscrollHeight=0;var scrollObjt=false;
function do_scroll(){if("object"==typeof scrollObjt.scroll)scrollObjt.scroll(0,1E6);else if("object"==typeof scrollObjt.scrollIntoView&&"object"==typeof curDiv)curDiv.scrollIntoView(false)}
function scroll_or_not(){if(!scrollObjt)scrollObjt=document.body;if(typeof curDiv=="object"&&scrollObjt.scrollTop+scrollObjt.offsetHeight>=lastscrollHeight){setTimeout("do_scroll();",0);lastscrollHeight=scrollObjt.scrollTop+scrollObjt.offsetHeight}else if(typeof scrollObjt!="object"||scrollObjt.scrollTop+scrollObjt.offsetHeight>=lastscrollHeight){do_scroll();lastscrollHeight=scrollObjt.scrollHeight}}
function skyScraperHandler(wideWidth,narrowWidth){if(screen.width<1024||screen.height<768||document.body.clientWidth<=934){document.all.idGlobalHeader.style.pixelWidth=narrowWidth;document.all.idSkyScraperTD1.style.display="none";document.all.idSkyScraperTD1.style.pixelWidth=0;document.all.idMainContent.style.pixelWidth=narrowWidth;document.all.idSkyScraperTD2.style.display="none";document.all.idSkyScraperTD2.style.pixelWidth=0}else try{if(document.all.idSkyScraperTD1.style.display=="none"||document.all.idSkyScraperTD2.style.display==
"none"){document.all.idGlobalHeader.style.pixelWidth=wideWidth;document.all.idSkyScraperTD1.style.display="";document.all.idMainContent.style.pixelWidth=wideWidth;document.all.idSkyScraperTD2.style.display=""}}catch(e){}}function sayNavigate(url){var oBaseColl=document.all.tags("BASE");if(oBaseColl&&oBaseColl.length&&oBaseColl[0].target.length)window.open(url,oBaseColl[0].target);else document.location.assign(url);if(event)event.returnValue=false}
function ts_unload_handler(){if(!g_ts_service)g_ts_service="www";if(!g_tsparam1)g_tsparam1=0;if(!g_tsparam2)g_tsparam2="Unknown";try{var ret=virtualGET("http://"+g_ts_service+".sayclub.com/global/virtual/gather_ts_virtual.nwz?param1="+g_tsparam1+"&param2="+g_tsparam2)}catch(e){}}function open_gnb_fromhompy(url){if(top.opener)top.opener.location.href=url;else window.open(url)}
function open_club_fromhompy(lclubid,clubsrl,aseq){window.open("http://club.sayclub.com/cb_rout.nwz?lclubid="+lclubid+"&clubsrl="+clubsrl+"&aseq="+aseq,"open_club")}function open_hompy(lusrid,str){open_hompy2(lusrid,str)}function open_hompy_srl(srl,str){open_hompy2_srl(srl,str)}function open_user_info(msrl,usrid){window.open("http://me.sayclub.com/profile/home/view/"+usrid)}function open_memo_send(usrid){open_win("http://memo.pmang.com/memosend.nwz?toid="+usrid,"_memosend",360,272)}
function open_hompy2(lusrid,str){if(lusrid=="-1"||lusrid=="")return;var url="http://hompy.sayclub.com/hompy.nwz?targetid="+lusrid+"&pop=pop";if(str)url=url+"&"+str;hompy_win=window.open(url,"_hompy","scrollbars=no,resizable=no,width=995,height=585");try{hompy_win.focus()}catch(Exception){}}
function open_hompy2_srl(srl,str){if(srl=="-1"||srl=="")return;var url="http://hompy.sayclub.com/hompy.nwz?targetmsrl="+srl+"&pop=pop";if(str)url=url+"&"+str;hompy_win=window.open(url,"_hompy","scrollbars=no,resizable=no,width=995,height=585");try{hompy_win.focus()}catch(Exception){}}
function open_hompy2_fromhompy(msrl,str){if(msrl=="-1"||msrl=="")return;var url="http://hompy.sayclub.com/hompy.nwz?targetmsrl="+msrl+"&pop=frompop";if(str)url=url+"&"+str;hompy_win_fromhompy=window.open(url,"_fromhompy","scrollbars=no,resizable=no,width=995,height=585");try{hompy_win_fromhompy.focus()}catch(Exception){}}function go_jukeon(url,usrid){window.open("http://www.jukeon.com/")}
function go_jukeon_fm(usrid){var url="http://www.jukeon.com/global/common/player/jukeon_fm_player.nwz?auto_play=1";if(typeof usrid=="undefined"||!usrid){var win=window.open(url,"JukeonPlayer","width=355,height=340,resizable=no,toolbars=no,scrollbars=no");win.focus()}else{var clsid="EACD6BE5-C0EE-4909-9B71-B2807C8A245C";var span=document.frames["span_jukeonax"];if(typeof span=="undefined")document.body.insertAdjacentHTML("afterBegin",'<span id="span_jukeonax" style="display:none"></span>');span=document.frames["span_jukeonax"];
span.innerHTML="";var text="<object id=JukeonAX name=JukeonAX classid='clsid:EACD6BE5-C0EE-4909-9B71-B2807C8A245C' onError='window.open(\""+url+'","JukeonPlayer","width=355,height=440,resizable=no,toolbars=no,scrollbars=no")\'></object>';span.innerHTML=text;try{var r=JukeonAX.externalmethod("go_jukeon",clsid,0,0,usrid+",window.open('"+url+"','JukeonPlayer','width=355,height=440,resizable=no,toolbars=no,scrollbars=no');");if(!r){var win=window.open("http://www.jukeon.com/global/common/login/sayclub_gateway.nwz?usrid="+
usrid+"&pageurl="+escape(url),"JukeonPlayer","width=355,height=440,resizable=no,toolbars=no,scrollbars=no");win.focus()}}catch(e){}}}function go_jukeon_check(url,usrid){if("undefined"!=typeof usrid&&usrid)go_jukeon(url,usrid);else window.open(url)}
function go_login(module,ispopup){if(ispopup){opener.document.location.href="http://www.pmang.com/global/loginform.nwz?module="+module+"&pageurl="+opener.document.location;self.close()}else document.location.href="http://www.pmang.com/global/loginform.nwz?module="+module+"&pageurl="+document.location}
function fitString(str,maxwidth,style,tail){uid="what_a_beautiful_day..";o=document.createElement("SPAN");o.id=uid;o.innerHTML=str;document.body.appendChild(o);o.style.cssText="top:-1000px; overflow:hidden;white-space:nowrap;visibility:hidden;"+style;var strTail;if(o.offsetWidth>maxwidth)strTail=tail;else strTail="";maxiteration=100;while(o.offsetWidth>maxwidth){o.innerText=o.innerText.substr(0,o.innerText.length-1);if(maxiteration==0)break;maxiteration--}s=o.innerHTML+strTail;document.body.removeChild(o);
return s}function widthString(str,style){uid="what_a_beautiful_day..haha";o=document.createElement("SPAN");o.id=uid;o.innerHTML=str;document.body.appendChild(o);o.style.cssText="top:-1000px; overflow:hidden;white-space:nowrap;visibility:hidden;"+style;var realWidth=o.offsetWidth;document.body.removeChild(o);return realWidth}function checkInArray(obj,val){for(var i=0;i<obj.length;i++)if(obj[i]==val)return true;return false}var smsrllist=new Array;
function checkInArray(obj,val){for(var i=0;i<obj.length;i++)if(obj[i]==val)return true;return false}function SayAlertMeetInvite(sendmsrl,method){windowHandle=open_win("http://saychatting.sayclub.com/meeting/pop_memo_list.nwz?yourmsrl="+sendmsrl,"",416,156)}function SayAlertMeetPropose(srl,text){windowHandle=open_win("http://saychatting.sayclub.com/meeting/pop_meet_view_propose.nwz?notified=yes&srl="+srl,"",445,284)}function SayAlertMeetProposeInfo(total,unread){}
function openerGoUrl(url){var framechk=typeof opener.parent;if(framechk!="unknown"&&framechk!="undefined")opener.parent.document.location.href=url;else if(chk!="unknown"&&chk!="undefined"){var chk=typeof opener;opener.document.location.href=url}self.close()}function charge_saycash_check(strURL){var bFromMainWindow=true;if(bFromMainWindow)window.open(strURL,"_rds","width=460,height=161,scrollbars=no,scrolling=auto");else document.location.replace(strURL);return}
function goCafeItem(csrl,usetype,target){var index_url="http://cafe.sayclub.com/mycafe_index.nwz?csrl="+csrl+"&spage_url=";var spage_url=window.location.href;var url=index_url+escape(spage_url);if("new"==target)window.open(url,"_top");else if("current"==target)document.location.href=url;else if("parent"==target)parent.location.href=url}
function printFlashObject(flash_src,name,width,height,option_param_tag){var obj_html="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,12,36' width='"+width+"' height='"+height+"' id='"+name+"' align='middle'>\n";if(window.addEventListener)obj_html="<object type='application/x-shockwave-flash' id='"+name+"' data='"+flash_src+"' width='"+width+"' height='"+height+"' align='middle'>\n";obj_html+=
"<param name='movie' value='"+flash_src+"' />\n";obj_html+="<param name='allowScriptAccess' value='always' />\n";obj_html+="<param name='quality' value='high' />\n";obj_html+="<param name='wmode' value='transparent' />\n";obj_html+="<param name='menu' value='false' />\n";obj_html+=option_param_tag+"\n";obj_html+="</object>\n";document.write(obj_html)}
function printFlashObject2(obj,flash_src,name,width,height,option_param_tag){obj_html="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,12,36' width='"+width+"' height='"+height+"' id='"+name+"' align='middle'>  <param name='allowScriptAccess' value='always' />  <param name='movie' value='"+flash_src+"' />  <param name='quality' value='high' />  <param name='bgcolor' value='#ffffff' />  <param name='wmode' value='transparent'>  <param name='menu' value='false'>";
obj_html=obj_html+option_param_tag;obj_html=obj_html+"<embed src='"+flash_src+"' wmode='transparent' quality='high' bgcolor='#ffffff' width='"+width+"' height='"+height+"' name='"+name+"' align='middle' allowscriptaccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />  </object>";obj.innerHTML=obj_html}function printObject(strVar){document.write(strVar)}
function openAcessHelper(){open_win_scroll("http://mm.pmang.com/sayclub/home/help_access.html","_helpAccess",517,600)}function ssl_request_url(url){return"https://secure.pmang.com/?surl="+urlencode(url)}function isSSLRequest(){var cururl=window.location+"";if(cururl.substr(0,8)=="https://")return true;return false}
function getSSLURL(url){var sslbase="https://secure.pmang.com/?surl=";if(isSSLRequest()){url=url.replace(/:/g,"%3A");url=url.replace(/\//g,"%2F");url=url.replace(/\?/g,"?&");return sslbase+url}return url}function getSSLResourceURL(url){var sslbase="https://secure.pmang.com/resource.nwz?src=";if(isSSLRequest())return sslbase+url;return url}
function printTagHtmlDivScript(tagid,totalcnt){var today=new Date;index_tag=today.getSeconds()%totalcnt;document.getElementById(tagid+"_"+index_tag).style.display="block"}
function getCookie(name){var Found=false;var start,end;var i=0;while(i<=document.cookie.length){start=i;end=start+name.length;if(document.cookie.substring(start,end)==name){Found=true;break}i++}if(Found==true){start=end+1;end=document.cookie.indexOf(";",start);if(end<start)end=document.cookie.length;return document.cookie.substring(start,end)}return false}
function install_hauri(){var dlgHeight=465;var dlgWidth=454;s=navigator.userAgent;if(s.search("MSIE 7")>0){dlgHeight=dlgHeight-45;dlgWidth=dlgWidth-7}url="http://www.pmang.com/vaccine_popup.nwz";if(location.hostname!="www.pmang.com")url=url+"?from=sayclub";rtn=window.showModalDialog(url,"","dialogHeight:"+dlgHeight+"px;dialogWidth:"+dlgWidth+"px;");switch(rtn){case 1:var exp_ck=new Date;exp_ck.setTime(exp_ck.getTime()+30*1E3*60*60*24);document.cookie="noinst_vaccine=on; expires="+exp_ck.toGMTString()+
"; path=/; domain=pmang.com";break;case 2:}}function check_vaccine(){return 0;var temp=getCookie("neowiz_vaccine");var temp2=getCookie("noinst_vaccine");if(temp=="on"||temp2=="on");else{document.write("<OBJECT id=Popinstall classid='clsid:A60276A5-4069-4E9B-926E-EF54A269A4C0' style='width:0; height:0;' onerror='javascript:install_hauri()'><OBJECT>");document.cookie="neowiz_vaccine=on;domain=pmang.com; path=/;"}}
function gamble_wheel(){var temp=getCookie("disneypromo");if(temp=="on");else{var dlgHeight=438;var dlgWidth=300;s=navigator.userAgent;url="http://pmangmall.pmang.com/event/happybag/disney.nwz";open_win(url,"_gamblewheel",dlgWidth,dlgHeight)}}function openPlayer(pDomainid){if(pDomainid){url="http://www.saycast.com/sayradio/sayradio.nwz?type=station&domainid="+pDomainid;window.open(url,"_sayradio","width=485,height=220")}}
function openPlayerPrivate(pCjId,pChannel){var pChannelStr="";if(pChannel){pChannel=pChannel.replace("#","%23");pChannel=pChannel.replace("/","%2F");pChannelStr="&channel="+pChannel}if(pCjId){url="http://www.saycast.com/sayradio/sayradio.nwz?type=private&cjid="+pCjId+pChannelStr;window.open(url,"_sayradio","width=485,height=220")}}
function image_root_converter(imgfile,prefix){var str_prefix="";if(prefix)str_prefix=prefix+"_";var reg_str=/^([0-9]{4}-[0-9]{2})/;if(!imgfile.match(reg_str))return"http://file.pmang.kr/charimg/item_real2/"+str_prefix+imgfile;else return"http://file.pmang.kr/charimg/item_real2/"+imgfile.substr(0,4)+"/"+imgfile.substr(5,2)+"/"+str_prefix+imgfile}
function pmangGetCookie(name,subname){var prefix=name+"=";var cookieStartIndex=document.cookie.indexOf(prefix);if(cookieStartIndex==-1)return null;var cookieEndIndex=document.cookie.indexOf(";",cookieStartIndex+prefix.length);if(cookieEndIndex==-1)cookieEndIndex=document.cookie.length;if(subname==null||subname==""||subname=="undefined")return unescape(document.cookie.substring(cookieStartIndex+prefix.length,cookieEndIndex));else return pmangGetSubCookie(subname,unescape(document.cookie.substring(cookieStartIndex+
prefix.length,cookieEndIndex)))}function pmangGetSubCookie(name,ckstring){var prefix=name+"=";var cookieStartIndex=ckstring.indexOf(prefix);if(cookieStartIndex==-1)return null;var cookieEndIndex=ckstring.indexOf("&",cookieStartIndex+prefix.length);if(cookieEndIndex==-1)cookieEndIndex=ckstring.length;return ckstring.substring(cookieStartIndex+prefix.length,cookieEndIndex)}
function campaignTrace(){var usersrl=pmangGetCookie("pmang_cpgn_trace","usersrl");var navi=pmangGetCookie("pmang_cpgn_trace","navi");if(usersrl>0&&navi=="y"){usersrl=usersrl;var usn=pmangGetCookie("pmang_cpgn_trace","usn");var cdate=pmangGetCookie("pmang_cpgn_trace","cdate");var url=escape(location.href);if(this.virtualGET instanceof Function)virtualGET("http://"+location.hostname+"/pmang_set_campaign_log.nwz?usersrl="+usersrl+"&usn="+usn+"&cdate="+cdate+"&url="+url)}}
function SayRecvRose(pMsrl,roseCnt,hideNickFlag,message,sendDate){var url="http://www.saycast.com/rosegift/pop_roserecv.nwz?msrl="+pMsrl+"&roseCnt="+roseCnt+"&hideNickFlag="+hideNickFlag+"&sendDate="+sendDate+"&message="+message;window.open(url,"_blank","resizable=no,width=500,height=500")}
function SayRecvRoseReply(pMsrl,replyMsg,sendDate){var url="http://www.saycast.com/rosegift/pop_roserecv_reply.nwz?msrl="+pMsrl+"&sendDate="+sendDate+"&replyMsg="+replyMsg;window.open(url,"_blank","resizable=no,width=500,height=500")}
function openRecvRosePop(){var result=virtualGET("http://"+document.location.hostname+"/global/virtual/saycast_get_recvrose.vr.nwz");var arr=result.split("<split>");var arrResult="";var arrTemp="";for(var j=0;j<arr.length;j++)if(typeof arr[j]!="undefined"&&arr[j]!="fail"){arrResult=arr[j].split("||");if(arrResult[0]=="recv")for(var i=1;i<arrResult.length;i++){arrTemp=arrResult[i].split(":",5);SayRecvRose(arrTemp[0],arrTemp[1],arrTemp[2],arrTemp[4],arrTemp[3])}else if(arrResult[0]=="reply")for(var i=
1;i<arrResult.length;i++){arrTemp=arrResult[i].split(":",3);if(arrTemp[0]&&arrTemp[1]&&arrTemp[2])SayRecvRoseReply(arrTemp[0],arrTemp[2],arrTemp[1])}}}
if("undefined"==typeof ItemHandler)ItemHandler={imageRootConverter:function(imgfile,prefix){var str_prefix="";if(prefix)str_prefix=prefix+"_";var reg_str=/^([0-9]{4}-[0-9]{2})/;if(!imgfile.match(reg_str))return"http://file.pmang.kr/charimg/item_real2/"+str_prefix+imgfile;else return"http://file.pmang.kr/charimg/item_real2/"+imgfile.substr(0,4)+"/"+imgfile.substr(5,2)+"/"+str_prefix+imgfile},getAvatarZindex:function(){var z_index=new Array;z_index[1]=8;z_index[2]=7;z_index[3]=6;z_index[4]=9;z_index[5]=
5;z_index[6]=14;z_index[7]=15;z_index[8]=22;z_index[9]=0;z_index[10]=1;z_index[11]=2;z_index[12]=3;z_index[13]=4;z_index[14]=13;z_index[15]=10;z_index[16]=11;z_index[17]=12;z_index[18]=16;z_index[19]=17;z_index[20]=18;z_index[21]=19;z_index[22]=20;z_index[23]=21;return z_index},getAvatarFromFilestr:function(filestr,mood,width,height){if(jQuery.inArray(mood,[2,3,4,5])==-1)mood=1;var z_index=ItemHandler.getAvatarZindex();var leftPosition=-(100-width)/2;var charimg="<!-- CHARACTER START --\><div>";charimg+=
'<div id="character" style="position:relative; top:0; left:0; width:'+width+"px; height:"+height+'px; overflow:hidden">';var arrChar=filestr.split("!");if(arrChar.length>1){var arrTemp="";if(typeof arrChar[4]!="undefined"&&arrChar[4]!="*"){arrTemp=arrChar[4].split(",");arrChar[4]=arrTemp[0]}if(typeof arrChar[17]!="undefined"&&arrChar[17]!="*"){arrTemp=arrChar[17].split(",");arrChar[17]=arrTemp[0]}for(var j=0;j<23;j++)if(typeof arrChar[j]=="undefined"||arrChar[j]==""||arrChar[j]=="*")arrChar[j]="img_blank.gif";
var layer=0;var tempStr="";for(var i=0;i<arrChar.length;i++){layer=i+1;if(i==0||i==4||i==12||i==17||i==18)if(mood>=2&&mood<=5&&arrChar[i]!="img_blank.gif"&&arrChar[i].search("default")==-1)arrChar[i]=arrChar[i].replace("01.gif","0"+mood+".gif");charimg+='<div id="Layer'+layer+'" style="position:absolute; left:'+leftPosition+"px; top:0px; z-index:"+z_index[layer]+'">';charimg+='<img id="ImgChar'+layer+'" src="'+ItemHandler.imageRootConverter(arrChar[i])+'" border="0"></div>'}}else{charimg+='<div id="Layer0" style="position:absolute; left:'+
leftPosition+'px; top:0px; z-index:1">';charimg+='<img src="'+ItemHandler.imageRootConverter(filestr)+'" border="0"></div>'}charimg+="</div></div><!-- CHARACTER END --\>";return charimg}};function bannerOpenByNw(url){window.open(url,"_blank")}function bannerOpenByPw(url){if(typeof window.opener!="undefined")window.location=url;else var newwin=window.open(url)}
function formatNumber(src,separator_pos){var x=[];src=new String(src);for(var i=1;i<=src.length;i++)if(i%separator_pos)x[src.length-i]=src.charAt(src.length-i);else x[src.length-i]=","+src.charAt(src.length-i);return x.join("").replace(/^,/,"")}function isVista(){if(navigator.appVersion){ver=navigator.userAgent.toLowerCase();if(ver.indexOf("nt 6.0")>-1)return true}return false}function movingFont(content,interval){setInterval("movingFontAni(content)",interval)}
function isMovingFont(fontfamily){if(fontfamily.substr(0,4)=="GF0M")return true;else return false}function movingAll(){$("font[@id^=moving]").trigger("activate");$("font[@id^=moving]").trigger("keyup");$("input[@id^=moving]").trigger("activate");$("input[@id^=moving]").trigger("keyup");$("div[@id^=moving]").trigger("activate");$("div[@id^=moving]").trigger("keyup");$("span[@id^=moving]").trigger("activate");$("span[@id^=moving]").trigger("keyup")}
function movingSome(id){$("font[@id="+id+"]").trigger("activate")}function getMovingID(str){if(typeof str=="undefined"||str=="")return"moving_"+(new Date).getTime();else return"moving_"+str}
function movingFontAni(obj){if(obj===null)return;if(obj=="undefined"||typeof obj.style!="object")return;if(!isMovingFont(obj.style.fontFamily))return;var arr=obj.style.fontFamily.split(/_/);if(arr.length<2)return;var idx=1;if(arr.length==3)idx=arr[2];var nextidx=1;if(idx<4)nextidx=parseInt(idx)+1;obj.style.fontFamily=arr[0]+"_"+arr[1]+"_"+nextidx}function getNewMemoCount(){if("object"==typeof AppletSession){var cnt=AppletSession.getvalue("memo_cnt_new");if(cnt=="")return 0;return cnt}return 0}
function sendEvent(call_name,params,postAction,url){var arrParam=new Object;arrParam["call_name"]=call_name;for(var key in params){if(key=="call_name"){alert("'call_name' is keyword!");return}arrParam[key]=params[key]}$.ajax({type:"POST",url:url,data:arrParam,success:function(res){arrRet=res.split("^R");eval("var obj = "+arrRet[1]);if(obj.login_url!=undefined)try{login_alert_action(obj.isch=="true"?true:false,obj.login_url)}catch(ex){var c_ret=pub_confirm("·Î±×ÀÎ ÈÄ ÀÌ¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.<br>·Î±×ÀÎ ÆäÀÌÁö·Î ÀÌµ¿ÇÏ½Ã°Ú½À´Ï±î?");
if(c_ret)if(obj.isjs=="false")top.location.href=obj.login_url;else eval(obj.login_url)}else{if(obj.msg!=undefined&&obj.msg!="")pub_alert(obj.msg);if(postAction!=null&&postAction!="undefined")if(obj.ret!=undefined)postAction(obj.ret);if(obj.reload=="true")location.reload();if(obj.close=="true")self.close()}},async:false})}
function sendEventCheckGame(call_name,params,postAction,url){sendEvent("loginCheck",null,function(ret){if(ret=="OK"){var launcher_clsid="23A35955-BB25-49f7-87A7-0A4DA1FD2190";if(!AppletSession.externalmethod("isrunning","EB5229C5-28AE-4df6-8BC2-F3C3BFD09F00",0,0,"")&&!AppletSession.externalmethod("isrunning",launcher_clsid,0,0,""))sendEvent(call_name,params,postAction,url);else pub_alert("°ÔÀÓÀÌ ½ÇÇàÁßÀÔ´Ï´Ù.<br>°ÔÀÓÀ» Á¾·áÇÑ ÈÄ ÀÌ¿ëÇØ ÁÖ¼¼¿ä.")}},url)}
function giveItem(give_type,params){var arrParam=new Object;arrParam["give_type"]=give_type;for(var key in params)arrParam[key]=params[key];sendEvent("giveItem",arrParam)}function login_alert_popup_action(isch,login_url){var c_ret=pub_confirm("·Î±×ÀÎ ÈÄ ÀÌ¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.<br>·Î±×ÀÎ ÆäÀÌÁö·Î ÀÌµ¿ÇÏ½Ã°Ú½À´Ï±î?");if(c_ret)if(isch)eval("opener."+login_url);else opener.location.href=login_url;self.close()}
function loadScript(url,callback){var script=document.createElement("script");script.type="text/javascript";if(script.readyState)script.onreadystatechange=function(){if(script.readyState=="loaded"||script.readyState=="complete"){script.onreadystatechange=null;callback()}};else script.onload=function(){callback()};script.src=url;document.getElementsByTagName("head")[0].appendChild(script)}
function print_pmang_gnb(){var obj=new Object;switch(arguments.length){case 0:obj.ssn=0;obj.type="norm";break;case 1:obj.ssn=arguments[0];obj.type="norm";break;case 2:obj.ssn=arguments[0];obj.type=arguments[1];break;default:alert("INVALID TRY");return""}if(document.domain==""||document.domain=="neo"){document.writeln('<link type="text/css" rel="stylesheet" href="http://file.pmang.kr/css/global_gnb_nabi_n.css">');document.writeln("<div id=print_pmang_gnb_anchor></div>");obj.domain=document.location.hostname;
$.ajax({type:"GET",url:"http://www.pmang.com/gamepub/component/gamepub_get_gnb.nwz",data:obj,dataType:"jsonp",success:function(data){$("#print_pmang_gnb_anchor").before(data["html"]).remove()}})}else{obj.domain=document.location.hostname;var html=$.ajax({type:"GET",url:"/gamepub/component/gamepub_get_gnb.nwz",data:obj,datatype:"json",async:false}).responseText;document.write(html)}}
function resize_wnd_v2(){var myBody=iebody();var clientH=myBody.clientHeight;var oFloat=resize_wnd_v2.oFloat;var width=resize_wnd_v2.width;if(typeof width!="number")width=myBody.scrollWidth;var height=oFloat.offsetTop;resize_wnd_v2.is_first=typeof resize_wnd_v2.is_first=="undefined";var d_w=width-myBody.clientWidth;var d_h=height-clientH;if(!resize_wnd_v2.is_first&&d_h==0)return;if(resize_wnd_v2.is_first&&Math.abs(d_h)<=1){d_h=Math.min(0,250-height);if(d_h){window.resizeBy(0,d_h);clientH+=d_h;height=
oFloat.offsetTop}}var isWIC=window.opener?false:true;var alpha=isWIC?0:60;var beta=isWIC?0:40;var maxH=screen.availHeight-alpha-beta;if(height>maxH){height=maxH;myBody.scroll="auto"}if(!isWIC){var top=window.screenTop;d_h=0;if(top+height>maxH+alpha)d_h=maxH+alpha-(top+height);if(top-alpha+d_h<0)d_h=-(top-alpha);if(d_h)window.moveBy(0,d_h)}d_w=width-myBody.clientWidth;d_h=height-clientH;if(d_w||d_h)window.resizeBy(d_w,d_h)}
function auto_fit_wnd_v2(width){if(typeof width=="undefined")width=null;resize_wnd_v2.width=width;document.writeln("<div id='blank_img' style='position:absolute'></div>");if(!window.opener)iebody().scroll="no";var o=document.getElementById("blank_img");resize_wnd_v2.oFloat=o;if(typeof jQuery=="function"){if(jQuery.browser.msie)$(document).ready(function(){resize_wnd_v2()});$(window).load(function(){resize_wnd_v2()});return}if(window.attachEvent)window.attachEvent("onload",function(){resize_wnd_v2()});
else if(window.addEventListener)window.addEventListener("load",function(){resize_wnd_v2()},false)}
function url_prefix(module){var arrDomain=document.domain.split(".");var domain_name=arrDomain[arrDomain.length-2]+"."+arrDomain[arrDomain.length-1];if(domain_name.indexOf("daum.net")>-1){var daum_root_url="pmang.game."+domain_name;switch(module){case "www":return daum_root_url;break;case "memo":return"memo."+daum_root_url;break;case "saychatting":return"chat."+daum_root_url;break;case "pmangmall":return"mall."+daum_root_url;break;case "my":return"my."+daum_root_url;break;default:return"pmang.game."+
daum_root_url;break}}else return module+".pmang.com"}
function _js_notify_memo_receive_(url,wname,opt){if(document.location.hostname=="specialforce.pmang.com"){var ui=url.split("?");ui=ui[1].split("&");var arg=null;for(var i=0;i<ui.length;i++){arg=ui[i].split("=");if(arg[0]=="senderid"&&arg[1]=="neo_aoc"){try{var memo_cnt=parseInt($("#my_memo_newcount > b").text().replace("Åë",""));$("#my_memo_newcount > b").text(memo_cnt+1+"Åë")}catch(E){}return}}var wnd=window.open(url,wname,opt);wnd.focus()}else{var pop_url=url;if(document.location.hostname.indexOf("daum.net")>
0)pop_url=pop_url.replace(/saychatting\.pmang\.com/gi,"chat.pmang.game.daum.net");var wnd=window.open(pop_url,wname,opt);wnd.focus()}}function go_game_result(retObj){try{var type=retObj.type;var ch=retObj.ch;if(type=="refill"&&onGoGameResult_showRefillLayer)onGoGameResult_showRefillLayer(ch);if(type=="buy"&&onGoGameResult_showBuyLayer)onGoGameResult_showBuyLayer(ch)}catch(e){alert(e)}}
function pmang_get_url(subdomainid,path,ssn){if(ssn)return"http://"+location.hostname+"/pmang_open.nwz?flag=url&subdomainid="+subdomainid+"&path="+urlencode(path)+"&ssn="+ssn;return"http://"+location.hostname+"/pmang_open.nwz?flag=url&subdomainid="+subdomainid+"&path="+urlencode(path)};
