﻿document.domain="gamehi.co.kr";var openOtpWin=null;var NoLoginAlert1="해당 서비스는 로그인 하셔야 이용하실 수 있습니다.";var search_string_check1="검색어를 입력하세요.";var search_string_check2="검색어는 두글자 이상이어야 합니다";var login_check_msg="로그인후 이용해 주세요.";_WEB_URL="http://dekaron.gamehi.co.kr";_FILEWEB_URL="http://file.gamehi.kr/dekaron";_MFILEWEB_URL="http://file.gamehi.kr/dekaron";_SecureUrl="https://secure.gamehi.co.kr";_IMG_URL="http://img.gamehi.kr/dekaron";_PORTALWEB_URL="http://www.gamehi.co.kr";_TARGET_MAIN="dkr_main";_TARGET_HIDDEN="dkr_hidden";_TARGET_TOP="dkr_top";var ctl_name="ctl00_ContentPlaceHolder1_";var d="theForm.ctl00$ContentPlaceHolder1$";var df="ctl00$ContentPlaceHolder1$";var c="ctl00$ContentPlaceHolder1$";var ver_msg=function(t,msg){alert(msg);eval(t).value="";eval(t).focus();return false};var df_ver_msg=function(a,b){alert(b);getObject(a).value="";getObject(a).focus();return false};var is_ing=false;function check_ing(){if(is_ing){alert("처리 중 입니다.\n잠시만 기다려 주세요.");return false}else{is_ing=true;return true}}_HEIGHT_DIFF=23;function getObject(a){if(document.getElementById){return document.getElementById(a)}else{if(document.all){return document.all[a]}else{if(document.layers){return document.layers[a]}}}}function msg_login(){alert(login_check_msg);if(typeof(document._frmLeftLogin._user_id)=="object"){document._frmLeftLogin._user_id.focus()}}function file_extension(e,a,b){var g=e.substring(e.lastIndexOf("."));var f=e.substring(0,e.lastIndexOf("."));f=f.substring(f.lastIndexOf(a))==a?f.substring(0,f.lastIndexOf(a)):f;return f+b+g}function mainLeft_Menu(a,h,f){var b=_IMG_URL+"/images/_common/main/";var e=new Array("img_knight.jpg","img_hunter.jpg","img_magi.jpg","img_summ.jpg","img_sag.jpg","img_bagi.jpg","img_aloken.jpg");for(var g=1;g<=h;g++){getObject(a+g).src=file_extension(getObject(a+g).src,"_on",(f==g?"_on":""));if(g==f){getObject("character_bar").src=b+e[g-1]}}}function MM_swapImgRestore(){var f,b,e=document.MM_sr;for(f=0;e&&f<e.length&&(b=e[f])&&b.oSrc;f++){b.src=b.oSrc}}function MM_swapImage(){var f,g=0,b,e=MM_swapImage.arguments;document.MM_sr=new Array;for(f=0;f<(e.length-2);f+=3){if((b=MM_findObj(e[f]))!=null){document.MM_sr[g++]=b;if(!b.oSrc){b.oSrc=b.src}b.src=e[f+2]}}}function MM_findObj(a,e){var g,b,f;if(!e){e=document}if((g=a.indexOf("?"))>0&&parent.frames.length){e=parent.frames[a.substring(g+1)].document;a=a.substring(0,g)}if(!(f=e[a])&&e.all){f=e.all[a]}for(b=0;!f&&b<e.forms.length;b++){f=e.forms[b][a]}for(b=0;!f&&e.layers&&b<e.layers.length;b++){f=MM_findObj(a,e.layers[b].document)}if(!f&&e.getElementById){f=e.getElementById(a)}return f}function MM_preloadImages(){var f=document;if(f.images){if(!f.MM_p){f.MM_p=new Array()}var b,g=f.MM_p.length,e=MM_preloadImages.arguments;for(b=0;b<e.length;b++){if(e[b].indexOf("#")!=0){f.MM_p[g]=new Image;f.MM_p[g++].src=e[b]}}}}function MM_showHideLayers(){var e,f,b,g,a=MM_showHideLayers.arguments;for(e=0;e<(a.length-2);e+=3){if((g=MM_findObj(a[e]))!=null){b=a[e+2];if(g.style){g=g.style;b=(b=="show")?"visible":(b=="hide")?"hidden":b}g.visibility=b}}}function MM_openBrWindow(e,a,f){var b="";b=window.open(e,a,f);return}function Open_WIndow(e,a,g,f){var b;b=winSetting(g,f,0);window.open(e,a,b)}function winSetting(g,f,h){var b;var j;var e;var a;if(xpie_SP2_verChk()==true){a="yes"}else{a="no"}a="no";b=(screen.width)?(screen.width-g)/2:0;j=(screen.height)?(screen.height-f)/2:0;e="top="+j+",left="+b+",width="+g+",height="+f+",status="+a+",scrollbars="+h+",resizable=no";return e}function xpie_SP2_verChk(){tmp_MSIE=window.navigator.userAgent.indexOf("MSIE");if(tmp_MSIE&&window.navigator.userAgent.indexOf("SV1")>tmp_MSIE){return true}else{return false}}function toByte(e){var f;var b=0;var a;var g;g=0;f=new String(e);b=f.length;for(k=0;k<b;k++){a=f.charAt(k);if(escape(a).length>4){g+=2}else{if(a!="\r"){g++}}}return g}function trim(b){var a=b;var e=a.substring(0,1);while(e==" "){a=a.substring(1,a.length);e=a.substring(0,1)}e=a.substring(a.length-1,a.length);while(e==" "){a=a.substring(0,a.length-1);e=a.substring(a.length-1,a.length)}return a}function isEmptyAll(a){var b=0;for(var e=0;e<a.length;e++){if(a.substring(e,e+1)!=" "){b=b+1}}if(a.length==0||b==0){return true}else{return false}}var _popup_resizeCnt=0;function popup_autoResize(){var j=25;var a=6;var n=0;var m=0;var g;var f;var l=0;var b=self.document.body;if(_popup_resizeCnt>0){n=((b.scrollHeight-b.offsetHeight)+4);if(n<1){n=0}m=((b.scrollWidth-b.offsetWidth));if(m<1){m=0}}g=b.scrollHeight+(b.offsetHeight-b.clientHeight)+j+n;f=b.scrollWidth+(b.offsetWidth-b.clientWidth)+a+m;l=popup_getBodyWidth(b)+a+m;if(f>l){f=l}try{self.resizeTo(f,g);_popup_resizeCnt++;if((b.scrollHeight!=b.offsetHeight||b.scrollWidth!=b.offsetWidth)&&_popup_resizeCnt<2){popup_autoResize()}else{popup_autoResizeReset()}}catch(h){}}function popup_autoResizeReset(){_popup_resizeCnt=0}function popup_getBodyWidth(a){var g;var b=0;var h;try{body_margin=0;if(a.leftMargin){body_margin+=parseInt(a.leftMargin)}}catch(f){body_margin=4}if(a.children.length){for(g=0;g<a.children.length;g++){if(b<a.children[g].clientWidth){b=a.children[g].clientWidth}}}return b+body_margin}String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")};String.prototype.left=function(a){return this.substr(0,a)};String.prototype.right=function(a){return this.substr(this.length-a,a)};var Verifier={isAlpha:function(a){return(a.search(/[a-z]/gi)>-1)},isDigit:function(a){return(a.search(/[0-9]/gi)>-1)},isAlphaDigit:function(a){return(a.search(/[^A-Za-z0-9]/gi)>-1)},isEmail:function(a){return EmailUtil.isRegular(a)},isHangul:function(a){return(a.search(/[가-힣]/)>-1)}};var EmailUtil={isRegular:function(v){var n=0;var e=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum|co|co.kr|pe.kr)$/;var j=/^(.+)@(.+)$/;var r='\\(\\)><@,;:\\\\\\"\\.\\[\\]';var l="[^\\s"+r+"]";var f='("[^"]*")';var a=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;var q=l+"+";var u="("+q+"|"+f+")";var p=new RegExp("^"+u+"(\\."+u+")*$");var w=new RegExp("^"+q+"(\\."+q+")*$");var b=v.match(j);if(b==null){return false}var h=b[1];var x=b[2];for(g=0;g<h.length;g++){if(h.charCodeAt(g)>127){return false}}for(g=0;g<x.length;g++){if(x.charCodeAt(g)>127){return false}}if(h.match(p)==null){return false}var o=x.match(a);if(o!=null){for(var g=1;g<=4;g++){if(o[g]>255){return false}}return true}var m=new RegExp("^"+q+"$");var s=x.split(".");var t=s.length;for(g=0;g<t;g++){if(s[g].search(m)==-1){return false}}if(n&&s[s.length-1].length!=2&&s[s.length-1].search(e)==-1){return false}if(t<2){return false}return true}};var InputControl={numberOnly:function(){return(event.keyCode>=48&&event.keyCode<=57)},autoTab:function(e,a,b){if(event.keyCode==9||event.shiftKey||event.keyCode==16){return}if(e.value.length>=a){b.focus()}}};var layerHeight=370;var layerHeight_bn=322;function CheckUIElements(b){var g,e,a,f;g=parseInt(divMenu.style.top,10);if(b=="main"){e=document.body.scrollTop+layerHeight}else{e=document.body.scrollTop+layerHeight_bn}f=500;if(g!=e){a=Math.ceil(Math.abs(e-g)/20);if(e<g){a=-a}if(b=="main"){if(parseInt(layerHeight)<document.body.scrollTop){divMenu.style.top=document.body.scrollTop}else{divMenu.style.top=layerHeight}}else{if(parseInt(layerHeight_bn)<document.body.scrollTop){divMenu.style.top=document.body.scrollTop}else{divMenu.style.top=layerHeight_bn}}f=10}setTimeout("CheckUIElements('"+b+"')",f)}function CheckUIElements_bn(){var f,b,a,e;f=parseInt(divMenu1.style.top,10);b=document.body.scrollTop+layerHeight_bn;e=500;if(f!=b){a=Math.ceil(Math.abs(b-f)/20);if(b<f){a=-a}divMenu1.style.top=parseInt(divMenu1.style.top,10)+a;e=10}setTimeout("CheckUIElements_bn()",e)}function stalkerLayerFromTop(b,a,e){if(b==""||b==null){return false}a=a;divMenu=b;if(e=="main"){divMenu.style.top=document.body.scrollTop+layerHeight}else{divMenu.style.top=document.body.scrollTop+layerHeight_bn}divMenu.style.visibility="visible";CheckUIElements(e);return true}function checkEnter(a){var a=(a)?a:((event)?event:null);var b=(a.target)?a.target:((a.srcElement)?a.srcElement:null);if((a.keyCode==13)&&(b.type!="textarea")){event.returnValue=false;return false}}function sendsearch3(f,g,b){var a=document.getElementById(g).value;var e=document.getElementById(b);var h=e.value;if(isEmptyAll(e.value)){alert(search_string_check1);e.focus();return false}if(e.value.length<2){alert(search_string_check2);e.focus();return false}gourl=f+"?searchCode="+a+"&searchString="+escape(h);location.href=gourl;return false}function sendsearch5(f,g,b,h){var a=document.getElementById(g).value;var e=document.getElementById(b);var j=e.value;if(isEmptyAll(e.value)){alert(search_string_check1);e.focus();return false}if(e.value.length<2){alert(search_string_check2);e.focus();return false}gourl=f+"?searchCode="+a+"&searchString="+escape(j)+"&ntc_sort="+h;location.href=gourl;return false}function sendsearch6(e,b,a,g,l,m){var h=document.getElementById(b).value;var j=document.getElementById(a).value;var f=document.getElementById(g);var n=f.value;if(isEmptyAll(f.value)){alert(search_string_check1);f.focus();return false}if(f.value.length<2){alert(search_string_check2);f.focus();return false}gourl=e+"?searchCode1="+h+"&searchCode2="+j+"&searchString="+escape(n)+"&p_server_id="+m+"&p_state_sort="+l;location.href=gourl;return false}function isNumber(a){count=0;if(a.length<1){return false}for(i=0;i<a.length;i++){if(a.charAt(i)<"0"||a.charAt(i)>"9"){count++}}if(count!=0){return false}else{return true}}function downFile_loc(a){switch(a){case"gameDown01":alert("     준비중 입니다.              ");break;case"ATI_win98":document.location.href=_MFILEWEB_URL+"/_DownUtil/graphic_ati/6-2_wme_dd_cp_30314.exe";break;case"ATI_win2k":document.location.href=_MFILEWEB_URL+"/_DownUtil/graphic_ati/7-11_xp32_dd_ccc_wdm_enu_54435.exe";break;case"ATI_winvista":document.location.href=_MFILEWEB_URL+"/_DownUtil/graphic_ati/7-11_vista64_dd_ccc_wdm_enu_54442.exe";break;case"NVI_win98":document.location.href=_MFILEWEB_URL+"/_DownUtil/graphic_nvidia/81.98_forceware_win9x_international.exe";break;case"NVI_win2k":document.location.href=_MFILEWEB_URL+"/_DownUtil/graphic_nvidia/93.71_forceware_winxp2k_international_whql.exe";break;case"NVI_winxp":document.location.href=_MFILEWEB_URL+"/_DownUtil/graphic_nvidia/163.75_forceware_winxp_32bit_international_whql.exe";break;case"NVI_winvista":document.location.href=_MFILEWEB_URL+"/_DownUtil/graphic_nvidia/163.75_forceware_winvista_64bit_international_whql.exe";break;case"directx_win98":document.location.href=_MFILEWEB_URL+"/_DownUtil/dxwebsetup.exe";break;case"directx_win2k":document.location.href=_MFILEWEB_URL+"/_DownUtil/dxwebsetup.exe";break;case"dual_core":document.location.href=_MFILEWEB_URL+"/_DownUtil/Setup.exe";break}}var _iframe_autoResize_timer;var _iframe_autoResize_count=0;function iframe_autoResize(){_iframe_autoResize_timer=setInterval("iframe_autoResizeProc()",100)}function iframe_autoResizeProc(){document.domain="gamehi.co.kr";var f;try{var a=self.document.body;var h=a.scrollHeight+(a.offsetHeight-a.clientHeight);var b=a.scrollWidth+(a.offsetWidth-a.clientWidth);var g=self.parent.document.all(self.name);g.style.height=h;g.style.width=b;clearInterval(_iframe_autoResize_timer);_iframe_autoResize_count=0}catch(j){}_iframe_autoResize_count++;if(_iframe_autoResize_count>600){clearInterval(_iframe_autoResize_timer);_iframe_autoResize_count=0}}function pop_charge(a){if(a==""||a==null){a="PGC01-01001"}Open_WIndow(_SecureUrl+"/App/pop/pop_cash/pop_cash_agreement_main.aspx?charge_code="+a,"pop_charge",520,500)}function create_div(b){if(getObject(b)==null){var a=document.createElement("Div");a.id=b;a.width=a.height=0;a.style.display="none";document.body.appendChild(a)}}function getCookie(a){var b=document.cookie.indexOf(a+"=");if(b!=-1){b+=a.length+1;end=document.cookie.indexOf(";",b);if(end==-1){end=document.cookie.length}return document.cookie.substring(b,end)}else{return""}}function setCookie(a,h){var g=1000*60;var e=g*60;var b=e*24;var f=new Date();f.setTime(Math.round(f.getTime()/b+1)*b);document.cookie=a+"="+escape(h)+"; expires="+f.toGMTString()+";"}function StringBuilder(a){this.strings=new Array("");this.append(a)}StringBuilder.prototype.append=function(a){if(a){this.strings.push(a)}};StringBuilder.prototype.clear=function(){this.strings.length=1};StringBuilder.prototype.toString=function(){return this.strings.join("")};String.prototype.bytes=function(){var b=this;var a=0;for(var e=0;e<b.length;e++){a+=(b.charCodeAt(e)>128)?2:1}return a};function popCouponLoginCheck(){if(is_login){Open_WIndow(_SecureUrl+"/app/pop/pop_coupon/main.aspx?gamesite=DKR&gameservice=GH","coupon_pop","450","460")}else{if(confirm("로그인이 필요한 서비스입니다.\r\n로그인 하시겠습니까?")){__login()}}}function _enable_write(){return true}function Open_WIndowScroll(e,a,g,f,h){var b;b=winSetting(g,f,h);window.open(e,a,b)}function openFreeGift1(a){if(is_login){Open_WIndow("/App/pop/pop_freeGift/pop_freeGift_single.aspx?eventNo="+a,"pop_freeGift1",528,412)}else{if(confirm("로그인이 필요한 서비스입니다.\r\n로그인 하시겠습니까?")){__login()}}}function openFreeGift2(a){Open_WIndow("/App/pop/pop_freeGift/pop_freeGift_whole.aspx?eventNo="+a,"pop_freeGift2",528,694)}function __login(){window.location.href=_PORTALWEB_URL+"/App/member/member_login/member_login_form.aspx?ret_url="+escape(location)}function __logout(){window.location.href=_SecureUrl+"/App/member/member_login/member_logout_proc.aspx?ret_url="+escape(location)}var _ai={ih:0,m:382,init:function(a,f,b){if($("#prev_account").length==0){$("body").append("<p id='prev_account' style='position:absolute;top:-500px;left:-500px; z-index:999;'><img src='"+b+"' alt='' onload='_ai.loaded(this)' class='repImg' /></p>")}},move:function(g){var b,h,f,a;a=$(window).scrollTop();b=g.clientY-3+a;h=g.clientX+12+$(window).scrollLeft();f=$("body").innerHeight();if(b+this.ih-a>f){b=f-this.ih+a}$("#prev_account").css({top:b+"px",left:h+"px"}).fadeIn("fast")},loaded:function(a){if(typeof(a)!="undefined"){this.ih=a.height+2}},dispose:function(){$("#prev_account").remove()}};function f_copyright_chg(a){getObject("copyright_img").src=a==1?_IMG_URL+"/images/_common/copy_15_img.gif":_IMG_URL+"/images/_common/copy_18_img.gif"}function checkbytes(g,a,b){var e=g.value.bytes();if(document.getElementById(g.id+"_hidden")==null){var f=document.createElement("input");f.setAttribute("id",g.id+"_hidden");f.setAttribute("type","hidden");document.body.appendChild(f)}if(e>a){alert("최대 "+a+"바이트 까지 작성 가능합니다.");g.value=document.getElementById(g.id+"_hidden").value;return}else{document.getElementById(g.id+"_hidden").value=g.value;if(document.getElementById(b)!=null){document.getElementById(b).innerHTML=e}}}function checklength(g,a,b){var e=g.value.length;if(document.getElementById(g.id+"_hidden")==null){var f=document.createElement("input");f.setAttribute("id",g.id+"_hidden");f.setAttribute("type","hidden");document.body.appendChild(f)}if(e>a){alert("최대 "+a+"자 까지 작성 가능합니다.");g.value=document.getElementById(g.id+"_hidden").value;return}else{document.getElementById(g.id+"_hidden").value=g.value;if(document.getElementById(b)!=null){document.getElementById(b).innerHTML=e}}};
