// common 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; i0 && virt_w>w){ virt_w = w; virt_h = real_h * (virt_w/real_w); } if(h>0 && virt_h>h){ virt_h = h; virt_w = real_w * (virt_h/real_h); } obj.style.width="0"; obj.style.height="0"; obj.style.width=virt_w+"px"; obj.style.height=virt_h+"px"; } //min-height function min_height(obj,h){ if(obj.readyState != "complete") return "auto"; if(obj.offsetHeight 0) { pos = obj.getTop() + obj.initTop; } else { pos = obj.getTop() + obj.getHeight() + obj.initTop; //pos = obj.getTop() + obj.getHeight() / 2 - 15; } if (pos > obj.bottomLimit) pos = obj.bottomLimit; if (pos < obj.topLimit) pos = obj.topLimit; interval = obj.top - pos; obj.top = obj.top - interval / 3; obj.style.top = obj.top + "px"; }, 30) } // Top Menu function initNavigation(seq) { nav = document.getElementById("gnb"); nav.menu = new Array(); nav.current = null; nav.menuseq = 0; navLen = nav.childNodes.length; allA = nav.getElementsByTagName("a") for(k = 0; k < allA.length; k++) { allA.item(k).onmouseover = allA.item(k).onfocus = function () { nav.isOver = true; } allA.item(k).onmouseout = allA.item(k).onblur = function () { nav.isOver = false; setTimeout(function () { if (nav.isOver == false) { if (nav.menu[seq]) nav.menu[seq].onmouseover(); else if(nav.current) { menuImg = nav.current.childNodes.item(0); menuImg.src = menuImg.src.replace("_on.gif", ".gif"); if (nav.current.submenu) nav.current.submenu.style.display = "none"; nav.current = null; } } }, 500); } } for (i = 0; i < navLen; i++) { navItem = nav.childNodes.item(i); if (navItem.tagName != "LI") continue; navAnchor = navItem.getElementsByTagName("a").item(0); navAnchor.submenu = navItem.getElementsByTagName("ul").item(0); navAnchor.onmouseover = navAnchor.onfocus = function () { if (nav.current) { menuImg = nav.current.childNodes.item(0); menuImg.src = menuImg.src.replace("_on.gif", ".gif"); if (nav.current.submenu) nav.current.submenu.style.display = "none"; nav.current = null; } if (nav.current != this) { menuImg = this.childNodes.item(0); menuImg.src = menuImg.src.replace(".gif", "_on.gif"); if (this.submenu) this.submenu.style.display = "block"; nav.current = this; } nav.isOver = true; } nav.menuseq++; nav.menu[nav.menuseq] = navAnchor; } if (nav.menu[seq]) nav.menu[seq].onmouseover(); } // showhide layer function popupLayer(divName){ var div_style =document.getElementById(divName).style.display; if (div_style == "block") { document.getElementById(divName).style.display ="none"; }else { document.getElementById(divName).style.display ="block"; } } //toggle function toggle(elem) { var target = document.getElementById(elem); target.style.display = ( target.style.display != 'none' ) ? 'none' : ''; } function input_clearbg_id() { document.getElementById("loginId").style.background="url(http://image.netgame.com/fate/main/login/bg_input.gif) no-repeat"; } function input_clearbg_pw() { document.getElementById("loginPw").style.background="url(http://image.netgame.com/fate/main/login/bg_input.gif) no-repeat"; } function openURL(bigNum,smallNum) { var filePath; if(bigNum == 0) { switch(parseInt(smallNum)) { default : filePath = '/index.php'; break; } } else if(bigNum == 1) { switch(parseInt(smallNum)) { case 2 : filePath = '/notice/notice.php?cate=notice'; break; case 3 : filePath = '/notice/notice.php?cate=event'; break; default : filePath = '/notice/notice.php'; break; } } else if(bigNum == 2) { switch(parseInt(smallNum)) { case 2 : filePath = '/guide/hts01.php'; break; case 3 : filePath = '/guide/interface01.php'; break; case 4 : filePath = '/guide/htp01.php'; break; case 5 : filePath = '/guide/system01.php'; break; default : filePath = '/guide/intro01.php'; break; } } else if(bigNum == 3) { switch(parseInt(smallNum)) { case 2 : filePath = '/gameinfo/pets_mouse.php'; break; case 3 : filePath = '/gameinfo/item_weapons.php'; break; case 4 : filePath = '/gameinfo/monster.php'; break; case 5 : filePath = '/gameinfo/npc.php'; break; case 6 : filePath = '/gameinfo/quest.php'; break; case 7 : filePath = '/gameinfo/map.php'; break; default : filePath = '/gameinfo/character_swordman_specialties.php'; break; } } else if(bigNum == 4) { switch(parseInt(smallNum)) { case 2 : filePath = '/premiumshop/item_01.php'; break; case 3 : if(!netgameUserCheck()) return; filePath = 'http://www.netgame.com/account/ncash.php'; break; case 4 : filePath = '/premiumshop/agreement.php'; break; default : filePath = '/premiumshop/htu.php'; break; } } else if(bigNum == 5) { switch(parseInt(smallNum)) { case 2 : filePath = '/community/guild_list.php'; break; case 3 : filePath = '/community/fansite.php'; break; case 4 : filePath = '/community/screenshot.php'; break; case 5 : filePath = '/community/players.php'; break; case 6 : filePath = '/community/art.php'; break; case 7 : filePath = '/community/multimedia.php'; break; case 8 : filePath = '/community/wallpaper.php'; break; case 9 : filePath = '/community/poll.php'; break; case 10 : filePath = '/community/ranking.php'; break; default : filePath = '/community/forum.php'; break; } } else { switch(parseInt(smallNum)) { case 2 : //if(!netgameUserCheck()) return; filePath = 'http://fate.netgame.com/community/forum_list.php?idxForum=9'; break; //filePath = "/support/faq.php"; //break; case 3 : if(!netgameUserCheck()) return; filePath = 'http://www.netgame.com/help/inquiry.php?game=yulgang'; break; case 4 : netgameEmailGuide(); return; break; case 5 : filePath = 'http://www.netgame.com/company/agreement.php'; break; case 6 : if(!netgameUserCheck()) return; filePath = 'http://www.netgame.com/account/coupon.php'; break; default : filePath = "/support/download.php"; break; } } if(filePath == "#") { error('Content is being prepared.'); } else { top.location.href = filePath; } }