function menuClick( mainIdx, subIdx ) { if( mainIdx == 0 ) { switch(subIdx) { case 0: location.href = "/zone/notice.nhn"; break; case 1: location.href = "/zone/event.nhn"; break; case 2: location.href = "/zone/story.nhn"; break; case 3: location.href = "/zone/freeboard.nhn"; break; case 4: location.href = "/zone/guild.nhn"; break; case 5: location.href = "/zone/poll.nhn"; break; case 6: location.href = "/zone/ost/main.nhn"; break; case 7: location.href = "/zone/multimedia.nhn"; break; } } if( mainIdx == 1 ) { switch(subIdx) { case 0: location.href = "/guide/intro.nhn"; break; case 1: location.href = "/guide/hist.nhn"; break; case 2: location.href = "/guide/control.nhn"; break; case 3: location.href = "/guide/multi.nhn"; break; case 4: location.href = "/guide/gameui.nhn"; break; case 5: location.href = "/guide/exgrade.nhn"; break; case 6: location.href = "/guide/tip.nhn"; break; case 7: location.href = "/guide/download.nhn"; break; } } if( mainIdx == 2 ) { switch(subIdx) { case 0: location.href = "/league/finalselection.nhn"; break; case 1: location.href = "/rank/schoolrank.nhn"; break; case 2: location.href = "/rank/multirank.nhn"; break; } } if( mainIdx == 3 ) { var url= null; switch(subIdx) { case 0: location.href = "/cs/faq.nhn"; break; case 1: url = "/cs/email.nhn"; goWithLogin(url, true); break; case 2: url = "/cs/myqlist.nhn"; goWithLogin(url, true); break; case 3: location.href = "/cs/security.nhn"; break; case 4: location.href = "/cs/policy.nhn"; break; } } } function subMenuClick( mainIdx, subIdx ) { menuClick( mainIdx, subIdx ); } function shopButton(gubun, itemCode){ var url =""; if("buy" == gubun){ url = "http://item.hangame.com/itemBuy.nhn?itemcode="+itemCode+"&gameid=tet4&status=W&traceid=ITEM_MAIN"; openWindow( url, "tet4ShopBuyPopup", 420,600,"no" ); } else if("gift" == gubun){ url = "http://item.hangame.com/itemPreShop.nhn?itemcode="+itemCode+"&gameid=tet4&status=W&traceid=ITEM_MAIN"; openWindow( url, "tet4ShopGiftPopup", 420,600,"no" ); } else if("detail" == gubun){ url = "http://item.hangame.com/itemDetail.nhn?itemCode="+itemCode+"&shopId=174&viewType=itemDetail&traceId=ITEM_MAIN&status=W&gameCategory=casual&gameId=tet4"; openWindow( url, "tet4ShopDetailPopup", 420,600,"yes" ); } else; }