var TETRIS_DOMAIN = "tetris.hangame.com"; var IDS_DOMAIN = 'id.hangame.com'; function logoClick() { location.href = "/index.nhn"; } function bannerClick(url) { var urlStr = url.split('|'); switch(urlStr[0]){ case "blank" : window.open(urlStr[1]); break; case "self" : location.href = urlStr[1]; break; case "popup" : openWindow( urlStr[1], "tet4Popup", 420,600,"yes" ); break; case "popup_scrn" : openWindow( urlStr[1], "tet4Popup", 420,600,"no" ); break; case "popup_May" : { var popupX = (screen.availWidth - 388) / 2; var popupY = (screen.availHeight - 481) / 2; openWinNative(urlStr[1], 'tetrisMayevent', 388, 481, popupX, popupY ); break; } } } function navigate(navi){ switch(navi){ case 'home': document.location.href = "/index.nhn"; break; case 'zone': document.location.href = "/zone/notice.nhn"; break; case 'best': document.location.href = "/zone/best.nhn"; break; case 'friend': document.location.href = "/zone/friend.nhn"; break; case 'guide': document.location.href = "/guide/intro.nhn"; break; case 'shop': document.location.href = "/shop/pass.nhn"; break; case 'goods': document.location.href = "/shop/goods.nhn"; break; case 'cs': document.location.href = "/cs/faq.nhn"; break; case 'multi': document.location.href = "/guide/multi.nhn"; break; case 'single': document.location.href = "/guide/single.nhn"; break; case 'hist' : document.location.href = "/guide/hist.nhn"; break; case 'control' : document.location.href = "/guide/control.nhn"; break; case 'tip' : document.location.href = "/guide/tip.nhn"; break; case 'multimedia' : document.location.href = "/zone/multimedia.nhn"; break; case 'rank' : document.location.href = "/rank/multirank.nhn"; break; case 'singlerank' : document.location.href = "/rank/singlerank.nhn"; break; case 'schoolrank' : document.location.href = "/rank/schoolrank.nhn"; break; case 'dayrank' : document.location.href = "/rank/dayrank.nhn"; break; case 'singer' : document.location.href = "/zone/ost/singer.nhn"; break; case 'ost' : document.location.href = "/zone/ost/main.nhn"; break; case 'musician' : document.location.href = "/zone/ost/musician.nhn"; break; case 'maker' : document.location.href = "/zone/ost/maker.nhn"; break; case 'listen' : document.location.href = "/zone/ost/listen.nhn"; break; case 'story' : document.location.href = "/zone/story.nhn"; break; case 'leagueintro' : document.location.href = "/league/intro.nhn"; break; case 'preliminary' : document.location.href = "/league/preliminary.nhn"; break; case 'finalselection' : document.location.href = "/league/finalselection.nhn"; break; case 'regulation' : document.location.href = "/league/regulation.nhn"; break; case 'matchstory' : document.location.href = "/league/matchstory.nhn"; break; case 'sketch' : document.location.href = "/league/sketch.nhn"; break; case 'player' : document.location.href = "/league/player.nhn"; break; case 'league_event' : //document.location.href = "/league/event.nhn"; alert("대회가 모두 종료되었습니다. 감사합니다."); break; case 'apply' : alert("참가신청이 종료되었습니다. 다음 대회를 기다려 주세요."); //document.location.href = "/league/apply.nhn"; break; } } function goRankInSchool(sId, factor, datenum){ if(typeof datenum == 'undefined' ){ datenum =""; } openWinNative( "/popup/rankinschool.nhn?sid="+sId+"&factor="+factor+"&datenum="+datenum, "wndTetRankInSchool", 600, 1000); } function schoolMatchMenuMove(tabinfo){ document.location.href = "/rank/schoolrank.nhn?tabinfo="+tabinfo; } function goCouponRecv(){ var popupX = (screen.availWidth - 288) / 2; var popupY = (screen.availHeight - 204) / 2; openWinNative('/event/may.nhn', 'tetrisMayevent_result', 288, 204, popupX, popupY ); } function openCouponUse(url){ var popupX = (screen.availWidth - 388) / 2; var popupY = (screen.availHeight - 481) / 2; openWinNative(url, 'tetrisMaycoupon', 388, 481, popupX, popupY ); }