function gameFlashdcr(divid, flash_src,swf_width,swf_height) { HtmlTag = ''; HtmlTag = HtmlTag + ' '; HtmlTag = HtmlTag + ''; HtmlTag = HtmlTag + ''; HtmlTag = HtmlTag + ''; /*document.getElementById(divid).innerHTML = HtmlTag;*/ var aHTML = []; aHTML.push(HtmlTag); document.getElementById(divid).innerHTML = aHTML.join(""); } /* Ç÷¡½Ã °ÔÀÓ wmode : window , opaque, transparent */ function gameFlash(divid, flash_src,swf_width,swf_height,param_wmode,param_acess,param_network) { if(param_wmode == null) param_wmode = "transparent"; if(param_acess == null) param_acess = "always"; // always Çã¿ë, never ºÒ°¡, samedomain ÇØ´çµµ¸ÞÀθ¸ if(param_network == null) param_network = "all"; // all Çã¿ë internal ºÒ°¡ HtmlTag = ""; HtmlTag = HtmlTag + ""; HtmlTag = HtmlTag + ""; HtmlTag = HtmlTag + ""; HtmlTag = HtmlTag + ""; HtmlTag = HtmlTag + ""; HtmlTag = HtmlTag + ""; HtmlTag = HtmlTag + ""; /*document.getElementById(divid).innerHTML = HtmlTag;*/ var aHTML = []; aHTML.push(HtmlTag); document.getElementById(divid).innerHTML = aHTML.join(""); } function inner_html_tag(divid, tag, op) { var aHTML = []; aHTML.push(tag); if(op){ document.getElementById(divid).innerHTML += aHTML.join(""); }else{ document.getElementById(divid).innerHTML = aHTML.join(""); } } function gameFlash_frame(divid, flash_src,swf_width,swf_height,file_type){ var HtmlTag = ''; /*document.getElementById(divid).innerHTML = HtmlTag;*/ var aHTML = []; aHTML.push(HtmlTag); document.getElementById(divid).innerHTML = aHTML.join(""); } /* Ç÷¡½Ã wmode : window , opaque, transparent */ function PrintFlash(flash_src,swf_width,swf_height,param_wmode,param_acess) { if(param_wmode == null) param_wmode = "transparent"; if(param_acess == null) param_acess = "always"; HtmlTag = ""; HtmlTag = HtmlTag + ""; HtmlTag = HtmlTag + ""; HtmlTag = HtmlTag + ""; HtmlTag = HtmlTag + ""; HtmlTag = HtmlTag + ""; HtmlTag = HtmlTag + ""; document.write(HtmlTag); } /* Ç÷¡½Ã wmode : window , opaque, transparent */ function PrintFlash_innerhtml(divid, flash_src,swf_width,swf_height,param_wmode,param_acess) { if(param_wmode == null) param_wmode = "transparent"; if(param_acess == null) param_acess = "always"; HtmlTag = ""; HtmlTag = HtmlTag + ""; HtmlTag = HtmlTag + ""; HtmlTag = HtmlTag + ""; HtmlTag = HtmlTag + ""; HtmlTag = HtmlTag + ""; HtmlTag = HtmlTag + ""; /*document.getElementById(divid).innerHTML = HtmlTag;*/ var aHTML = []; aHTML.push(HtmlTag); document.getElementById(divid).innerHTML = aHTML.join(""); } /*À̹ÌÁöâ ¶ç¿ì±â */ function imgWin(ref,src,w,h) { var scroll; ref = ref+'/popwin/image_view.html.php?src='+src+'&width='+w+'&height='+h+''; if(h >= 740) { h = 740; scroll = "yes"; } var window_left = (screen.width-w)/2; var window_top = (screen.height-h)/2-50; var openwin = window.open(ref,"imgWin",'width='+w+',height='+h+', resizable=no, scrollbars='+scroll+', status=no, top=' + window_top + ',left=' + window_left + ''); openwin.focus(); } /*°ÔÀÓ¸Þ´º, °ÔÀÓ¾÷·Îµå ÂÊ*/ 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(); } MM_reloadPage(true); function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i '9') { return false; } } return true; } /*±ÛÀÚ ¼ö Á¦ÇÑ*/ function word100(form,count,name,msg) { var cnts_length = eval("form."+name+".value.length;"); eval("cnts_letter.innerHTML = '' + cnts_length + '';"); if (cnts_length >= count) { alert(msg+" ±ÛÀº "+count+"ÀÚ±îÁö¸¸ ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù."); eval("form."+name+".value = form."+name+".value.substring(0, "+count+");"); eval("cnts_letter.innerHTML = '' + form."+name+".value.length + '';"); eval("form."+name+".focus();"); return false; } } /* À̹ÌÁö ¾÷·Îµå Àü¿¡ ½æ³×ÀÏ À̹ÌÁö º¸±â */ function AddFile() { var objTbl = document.all["tblAttFiles"]; var objRow = objTbl.insertRow(); var objCell = objRow.insertCell(); objCell.innerHTML = "" + ""; document.recalc(); } function CkImageVal() { var oInput = event.srcElement; var fname = oInput.value; if((/(.jpg|.jpeg|.gif|.png)$/i).test(fname)) oInput.parentElement.children[0].src = fname; else alert('À̹ÌÁö´Â gif, jpg, png ÆÄÀϸ¸ °¡´ÉÇÕ´Ï´Ù.'); } //¿ìÆí¹øÈ£ Æ˾÷ : ref:°æ·Î, form:ºÎ¸ðÆû, input_zipcode:ÀÔ·ÂÇÒ ºÎ¸ðÀÇ ¿ìÆí¹øÈ£ ÆûÀ̸§, input_addr:ÀÔ·ÂÇÒ ºÎ¸ðÀÇ ÁÖ¼Ò ÆûÀ̸§ function ZipWindow(ref,form,input_zipcode,input_addr) { var window_left = (screen.width-640)/2; var window_top = (screen.height-480)/2; ref = ref + "?input_zipcode=" + input_zipcode + "&opener_form=" + form + "&input_addr=" + input_addr; window.open(ref,"zipWin",'width=460,height=300,status=no,top=' + window_top + ',left=' + window_left + ''); } //¾ÆÀ̵ð°Ë»ö Æ˾÷ : ref:°æ·Î, form:ºÎ¸ðÆû, input_id_checked: °ËÁõµÈ ¾ÆÀ̵ð Æû function IDWindow(ref,form,input_id_checked) { var window_left = (screen.width-320)/2; var window_top = (screen.height-240)/2; ref = ref + "?input_id_checked=" + input_id_checked + "&opener_form=" + form; window.open(ref,"idWin",'width=460,height=300,status=no,top=' + window_top + ',left=' + window_left + ''); } /* ÆäÀÌÁö ¸Ç À§·Î */ function pageTop() { document.documentElement('body').scrollTop = 0; /*alert(document.documentElement.scrollTop);*/ } var new_pocket_start; /*Æ÷ÄÏ¿¡¼­È£ÃâÀº parent ÀÌ´Ù*/ var pocket_target = 'self'; function new_pocket_start_add(num){ /*if(num == 4)num = 221;*/ new_pocket_start = num; new_upndown_div(); } /*ÇÏ´Ü Æ÷ÄÏ·¹À̾îÅ©±âÁ¶Àý*/ function new_upndown_div() { /*flash_game_new_pocket_layer Æ÷ÄÏ·¹À̾ űװ¡ ¾ø´Ù´Â¶æ*/ if(pocket_target == 'self' && !document.getElementById("flash_game_new_pocket_layer").innerHTML){ inner_html_tag('flash_game_new_pocket_layer', ''); } flash_game_new_pocket_layer_tag_state = 'yes'; if(pocket_target == 'self'){ var now_botom = parseInt(document.getElementById("flash_game_new_pocket_layer").style.bottom.replace('px','')); }else if(pocket_target == 'parent'){ var now_botom = parseInt(parent.document.getElementById("flash_game_new_pocket_layer").style.bottom.replace('px','')); } var plau_num = 18; var now_num; var tid; /*¿Ã¸®±â*/ if(now_botom < new_pocket_start){ if(new_pocket_start-now_botom < 100)plau_num = 12; if(new_pocket_start-now_botom < 50)plau_num = 6; if(new_pocket_start-now_botom < 20)plau_num = 3; if(new_pocket_start-now_botom < 10)plau_num = 1; now_num = now_botom+plau_num; if(pocket_target == 'self'){ document.getElementById("flash_game_new_pocket_layer").style.bottom = now_num+'px'; }else if(pocket_target == 'parent'){ parent.document.getElementById("flash_game_new_pocket_layer").style.bottom = now_num+'px'; } tid=setTimeout(new_upndown_div,1); //1ÃÊÈÄ aÇÔ¼ö ½ÇÇà - Àç±ÍÈ£Ãâ /*³»¸®±â*/ }else if(now_botom > new_pocket_start){ /*alert(new_pocket_start+now_botom);*/ /* if(new_pocket_start+now_botom > -200){ plau_num = 12; }else if(new_pocket_start+now_botom > -300){ plau_num = 6; }else if(new_pocket_start+now_botom > -400){ plau_num = 3; }else if(new_pocket_start+now_botom > -500){ plau_num = 1; } */ if(new_pocket_start+now_botom > 100){ plau_num = 5; }else if(new_pocket_start+now_botom > 50){ plau_num = 3; }else if(new_pocket_start+now_botom > 20){ plau_num = 2; }else if(new_pocket_start+now_botom > 10){ plau_num = 1; } now_num = now_botom-plau_num; if(pocket_target == 'self'){ document.getElementById("flash_game_new_pocket_layer").style.bottom = now_num+'px'; }else if(pocket_target == 'parent'){ parent.document.getElementById("flash_game_new_pocket_layer").style.bottom = now_num+'px'; } tid=setTimeout(new_upndown_div,1); //1ÃÊÈÄ aÇÔ¼ö ½ÇÇà - Àç±ÍÈ£Ãâ /*¿Ï·á*/ }else{ clearTimeout(tid); } } /*¿ìÃø ¿À´ÃÇÑ°ÔÀÓ ¸®½ºÆ®*/ var today_play_fgames_now_num = 0; var today_play_view_num = 3;//º¸¿©ÁÙ°¹¼ö function today_play_fgames(num){ if(num < 0)return; var my_play_fgame_data = getCookie('my_play_fgame'); var my_play_fgame_data_array = new Array(); var tag = ''; var limit_num; if(my_play_fgame_data){ my_play_fgame_data = unescape(my_play_fgame_data); my_play_fgame_data_array = my_play_fgame_data.split(','); my_play_fgame_data_array = my_play_fgame_data_array.reverse();//¿ª¼øÀ¸·Î º¯°æ var my_play_fgame_data_array_count = my_play_fgame_data_array.length-1; if(num > my_play_fgame_data_array_count)return; if(num){ limit_num = num; }else{ limit_num = 0; } var count = limit_num+today_play_view_num; for(i=limit_num; i < count; i++){ if(my_play_fgame_data_array[i]){ /*list(cgroup, uid, capture, cid, title)*/ this_game = my_play_fgame_data_array[i].split('::'); /* " ¸¦ ¸ðµÎ Á¦°ÅÇÑ´Ù*/ this_game[4]=this_game[4].replace(/\"/g, ""); if(this_game[0] == 'game_self'){ tag += ''+this_game[4]+''; }else{ tag += ''+this_game[4]+''; } } } today_play_fgames_now_num = num; } var aHTML = []; aHTML.push(tag); document.getElementById("today_play_fgames_list").innerHTML = aHTML.join(""); } /*±¸±Û ¾Öµå¼¾½º ¹è³Ê °ü·Ã -----------------------------------------------*/ function googleadFlash(divid, bannerurl, width, height){ var HtmlTag = ''; HtmlTag +=''; HtmlTag +=' '; HtmlTag +=' '; HtmlTag +=' '; HtmlTag +=' '; HtmlTag +=' '; HtmlTag +='